GuiSetCtlPlacement()
Can move, resize, enable/disable, and/or show/hide/activate a window, or a control within the window.
error = GuiSetCtlPlacement(Control, X, Y, Width, Height, Flags, Show)
Args
Control is the control whose state is to be changed. You should pass the name of the REXX variable that you associated with this control. The handle to the window containing this function must be stored in the GuiWindow variable.
You can alternately pass a window handle for the Control arg. For example, you can pass the handle to your window (gotten from the GuiWindow variable set by GuiCreateWindow) to effect the window itself (as opposed to a particular control in the window), or pass a handle gotten with GuiGetCtl().
If Control is omitted, then the value of the GuiWindow variable is automatically used.
X is new X position for the window/control. For a window, this is relative to the desktop's upper left corner. For a control, this is relative to the upper left corner of the window it is within. If omitted, then the X and Y positions are not changed.
Y is new Y position for the window/control. If X is specified, then Y must also be specified.
Width is new width for the window/control. If omitted, then the Width and Height are not changed.
Height is new height position for the window/control. If Width is specified, then Height must also be specified.
Flags determines if the window/control is enabled or disabled. When disabled, a window/control is still visible to the user, but he can't operate it.
Flags can also determine whether X, Y, Width, Height are setting the entire window's size/position, or just the inner area (client) of the window/control.
It may be any of the following:
Options Meaning ENABLE Enable the window/control. DISABLE Disable the window/control. INNER Setting the inner area of the window/control.
If omitted, then the window's enable state is not changed, and the entire window/control's area is affected by X, Y, Width, and Height.
Show determines how (or if) the window/control is visually displayed and or activated. It is the same as the Show argument passed to GuiCreateWindow(). If omitted, then the window's show state is not changed.
Returns
If successful, an empty string is returned. If an error, an error message.