Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Colors in Listboxes
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00224731
Message ID:
00224845
Views:
15
>I'm working with colors with Listboxes,
>
>For set the backcolor in a listbox I set ItemBackColor ( I don't understand why there isn't Backcolor )
>This is Ok, but How do i set the disabledBackColor to a listbox?
>
>I did this:
>
>lstBox.enabled = .F.
>lstBox.DisabledBackColor = RGB(125,125,125)
>
>and nothing,
>
>After i tried this:
>
>lstBox.enablde = .F.
>lstBox.ItemDisabledBackColor = RGB(125,125,125)
>
>but nothing too.
>
>Can anybody help me?

You can use itembackcolor if the items don't fill up the listbox. The disabled colors are used when there are items (try a test to see this).

In other words, you can set the listbox itembackcolor to a textbox disabledbackcolor (for example) if you want to pick up the user Windows disabled color, if there aren't enough items to fill the listbox...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Reply
Map
View

Click here to load this message in the networking platform