Spider001 Posted October 19, 2014 Share Posted October 19, 2014 Why is set color not working. #include <ColorConstants.au3> #include <GUIConstantsEx.au3> Example() Func Example() Local $hGUI = GUICreate("addon downloader mozilla") Local $hidden = GUICtrlCreateMenu("test") Local $checksel = GUICtrlCreateMenuItem("Check selected",$hidden) GUICtrlSetColor ( $checksel, $COLOR_RED ) GUISetState(@SW_SHOW, $hGUI) While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd EndFunc Link to comment Share on other sites More sharing options...
mikell Posted October 19, 2014 Share Posted October 19, 2014 Because. Thus Saith The Hepfile : "Only Button, Label, Checkbox, Group, Radio, Edit, Input, List, Listview, ListviewItem, Treeview, TreeviewItem, Graphic, Progress and Combo controls can currently be colored." Link to comment Share on other sites More sharing options...
Spider001 Posted October 19, 2014 Author Share Posted October 19, 2014 If i follow GUICtrlCreateMenuItem https://www.autoitscript.com/autoit3/docs/functions/GUICtrlCreateMenuItem.htm and then follow Related https://www.autoitscript.com/autoit3/docs/functions/GUICtrlUpdate%20Management.htm it can !? Link to comment Share on other sites More sharing options...
Spider001 Posted October 19, 2014 Author Share Posted October 19, 2014 (edited) found your link. Iis there any way to change the color ? Edited October 19, 2014 by Spider001 Link to comment Share on other sites More sharing options...
mikell Posted October 19, 2014 Share Posted October 19, 2014 No way using the integrated functions If you want a custom menu you will have to build it yourself, with i.e. this udf by Holger updated by LarsJ : Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now