Online Eiffel Documentation |
Documentation Home > Class Libraries > WEL > WEL Samples > Tutorial |
EiffelStudio |
Tutorial Step 3 |
This sample demonstrates the use of a WEL_CLIENT_DC to display output in the MAIN_WINDOW. The output is shown below:
This system is a demonstration of how to gain access to the client area of a window using a WEL_CLIENT_DC. The creation procedure of the DC takes a WEL_WINDOW as an argument, and in this sample, we pass the MAIN_WINDOW. Using this DC, it is a simple step to output the position of the mouse which is provided as arguments to on_left_button_down.
on_right_button_down has also been redefined to call invalidate which clears the client area of the window.
This sample contains the following classes:
See Also
Common message hooks
Copyright 1993-2006 Eiffel Software. All rights reserved. |