Control state classes

Each concrete GrafEdit command class has a corresponding concrete GrafEdit control state class. The GrafEdit control state classes are:

The control state classes derive from the class template TSimpleMomentaryControlStateOn< MCanvasSelection >.

The Mars sample application uses control state instances created from the GrafEdit control state classes and a number of other control state classes provided by the Cursor Tool framework and the Document framework.

The canvas view creates the menu palette and the menu hierarchy, which are made up of TMenu instances. At the bottom of the menu hierarchy is a TMomentaryMenu item that performs an action on a canvas graphic. The momentary menu item calls the Select function of the control state class associated with it.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker