int SetPanelSize (int panelHandle, int height, int width);
Sets the height and width of the panel. The top and left edges of the panel remain constant.
Although you can change the height or width independently using SetPanelAttribute, you must use SetPanelSize if you want to change both the height and width of a panel for which you have enabled the ATTR_SCALE_CONTENTS_ON_RESIZE attribute. When you change the height and width in one call, SetPanelSize scales and redraws the panel only once.
To change the position of a panel, call SetPanelPos.
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. |
height | integer | New height of the panel in pixels, excluding the panel frame and
title bar. Valid Values: 0 to 32,767. |
width | integer | New width of the panel in pixels, excluding the panel frame. Valid Values: 0 to 32,767. |
Name | Type | Description | ||||
status | integer | Return value indicating whether the function was successful. A negative number indicates that an error occurred.
|