Suggestion: Easy to use wait cursor

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • SetupJuggler
    Indigo Rose Customer
    • Nov 2008
    • 77

    Suggestion: Easy to use wait cursor

    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:

    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 ( );
    Best regards,
    Udo
  • Darryl
    Indigo Rose Staff Member
    • Jul 2001
    • 1908

    #2
    Thanks for the suggestion.
    REF: SUFSUG-4

    Comment

    Working...
    X