Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Right Click
Message
De
21/11/1999 20:01:50
 
 
À
19/11/1999 22:08:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00293387
Message ID:
00293762
Vues:
18
>>I want that right click on a control execute a form of help, but when I do that, it is executed the valid or the lostfocus of the control, and I don’t want that. How can I do ?
>>
>>Thanks
>
>You can block code in lostfocus/valid event:
***Control.RightClick
This.Tag='A'   && you msy use custom property if your control is subclassed
Do Form .... <B>With ThisForm, .... To myResult</B>

***Control.Valid/Lostfocus
If Not Empty(this.tag)
 This.Tag=''
Else
 *** run 'normal' code here
Endif

***ModalForm.Init
Lparameter CallingForm, ...
* Object Reference from Calling Form
ThisForm.CallingForm = CallingForm

***ModalForm.Unload
ThisForm.CallingForm.CONTROL.Tag = ""  && Empty it!

Return Thisform.iResult  && Send Back Result to calling Form!



In Addition, you need to reset the This.tag back to empty after finish
the form is closed!!

So, the Valid/lostfocus coding will execute after ModalForm is closed..
Especially to prevent naughty user to change the value after the Modalform
is closed! ~_~
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform