- Microsoft Windows
- .NET
- WEL
- WEL Common Concepts
- WEL Interface Content
- WEL Tutorial
- WEL Class Reference
- WEL Samples
- Bmpview
- Brushes
- Common Controls
- Commands
- Controls Sample
- Ctlcolor
- Cursors
- Disk Space
- Fontenum
- Fun
- Header Control
- Hello World!
- List View
- Magnify
- MDI (Multiple Document Interface)
- Wel Sample: Menus
- Minimal
- Pizza
- Printer
- Rich Edit
- Split Area
- Standard Dialogs Sample
- Timer
- Tree View Sample
- Unicode Sample
- Windows Sample
- Xcell
- XY Co-ordinates
- COM
- ResourceBench
- EiffelRibbon
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
