Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing combo back or forecolor does zilch
Message
De
02/08/2005 18:27:14
 
 
À
02/08/2005 04:15:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01037731
Message ID:
01037988
Vues:
26
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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform