TWaitCursor
Back Home Up Next

 

Header File
    <owl/applicat.h>

Description
    The TWaitCursor class to set wait cursor for long processing.

Constructors

    TWaitCursor::TWaitCursor
        Form 1
            TWaitCursor();
        Form 2
            TWaitCursor( LPCTSTR msg);
        Form 3
            TWaitCursor( TCursor* cursor, TAutoDelete = AutoDelete);
        Description
            Form 1: Set default wait cursor.
            Form 2: Set default wait cursor and show message on status bar.
            Form 3: Set user defined wait cursor.

Member Functions

Restore
    Syntax
        void Restore();
    Description
        Restore cursor.
SetCursor
    Syntax
        void SetCursor(TCursor* cursor, TAutoDelete = AutoDelete);
    Description
        Set user defined cursor.
Message
    Syntax
        void Message(LPCTSTR text);
    Description
        Set message on status bar.

Usage:

void somefunction()
{
    TWaitCursor w;
   // do something
}

or

void somefunction()
{
     TWaitCursor w("Please wait");
    // do something
    w.Release()
   // do something without wait cursor
}


Copyright © 1998-2001 Yura Bidus. All rights reserved.