






Guidelines
- Derive your embedding subclass from TGUIModel.
- Override the inherited Adopt and Orphan methods to provide subclass-specific behavior. These methods are generally used to add or remove components from the embedding hierarchy.
You can make use of the AddComponent and RemoveComponent methods of the superclass.
- Based on the type of data to be stored (native or foreign), provide functions to determine the type of model to be used.
- Provide functions to absorb the data in the model or to embed the model if the data cannot be absorbed.
- Derive a selection subclass from the TGUIModelSelectionFor<> template class.
If you want a specific selection behavior for your embedded models, you will need to override the methods in the MEmbeddedComponentAccessor superclass.
[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