Jump to content

Font Color of Menu Item


 Share

Recommended Posts

After creating a menu item is there any way to change the font color.

I know with GUICtrlSetColor doesn't work with Menu Items:

GUICtrlSetColor - Only Button, Label, Checkbox, Group, Radio, Edit, Input, List, Listview, ListviewItem, Treeview, TreeviewItem, Graphic, Progress and Combo controls can currently be colored.

But is there another way? I searched forum but with no luck, forum removed "color" word from search.

Link to comment
Share on other sites

After creating a menu item is there any way to change the font color.

I know with GUICtrlSetColor doesn't work with Menu Items:

GUICtrlSetColor - Only Button, Label, Checkbox, Group, Radio, Edit, Input, List, Listview, ListviewItem, Treeview, TreeviewItem, Graphic, Progress and Combo controls can currently be colored.

But is there another way? I searched forum but with no luck, forum removed "color" word from search.

The forum doesn't remove color when I try. Search for

menu+color

I get 71 hits by restricting to posts since July last year.

Edited by martin
Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

Holger wrote a Menu UDF many moons ago and it will do manu things with menus including what you want although I have a hunch that the font color in the Menu bar itself can not be changed. I have a revised copy of the ModernMenuRaw.au3 file and if you PM me I will send you a copy of that or you can just go to this thread

You will have to modify the ModernMenuRaw.au3 file to comment out the duplicated constants.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

Thanks GEOSoft this is exactly what I was looking for. Problem is that it doesn't work for windows 7/vista. It works on XP and below. That's ok I just had a Reset option in the Menu I just wanted it RED so that people wouldn't accedently click it. To solve that problem I just added a MsgBox asking "Are you sure you want to Reset?" [Yes][No].

Link to comment
Share on other sites

I'll test the font color in Vista and 7. The other color functions do work in both operating systems. That I'm sure of because I use them.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...