Skip to main content
Version: 20 R7 BETA

Screen width

Screen width {( * )} -> Function result

ParameterTypeDescription
*OperatorWindows: width of application window, or width of screen if * is specified Macintosh: width of main screen
Function resultLongintWidth expressed in pixels

This command is not thread-safe, it cannot be used in preemptive code.

Description

On Windows, Screen width returns the width of 4D application window (MDI window). If you specify the optional * parameter, the function returns the width of the screen.

On Macintosh, Screen width returns the width of the main screen, the screen where the menu bar is located.

See also

SCREEN COORDINATES
Screen height