wxbusycursorthis class makes it easy to tell your user that the program is temporarily busy. 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. derived from none include files <wx/utils.h> see also wxbeginbusycursor, wxendbusycursor, wxwindowdisabler members
wxbusycursor::wxbusycursor
wxbusycursor::wxbusycursorwxbusycursor(wxcursor* cursor = wxhourglass_cursor) constructs a busy cursor object, calling wxbeginbusycursor.
wxbusycursor::~wxbusycursor~wxbusycursor() destroys the busy cursor object, calling wxendbusycursor.
|