The following tasks are associated with using an IViewPort*
part in visual composition. Tasks that are common to many parts
are described in related topics.
-
- Adding a canvas
- A view port accepts only one part, so place one of the
canvases in the view port. You can place other controls
on the canvas. If you drop an IMultiCellCanvas* part on
the view port, open the style property in the
IViewPort* property sheet. Then, set the expandableViewWindow
style to on. This enables the IViewPort* part to
automatically add or remove scroll bars based on the
minimum size of cells in the IMultiCellCanvas* part.
- Sizing the canvas
- When you add a canvas, it covers the view port. If you
add an ICanvas* part, which is a fixed-size canvas, you
might want its size to be greater than the size of the
view port. To resize the canvas, select the canvas part.
Then, drag a selection handle to expand the canvas.
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
Working with VisualAge User
Interface Parts
IViewPort
Property Settings --
IViewPort
Portability -- IViewPort