To compile the example:
- Launch EiffelStudio.
- Click Add project
- Browse to $ISE_EIFFEL\examples\wel\xy\.
- Choose xy.ecf
- Choose the location where the project will be compiled, by default the same directory containing the configuration file.
- Click OK.
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, the coordinates of the click (Relative to the top left of the client area), will be displayed. Clicking the WEL_PUSH_BUTTON marked "Clear" will clear the client area of the window.
Under the Hood
A WEL_CLIENT_DC is used to display output in the client area of the window during the execution of
on_left_button_down which has been redefined in
This sample contains the following classes: