Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Color on Menu Items?
Message
From
28/05/2001 16:12:55
 
 
To
25/05/2001 07:27:40
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00511092
Message ID:
00511991
Views:
18
>>You can use the old 2.x trick of tacking the COLOR command on to, say, the Message clause of the menu.
>
>Fred,
>
>You piqued my interest... Could you explain that more or give me a simple code example?
>
>Renoir

In the Menu Designer under the options for a row (the box at the end) for the Message you can specify:
"" 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+
This little trick seems to be a lot more useful in specifying a font or at least a font size for a menu entry. Just substitute FONT "Tahoma",16 or any fontname, size you want to see for the above. Additional comands that are supported by the DEFINE BAR command can be specified and added this way, even if they are not supported directly by the Menu Designer. You're essentially "piggybacking" your extra commands onto the MESSAGE clause.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform