Jump to content

Recommended Posts

Posted

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
Posted

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

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
×
×
  • Create New...