Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create read-only Drop-down list combo box
Message
From
04/04/2003 12:34:57
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00773225
Message ID:
00774103
Views:
23
>>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
>
Combo Box native readoly property allows to use Tab key to move to it,
but your code disables use of Tab key.

How to enable Tab key to move to read-only listbox ?
Andrus
Previous
Reply
Map
View

Click here to load this message in the networking platform