Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checkboxes in Forms
Message
De
30/12/1999 16:23:20
 
 
À
30/12/1999 15:34:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00310654
Message ID:
00310688
Vues:
23
>VFP6.0 I have placed a checkbox within a grid. I want the checkbox only to be selected/deselected on a mouse click or space bar, not a carriage return. Right now whenever you press enter to pass the column, it changes the status of the checkbox, is there any way to prevent it.
>

Create a subclass of the CheckBox class. Add the following to the KeyPress method of the new class:
LPARAMETERS nKeyCode, nShiftAltCtrl
IF nKeyCode = 13 && Return
   NODEFAULT
   KEYBOARD {TAB} PLAIN
ENDIF
RETURN
Add an instance of the new subclass rather than a base CheckBox to the Column.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform