Online Eiffel Documentation
EiffelStudio

Ctlcolor

ctlcolor

Compiling

To compile the example:

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 WEL_COLOR_CONTROL is used to retrieve the color selection of the user through the feature rgb_result which returns an object of type WEL_COLOR_REF.

This sample contains the following classes: