Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Phantom greyed out listbox items
Message
From
30/05/2002 16:33:32
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Phantom greyed out listbox items
Miscellaneous
Thread ID:
00663198
Message ID:
00663198
Views:
55
I have a listbox control on a form that will frequently display some anomalous visual effects.

As the form is being initialized I preselect the listbox item that the user had selected the last time they ran the program. However, all of the visible items in the list ABOVE the current item will appear as if their backcolor were set to grey. All records below the selected record appear white, like their supposed to. As soon as the user clicks on any of the listbox items the backcolor for the greyed items will return to their normal backcolor (white).

When I say greyed out I don't mean disabled. I know all about how to selectively disable records in a listbox control and that's not what's happening.

It's as if the actual backcolor for those records was set to grey. As it is not possible to selectively change the back color of individual listbox records (without disabling them) I am at a lost to explain this phenomenon.

I've played with every color and backstyle property available, including those for the form, the page frame that the listbox is on, and the listbox itself, to no avail.

I have a feeling it's a VFP GUI bug, and that the key to working around it lies in the proper combination of backcolor/backstyle but I haven't found it. Has anyone ever seen this before?
"The most beautiful experience we can have is the mysterious ; it is the fundamental emotion which stands at the cradle of true art and true science." - Albert Einstein
Next
Reply
Map
View

Click here to load this message in the networking platform