FinalVersion Posted February 13, 2010 Share Posted February 13, 2010 (edited) Why doesn't this work? I'm leaning towards the hex code is wrong, I generated the color from Photoshop, so I don't know if that gives you hex or what. #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $frmMain = GUICreate("Counter-Strike:Source Launcher", 257, 299, -1, -1, BitOR($WS_POPUP,$WS_CLIPSIBLINGS)) $btnClose = GUICtrlCreatePic(@ScriptDir & "Images\close_button.jpg", 240, 8, 12, 12, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS)) $btnMinimize = GUICtrlCreatePic(@ScriptDir & "Images\minimize_button.jpg", 224, 14, 13, 6, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS)) GUISetState(@SW_SHOW) GUICtrlSetBkColor($frmMain, 0x5a6a50) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Edited February 13, 2010 by FinalVersion [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center] Link to comment Share on other sites More sharing options...
FinalVersion Posted February 13, 2010 Author Share Posted February 13, 2010 Ah never mind, I was using GUICtrlSetBkColor(), instead of GUISetBkColor(). [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center] 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