Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can you lock an editbox ?
Message
 
 
À
28/06/1998 10:18:01
Jeroen Naus
Harte-Hanks Europe
Hasselt, Belgique
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00112268
Message ID:
00112300
Vues:
25
Jeroen,

If you don't like the editbox displaying in disabled colors when marked as readonly, you can use this code in the KeyPress method:
LPARAMETERS nKeyCode, nShiftAltCtrl

if ( ! inlist( nKeyCode, 1, 6, 18, 3, 5, 24, 4, 19, 9, 15, 49, 57, 51, 56, 50, 52, 54 ) )
   nodefault
endif
This will still allow navigation keystrokes to work properly but disable any editing of the content.

>Meaning: I display info in an editbox and I don't want the user to be able to edit the text but I want him to be able to use the scrollbars. So if I disable it they can't scroll. If I enable they can edit. How can this one be solved ? (putting a shape control over it ?)
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform