int SetPanelPos (int panelHandle, int panelTop, int panelLeft);
Sets the position of the upper left corner of a panel, directly below the title bar, relative to the top left corner of the screen or parent panel.
The size of the panel remains constant. Call SetPanelSize to change the size of the panel.
Input | ||
Name | Type | Description |
panelHandle | integer | Specifier for a particular panel that is currently in memory. You obtain this handle from LoadPanel, NewPanel, or DuplicatePanel. |
panelTop | integer | Vertical coordinate at which to place the upper left corner of the panel,
directly below the title bar. The coordinates must be integer values from –32,768 to 32,767, or VAL_AUTO_CENTER to center the panel. For a top-level panel, (0,0) is the upper-left corner of the screen. For a child panel, (0,0) is the upper-left corner of the parent panel, directly below the title bar, before the parent panel is scrolled. |
panelLeft | integer | Horizontal coordinate at which to place the upper left corner of the panel,
directly below the title bar. The coordinates must be integer values from –32,768 to 32,767, or VAL_AUTO_CENTER to center the panel. For a top-level panel, (0,0) is the upper-left corner of the screen. For a child panel, (0,0) is the upper-left corner of the parent panel, directly below the title bar, before the parent panel is scrolled. |
Name | Type | Description | ||||
status | integer | Return value indicating whether the function was successful. A negative number indicates that an error occurred.
|