- 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
Wel Sample: Menus
Compiling
To compile the example:
- Launch EiffelStudio.
- Click Add project
- Browse to $ISE_EIFFEL\examples\wel\menus\.
- Choose menus.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, you will see a window displayed with a similar appearance to the one displayed above. If you right click in the client area of the window, a menu will pop up at the cursor position. The same menu is also accessible from the "File" menu. Selecting any of the menu options will display a notification of which option was selected.
Under the Hood
A WEL_MENU is used for the menu's in this sample. The feature show_track is used to display the menu at the cursor position and a WEL_MSG_BOX is used to display the notification when a menu selection has occurred. This sample contains the following classes:
-
MAIN_WINDOW -
MENUS_DEMO
