Sign in to follow this  
Followers 0
Starky

GUI Controls

7 posts in this topic

#1 ·  Posted (edited)

Let's say I have...

$picA = GUICtrlCreatePic("imageA.gif", 100, 100)
$picB = GUICtrlCreatePic("imageB.gif", 110, 110)

By default, picture B is above picture A because it was created last. Is there a way to bring picture A above picture B without creating it after B?

Edited by Starky

Share this post


Link to post
Share on other sites



Add

GUISetState (@SW_SHOW)

After picture A



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

Thanks for your reply, but is there a way to do it after the images have already been created?

Share this post


Link to post
Share on other sites

HotKeySet("{F1}", "Switch")
Func Switch()
   GUICtrlSetState($GUI_SHOW, $picA)
   GUICtrlSetState($GUI_HIDE, $picB)
EndFunc

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Is there a way to do it with both images showing at all times? Also, the control ID comes first, then the state, but thanks for the idea.

Edited by Starky

Share this post


Link to post
Share on other sites

Sorry I was thinking of GUISetState, and NO if those controls overlap then it will not work, try spacing them out. If you can't figure something out as simple as this then no one can help you.

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Thank you for your spiteful response, but even if it is something as simple as this, I am just trying to gather ideas from other people so I can figure out what is doable and what isn't.

Edited by Starky

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  
Followers 0