Jump to content
Sign in to follow this  

GUI background question

Recommended Posts


For some reason when I create a background all of the controls above arent enabled. When I comment out the background the control intializes fine. There is something about the picture being there that makes it so you cant click on the button or label, you can see it fine but when you click on it there is no animation of a button press and no initilization of a function in the case of set on event. Any ideas?

$childwin = GuiCreate("Test",$testpicturex,$testpicturey,$testpicturelocx,$testpicturelocy, $WS_BORDER+$WS_EX_LAYERED,$win)
$testpicture = GuiCtrlCreatePic("testbk.bmp",$testpicturelocx,$testpicturelocy,$testpicturex,$testpicturey)

$font="Bodoni MT Black"
GUISetFont (30, 400, "", $font)
$testquestion = GUICtrlCreateLabel("",$testquestionx,$testquestiony,$testquestionwidth,$testquestionheight)
GUICtrlSetColor ( $testquestion, 0xffffff)

$button1 = GUICtrlCreateButton("asdas",200,400)


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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.