[[Property:title|Windows Sample]]
[[Property:weight|10]]
[[Property:uuid|3ace1338-c85b-c7d8-faaf-52e9fb4e157e]]
[[Image:windows|windows]]
==Compiling==
To compile the example:
* Launch EiffelStudio.
* Click '''Add project'''
* Browse to ''$ISE_EIFFEL\examples\wel\windows\''.
* Choose ''windows.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 program, a window will appear with a custom ON_OFF_CONTROL
control displayed. Clicking on this control will cause its state to change. If you select one of the options from the "Windows" menu, that type of window will be displayed.
==Under the Hood==
The ON_OFF_CONTROL
inherits [[ref:libraries/wel/reference/wel_control_window_chart|WEL_CONTROL_WINDOW]] and demonstrates how to build your controls. The classes MODAL
and MODELESS
inherit [[ref:libraries/wel/reference/wel_modal_dialog_chart|WEL_MODAL_DIALOG]] and [[ref:libraries/wel/reference/wel_modeless_dialog_chart|WEL_MODELESS_DIALOG]] respectively.
This sample contains the following classes:
* APPLICATION_IDS
* MAIN_WINDOW
* MODAL
* MODELESS
* ON_OFF_CONTROL
* WINDOWS_DEMO