*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: XmMainWindow | Section: 3 | Source: Digital UNIX | File: XmMainWindow.3X.gz
XmMainWindow(3X) XmMainWindow(3X) NAME XmMainWindow - The MainWindow widget class SYNOPSIS #include <Xm/MainW.h> DESCRIPTION MainWindow provides a standard layout for the primary window of an ap- plication. This layout includes a MenuBar, a CommandWindow, a work re- gion, a MessageWindow, and ScrollBars. Any or all of these areas are optional. The work region and ScrollBars in the MainWindow behave identically to the work region and ScrollBars in the ScrolledWindow widget. The user can think of the MainWindow as an extended Scrolled- Window with an optional MenuBar and optional CommandWindow and Mes- sageWindow. In a fully-loaded MainWindow, the MenuBar spans the top of the window horizontally. The CommandWindow spans the MainWindow horizontally just below the MenuBar, and the work region lies below the CommandWindow. The MessageWindow is below the work region. Any space remaining below the MessageWindow is managed in a manner identical to ScrolledWindow. The behavior of ScrolledWindow can be controlled by the ScrolledWindow resources. To create a MainWindow, first create the work region ele- ments, a MenuBar, a CommandWindow, a MessageWindow, a horizontal ScrollBar, and a vertical ScrollBar widget, and then call XmMainWin- dowSetAreas with those widget IDs. MainWindow can also create three Separator widgets that provide a vi- sual separation of MainWindow's four components. The user can specify resources in a resource file for the automatically created gadgets that contain the MainWindow separators. The name of the first separator gadget is "Separator1"; the second is "Separator2"; and the third is "Separator3". Classes MainWindow inherits behavior and resources from Core, Composite, Con- straint, XmManager, and ScrolledWindow classes. The class pointer is xmMainWindowWidgetClass. The class name is XmMainWindow. New Resources The following table defines a set of widget resources used by the pro- grammer to specify data. The programmer can also set the resource val- ues 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). XmMainWindow Resource Set Class: XmCCommandWindow Default: NULL Type: Widget Access: CSG Class: XmCCommandWindowLocation Default: ABOVE (See DESCRIPTION) Type: un- signed char Access: CG Class: XmCMainWindowMarginHeight Default: 0 Type: Dimension Access: CSG Class: XmCMainWindowMarginWidth Default: 0 Type: Dimension Access: CSG Class: XmCMenuBar Default: NULL Type: Widget Access: CSG Class: XmCMessageWindow Default: NULL Type: Widget Access: CSG Class: XmCShowSeparator Default: False Type: Boolean Ac- cess: CSG Specifies the widget to be laid out as the CommandWindow. This widget must have been previously created and managed as a child of MainWindow. Controls the position of the command window. XmCOMMAND_ABOVE_WORKSPACE locates the command window between the menu bar and the work window. XmCOMMAND_BELOW_WORKSPACE locates the command window between the work window and the message win- dow. Specifies the margin height on the top and bottom of Main- Window. This resource overrides any setting of the ScrolledWin- dow resource XmNscrolledWindowMarginHeight. Specifies the mar- gin width on the right and left sides of MainWindow. This re- source overrides any setting of the ScrolledWindow resource XmN- scrolledWindowMarginWidth. Specifies the widget to be laid out as the MenuBar. This widget must have been previously created and managed as a child of MainWindow. Specifies the widget to be laid out as the MessageWindow. This widget must have been previously created and managed as a child of MainWindow. The MessageWindow is positioned at the bottom of the MainWindow. If this value is NULL, no message window is included in the Main- Window. Displays separators between the components of the Main- Window when set to True. If set to False, no separators are displayed. Inherited Resources MainWindow inherits behavior and resources from the following super- classes. For a complete description of each resource, refer to the man page for that superclass. XmScrolledWindow Resource Set Class: XmCClipWindow Default: dynamic Type: Widget Access: G Class: XmCHorizontalScrollBar Default: dynamic Type: Widget Access: CSG Class: XmCScrollBarDisplayPolicy Default: dynamic Type: unsigned char Access: CSG Class: XmCScrollBarPlacement Default: XmBOTTOM_RIGHT Type: unsigned char Access: CSG Class: XmCScrolledWindowMarginHeight Default: 0 Type: Dimension Access: N/A Class: XmCScrolledWindowMarginWidth De- fault: 0 Type: Dimension Access: N/A Class: XmCScrollingPolicy De- fault: XmAPPLICATION_DEFINED Type: unsigned char Access: CG Class: Xm- CSpacing Default: 4 Type: Dimension Access: CSG Class: XmCCallback De- fault: NULL Type: XtCallbackList Access: CSG Class: XmCVerticalScroll- Bar Default: dynamic Type: Widget Access: CSG Class: XmCVisualPolicy Default: dynamic Type: unsigned char Access: G Class: XmCWorkWindow Default: NULL Type: Widget Access: CSG XmManager Resource Set Class: XmCBottomShadowColor Default: dynamic Type: Pixel Access: CSG Class: XmCBottomShadowPixmap Default: XmUNSPECIFIED_PIXMAP Type: Pixmap Access: CSG Class: XmCForeground Default: dynamic Type: Pixel Access: CSG Class: XmCCallback Default: NULL Type: XtCallbackList Ac- cess: C Class: XmCHighlightColor Default: dynamic Type: Pixel Access: CSG Class: XmCHighlightPixmap Default: dynamic Type: Pixmap Access: CSG Class: XmCInitialFocus Default: NULL Type: Widget Access: CSG Class: XmCNavigationType Default: XmTAB_GROUP Type: XmNavigationType Access: CSG Class: XmCShadowThickness Default: 0 Type: Dimension Ac- cess: CSG Class: XmCStringDirection Default: dynamic Type: XmStringDi- rection Access: CG Class: XmCTopShadowColor Default: dynamic Type: Pixel Access: CSG Class: XmCTopShadowPixmap Default: dynamic Type: Pixmap Access: CSG Class: XmCTraversalOn Default: True Type: Boolean Access: CSG Class: XmCUnitType Default: dynamic Type: unsigned char Access: CSG Class: XmCUserData Default: NULL Type: XtPointer Access: CSG Composite Resource Set Class: XmCReadOnly Default: NULL Type: WidgetList Access: G Class: Xm- CInsertPosition Default: NULL Type: XtOrderProc Access: CSG Class: Xm- CReadOnly Default: 0 Type: Cardinal Access: G Core Resource Set Class: XmCAccelerators Default: dynamic Type: XtAccelerators Access: CSG Class: XmCSensitive Default: dynamic Type: Boolean Access: G Class: XmCBackground Default: dynamic Type: Pixel Access: CSG Class: XmCPixmap Default: XmUNSPECIFIED_PIXMAP Type: Pixmap Access: CSG Class: XmCBorderColor Default: XtDefaultForeground Type: Pixel Access: CSG Class: XmCPixmap Default: XmUNSPECIFIED_PIXMAP Type: Pixmap Ac- cess: CSG Class: XmCBorderWidth Default: 0 Type: Dimension Access: CSG Class: XmCColormap Default: dynamic Type: Colormap Access: CG Class: XmCDepth Default: dynamic Type: int Access: CG Class: XmCCallback De- fault: NULL Type: XtCallbackList Access: C Class: XmCHeight Default: dynamic Type: Dimension Access: CSG Class: XmCInitialResourcesPersis- tent Default: True Type: Boolean Access: C Class: XmCMappedWhenManaged Default: True Type: Boolean Access: CSG Class: XmCScreen Default: dy- namic Type: Screen * Access: CG Class: XmCSensitive Default: True Type: Boolean Access: CSG Class: XmCTranslations Default: dynamic Type: XtTranslations Access: CSG Class: XmCWidth Default: dynamic Type: Dimension Access: CSG Class: XmCPosition Default: 0 Type: Posi- tion Access: CSG Class: XmCPosition Default: 0 Type: Position Access: CSG Translations MainWindow inherits translations from ScrolledWindow. SEE ALSO Composite(3X), Constraint(3X), Core(3X), XmCreateMainWindow(3X), Xm- MainWindowSep1(3X), XmMainWindowSep2(3X), XmMainWindowSep3(3X), XmMain- WindowSetAreas(3X), XmManager(3X), XmScrolledWindow(3X) XmMainWindow(3X)

Navigation Options