Chapter 12. Creating and Managing Menus

In this chapter, we will cover the following topics:

  • Creating a menu
  • Adding menu buttons
  • Displaying a pop-up menu
  • Data entry application

Introduction

Menus are an integral part of the Graphical User Interface (GUI). Most GUI-based applications contain a menu and follow a standard layout and implementation. By following the standard presentation of a menu, we can provide our users with an effective and familiar interface. But what is the standard?

Thankfully, there are numerous standards available to assist in the design and layout of a menu. IEEE, US Government provides requirements for accessibility, language-specific documents, and others provide numerous examples of menu design and these are readily available in print or online. As always, the programs on your computer are an invaluable resource. The companies that sell these programs have invested hundreds of hours and vast amounts of money to ensure that their menus are compliant with the standards.

Unless otherwise stated, we will need to create a text file containing the commands provided within the recipes. To complete the following example, open the text editor of your choice and enter the text that follows the recipe. Then save the file in your path with the name my_menu.tcl.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.119.162.49