화면 » Api

getwindowwidth

Description

화면의 윈도우 너비를 반환하는 API이다.

Return Value

Type Description
long 화면의 윈도우 너비

Remark

* 해당 화면이 디자인된 실제 사이즈가 아니라 화면을 담고 있는 윈도우의 현재 너비이다. (샘플소스 참고)

Example

function btn_getwindowwidth_on_mouseup() { var scrTab = tabTest.getchildscreeninstance(0); if(factory.isobject(scrTab)) { factory.consoleprint("보여지는 화면 너비 : " + scrTab.getwindowwidth()); factory.consoleprint("실제 화면 너비 : " + scrTab.getscreenwidth()); } }

See Also

getscreenwidth
getwindowheight
getwindowrect

Viewer Ver.

9.1.1.1

Update Date

20130819