Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Limiting selection of a checkbox in FP 2.6 styled code
Message
 
 
To
14/05/2007 16:19:08
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01225372
Message ID:
01225429
Views:
19
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
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform