Jump to content

GUICtrlSetBkColor


Recommended Posts

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 by FinalVersion
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...