How to use "LOAD-MOUSE-POINTER"?

Posted by WolfgangSchmid on 20-Sep-2006 11:07

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.

All Replies

Posted by Admin on 20-Sep-2006 13:39

Windows probably needs an opportunity to process the message queue. You could try "PROCESS EVENTS" instead of "PAUSE 1..."

Posted by WolfgangSchmid on 21-Sep-2006 02:20

Thank you very much Theo! You solved my problem.

Posted by d.cook on 10-Jan-2008 17:43

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?

This thread is closed