Online Eiffel Documentation
EiffelStudio

Fontenum

fontenum

Compiling

To compile the example:

Running

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: