[[Property:title|Windows Sample]]
[[Property:weight|10]]
[[Property:uuid|3ace1338-c85b-c7d8-faaf-52e9fb4e157e]]
[[Image:windows|windows]]  <br/>
<br/>

==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 <code>ON_OFF_CONTROL</code> 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 <code>ON_OFF_CONTROL</code> inherits [[ref:libraries/wel/reference/wel_control_window_chart|WEL_CONTROL_WINDOW]]  and demonstrates how to build your controls. The classes <code>MODAL</code> and <code>MODELESS</code> 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: 
* <code>APPLICATION_IDS</code>
* <code>MAIN_WINDOW</code>
* <code>MODAL</code>
* <code>MODELESS</code>
* <code>ON_OFF_CONTROL</code>
* <code>WINDOWS_DEMO</code>






