Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Limiting selection of a checkbox in FP 2.6 styled code
Message
 
 
À
15/05/2007 13:16:45
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01225372
Message ID:
01225743
Vues:
29
I took closer look at the problem and unfortuantely, the code is not going to work because no event is triggered when focus is moved from checkbox to other controls using TAB key or mouse. To reset ON KEY LABEL you'll have to put ON KEY LABEL ENTER in the WHEN() of every control on the form and DESTROY() of the form itself. Then checkbox WHEN() will include only
ON KEY LABEL ENTER KEYBOARD "{TAB}" CLEAR
>You make it seem too easy. That was a great solution. Thanks!
>
>>I forgot that Valid() wouldn't fire if checkbox status didn't change. Try
>>
>>* WHEN
>>DO CASE
>>CASE EMPTY(ON("KEY", "ENTER"))
>>	ON KEY LABEL ENTER KEYBOARD "{TAB}" CLEAR
>>CASE LASTKEY() = 13
>>	ON KEY LABEL ENTER
>>ENDCASE	
>>...
>>
>>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform