Jump to content

Recommended Posts

Posted

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.

Posted

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.


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

Posted

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...