Jump to content
Sign in to follow this  
erezlevi

need GUI help, please.

Recommended Posts

erezlevi

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.

Share this post


Link to post
Share on other sites
BigDod

Straight from the help file

If 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.



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
erezlevi

Straight from the help file

OK, but how to setup the PIC to be in background of all other controls?

Share this post


Link to post
Share on other sites
Zedna

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 ()

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  

×