PtContainer

PtContainer -- A parent class for container widget resources.

Synopsis

class PtContainer PtBasic
{
    anchor_flags;       // flag  (Pt_ARG_ANCHOR_FLAGS)    
    anchor_offsets;     // PhRect  (Pt_ARG_ANCHOR_OFFSETS)    
    container_flags;    // flag  (Pt_ARG_CONTAINER_FLAGS)    
    focus;              // PtWidget  (Pt_ARG_FOCUS)    
}
		

Base Classes

PtWidget <-- PtBasic <-- PtContainer

Derived Classes

CwMatrix, PtComboBox, PtDBContainer, PtDivider, PtFolder, PtFontSel, PtGenList, PtGroup, PtHtml, PtMenuButton, PtMessage, PtMultiText, PtNumeric, PtPane, PtRegion, PtScrollArea, PtTerminal, PtUpDown, PtWindow

Description

This widget serves as a parent class of resources for container widgets, and is not normally instantiated. The variables here have to do mainly with geometry, anchoring, layout and redirecting of certain events to child widgets.

Note

For detailed information, please refer to PtContainer in the Photon documentation.

Instance Variables

anchor_flags

This instance variable controls anchoring characteristics, and may be a combination of zero or more of the following flags:

anchor_offsets

A PhRect that specifies, for each side of the widget which has its anchor_flags set, the distance between the anchored side of the widget and the corresponding side of the parent. The widget will maintain these offset distances even when the parent is resized.

This variable takes precedence over the dim, area, and resize_flags variables for this widget.

container_flags

Flags that control the behavior and appearance of the container. Default is Pt_ENABLE_CUA.

This instance variable may be a combination of zero or more of the following flags:

focus

A PtWidget that was the last child of this widget to have the focus.

Callbacks

The following callbacks are associated with this widget:

CallbackDescription
Pt_CB_RESIZEThis callback is generated when the parent of the widget is resized.
Pt_CB_BALLOONSThis callback is generated when the pointer lingers over the specified widget for more than 1.25 seconds."
Pt_CB_FILTERThis callback is generated when an event to be passed to a child of the container matches the provided event mask.

Associated Classes

PtContainerCallback, PtCallbackInfo

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.