Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can you lock an editbox ?
Message
 
 
To
28/06/1998 10:18:01
Jeroen Naus
Harte-Hanks Europe
Hasselt, Belgium
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00112268
Message ID:
00112300
Views:
26
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform