- 17.05 (released) ...
To compile the example:
- Launch EiffelStudio.
- Click Add project
- Browse to $ISE_EIFFEL\examples\wel\fontenum\.
- Choose fontenum.ecf
- Choose the location where the project will be compiled, by default the same directory containing the configuration file. If you select another directory than the default one, please copy icons (*.ico) and resource files (*.rc) from the default directory (the one containing the ecf file) to the new one.
- Click OK.
After launching the program, a window will be displayed as illustrated above. Selecting one of the available fonts (Listed on the left hand side) will cause a sample text to be displayed in the currently entered font size. Clicking the button marked "Close" will cause the program to end.
Under the Hood
MAIN_DIALOG inherits from WEL_MAIN_DIALOG and also WEL_FONT_FAMILY_ENUMERATOR.
MAIN_DIALOG implements action which was deferred from WEL_FONT_ENUMERATOR and executed every an enumeration finds a new font. This new implementation is used to display the available fonts in the WEL_LIST_VIEW
This sample contains the following classes:
- Parent <WEL Samples>