Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Right Click
Message
From
21/11/1999 20:01:50
 
 
To
19/11/1999 22:08:42
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00293387
Message ID:
00293762
Views:
19
>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform