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