Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Editbox scrollable AND read-only
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00890638
Message ID:
00890660
Views:
19
Michael,

In addition to David's suggestion to set ReadOnly to .T., you can set DisabledForeColor and DisabledBackColor so that the edit box isn't grayed out if that is a concern.

You could also do the following in the keypress event.
LPARAMETERS nKeyCode, nShiftAltCtrl

if !inlist(nKeycode,1,2,3,4,5,6,18,19,23,24,26,29,30,31,141,145)
*!* Allow only navigation keys -  arrow, home, end,pgup, pgdn 
*!* or ctrl+arrow, ctrl+home, ctrl+end, ctrl+pgup, ctrl+pgdn  
	nodefault
endif
This would leave the editbox enabled and allow only navigation keys to be used. Either way, should allow you to scroll the edit box with the scroll bars or arrow navigation keys and copy contents to clipboard if desired.

HTH
Previous
Reply
Map
View

Click here to load this message in the networking platform