Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Editbox scrollable AND read-only
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00890638
Message ID:
00890660
Vues:
18
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform