Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create read-only Drop-down list combo box
Message
 
To
02/04/2003 15:40:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00773225
Message ID:
00773955
Views:
16
>How to prevent entering new values ?
>Which is the best way to mark list box read only from VFP code ?

If my combo is read-only, then I don't want the user to be able to show the list of values, either. Therefore, something like this in the ReadOnly_ASSIGN method works for me:
LPARAMETERS lReadOnly

THIS.Enabled = !lReadOnly
IF lReadOnly
   THIS.DisabledForeColor = THIS.ForeColor
ELSE
   THIS.ResetToDefault("DisabledForeColor")
ENDIF

THIS.ReadOnly = m.lReadOnly
Ryan Katri
COB System Designs, Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform