[[Property:title|Ctlcolor]]
[[Property:weight|-10]]
[[Property:uuid|0f9f5155-1c21-dd20-4810-32c105eeb02a]]
[[Image:ctlcolor|ctlcolor]]  <br/>
<br/>

==Compiling==

To compile the example: 
* Launch EiffelStudio. 
* Click '''Add project'''
* Browse to ''$ISE_EIFFEL\examples\wel\ctlcolor\''. 
* Choose ''ctlcolor.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, you will see a window displayed as above. Clicking on the "Foreground color" button will display a color dialog which allows you to select a new foreground color for the controls. Clicking on the "Background color" button will display a color dialog which allows you to select a new background color for the controls. 

==Under the Hood==

A [[ref:libraries/wel/reference/wel_color_control_chart|WEL_COLOR_CONTROL]]  is used to retrieve the color selection of the user through the feature rgb_result which returns an object of type [[ref:libraries/wel/reference/wel_color_ref_chart|WEL_COLOR_REF]] . 

This sample contains the following classes: 
* <code>CTLCOLOR_DEMO</code>
* <code>MAIN_WINDOW</code>
* <code>MY_BUTTON</code>
* <code>PRECOMP_MAIN_WINDOW</code>





