Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CheckBox.Click when any key is pressed
Message
From
06/06/2005 08:04:52
 
 
To
06/06/2005 07:54:42
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01020426
Message ID:
01020430
Views:
14
Put this line in the InteractiveChange event:
this.click()
Update: You need this line to be able to switch value via a hotkey, defined by \<

>Fast data entry is paramount to the client, and Windows and mice are notoriously slow in that area.
>
>So when a checkbox has the focus I'd like to be able to check / uncheck never mind what key the user pressed.
>
>To that end I wrote in the KeyPress method
>
>
>LPARAMETERS nKeyCode, nShiftAltCtrl
>RaiseEvent(This,'Click')
>
>
>Which does not work. The code get's executed and the box get's checked and unchecked in one move.
Previous
Reply
Map
View

Click here to load this message in the networking platform