Jump to content

2 GUIs


Recommended Posts

im trying to have my script create a first GUI, and when a button is pressed make another one.

i used

func button1()
   $win2=guictrlcreate("Window 2",100,100)
endfunc

but for some reason it wont work. what am i doing wrong?

Edited by rvbfreak
Link to comment
Share on other sites

When windows are created they are initially hidden so you must use GUISetState() to display them.

func button1()
$win2=GUICreate("Window 2",100,100)
GUISetState()
endfunc

Edit : Good point below i just copied that bit without taking notice :mellow:

Edited by Yoriz
GDIPlusDispose - A modified version of GDIPlus that auto disposes of its own objects before shutdown of the Dll using the same function Syntax as the original.EzMySql UDF - Use MySql Databases with autoit with syntax similar to SQLite UDF.
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...