Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fire container, not control, events
Message
 
To
17/06/2011 14:30:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01514956
Message ID:
01514965
Views:
63
Hi Rich,

Are you interested in other interface event for the label? If the answer is no, then you can replace the labels with textboxes made to appear as labels and then disable them, thus the events for the container will fire.

Hugo

>I've built a container class which has two labels in it.
>
>The container has code in several methods: RightClick, MouseDown, MouseUp, etc.
>
>My problem is that if I, for example, RightClick while the mouse is over one of the labels it fires the label's RightClick event. I've "solved" the problem by coding
>this.parent. < event >
>into the relevant events for each of the labels.
>
>There HAS to be a better way to do this. I suspect that it has to do with zOrder, but haven't yet found the right combination of properties to get it working properly.
>
>All help gratefully accepted.
>
>.......Rich
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Reply
Map
View

Click here to load this message in the networking platform