Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine if property of an object is changed ?
Message
De
19/07/1999 21:51:06
 
 
À
19/07/1999 06:54:07
Senna Dwipayana
Indo Rebel Apparel Cv
Bandung, Indonésie
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00242881
Message ID:
00243407
Vues:
27
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform