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
Divers
Thread ID:
01433607
Message ID:
01433680
Vues:
75
Thanks Sergey,

I don't have any pre-VFP docs around anymore.
Also, I just found the answer right under my nose.
Changing this...
lcColor = "RGB(" + m.lcForeColor + "," + m.lcBackColor + ")" ;
        + ",,,," ;
        + "RGB(" + m.lcBackColor + "," + m.lcForeColor + ")"
to this...
lcColor = "RGB(" + m.lcForeColor + "," + m.lcBackColor + ")" ;
        + ",,,," ;
        + "RGB(" + m.lcForeColor + "," + m.lcBackColor + ")"
solved it.

Thanks,
Carl

>From FPW 2.6 help:
>
>User Defined Windows (Scheme 1)
>
>Color Pair	Windows Element
>1	Window text/Window background
>2	Window text/Application Workspace
>3	Window Frame/Window Background
>4	Active title bar text/Active title bar
>5	Inactive title bar text/Inactive title bar
>5 	For Windows 3.0: Active title bar text/Inactive title bar
>6	Highlighted text/Highlight
>7	Highlighted text/Highlight
>8	No mapping
>9	Window text/Window background
>10	Disabled text/Window background
>
>
>User Defined Menus (Scheme 2)
>
>Color Pair	Windows Element
>1	Menu text/Menu bar
>2	Window text/Menu bar
>3	Window Frame/Menu bar
>4	Active title bar text/Active title bar
>5	Inactive title bar text/Inactive title bar
>5	For Windows 3.0: Active title bar text/Inactive title bar
>6	Highlighted text/Highlight
>7	Highlighted text/Highlight
>8	No mapping
>9	Menu text/Menu bar
>10	Disabled text/Menu bar
>
>
>Menu Bar (Scheme 3)
>
>Color Pair	Windows Element
>1	Menu text/Menu bar
>2	Window text/Menu bar
>3	Window Frame/Menu bar
>4	Active title bar text/Active title bar
>5	Inactive title bar text/Inactive title bar
>5	For Windows 3.0: Active title bar text/Inactive title bar
>6	Highlighted text/Highlight
>7	Highlighted text/Highlight
>8	No mapping
>9	Menu text/Menu bar
>10	Disabled text/Menu bar
>
>
>Menu Popups (Scheme 4)
>
>Color Pair	Windows Element
>1	Menu text/Menu bar
>2	Window text/Menu bar
>3	Window Frame/Menu bar
>4	Active title bar text/Active title bar
>5	Inactive title bar text/Inactive title bar
>5	For Windows 3.0: Active title bar text/Inactive title bar
>6	Highlighted text/Highlight
>7	Highlighted text/Highlight
>8	No mapping
>9	Menu text/Menu bar
>10	Disabled text/Menu bar
>
>
>Dialogs (Scheme 5)
>
>Color Pair	Windows Element
>1	Window text/Window background
>2	Window text/Window background
>3	Window Frame/Window Background
>4	Active title bar text/Active title bar
>5	Inactive title bar text/Inactive title bar
>5	For Windows 3.0: Active title bar text/Inactive title bar
>6	Highlighted text/Highlight
>7	Highlighted text/Highlight
>8	No mapping
>9	Window text/Window background
>10	Disabled text/Window background
>
>
>Dialog Popups (Scheme 6)
>
>Color Pair	Windows Element
>1	Window text/Window background
>2	Window text/Window background
>3	Window Frame/Window Background
>4	Active title bar text/Active title bar
>5	Inactive title bar text/Inactive title bar
>5	For Windows 3.0: Active title bar text/Inactive title bar
>6	Highlighted text/Highlight
>7	Highlighted text/Highlight
>8	No mapping
>9	Window text/Window background
>10	Disabled text/Window background
>
>
>Alert (Scheme 7)
>
>Color Pair	Windows Element
>1	Window text/Window background
>2	Window text/Application Workspace
>3	Window Frame/Window Background
>4	Active title bar text/Active title bar
>5	Inactive title bar text/Inactive title bar
>5	For Windows 3.0: Active title bar text/Inactive title bar
>6	Highlighted text/Highlight
>7	Highlighted text/Highlight
>8	No mapping
>9	Window text/Window background
>10	Disabled text/Window background
>
>
>Window (Scheme 8)
>
>Color Pair	Windows Element
>1	Window text/Window background
>2	Window text/Application Workspace
>3	Window Frame/Window Background
>4	Active title bar text/Active title bar
>5	Inactive title bar text/Inactive title bar
>5	For Windows 3.0: Active title bar text/Inactive title bar
>6	Highlighted text/Highlight
>7	Highlighted text/Highlight
>8	No mapping
>9	Window text/Window background
>10	Disabled text/Window background
>
>
>Window Popups (Scheme 9)
>
>Color Pair	Windows Element
>1	Menu text/Menu bar
>2	Window text/Menu bar
>3	Window Frame/Menu bar
>4	Active title bar text/Active title bar
>5	Inactive title bar text/Inactive title bar
>5	For Windows 3.0: Active title bar text/Inactive title bar
>6	Highlighted text/Highlight
>7	Highlighted text/Highlight
>8	No mapping
>9	Menu text/Menu bar
>10	Disabled text/Menu bar
>
>
>Browse (Scheme 10)
>
>Color Pair	Windows Element
>1	Window text/Window background
>2	Window text/Application Workspace
>3	Window Frame/Window Background
>4	Active title bar text/Active title bar
>5	Inactive title bar text/Inactive title bar
>5	For Windows 3.0: Active title bar text/Inactive title bar
>6	Highlighted text/Highlight
>7	Highlighted text/Highlight
>8	No mapping
>9	Window text/Window background
>10	Disabled text/Window background
>
>
>Report (Scheme 11)
>
>Color Pair	Windows Element
>1	Window text/Window background
>2	Window text/Window background
>3	Window Frame/Window Background
>4	Active title bar text/Active title bar
>5	Inactive title bar text/Inactive title bar
>5	For Windows 3.0: Active title bar text/Inactive title bar
>6	Highlighted text/Highlight
>7	Highlighted text/Highlight
>8	No mapping
>9	Window text/Window background
>10	Disabled text/Window background
>
>
>Alert Popups (Scheme 12)
>
>Color Pair	Windows Element
>1	Window text/Window background
>2	Window text/Window background
>3	Window Frame/Window Background
>4	Active title bar text/Active title bar
>5	Inactive title bar text/Inactive title bar
>5	For Windows 3.0: Active title bar text/Inactive title bar
>6	Highlighted text/Highlight
>7	Highlighted text/Highlight
>8	No mapping
>9	Window text/Window background
>10	Disabled text/Window background
>
>
>
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform