Fontenum

fontenum

Compiling

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.

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:

  • APPLICATION_IDS
  • FONTENUM_DEMO
  • MAIN_DIALOG
7dbb5e5c-3e00-e4f6-9fc6-29ba4f2476d9
cached: 08/17/2017 12:41:36.000 PM