Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Phantom greyed out listbox items
Message
From
03/06/2002 13:42:02
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
30/05/2002 16:33:32
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00663198
Message ID:
00664168
Views:
25
>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?

Is it VFP6? Check if you have a shape somewhere on the form. Try to change the shape's color and see if the gray in the listbox changes into this new color when you run the form. If it does, it's a bug that I've observed in some cases in VFP6 (deadlines, deadlines, couldn't investigate thoroughly when and why it appears), so I removed the shapes (replaced them with containers) and all of a sudden the listboxes (and even some textboxes and combos) started behaving normally again.

If this doesn't cure it, I've run out of tricks.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform