erezlevi Posted January 10, 2008 Share Posted January 10, 2008 hello, when creating the following GUI: GUICreate("My GUI",1000,600) ; will create a dialog box that when displayed is centered ; Run the GUI until the dialog is closed Opt("GUICoordMode",2) GUICtrlCreateLabel ("IPphonevalues-change",20,20) GUICtrlCreatePic ("c:\4610front.jpg", -150, -100, 500, 300) $change=GUICtrlCreateLabel ("first contact label to change", -50, 50,150) $change3=GUICtrlCreateInput ("please insert new label",-10,-20) $change4=GUICtrlCreatelabel ("second contact label to change",-310,30,150) $change5=GUICtrlCreateInput ("",10,-20) $changeicon=GUICtrlCreateButton ("change",-150,30) GUISetState () i can't get the picture to be in the "backround" of the guicreatelable and guicreate input. how can be done? Thanks. Link to comment Share on other sites More sharing options...
BigDod Posted January 10, 2008 Share Posted January 10, 2008 Straight from the help fileIf a picture is set as a background picture, as the other controls will overlap, it's important to disable the pic control : GuiCtrlSetState(-1,$GUI_DISABLE). This does not work with Tab control which behave differently. in this case you need to create the picture with the $WS_CLIPSIBLINGS style, some $GUI_ONTOP can still be necessary for the tab control. 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...
erezlevi Posted January 10, 2008 Author Share Posted January 10, 2008 Straight from the help fileOK, but how to setup the PIC to be in background of all other controls? Link to comment Share on other sites More sharing options...
Zedna Posted January 10, 2008 Share Posted January 10, 2008 GUICreate("My GUI",1000,600); will create a dialog box that when displayed is centered ; Run the GUI until the dialog is closed Opt("GUICoordMode",2) GUICtrlCreatePic ("c:\4610front.jpg", -150, -100, 500, 300) GuiCtrlSetState(-1,$GUI_DISABLE) GUICtrlCreateLabel ("IPphonevalues-change",20,20) $change=GUICtrlCreateLabel ("first contact label to change", -50, 50,150) $change3=GUICtrlCreateInput ("please insert new label",-10,-20) $change4=GUICtrlCreatelabel ("second contact label to change",-310,30,150) $change5=GUICtrlCreateInput ("",10,-20) $changeicon=GUICtrlCreateButton ("change",-150,30) GUISetState () Resources UDF ResourcesEx UDF AutoIt Forum Search 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