- 18.11 (released) ...
To compile the example:
- Launch EiffelStudio.
- Click Add project
- Browse to $ISE_EIFFEL\examples\wel\printer\.
- Choose printer.ecf
- Choose the location where the project will be compiled, by default the same directory containing the configuration file.
- Click OK.
After launching the program, a window will be displayed as illustrated above. Selecting "Print" from the "File" menu will open a print dialog which will allow you to specify a printer and additional print information before printing the contents of the window.
Under the Hood
MAIN_WINDOW inherits WEL_FRAME_WINDOW and the feature
on_paint has been redefined to display the output in the client area. A WEL_PRINT_DIALOG is used to retrieve the print options before the printing occurs through the interface provided by a WEL_PRINTER_DC . This sample contains the following classes: