Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COLOR option in DEFINE BAR
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
COLOR option in DEFINE BAR
Divers
Thread ID:
01433607
Message ID:
01433607
Vues:
123
I have a ListBox whose recordsource is a POPUP where each bar is define using the COLOR option so that the various items in the list are color coded. Each bar is define with code basically like the following...
lcForeColor = SomeFunction("Foreground")
lcBackColor = SomeFunction("Background")

lcColor = "RGB(" + m.lcForeColor + "," + m.lcBackColor + ")" ;
        + ",,,," ;
        + "RGB(" + m.lcBackColor + "," + m.lcForeColor + ")"
DEFINE BAR m.i OF UnScheduledPop ;
        PROMPT THISFORM.zaUnscheduled[m.i,1] ;
        COLOR, &lcColor.
It works OK except, I don't want the colors to change (invert) when an item is selected because it confuses the user. In otherwords, bar defined the the same colors should look the same whether selected or not.

I don't know enough about color schemes to know what colors pairs to set in the color setting. I found that POPUPS use color scheme 2 by default but that's as far as I've gotten.

Does anyone know where I can find details on what color pairs do what in scheme 2 ?


Thanks.
Carl Chambers
Cardol Data Systems
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform