The following tasks are associated with using an IVBContainerControl* part in visual composition. Tasks that are common to many parts are described in related topics.
To work with the IContainerColumn* part in the Composition Editor, set the initial view of the container to be the details view. When you have finished working with container columns, change the initial view to the view you want initially displayed.
The class default style is shipped with single selection as the default mode.
| To make this editable | Set this off |
|---|---|
| Container object data | IContainerColumn* data style: readOnly |
| Container column title | IContainerColumn* title style: readOnlyHeading |
| Container title | IVBContainerControl* attribute: readOnlyTitle |
For custom processing, such as determining if column editing changed the title, derive a handler from IVBCnrEditHandler. Override the endEdit() member function as follows:
Boolean customCnrEditHandler::endEdit( ICnrEndEditEvent& event )
{
IVBCnrEditHandler::endEdit(event);
... custom processing ...
return false;
}
If you make a connection from either the selectedItem attribute or the button2Item attribute, the target should expect an object of the type specified for the container. For example, if the container holds ICustomer* objects, the target should accept an ICustomer* object.
If you make a connection from either the selectedItems attribute or the button2Items attribute, the target should expect a collection of objects of the type specified for the container. For example, if the container holds ICustomer* objects, the target should accept a collection of ICustomer* objects.
Setting Template Arguments
Common Tasks for Control Parts
Setting Part Style Properties
Setting Part Color Properties
Setting Part Font Properties
Setting Part Handlers
Properties
Setting Part Framing Properties
Providing Drag and Drop Support
Working with VisualAge User
Interface Parts
IVBContainerControl
Property Settings --
IVBContainerControl
Portability --
IVBContainerControl
