AustrianOak Posted July 31, 2008 Posted July 31, 2008 I start off with like 20 buttons in a row on my gui and it looks very strange because when they are being created you see the first one being created, then the second, the third, and so on and it looks very strange as to compared if they were all create at once. Is there a command I could use to tell me gui to wait to display the buttons until all of them are finished creating?
CoePSX Posted July 31, 2008 Posted July 31, 2008 GUISetState must be called AFTER everything in the GUI is created. [quote name='Valik' post='301213' date='Jan 31 2007, 10:36 PM']You seem to have a habit of putting things in the wrong place. I feel sorry for any female you attempt to have sex with.[/quote][font="Lucida Sans Unicode"]╔══════════════════════════════╗║░░██░░░░░░░░██░░███░░░████░░░█║║░█░░█░░██░░█░░█░█░░█░█░░░░█░█░║║░█░░░░█░░█░████░███░░░██░░░█░░║║░█░░█░█░░█░█░░░░█░░░░░░░█░█░█░║║░░██░░░██░░░██░░█░░░░███░█░░░█║╚══════════════════════════════╝[/font]
AustrianOak Posted July 31, 2008 Author Posted July 31, 2008 Maybe my problem is because immediately after each picture is created I do GUICtrlSetState(-1, $GUI_SHOW) Could that be it?
CoePSX Posted July 31, 2008 Posted July 31, 2008 Can you post some code so we can try to see what's wrong? Obs: Use the [ autoit][ /autoit] tags (without the spaces). [quote name='Valik' post='301213' date='Jan 31 2007, 10:36 PM']You seem to have a habit of putting things in the wrong place. I feel sorry for any female you attempt to have sex with.[/quote][font="Lucida Sans Unicode"]╔══════════════════════════════╗║░░██░░░░░░░░██░░███░░░████░░░█║║░█░░█░░██░░█░░█░█░░█░█░░░░█░█░║║░█░░░░█░░█░████░███░░░██░░░█░░║║░█░░█░█░░█░█░░░░█░░░░░░░█░█░█░║║░░██░░░██░░░██░░█░░░░███░█░░░█║╚══════════════════════════════╝[/font]
AustrianOak Posted July 31, 2008 Author Posted July 31, 2008 Problem is now solved. It correlated with this post: hereThe problem was I was telling the script to immediately show after each of the individual icons were created so I fixed it all using a for loop.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now