Jump to content
Sign in to follow this  
mike1234

GUI background question

Recommended Posts

mike1234

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)

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

$button1 = GUICtrlCreateButton("asdas",200,400)
GUICtrlSetOnEvent(-1,"FunMsgBox")

GuiSetState(@SW_SHOW)

Share this post


Link to post
Share on other sites
mike1234

Must have missed that, thanks a bunch.

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  

×