탭 » Api

getchildframepos

Description

해당 탭아이템 화면의 Frame영역을 구하는 API이다.
반환되는 값은 Array형태로 크기 4인 Array로 반환된다.

Array[0] : Left
Array[1] : Top
Array[2] : Right
Array[3] : Bottom

Parameters

Parameters Type Description
nTabItem short 탭 아이템 Index

Return Value

Type Description
Array 영역정보

Example

function tabChildFramePos_on_mouseup(objInst) { var arrRect = tab.getchildframepos(tab.gettabitemfocus()); if(arrRect == null) { return; } var strMsg = ""; strMsg += "left : " + arrRect[0] + "\r\n"; strMsg += "top : " + arrRect[1] + "\r\n"; strMsg += "right : " + arrRect[2] + "\r\n"; strMsg += "bottom : " + arrRect[3]; screen.alert(strMsg); }

See Also

movechildframe

Viewer Ver.

9.1.1.1

Update Date

20070105