Version
Ctlcolor
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 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:
-
CTLCOLOR_DEMO
-
MAIN_WINDOW
-
MY_BUTTON
-
PRECOMP_MAIN_WINDOW
Back to WEL Samples
cached: 12/21/2024 5:25:47.000 AM