XY Co-ordinates

xy

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

See Also:
tutorial_step3
WEL_PUSH_BUTTON

cached: 03/19/2024 7:10:41.000 AM