- 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
Rich Edit
Compiling
To compile the example:
- Launch EiffelStudio.
- Click Add project
- Browse to $ISE_EIFFEL\examples\wel\richedit\.
- Choose richedit.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, a window will be displayed as shown above. The program is a simple text editor which allows you to load and save files; select fonts and colors; and print files. The operations are accessible through the menu bar and/or the tool bar.
Under the Hood
Both the menu items and the tool bar buttons are handled by on_menu_command which has been redefined in MAIN_WINDOW.
Four of the standard dialogs provided by WEL are used to receive input from the user. This sample contains the following classes:
- APPLICATION_IDS
- MAIN_WINDOW
- RICHEDIT_DEMO
See Also:
WEL_RICH_EDIT
WEL_PRINT_DIALOG
WEL_SAVE_FILE_DIALOG
WEL_OPEN_FILE_DIALOG
WEL_CHOOSE_COLOR_DIALOG
WEL_CHOOSE_FONT_DIALOG
