Shiny Language Reference

Language Reference > Panel Functions


setpanelallowresize

setpanelallowresize(bool IsAllowed);

 

 

Sets whether the display panel can be resized

SETPANELALLOWRESIZE controls an internal state within Brass that dictates whether the panel can be resized. This statement overrides any choice made by the user via the tray menu or configuration window. However, the user's choice at the time of calling this statement is not discarded.

For example if the user chooses to enable the panel resize handle, then SETPANELALLOWRESIZE is called with a parameter of FALSE, the resize handle will be hidden and the tray menu option disabled. This prevents the user from resizing the panel or from changing the status of the resize handle. If SETPANELALLOWRESIZE is then called with a parameter of TRUE, the resize handle and tray options will return to their previous states - in this example, the handle will be enabled.

This option is enabled by default, therefore there is no need to call SETPANELALLOWDRAG with a parameter of TRUE at the start of your plugin.

This option is intended for use in plugins that expressly wish to prevent the user from altering their size.

 

Parameters

IsAllowed

TRUE if the panel resize functions should be accessible, otherwise FALSE to prevent any use of the resize functions.

 

Return Value

None

 

Example Code

// Prevent any use or change to the resize handle
setpanelallowresize(False);