IVBContainerControl

Windows:
IVBContainerControl graphic

PM:
IVBContainerControl graphic

Palette category
Lists icon Lists
Palette part choice
IVBContainerControl icon IVBContainerControl
Short description
IBM VB container control
Part type
Visual
Header file
ivbcnr.h
Parent class
IContainerControl

Use an IVBContainerControl* part to show a collection of nonvisual objects. For example, files and programs are commonly managed in containers.

A container provides several views of a collection of objects. These views can represent objects as icons, text, or both. Objects can be arranged in rows, in columns, in hierarchical trees, or in free form. A details view shows a table of attribute information, with a row for each object and a column for each attribute. Add a column to an IVBContainerControl* part for each attribute you want to show.

To use a container in the client area of a frame window or on a notebook page, you should nest it in an IMultiCellCanvas* part. Define the multicell canvas with one row and one column, both expandable. Then, add an IVBContainerControl* part in the single cell of the canvas. This ensures that keyboard events are processed properly for the container.

You can define either a native system container or one that is compatible with the OS/2 Presentation Manager (PM) container. These container styles differ considerably in their details view.

A Windows native container is specific to a Windows system. It supports dynamic resizing of column width by dragging column separators. Mouse selection of an object row is restricted to the object identification column, which consists of the object icon and object text. You cannot represent any attribute other than the object itself as an icon.

A PM-compatible container is consistent across platforms. It does not support dynamic resizing of column width, but it can automatically size the width to fit data. Mouse selection of an object row can be made in any column. You can represent any attribute as an icon.


Related procedures
Working with IVBContainerControl Parts

Related references
Property Settings -- IVBContainerControl
Portability -- IVBContainerControl
IContainerColumn
IFrameWindow
IMultiCellCanvas
IVSequence
VisualAge User Interface Parts
Class documentation for IContainerControl