pinkfoyd Posted February 12, 2007 Share Posted February 12, 2007 (edited) Hi all, I will be crazy... I search create an picture on another picture, ie create an image for the background and open another on top of this last. but i have a problem of z ordering, if i delete the line of the background one ( $dslite =...) then i can see toto.jpg i read the help file but i found nothing... perhaps i am blind... please help ! in fact, how can i force a GUICtrlCreatePic in background ( behind all ) GuiCreate("Skin, 800, 600,(@DesktopWidth - 800 ) / 2 , (@DesktopHeight - 600) / 2, ,$WS_EX_LAYERED) GUISetBkColor(0x00FFFF) $dslite = GUICtrlCreatePic("tata.jpg", 0, 0, 525, 547 ) GuiCtrlSetState($dslite,$GUI_DISABLE); disable it because it's a background image GUISetState(@SW_SHOW) $image_A = GUICtrlCreatePic("toto.jpg", 136, 40, 256, 192); can't see this one... Edited February 12, 2007 by pinkfoyd Link to comment Share on other sites More sharing options...
BigDod Posted February 12, 2007 Share Posted February 12, 2007 This works for me #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("AForm1", 800, 600, 193, 115 ,$WS_EX_LAYERED) GUISetBkColor(0x00FFFF) $Pic1 = GUICtrlCreatePic("D:\AutoIT\Logo.jpg", 0, 0, 625, 441, BitOR($SS_NOTIFY,$WS_GROUP)) GUICtrlSetState(-1, $GUI_DISABLE) $Pic2 = GUICtrlCreatePic("D:\AutoIT\Würfel1.jpg", 192, 112, 217, 153, BitOR($SS_NOTIFY,$WS_GROUP)) GUICtrlSetState(-1, $GUI_DISABLE) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd 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...
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