prop_pixels.htm
Navigation: Language Reference > App C - PROP: Runtime Properties > Complete Property List >====== PROP:Pixels ====== | |
WINDOW property which toggles screen measurement between dialog units (DLUs) and pixels (not available for reports). After setting this property, all screen positioning (such as GETPOSITION, SETPOSITION, MOUSEX, MOUSEY, PROP:Xpos, PROP:Ypos, PROP:Width, and PROP:Height) return and require co-ordinates in pixels rather than DLUs.
Example:
WinView WINDOW('MyApp'),AT(0,0,320,200),MAX,HVSCROLL,SYSTEM
END
CODE
OPEN(WinView)
WinView{PROP:Pixels} = 1 !Change measurement to pixels
ACCEPT
!all screen positioning statements now return pixels
END
prop_pixels.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1