I am trying to understand the use of LOAD-MOUSE-POINTER (OE10.1A, XP):
Following code works fine. The mouse pointer of my frame changes to the hour glass and back to the arrow after the end of the DO-loop. But if I remove the line "PAUSE 1 MESSAGE "xxx" the mouse-pointer won't change. Where is my mistake?
ON CHOOSE OF Bu-1 IN FRAME fr-1 /* Button 1 */
DO:
DEF VAR l AS LOGICAL.
DEF VAR i AS INTEGER.
l = FRAME Fr-1:LOAD-MOUSE-POINTER("wait").
PAUSE 1 MESSAGE "xxx".
DO i = 1 TO 200000:
STATUS DEFAULT STRING(i).
END.
l = FRAME Fr-1:LOAD-MOUSE-POINTER("arrow").
END.
Windows probably needs an opportunity to process the message queue. You could try "PROCESS EVENTS" instead of "PAUSE 1..."
Thank you very much Theo! You solved my problem.
Thank you also - a very handy tip!
I've run into another problem using "LOAD-MOUSE-POINTER". The language reference states that using it on a parent widget (eg window) will load it for all child widgets too. This seems to be true most of the time; but not in the case of my browse widget. I've set the mouse pointer on both the parent window and the parent frame, but it will not load for the browse until I explicitly load for the browse.
Not a huge issue, but does anybody know if this is fixable or why it happens?