Extensions

This section provides suggestions for extending Taligent Selection Tool to support additional features. These enhancements are simply recommendations, you'll probably have ideas of your own.

Make selecting undoable

A random mouse click can replace a complex selection that might be difficult to reproduce. Making selecting undoable would allow users to recover from this type of mistake. To accomplish this, you need to modify TSelectionTarget to use a command to set the current selection.

Make dropping undoable

You can make drop acceptance undoable by modifying MAutoDropAcceptor::AcceptDrop to use a command to insert the dropped data into a model instead of inserting it directly through the selection target.

Make TDOMDocument-ComponentView a behavior

Much of the functionality of TDOMDocumentComponentView can be incorporated into an input system behavior. This enables the functionality to be grafted onto views without modifying them and allows this functionality to be added and removed from a view at runtime.


[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