Jump to content

Recommended Posts

Posted

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)

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...