Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Limiting selection of a checkbox in FP 2.6 styled code
Message
De
15/05/2007 10:50:46
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:
01225568
Vues:
25
That almost works. For some reason the ON KEY LABEL ENTER in the Valid does not turn it back on.

>I would try ON KEY LABEL
>
>* WHEN
>* Disable ENTER (or do something else)
>ON KEY LABEL ENTER *
>...
>* VALID
>* Enable ENTER
>ON KEY LABEL ENTER
>
>>This is an old styled Foxpro checkbox. It is selected/deselected when the user clicks on it with the mouse, hits the spacebar or Enter when it has the focus. How can I restrict that to not include hitting the Enter key? Does changing the value of the Collect variable in the v_Collect procedure while trapping for the Enter key make sense? Seems a bit back-assward. Any ideas? Thanks!
>>
>>UPDATE: Ok, that doesn't really work because visually the checkboxes still check/uncheck. This @ SAY stuff really kinda blows to work with.
>>
>>
>>**	'Turned Over for Collection'
>>@ 19 * row_incr, 41 GET COLLECT ;
>>	FUNCTION '*C ' + ALLTRIM( s1_prompt[ 22 ] ) ;
>>	VALID v_collect() ;
>>	COLOR ,,,,,,,,&control1_color,&disabl1_color
>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform