Guidelines
- Derive your model class from TModel. Call ModelDeclarationsMacro in your model's public declaration, and ModelDefinitionsMacroOne in your model's definition.
- Override CreateSelection so that it returns a selection that other classes can use to access or modify data in the model. The quickest way to do this is to use the TGUIEmbedderModelSelectionFor class template to return a selection containing the entire model.
- Create public data access functions to get and set the data stored in the model (the data itself should be private).
[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