Shiny Language Reference
Language Reference > Panel Functions
setpanelpos
setpanelpos(int X, int Y);
Sets the position of the display panel
SETPANELPOS immediately repositions the top left corner of the display panel to the specified coordinates. If the supplied coordinates are more than 1 pixel greater than the width or height of the current screen resolution the invalid coordinate is ignored and the panel is set to 10 pixels from that edge (for example, if the screen width is 640 and the X coord is specified as 700, the panel is moved to 640 - 10). The statement allows a 1 pixel boundary beyond the edges of the screen. This can be used to simulate a panel sliding on/off the screen.
Note: If you wish to specify off-screen coordinates for the panel you may use setpanelboundscheck to disable the boundary checking.
Parameters
X
The X position in screen coordinates to move the panel to.
Y
The Y position in screen coordinates to move the panel to.
Return Value
None
Example Code
// Move the top left of the panel to 200, 100
setpanelpos(200, 100);