탭 » Api

getscrollpos

Description

특정 탭의 스크롤바 현재 위치를 가져오는 API이다.

Parameters

Parameters Type Description
nTabIndex short 탭 인덱스
nBar short 수평, 수직 스크롤(*Remark 참조)

Return Value

Type Description
long 스크롤의 현재 위치

Remark

nTabIndex가 -1인 경우에는, 현재 포커스를 가진 탭을 대상으로 적용된다.

탭에 화면이 링크되어 있는 경우에는, 링크된 화면에 적용된다.

**nBar (수평, 수직 스크롤)

XFD_SB_HORZ = 0
XFD_SB_VERT = 1

Example

function btnScrollPos_on_mouseup() { tab_scroll.scroll(60, 50); // 60, 50 위치로 스크롤 var nScrollXPos = tab_scroll.getscrollpos(XFD_SB_HORZ); var nScrollYPos = tab_scroll.getscrollpos(XFD_SB_VERT); screen.alert("스크롤위치 : (" + nScrollXPos + "," + nScrollYPos + ")"); }

See Also

scroll

Viewer Ver.

9.1.1.1

Update Date

20191231