Jump to content

GUICtrlCreatePic stops the script... [SOLVED]


Recommended Posts

Hi guys...

I made a child Gui and put my buttons inside, when I tried to define a pic (bmp), the script stopped working...When I return to a blank one everything works fine...GUICrtlSetTip is still there, but they do nothing when I click them...Any hint about what possibly wrong?

$Form2 = _Metro_CreateGUI("", 570, 190, -1, -1,False,$Form1)
GUISetState(@SW_SHOW, $Form2)
GUICtrlCreatePic(@ScriptDir & "\Dados\Imagens\background.bmp",0,0,0,0)

Nevermind...When I set the style, wich according the docs is optional...Everything works fine...Any thoughts about this?

 

$Form2 = _Metro_CreateGUI("", 600, 190, -1, -1,False,$Form1)
GUISetState(@SW_SHOW, $Form2)
GUICtrlCreatePic(@ScriptDir & "\Dados\Imagens\background.bmp",0,0,0,0,$SS_WHITERECT)

 

Edited by edumanilha
solved
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...