Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Painted Myself into a Corner with Refresh?
Message
 
À
08/06/2001 09:19:28
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00516845
Message ID:
00516852
Vues:
11
This message has been marked as the solution to the initial question of the thread.
>I have Textboxes based on classes that depending on the value of a Form property ("C" for Change, "A" for Add, etc.) will do things like change the format of the Textbox so they look a certain way depending on the action that is going on. For example, I set the Enabled property to True in the Refreshes of the classes when the form is in "Add" mode, but when it is in "View" mode, Enabled is set to False. It works great under "normal" conditions, but the problem is that if I have a Textbox that should be disabled due to a value of another object selected by the user, the Refresh may override it. Do I need to remove the functionality in the Refreshes or is there another way to handle this? Thanks!
>
>Regards, Renoir

Renoir,
If your Refresh code is in the class, you may override it in the certain textbox instance like:
* textbox7.Refresh()
dodefault()
this.enabled = IIF(thisform.textbox2.value = somevalue, .f., this.enabled)
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform