|Sash||subclass of XmPrimitive||sash|
|Separator||XmSeparatorGadget||dividing line between window panes|
PanedWindow inherits behavior and resources from the Core, Composite, Constraint, and XmManager classes.
The class pointer is xmPanedWindowWidgetClass.
The class name is XmPanedWindow.
The following table defines a set of widget resources used by the programmer to specify data. The programmer can also set the resource values for the inherited classes to set attributes for this widget. To reference a resource by name or by class in a .Xdefaults file, remove the XmN or XmC prefix and use the remaining letters. To specify one of the defined values for a resource in a .Xdefaults file, remove the Xm prefix and use the remaining letters (in either lowercase or uppercase, but include any underscores between words). The codes in the access column indicate if the given resource can be set at creation time (C), set by using XtSetValues (S), retrieved by using XtGetValues (G), or is not applicable (N/A).
XmPanedWindow Resource Set Name Class Type Default Access XmNmarginHeight XmCMarginHeight Dimension 3 CSG XmNmarginWidth XmCMarginWidth Dimension 3 CSG XmNorientation XmCOrientation unsigned char XmVERTICAL CSG XmNrefigureMode XmCBoolean Boolean True CSG XmNsashHeight XmCSashHeight Dimension 10 CSG XmNsashIndent XmCSashIndent Position -10 CSG XmNsashShadowThickness XmCShadowThickness Dimension dynamic CSG XmNsashWidth XmCSashWidth Dimension 10 CSG XmNseparatorOn XmCSeparatorOn Boolean True CSG XmNspacing XmCSpacing Dimension 8 CSG
XmNmarginHeight Specifies the distance between the top and bottom edges of the PanedWindow and its children. XmNmarginWidth Specifies the distance between the left and right edges of the PanedWindow and its children. XmNorientation Specifies the layout as either vertical (with the XmVERTICAL value) or horizontal (with the XmHORIZONTAL value). In the vertical layout, the children are laid out in a vertically tiled format. In the horizontal layout, the children are laid out in a horizontal layout, with the sash moveable along the horizontal axis. XmNrefigureMode Determines whether the panes positions are recomputed and repositioned when programmatic changes are being made to the PanedWindow. Setting this resource to True resets the children to their appropriate positions. XmNsashHeight Specifies the height of the sash. XmNsashIndent Specifies the horizontal placement of the sash along each pane. A positive value causes the sash to be offset from the near (left) side of the PanedWindow, and a negative value causes the sash to be offset from the far (right) side of the PanedWindow. If the offset is greater than the width of the PanedWindow minus the width of the sash, the sash is placed flush against the near side of the PanedWindow. Whether the placement actually corresponds to the left or right side of the PanedWindow depends on the XmNlayoutDirection resource of the widget. XmNsashShadowThickness Specifies the thickness of the shadows of the sashes. XmNsashWidth Specifies the width of the sash. XmNseparatorOn Determines whether a separator is created between each of the panes. Setting this resource to True creates a Separator at the midpoint between each of the panes. XmNspacing Specifies the distance between each child pane.
XmPanedWindow Constraint Resource Set Name Class Type Default Access XmNallowResize XmCBoolean Boolean False CSG XmNpaneMaximum XmCPaneMaximum Dimension 1000 CSG XmNpaneMinimum XmCPaneMinimum Dimension 1 CSG XmNpositionIndex XmCPositionIndex short XmLAST_POSITION CSG XmNskipAdjust XmCBoolean Boolean False CSG XmNallowResize Allows an application to specify whether the PanedWindow should allow a pane to request to be resized. This flag has an effect only after the PanedWindow and its children have been realized. If this flag is set to True, the PanedWindow tries to honor requests to alter the height of the pane. If False, it always denies pane requests to resize. XmNpaneMaximum Allows an application to specify the maximum size to which a pane may be resized. This value must be greater than the specified minimum. XmNpaneMinimum Allows an application to specify the minimum size to which a pane may be resized. This value must be greater than 0 (zero). XmNpositionIndex Specifies the position of the widget in its parents list of children (the list of pane children, not including sashes). The value is an integer that is no less than 0 (zero) and no greater than the number of children in the list at the time the value is specified. A value of 0 means that the child is placed at the beginning of the list. The value can also be specified as XmLAST_POSITION (the default), which means that the child is placed at the end of the list. Any other value is ignored. XtGetValues returns the position of the widget in its parents child list at the time of the call to XtGetValues. When a widget is inserted into its parents child list, the positions of any existing children that are greater than or equal to the specified widgets XmNpositionIndex are increased by 1. The effect of a call to XtSetValues for XmNpositionIndex is to remove the specified widget from its parents child list, decrease by one the positions of any existing children that are greater than the specified widgets former position in the list, and then insert the specified widget into its parents child list as described in the preceding sentence. XmNskipAdjust When set to True, this Boolean resource allows an application to specify that the PanedWindow should not automatically resize this pane.
PanedWindow inherits behavior and resources from the superclasses described in the following tables. For a complete description of each resource, refer to the reference page for that superclass.
XmManager Resource Set Name Class Type Default Access XmNbottomShadowColor XmCBottomShadowColor Pixel dynamic CSG XmNbottomShadowPixmap XmCBottomShadowPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG XmNforeground XmCForeground Pixel dynamic CSG XmNhelpCallback XmCCallback XtCallbackList NULL C XmNhighlightColor XmCHighlightColor Pixel dynamic CSG XmNhighlightPixmap XmCHighlightPixmap Pixmap dynamic CSG XmNinitialFocus XmCInitialFocus Widget NULL CSG XmNlayoutDirection XmCLayoutDirection XmDirection dynamic CG XmNnavigationType XmCNavigationType XmNavigationType XmTAB_GROUP CSG XmNpopupHandlerCallback XmCCallback XtCallbackList NULL C XmNshadowThickness XmCShadowThickness Dimension 2 CSG XmNstringDirection XmCStringDirection XmStringDirection dynamic CG XmNtopShadowColor XmCTopShadowColor Pixel dynamic CSG XmNtopShadowPixmap XmCTopShadowPixmap Pixmap dynamic CSG XmNtraversalOn XmCTraversalOn Boolean True CSG XmNunitType XmCUnitType unsigned char dynamic CSG XmNuserData XmCUserData XtPointer NULL CSG
Core Resource Set Name Class Type Default Access XmNaccelerators XmCAccelerators XtAccelerators dynamic CSG XmNancestorSensitive XmCSensitive Boolean dynamic G XmNbackground XmCBackground Pixel dynamic CSG XmNbackgroundPixmap XmCPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG XmNborderColor XmCBorderColor Pixel XtDefaultForeground CSG XmNborderPixmap XmCPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG XmNborderWidth XmCBorderWidth Dimension 0 CSG XmNcolormap XmCColormap Colormap dynamic CG XmNdepth XmCDepth int dynamic CG XmNdestroyCallback XmCCallback XtCallbackList NULL C XmNheight XmCHeight Dimension dynamic CSG XmNinitialResourcesPersistent XmCInitialResourcesPersistent Boolean True C XmNmappedWhenManaged XmCMappedWhenManaged Boolean True CSG XmNscreen XmCScreen Screen * dynamic CG XmNsensitive XmCSensitive Boolean True CSG XmNtranslations XmCTranslations XtTranslations dynamic CSG XmNwidth XmCWidth Dimension dynamic CSG XmNx XmCPosition Position 0 CSG XmNy XmCPosition Position 0 CSG
Composite Resource Set Name Class Type Default Access XmNchildren XmCReadOnly WidgetList NULL G XmNinsertPosition XmCInsertPosition XtOrderProc default procedure CSG XmNnumChildren XmCReadOnly Cardinal 0 G
XmPanedWindow inherits translations from XmManager.
The translations for sashes within the PanedWindow are described in the following table.
The following key names are listed in the X standard key event translation table syntax. This format is the one used by Motif to specify the widget actions corresponding to a given key. A brief overview of the format is provided under VirtualBindings(3). For a complete description of the format, please refer to the X Toolkit Instrinsics Documentation.
~c ~s ~m ~a <Btn1Down>: SashAction(Start) ~c ~s ~m ~a <Btn1Motion>: SashAction(Move) ~c ~s ~m ~a <Btn1Up>: SashAction(Commit) ~c ~s ~m ~a <Btn2Down>: SashAction(Start) ~c ~s ~m ~a <Btn2Motion>: SashAction(Move) ~c ~s ~m ~a <Btn2Up>: SashAction(Commit) :<Key><osfActivate>: PrimitiveParentActivate() :<Key><osfCancel>: PrimitiveParentCancel() :<Key><osfHelp>: Help() :c <Key><osfUp>: SashAction(Key,LargeIncr,Up) :<Key><osfUp>: SashAction(Key,DefaultIncr,Up) :c <Key><osfRight>: SashAction(Key,LargeIncr,Right) :<Key><osfRight>: SashAction(Key,DefaultIncr,Right) :c <Key><osfDown>: SashAction(Key,LargeIncr,Down) :<Key><osfDown>: SashAction(Key,DefaultIncr,Down) :c <Key><osfLeft>: SashAction(Key,LargeIncr,Left) :<Key><osfLeft>: SashAction(Key,DefaultIncr,Left) ~s ~m ~a <Key>Return: PrimitiveParentActivate() s ~m ~a <Key>Tab: PrevTabGroup() ~m ~a <Key>Tab: NextTabGroup()
The XmPanedWindow action routines are
Help(): Calls the callbacks for XmNhelpCallback if any exist. If there are no help callbacks for this widget, this action calls the help callbacks for the nearest ancestor that has them. NextTabGroup(): Moves the keyboard focus to the next tab group. By default, each pane and sash is a tab group. PrevTabGroup(): Moves the keyboard focus to the previous tab group. By default, each pane and sash is a tab group. SashAction(action) or SashAction(Key,increment,direction): The Start action activates the interactive placement of the panes borders. The Move action causes the sash to track the position of the pointer. If one of the panes reaches its minimum or maximum size, adjustment continues with the next adjustable pane. The Commit action ends sash motion. When sash action is caused by a keyboard event, the sash with the keyboard focus is moved according to the increment and direction specified. DefaultIncr adjusts the sash by one line. LargeIncr adjusts the sash by one view region. The direction is specified as either Up, Down, Left, or Right. Note that the SashAction action routine is not a direct action routine of the XmPanedWindow, but rather an action of the Sash control created by the XmPanedWindow.
This widget has the following additional behavior:
<FocusIn>: Moves the keyboard focus to the sash and highlights it <FocusOut>: Unsets the keyboard focus in the sash and unhighlights it
The bindings for virtual keys are vendor specific. For information about bindings for virtual buttons and keys, see VirtualBindings(3).
Composite(3), Constraint(3), Core(3), XmCreatePanedWindow(3), XmManager(3), XmVaCreatePanedWindow(3), and XmVaCreateManagedPanedWindow(3).