화면 » Api

scrollpostofirst

Description

화면에 스크롤이 생겼을 때 스크롤을 가장 위로 올리는 API이다.

Parameters

Parameters Type Description
nBar short [옵션] 수평, 수직 스크롤(*Remark 참조)

Return Value

Type Description
BOOL 정상 처리 여부

Remark

** nBar에 입력가능한 상수값

XFD_SB_HORZ = 0 (수평 스크롤)
XFD_SB_VERT = 1 (수직 스크롤)
XFD_SB_BOTH = 2 (수평/수직 스크롤)

Example

function btn_scrollpostofirst_on_mouseup() { // 수직 스크롤을 처음으로 이동 screen.scrollpostofirst(); // 수평 스크롤을 처음으로 이동 screen.scrollpostofirst(XFD_SB_HORZ); // 수직/수평 스크롤을 처음으로 이동 screen.scrollpostofirst(XFD_SB_BOTH); }

See Also

scroll
scrollpospagenext
scrollpospageprev
scrollpostolast

Viewer Ver.

9.1.1.1

Update Date

20210601