홈 · 개발 참고자료

개발 참고자료

[파워빌더] Make the "hourglass" cursor stay

작성자
관리자
작성일
2016-10-16
조회
10458
분류
파워빌더
Sometime the cursor is resetted after database operations. To make sure the cursor stay in a known state, simply call the following APIs.[FUNCTION DECLARATIONS]
FUNCTION ulong SetCapture(ulong a) LIBRARY "user32.dll"
FUNCTION boolean ReleaseCapture() LIBRARY "user32.dll"

[powerscript]
ulong ll_handle, ll_rc

ll_handle = Handle(this)
ll_rc = SetCapture(ll_handle)
SetPointer(hourglass!)

// some operations

ReleaseCapture()