#include </home/work/projects/wx/2.9/wx/interface/wx/utils.h>
Just create a wxBusyCursor object on the stack, and within the current scope, the hourglass will be shown.
For example:
wxBusyCursor wait; for (int i = 0; i < 100000; i++) DoACalculation();
It works by calling wxBeginBusyCursor() in the constructor, and wxEndBusyCursor() in the destructor.
Public Member Functions | |
| wxBusyCursor (const wxCursor *cursor=wxHOURGLASS_CURSOR) | |
| Constructs a busy cursor object, calling wxBeginBusyCursor(). | |
| ~wxBusyCursor () | |
| Destroys the busy cursor object, calling wxEndBusyCursor(). | |
| wxBusyCursor::wxBusyCursor | ( | const wxCursor * | cursor = wxHOURGLASS_CURSOR |
) |
Constructs a busy cursor object, calling wxBeginBusyCursor().
| wxBusyCursor::~wxBusyCursor | ( | ) |
Destroys the busy cursor object, calling wxEndBusyCursor().
|
[ top ] |