This sample shows you how to respond to an event occurring within your application. It also demonstrates the use of a WEL_MSG_BOX control and a redefinition of closeable from WEL_COMPOSITE_WINDOW.
After launching the sample, you should see a WEL_FRAME_WINDOW displayed. If you click the left mouse button in the client area of the window, a WEL_MSG_BOX will appear, notifying you of your click.
This system is a demonstration of how to connect an event to one of the common message hooks available within WEL. See Common message hooks for more information. In this example, on_left_button_down has been redefined from WEL_WINDOW to display a WEL_MSG_BOX containing notification of the event occuring.
If you look at closeable from MAIN_WINDOW, you will see that it has been redefined to display a WEL_MSG_BOX and the result from this message box is used to generate the return value of closeable. If this Result is True, the window will be closed.
This sample contains the following classes:
Note:If you follow the link to MAIN_WINDOW you will see that it contains many features, but nearly all of these are inherited from WEL_FRAME_WINDOW.
See Also
Common message hooks