Tutorial Step 2
- Launch EiffelStudio.
- Click Add project
- Browse to $ISE_EIFFEL\examples\wel\tutorial\step2\.
- Choose tutorial_step2.ecf
- Choose the location where the project will be compiled, by default the same directory containing the configuration file.
- Click OK.
Under the Hood
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 occurring.
If you look at
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
True, the window will be closed. This sample contains the following classes: