GEOS SDK TechDocs
|
|
|
1 Controller Features and Functions
Many applications will create their menus and dialog boxes from scratch, using various GenInteraction and GenTrigger objects. Several system components, however, use a standard base format across all applications. For these components, GEOS provides a number of controller objects.
A controller object is one that provides UI gadgetry to control a certain set of features. For example, the GenViewControl object provides all the UI--including menus, dialogs, and tool bars, if appropriate--to alter a GenView's scaling and other features. Many libraries such as the text library provide controller objects that make the use of the library almost trivial.
To make inclusion of these controllers even easier, the UI offers a GenToolControl; this object provides all the functionality and UI gadgetry to allow the user to configure his own toolbars and menus from the tools provided by a controller.
Finally, developers writing libraries or suites of applications may wish to create their own controller classes. This is neither difficult nor complex, though it will be done primarily by programmers writing libraries for use by many applications.
This chapter describes what controllers are and how they work. It also discusses which controllers are available in the system, as well as the GenToolControl object and how it's used. Finally, it details how to create your own controller classes. In order to fully understand this chapter, you should be familiar first with the generic UI, menus and dialog boxes, and the General Change Notification mechanism.
1 Controller Features and Functions
1.1 Controller Features
1.2 How Controllers Work
1.3 Using Controllers
2 Standard Controllers
3 Using Controllers
3.1 Using a Basic GenControl Object
3.2 Using Tools
4 Creating Your Own Controllers
4.1 GenControlClass Instance Data
4.2 Subclassing GenControlClass
4.3 Advanced GenControlClass Usage
5 GenToolControlClass
6 GenToolGroupClass
7 Other Controllers
7.1 ColorSelectorClass
7.2 GenPageControlClass
7.3 The Float Format Controller
GEOS SDK TechDocs
|
|
|
1 Controller Features and Functions