Version
XY Co-ordinates
Compiling
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.
Running
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 MAIN_WINDOW
.
This sample contains the following classes:
-
XY_DEMO
-
MAIN_WINDOW
Back to WEL Samples
cached: 11/21/2024 7:44:37.000 AM