You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Desktop Application Object - ScreenHeight Property
Height of the screen in pixels
Member of Desktop Application Object (PRIM_APPL)
Data Type - Integer

Details


The ScreenHeight and ScreenWidth properties return the resolution of the primary display

Example


This example shows the screen resolution on the form titlebar.
Function Options(*DIRECT)
Begin_Com Role(*EXTENDS #PRIM_FORM) Clientheight(172) Clientwidth(364) Height(211) Left(137) Top(198) Width(380)
Evtroutine Handling(#com_owner.CreateInstance)
#Com_owner.Caption := #sys_appln.ScreenWidth.ASstring + " x " + #sys_appln.ScreenHeight.ASstring
Endroutine
End_Com

See also

All Component Classes
Technical Reference

  • No labels