Changing of cursor style
- How-to
- Dhruv Jain
- PowerBuilder
- Tuesday, 23 April 2024 11:48 AM UTC
Hi,
We have an application created in PowerBuilder, with some services implemented in DotNet.
We need to change the mouse cursor from normal to Hourglass. Therefore, we have implemented the following methods to change the cursor and are calling them from DotNet before/after the required action.
Function 1:
public subroutine f_changetowaitcursor ()
SetPointer( HourGlass! )
end subroutine
Function 2:
public subroutine f_changetonormalcursor ()
pointer oldpointer
oldpointer = SetPointer(HourGlass!)
SetPointer(oldpointer)
end subroutine
However, when changing the cursor to an hourglass, if we click any mouse button, it reverts back to normal. Could you please suggest a solution for this?
Thanks
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.