Returns the current width of the display panel
GETPANELWIDTH returns the current width in pixels of the plugin display panel. The value returned is valid regardless of whether the user resizes the panel or the plugin code resizes the panel.
Note that the user can generally resize the display panel at any time (unless this has been specifically prevented), so you should not store the value returned by this statement for "long term" use. It is no more or less efficient to repeatedly use this statement instead of using it once and storing its value.
Parameters
None
Return Value
The width in pixels of the display panel.
Example Code
// Store the current width of the panel
int Width = getpanelwidth();