Sign in to follow this  
Followers 0
Spider001

set color what do i wrong

5 posts in this topic

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

Share this post


Link to post
Share on other sites



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."

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

found your link.

Iis there any way to change the color ?

Edited by Spider001

Share this post


Link to post
Share on other sites

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 :

Share this post


Link to post
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
Sign in to follow this  
Followers 0