Shiny Language Reference

Language Reference > Basic Functions


getscreenwidth

int getscreenwidth();

 

 

Returns the width in pixels of the current desktop resolution

GETSCREENWIDTH queries Windows and returns the current width in pixels of the desktop. This can be used in conjunction with SETPANELPOS to move the display panel around the screen.

 

Parameters

None

 

Return Value

The width in pixels of the desktop.

 

Example Code

// Get the desktop width
int Width = getscreenwidth();