Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fire container, not control, events
Message
De
21/06/2011 14:38:43
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01514956
Message ID:
01515312
Vues:
60
Sorry for the delay in acknowlegement..............

Thanks to you and Tamar for your help. I've got it up and running now.


............Rich





>>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
>
>You could create a special container class and write some code in the INIT of this class:
>
>FOR EACH loControl IN THIS.Controls
>    BINDEVENT(loControl,"Click",THIS,"Click")
>    BINDEVENT(loControl,"Rightclick",THIS,"Rightclick")
>    BINDEVENT(loControl,"MouseMove",THIS,"MouseMove")
>    etc
>ENDFOR
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform