Accessing Screen Properties

See Also89WA0US

Like forms and controls, the Screen object1052P0 has a set of predefined properties3MRB2KQ.  Unlike form and control properties, however, Screen properties are available only at run timeCYRM35 and thus cannot be set in the Properties windowO00AW8.  You can access and manipulate Screen properties only in code at run time.  Screen properties are global for the current project.

To access a Screen property through code

         Use the syntax Screen.propertynamefor example, Screen.Width.

 

The Screen properties are:

ActiveControlJCXG6P

ActiveFormGCUI9X

FontCount8I4LCS

Fonts5O9Q07P

HeightL14VJZ

MousePointer1VSV6UM

TwipsPerPixelX0SDFRD

TwipsPerPixelY0SDFRD

WidthL14VJZ


See Also

Help:

App Object5QU20R2

Clipboard Object6WM59T

Debug Object7GRJ0CX

Printer ObjectCBQUDQ

Screen Object1052P0

Setting Form and Control Properties1NFIWMG