Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing combo back or forecolor does zilch
Message
From
02/08/2005 18:27:14
 
 
To
02/08/2005 04:15:46
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01037731
Message ID:
01037988
Views:
28
This message has been marked as a message which has helped to the initial question of the thread.
Peter -
I could be wrong but . . .
I suspect the backcolor property of the combobox pertains to the entire content of the combo box and not each individual record. Try marking the first and last records it sees as deleted and see what you get. An alternative way to do what you want is to create 2 columns in the combo and populate one of them with a deleted tag. You may also want to play around with the disableditembackcolor, selecteditembackcolor and selectedbackcolor to see if you can dynamically adjust them.

- Don

>I'd kind of expected the following code to change the color of the combobox accordingly, but it does nothing of the sort.
>
>And yes, the code does get executed...
>
>
>* _ComboBox refresh method
>
>With This
>   .BackColor = Iif(Deleted(Juststem(.RowSource)),Rgb(128,0,0),Rgb(255,255,255))
>   .ForeColor = Iif(Deleted(Juststem(.RowSource)),Rgb(255,255,255),Rgb(0,0,0))
>Endwith
>
>
>
>Is this a known issue / bug?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform