GuiGetCtlPlacement()
Queries the location, size, enable/disable, and/or show/hide/activate state of a window, or a control within the window.
error = GuiGetCtlPlacement(Control, X, Y, Width, Height, Enable, Show)
Args
Control is the control whose state is to be queried. 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 GuiInfo() 'HANDLE'.
If Control is omitted, then the value of the GuiWindow variable is automatically used.
X is the name of some variable where you would like that control's X position to be returned. 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 returned.
Y is the name of some variable where you would like that control's Y position to be returned. If X is specified, then Y must also be specified.
Note: If you omit the X and Y variable names, then the width and height returned are for the inner part (ie, client area) of the control/window. What this means is that the border area is not counted. Also excluded are any titlebar, menu, and scroll bar areas.
Width is the name of some variable where you would like that control's width to be returned.. If omitted, then the Width and Height are not returned.
Height is the name of some variable where you would like that control's height position to be returned. If Width is specified, then Height must also be specified.
Enable the name of some variable where you would like that control's enabled state to be returned. The return value is the same as what you pass for the Enable arg to GuiSetCtlPlacement. If omitted, then the window's enable state is not returned.
Show the name of some variable where you would like that control's visible state to be returned. The return value is the same as what you pass for the Show arg to GuiSetCtlPlacement. If omitted, then the window's visible state is not returned.
Returns
If successful, an empty string is returned. If an error, an error message.