Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Color on Menu Items?
Message
From
30/05/2001 14:53:11
 
 
To
29/05/2001 07:48:13
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00511092
Message ID:
00512831
Views:
14
This message has been marked as the solution to the initial question of the thread.
>>"" COLOR n,bg+
>>
>>This would give you cyan on black prompt for that row. Note that you can't seem to get all color combinations because of the way menu's work, at least I wasn't able to get all combinations.
>>
>>What you should see if you look at the resultant .MPR when you generate the menu is:
>>

>>DEFINE BAR 1 OF yourmenu PROMPT "Your Prompt" ;
>> MESSAGE "" COLOR n,bg+
>
>Hey Fred,
>
>Mine generated an error because somehow I already have a Color Scheme going on. I'm not sure why that is in there... I'm not aware that I'm setting anything anywhere to do this. Is there a project or system option that is using the Windows default perhaps? Here's the resulting code:
>
>DEFINE PAD _0ec0g8f4c OF _MSYSMENU PROMPT "\< Reports" COLOR SCHEME 3 KEY ALT+R, "" MESSAGE "" COLOR n,bg+
>
>Thanks again! Renoir

Don't add the COLOR command to the DEFINE PAD, add it to the DEFINE BAR. In other words, don't put it on the main entries in the Menu Designer, but only on sub-menu entries.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform