Cursors Sample

cursors


Compiling

To compile the example:

Running

After launching the program, a window will be displayed as illustarated above. Selecting one of the cursor types from the "Cursors" menu will cause the selected cursor to be displayed when the mouse pointer is over the client area of the window.

Under the Hood

The feature `on_menu_command' has been redefined in MAIN_WINDOW to create the appropriate cursor when a menu selection is made, while `on_set_cursor' has been redefined to update the style of the displayed cursor.

This sample contains the following classes: