PDA

View Full Version : Suggestion: Easy to use wait cursor



SetupJuggler
11-02-2009, 03:51 AM
Hi,

I sometimes have a lengthly operation, but I don't want to show a StatusDlg, because of localisation or if the operation oly takes a few seconds.

It would be nice to have an implemented function to switch the cursor to the wait or hourglass one. I know that it is possible with a call to DLL.CallFunction().

I might be a new function of Application or Window and could be named SetCursor. It returns the id of the previous used cursor. The input parameter is the number of the cursor to use. The input is a predefined constant, for IDC_ARROW, IDC_WAIT.
By default it could be IDC_ARROW.

I use Window for my example prototype:



number Window.SetCursor ( number Cursor = IDC_ARROW )




PrevCursor = Window.SetCursor ( IDC_WAIT );

-- lengthly operation

Window.SetCursor ( PrevCursor );
-- or to get back to IDC_ARROW
Window.SetCursor ( );


Best regards,
Udo

Darryl
05-20-2010, 10:07 AM
Thanks for the suggestion.
REF: SUFSUG-4