Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it possible to disable tab key
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00124536
Message ID:
00124948
Vues:
26
>>>Well, not exactly SIMPLE, Timothy,
>>>
>>>1. If you have only 3 choices for Base PN#, then you should be using radio buttons.
>>>
>>>2. I'd write a form method disabling and enabling the cmdbuttons. The disable version would be called when either textbox1 or textbox2 is live. Re-enabling is called from the VALID or LOSTFOCUS methods, but ONLY if there were good values in both textboxes.
>>>
>>>Barbara
>>not sure what you mean by a form method. commandgroup seems easier to click than a radio button and I noticed disabling a commandgroup does not make it dim
>
>A form method can be added to any form - it's just a method like 'Click' or 'SetFocus'. You name it, add you own code and call it like any of the 'built-in' methods. Go to Form/Method on the menu and follow the screen directions. It will show up below the standard events/methods.

I see that. How is the method invoked. I've done all my programming to this point by manipulating the events on controls. when you said:

"I'd write a form method disabling and enabling the cmdbuttons. The disable version would be called when either textbox1 or textbox2 is live. Re-enabling is called from the VALID or LOSTFOCUS methods, but ONLY if there were good values in both textboxes."
do you mean you'd process the events for the controls thru the form method?
By hard coding using code like "setall." ..." etc?
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform