Shiny Language Reference
Language Reference > User Interface
setcontrolsize
setcontrolsize(int ID, int Width, int Height);
Sets the size of a control
The SETCONTROLSIZE statement sets the width and height of a control in pixels. This statement applies to the most logical form of a control. For example, when applied to a button it simply alters the width and height, however when applied to a combobox it alters the width and height of the non-dropdown state.
Parameters
ID
The ID of the control to resize
Width
The new width in pixels of the control
Height
The new height in pixels of the control
Return Value
None
Example Code
function Init()
{
// Create a 50*20 button
int ExplorerButtonID = createbutton(1, 10, 10, 50, 20);
// Resize it to 100, 25
setcontrolsize(ExplorerButtonID, 100, 25);
}