Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to know a ListItem in ComboBox is disabled?
Message
From
22/08/2019 15:40:54
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
 
 
To
22/08/2019 12:51:01
Joe Kaufman
Bell Laboratories Inc.
Wisconsin, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01670243
Message ID:
01670263
Views:
65
>>At that point the "\" or "\]" is no longer at the front of the value -- FoxPro apparently says, "OK, I'll disable this, but you'll never be able to tell it got disabled from now on..."

Thanks for that gem re the removed \ : something to remember!

2 suggestions:

1) Recently I saw somebody's post with a combo based on a POPUP. This allowed different fonts etc for each row, but also the SET SKIP to disable rows, will not alter source values.

2) A (Disabled) or (Closed) appended to the display text which emphasizes why they can't pick it, and is easily identified in code.
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us.
"
-- Shakespeare: Coriolanus, Act 1, scene 1
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform