1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363
|
'\" t
...\" MainWinA.sgm /main/9 1996/09/08 20:52:59 rws $
.de P!
.fl
\!!1 setgray
.fl
\\&.\"
.fl
\!!0 setgray
.fl \" force out current output buffer
\!!save /psv exch def currentpoint translate 0 0 moveto
\!!/showpage{}def
.fl \" prolog
.sy sed -e 's/^/!/' \\$1\" bring in postscript file
\!!psv restore
.
.de pF
.ie \\*(f1 .ds f1 \\n(.f
.el .ie \\*(f2 .ds f2 \\n(.f
.el .ie \\*(f3 .ds f3 \\n(.f
.el .ie \\*(f4 .ds f4 \\n(.f
.el .tm ? font overflow
.ft \\$1
..
.de fP
.ie !\\*(f4 \{\
. ft \\*(f4
. ds f4\"
' br \}
.el .ie !\\*(f3 \{\
. ft \\*(f3
. ds f3\"
' br \}
.el .ie !\\*(f2 \{\
. ft \\*(f2
. ds f2\"
' br \}
.el .ie !\\*(f1 \{\
. ft \\*(f1
. ds f1\"
' br \}
.el .tm ? font underflow
..
.ds f1\"
.ds f2\"
.ds f3\"
.ds f4\"
.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n
.TH "XmMainWindow" "library call"
.SH "NAME"
\fBXmMainWindow\fP \(em The MainWindow widget class
.iX "XmMainWindow"
.iX "widget class" "MainWindow"
.SH "SYNOPSIS"
.PP
.nf
#include <Xm/MainW\&.h>
.fi
.SH "DESCRIPTION"
.PP
MainWindow provides a standard layout for the primary window of an
application\&. This layout includes a MenuBar, a CommandWindow, a work
region, 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 ScrolledWindow with an optional MenuBar and
optional CommandWindow and MessageWindow\&.
.PP
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 elements, a MenuBar, a CommandWindow, a MessageWindow, a
horizontal
ScrollBar, and a vertical ScrollBar widget, and then
call \fBXmMainWindowSetAreas\fP with those widget IDs\&.
.PP
MainWindow
can also create three Separator widgets that provide a visual 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 \fBSeparator1\fP; the second is \fBSeparator2\fP;
and the third is \fBSeparator3\fP\&.
.PP
MainWindow also provides the following three child types for layout at
creation time:
.IP " \(bu" 6
\fBXmMENU_BAR\fP
.IP " \(bu" 6
\fBXmCOMMAND_WINDOW\fP
.IP " \(bu" 6
\fBXmMESSAGE_WINDOW\fP
.PP
MainWindow can use these child types
at creation time instead of their associated resource values\&.
MainWindow uses the \fBXmQTmenuSystem\fP trait\&.
.SS "Descendants"
.PP
MainWindow automatically creates the descendants shown in the
following table\&.
An application can use \fBXtNameToWidget\fP to gain access
to the named descendant\&. In addition, a user or an application
can use the named descendant when specifying resource values\&.
.TS
tab() box;
l| l| l.
\fBNamed Descendant\fP\fBClass\fP\fBIdentity\fP
___
=
___
\fBHorScrollBar\fP\fBXmScrollBar\fPhorizontal scroll bar
___
\fBSeparator1\fP\fBXmSeparatorGadget\fPoptional first separator
___
\fBSeparator2\fP\fBXmSeparatorGadget\fPoptional second separator
___
\fBSeparator3\fP\fBXmSeparatorGadget\fPoptional third separator
___
\fBVertScrollBar\fP\fBXmScrollBar\fPvertical scroll bar
___
.TE
.SS "Classes"
.PP
MainWindow inherits behavior and resources from \fBCore\fP,
\fBComposite\fP, \fBConstraint\fP, \fBXmManager\fP,
and
\fBXmScrolledWindow\fP\&.
.PP
The class pointer is \fBxmMainWindowWidgetClass\fP\&.
.PP
The class name is \fBXmMainWindow\fP\&.
.SS "New Resources"
.PP
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 \fB\&.Xdefaults\fP file, remove
the \fBXmN\fP or
\fBXmC\fP prefix and use the remaining letters\&. To specify one of the defined
values for a resource in a \fB\&.Xdefaults\fP file, remove the \fBXm\fP 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 \fBXtSetValues\fP (S),
retrieved by using \fBXtGetValues\fP (G), or is not applicable (N/A)\&.
.PP
.TS
tab() box;
c s s s s
l| l| l| l| l.
\fBXmMainWindow Resource Set\fP
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNcommandWindowXmCCommandWindowWidgetNULLCSG
_____
XmNcommandWindowLocationXmCCommandWindowLocationunsigned charABOVE (SeeDesc\&.)CG
_____
XmNmainWindowMarginHeightXmCMainWindowMarginHeightDimension0CSG
_____
XmNmainWindowMarginWidthXmCMainWindowMarginWidthDimension0CSG
_____
XmNmenuBarXmCMenuBarWidgetNULLCSG
_____
XmNmessageWindowXmCMessageWindowWidgetNULLCSG
_____
XmNshowSeparatorXmCShowSeparatorBooleanFalseCSG
_____
.TE
.IP "\fBXmNcommandWindow\fP" 10
Specifies the widget to be laid out as the CommandWindow\&. This widget
must have been previously created and managed as a child of MainWindow\&.
.IP "\fBXmNcommandWindowLocation\fP" 10
Controls the position of the command window\&. \fBXmCOMMAND_ABOVE_WORKSPACE\fP
locates the command window between the menu bar and the work window\&.
\fBXmCOMMAND_BELOW_WORKSPACE\fP locates the command window between the
work window and the message window\&.
.IP "\fBXmNmainWindowMarginHeight\fP" 10
Specifies the margin height on the top and bottom of MainWindow\&. This
resource overrides any setting of the
ScrolledWindow resource
\fBXmNscrolledWindowMarginHeight\fP\&.
.IP "\fBXmNmainWindowMarginWidth\fP" 10
Specifies the margin width on the right and left sides of MainWindow\&. This
resource overrides any setting of the ScrolledWindow resource
\fBXmNscrolledWindowMarginWidth\fP\&.
.IP "\fBXmNmenuBar\fP" 10
Specifies the widget to be laid out as the MenuBar\&. This widget must
have been previously created and managed as a child of MainWindow\&.
.IP "\fBXmNmessageWindow\fP" 10
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 MainWindow\&.
.IP "\fBXmNshowSeparator\fP" 10
Displays separators between the components of the MainWindow when set
to True\&. If set to False, no separators are displayed\&.
.SS "Inherited Resources"
.PP
MainWindow inherits behavior and resources from the
superclasses described in the following table\&.
For a complete description of each resource, refer to the
reference page for that superclass\&.
.PP
.TS
tab() box;
c s s s s
l| l| l| l| l.
\fBXmScrolledWindow Resource Set\fP
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNautoDragModelXmCAutoDragModelXtEnumXmAUTO_DRAG_ENABLEDCSG
_____
XmNclipWindowXmCClipWindowWidgetdynamicG
_____
XmNhorizontalScrollBarXmCHorizontalScrollBarWidgetdynamicCSG
_____
XmNscrollBarDisplayPolicyXmCScrollBarDisplayPolicyunsigned chardynamicCSG
_____
XmNscrollBarPlacementXmCScrollBarPlacementunsigned charXmBOTTOM_RIGHTCSG
_____
XmNscrolledWindowMarginHeightXmCScrolledWindowMarginHeightDimension0N/A
_____
XmNscrolledWindowMarginWidthXmCScrolledWindowMarginWidthDimension0N/A
_____
XmNscrollingPolicyXmCScrollingPolicyunsigned charXmAPPLICATION_DEFINEDCG
_____
XmNspacingXmCSpacingDimension4CSG
_____
XmNtraverseObscuredCallbackXmCCallbackXtCallbackListNULLCSG
_____
XmNverticalScrollBarXmCVerticalScrollBarWidgetdynamicCSG
_____
XmNvisualPolicyXmCVisualPolicyunsigned chardynamicG
_____
XmNworkWindowXmCWorkWindowWidgetNULLCSG
_____
.TE
.PP
.TS
tab() box;
c s s s s
l| l| l| l| l.
\fBXmManager Resource Set\fP
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNbottomShadowColorXmCBottomShadowColorPixeldynamicCSG
_____
XmNbottomShadowPixmapXmCBottomShadowPixmapPixmapXmUNSPECIFIED_PIXMAPCSG
_____
XmNforegroundXmCForegroundPixeldynamicCSG
_____
XmNhelpCallbackXmCCallbackXtCallbackListNULLC
_____
XmNhighlightColorXmCHighlightColorPixeldynamicCSG
_____
XmNhighlightPixmapXmCHighlightPixmapPixmapdynamicCSG
_____
XmNinitialFocusXmCInitialFocusWidgetNULLCSG
_____
XmNlayoutDirectionXmCLayoutDirectionXmDirectiondynamicCG
_____
XmNnavigationTypeXmCNavigationTypeXmNavigationTypeXmTAB_GROUPCSG
_____
XmNpopupHandlerCallbackXmCCallbackXtCallbackListNULLC
_____
XmNshadowThicknessXmCShadowThicknessDimension0CSG
_____
XmNstringDirectionXmCStringDirectionXmStringDirectiondynamicCG
_____
XmNtopShadowColorXmCTopShadowColorPixeldynamicCSG
_____
XmNtopShadowPixmapXmCTopShadowPixmapPixmapdynamicCSG
_____
XmNtraversalOnXmCTraversalOnBooleanTrueCSG
_____
XmNunitTypeXmCUnitTypeunsigned chardynamicCSG
_____
XmNuserDataXmCUserDataXtPointerNULLCSG
_____
.TE
.PP
.TS
tab() box;
c s s s s
l| l| l| l| l.
\fBComposite Resource Set\fP
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNchildrenXmCReadOnlyWidgetListNULLG
_____
XmNinsertPositionXmCInsertPositionXtOrderProcNULLCSG
_____
XmNnumChildrenXmCReadOnlyCardinal0G
_____
.TE
.PP
.TS
tab() box;
c s s s s
l| l| l| l| l.
\fBCore Resource Set\fP
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNacceleratorsXmCAcceleratorsXtAcceleratorsdynamicCSG
_____
XmNancestorSensitiveXmCSensitiveBooleandynamicG
_____
XmNbackgroundXmCBackgroundPixeldynamicCSG
_____
XmNbackgroundPixmapXmCPixmapPixmapXmUNSPECIFIED_PIXMAPCSG
_____
XmNborderColorXmCBorderColorPixelXtDefaultForegroundCSG
_____
XmNborderPixmapXmCPixmapPixmapXmUNSPECIFIED_PIXMAPCSG
_____
XmNborderWidthXmCBorderWidthDimension0CSG
_____
XmNcolormapXmCColormapColormapdynamicCG
_____
XmNdepthXmCDepthintdynamicCG
_____
XmNdestroyCallbackXmCCallbackXtCallbackListNULLC
_____
XmNheightXmCHeightDimensiondynamicCSG
_____
XmNinitialResourcesPersistentXmCInitialResourcesPersistentBooleanTrueC
_____
XmNmappedWhenManagedXmCMappedWhenManagedBooleanTrueCSG
_____
XmNscreenXmCScreenScreen *dynamicCG
_____
XmNsensitiveXmCSensitiveBooleanTrueCSG
_____
XmNtranslationsXmCTranslationsXtTranslationsdynamicCSG
_____
XmNwidthXmCWidthDimensiondynamicCSG
_____
XmNxXmCPositionPosition0CSG
_____
XmNyXmCPositionPosition0CSG
_____
.TE
.SS "Translations"
.PP
MainWindow inherits translations from ScrolledWindow\&.
.SH "RELATED"
.PP
\fBComposite\fP(3), \fBConstraint\fP(3), \fBCore\fP(3),
\fBXmCreateMainWindow\fP(3),
\fBXmMainWindowSep1\fP(3), \fBXmMainWindowSep2\fP(3),
\fBXmMainWindowSep3\fP(3),
\fBXmMainWindowSetAreas\fP(3),
\fBXmManager\fP(3),
\fBXmScrolledWindow\fP(3)
\fBXmVaCreateMainWindow\fP(3), and
\fBXmVaCreateManagedMainWindow\fP(3)\&.
|