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:
Best regards,
Udo
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:
Code:
number Window.SetCursor ( number Cursor = IDC_ARROW )
Code:
PrevCursor = Window.SetCursor ( IDC_WAIT ); -- lengthly operation Window.SetCursor ( PrevCursor ); -- or to get back to IDC_ARROW Window.SetCursor ( );
Udo
Comment