Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine if property of an object is changed ?
Message
From
19/07/1999 21:51:06
 
 
To
19/07/1999 06:54:07
Senna Dwipayana
Indo Rebel Apparel Cv
Bandung, Indonesia
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00242881
Message ID:
00243407
Views:
22
>Actually I'm trying to make an object dissapear when another object got focus,
>Assume a combobox has 2 object, a textbox and a listbox, if neither of that object got focus, the listbox dissapear.
>Hope this can explain what I meant.
>
>Thanks,



As Erik said,

* thisform.txtbox1.gotfocus()
Thisform.lstbox1.visible = .T.

* Thisform.txtbox1.lostfocus()
Thisform.lstbox1.visible = .F.

* ThisForm.txtbox2.gotfocus()
Thisform.lstbox1.visible = .T.

* Thisform.txtbox2.lostfocus()
Thisform.lstbox1.visible = .F.

It will Save much time to Busy Check the current active object is or not your desire txtbox.

Otherwise, you need to add a timer to check the current active object from time to time.. ~_~




In File Section, there is a textbox called txteval will have similar feature!

when gotfocus, show another longer txtbox to input expression,
when lostfocus, return back the EVAL() and reverse the visible setting...

^_~ Good Luck!
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