Страница 1 из 1

Units в Clarion'e

Добавлено: 25 Октябрь 2007, 13:12
Aragorn
Здравствуйте все!
Возникла проблема:
Как пересчитать условные координаты Clariona в пиксели?

Re: Units в Clarion'e

Добавлено: 25 Октябрь 2007, 16:27
ingasoftplus
Aragorn писал(а):Здравствуйте все!
Возникла проблема:
Как пересчитать условные координаты Clariona в пиксели?
Погляди на 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