Controls Sample

controls

Compiling

To compile the example:

  • Launch EiffelStudio.
  • Click Add project
  • Browse to $ISE_EIFFEL\examples\wel\controls\.
  • Choose controls.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, an empty window will be displayed. There are numerous menus in the window, each relating to a different type of control. Each menu has "Create" and "Delete" along with a other options specific to each control. By selecting these menu options, controls will be created and modified as demonstrated in the above illustration.

Under the Hood

Each menu is an instance of WEL_MENU and on_menu_command has been redefined in MAIN_WINDOW to perform the appropriate actions. This sample contains the following classes:

  • APPLICATION_IDS
  • CONTROLS
  • MAIN_WINDOW

See Also:
WEL_LIST_VIEW
WEL_COMBO_BOX
WEL_PUSH_BUTTON
WEL_EDIT
WEL_RADIO_BUTTON
WEL_CHECK_BUTTON
WEL_MULTIPLE_LINE_EDIT
WEL_SCROLL_BAR

7f9a091f-61af-9ea2-18c3-469573ba14f3
cached: 09/22/2017 11:11:56.000 PM