
- Palette category
-
Composers
- Palette part choice
-
IFrameWindow
- Short description
- IBM window with title bar and extensions
- Part type
- Visual
- Header file
- iframe.hpp
- Parent class
- IWindow
Use an IFrameWindow* part as a standard system window for user
interaction. An IFrameWindow* is the default base part for a new
visual part.
You can create a frame window in any of the following roles,
depending on its parent and owner:
-
- primary window
- The base window for your program. The window is typically
opened from the desktop or some extension of the desktop.
It can be placed anywhere on the desktop. The desktop is
the parent and owner of a primary window.
- secondary window
- An independent window that is opened from the primary
window or from another secondary window. It can be placed
anywhere on the desktop, regardless of the location of
the primary window. The desktop is the parent of a
primary window. Typically, the window that opens a
secondary window is its owner.
- child window
- A dependent window that is opened from the primary window
or from another secondary window. It appears only within
the window that opened it. The window that opens a child
window is its parent and owner.
An IFrameWindow* part provides standard frame controls and a
client area for program controls. The default frame controls
include a system menu, a title bar, sizing buttons, and a border.
You can use an ITitle* part to define a title that is compliant
with Common User Access (CUA) guidelines. To add an ITitle* part
to an IFrameWindow* part, drop it on the frame window title bar.
You can add frame extensions to provide a menu bar,
tool bars, scroll bars, and a status area. VisualAge provides the
following frame extension parts:
-
- IMenu*--to add a menu bar, drop an IMenu* part on the
free-form surface. Define the IMenu* part as a menu bar
for the frame window by connecting the IMenu* this
attribute to the IFrameWindow* menu attribute.
- IToolBar*--to add a tool bar, drop an IToolBar* part on
the frame window title bar.
- IScrollBar*--to add a customized scroll bar for the
client area, drop an IScrollBar* part on the free-form
surface. Use connections to add the scroll bar as a frame
extension. Generally, it is preferable to use an
IViewPort* part as the client control instead of adding
scroll bars as frame extensions.
- IVBInfoArea*--to add a status area, drop an IVBInfoArea*
part on the frame window title bar.
The portion of the frame window not occupied by frame controls
and frame extensions is called the client area. Your
program uses the client area for most interaction with the user.
The client area is occupied and managed by a client control.
The default client control is an IMultiCellCanvas* part, but you
might want to substitute one of the following parts:
- An ICanvas* part for simple, fixed layouts
- An ISetCanvas* part for a resizable control layout in
uniform rows or columns
- An ISplitCanvas* part for split windows
- An IMultiLineEdit* part for multiline text entry
- An INotebook* part for a notebook of controls
- An IViewPort* part for a scrollable view of a
nonresizable window
To replace the client control, first delete the current client
control. Then, drop the new client control part in the client
area.
Working with
IFrameWindow Parts
Property Settings --
IFrameWindow
Portability -- IFrameWindow
IVBContainerControl
Factory
IVBMain
IMenu
IMultiCellCanvas
IMultiLineEdit
INotebook
IScrollBar
ITitle
IToolBar
IViewPort
VisualAge User Interface Parts
Class
documentation for IFrameWindow