Starky Posted November 14, 2005 Share Posted November 14, 2005 (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 November 14, 2005 by Starky Link to comment Share on other sites More sharing options...
BigDod Posted November 15, 2005 Share Posted November 15, 2005 Add GUISetState (@SW_SHOW) After picture A 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 Link to comment Share on other sites More sharing options...
Starky Posted November 17, 2005 Author Share Posted November 17, 2005 Thanks for your reply, but is there a way to do it after the images have already been created? Link to comment Share on other sites More sharing options...
themax90 Posted November 17, 2005 Share Posted November 17, 2005 HotKeySet("{F1}", "Switch") Func Switch() GUICtrlSetState($GUI_SHOW, $picA) GUICtrlSetState($GUI_HIDE, $picB) EndFunc Link to comment Share on other sites More sharing options...
Starky Posted November 17, 2005 Author Share Posted November 17, 2005 (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 November 17, 2005 by Starky Link to comment Share on other sites More sharing options...
themax90 Posted November 17, 2005 Share Posted November 17, 2005 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. Link to comment Share on other sites More sharing options...
Starky Posted November 17, 2005 Author Share Posted November 17, 2005 (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 November 17, 2005 by Starky Link to comment Share on other sites More sharing options...
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