SlimShady Posted September 24, 2004 Posted September 24, 2004 How do I move a control? I tried: GUISetControlEx($label_2, 0, 2) and GUISetControlEx($label_2, 0, 2) But they don't move the control. Here's the script I was testing. expandcollapse popupOpt ("GUICoordMode", 1) Opt ("GUINotifyMode", 1) GUICreate("Test", 250, 200, -1, -1) $Line = "" For $i = 1 To 25 $Line = $Line & Chr(186) Next $label_1 = GUISetControl("label", "Today", 20, 20, 70) $label_2 = GUISetControl("label", $Line, 20, 40, 70, 10) GUISetControlFont($label_2, 8, 400, "Arial") GUISetControlEx($label_2, 0, 0, "", 0x000000, 0xffffff) GUIShow() $GUI_DOCKLEFT = 2 $GUI_DOCKRIGHT = 4 $align = "left" While 1 Sleep(100) $msg = GUIMsg() Select Case $msg = -3 GUIDelete() Exit Case $msg = $label_1 If $align = "left" Then GUISetControlEx($label_2, 0, $GUI_DOCKLEFT) $align = "right" Else GUISetControlEx($label_2, 0, $GUI_DOCKRIGHT) $align = "left" EndIf EndSelect WEnd
jpm Posted September 24, 2004 Posted September 24, 2004 As the GUI functions have evolved to the new syntax you have to use the GUICtrlSetPos and not the GUICtrlSetResizing as you were doing with the old GUISetControlEx
SlimShady Posted September 24, 2004 Author Posted September 24, 2004 (edited) Assume I don't use the latest version of the unstable. What's the correct syntax to move a control? Edited September 24, 2004 by SlimShady
jpm Posted September 24, 2004 Posted September 24, 2004 Assume I don't use the latest version of the unstable. What's the correct syntax to move a control? <{POST_SNAPBACK}>GUISetControl($controlid, ...
Josbe Posted September 24, 2004 Posted September 24, 2004 You can use a non-gui function, too: ControlMove AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta
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