File: XmForm.3

package info (click to toggle)
motif 2.3.8-4
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 36,432 kB
  • sloc: ansic: 452,643; sh: 4,611; makefile: 2,030; yacc: 1,604; lex: 352; cpp: 348
file content (815 lines) | stat: -rw-r--r-- 31,053 bytes parent folder | download | duplicates (9)
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
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
'\" t
...\" Form.sgm /main/9 1996/09/08 20:45:00 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 "XmForm" "library call"
.SH "NAME"
\fBXmForm\fP \(em The Form widget class
.iX "XmForm"
.iX "widget class" "Form"
.SH "SYNOPSIS"
.PP
.nf
#include <Xm/Form\&.h>
.fi
.SH "DESCRIPTION"
.PP
Form is a container widget with no input semantics of its own\&.
Constraints are placed on children of the Form to define attachments
for each of the child\&'s four sides\&.
These attachments can be to the Form, to another child widget or gadget,
to a relative position within the Form, or to the initial position of
the child\&.
The attachments determine the layout behavior of the Form when resizing
occurs\&.
.PP
The default value for \fBXmNinitialFocus\fP is the value of
\fBXmNdefaultButton\fP\&.
.PP
Following are some important considerations in using a Form:
.IP "   \(bu" 6
Every child must have an attachment on either the left or the right\&.
If initialization or \fBXtSetValues\fP leaves a widget without
such an attachment, the result depends upon the value of
\fBXmNrubberPositioning\fP\&.
.IP "" 10
If \fBXmNrubberPositioning\fP is False, the child is given an
\fBXmNleftAttachment\fP of \fBXmATTACH_FORM\fP and an
\fBXmNleftOffset\fP equal to its current \fIx\fP value\&.
.IP "" 10
If \fBXmNrubberPositioning\fP is True, the child is given an
\fBXmNleftAttachment\fP of \fBXmATTACH_POSITION\fP and an
\fBXmNleftPosition\fP proportional to the current \fIx\fP value divided
by the width of the Form\&.
.IP "" 10
In either case, if the child has not been previously given an \fIx\fP
value, its \fIx\fP value is taken to be 0 (zero), which places the child at the
left side of the Form\&.
.IP "   \(bu" 6
If you want to create a child without any attachments, and then
later (for example, after creating and managing it, but before realizing it)
give it a right attachment through \fBXtSetValues\fP, you must set its
\fBXmNleftAttachment\fP to \fBXmATTACH_NONE\fP at the same time\&.
.IP "   \(bu" 6
The \fBXmNresizable\fP resource controls only whether a geometry request
by the child will be granted\&.
It has no effect on whether the child\&'s size can be changed because of
changes in geometry of the Form or of other children\&.
.IP "   \(bu" 6
Every child has a preferred width, based on geometry requests it
makes (whether they are granted or not)\&.
.IP "   \(bu" 6
If a child has attachments on both the left and the right sides,
its size is completely controlled by the Form\&.
It can be shrunk below its preferred width or enlarged above it, if
necessary, due to other constraints\&.
In addition, the child\&'s geometry requests to change its own width may
be refused\&.
.IP "   \(bu" 6
If a child has attachments on only its left or right side, it will
always be at its preferred width (if resizable, otherwise at is current
width)\&.
This may cause it to be clipped by the Form or by other children\&.
.IP "   \(bu" 6
If a child\&'s left (or right) attachment is set to \fBXmATTACH_SELF\fP, its
corresponding left (or right) offset is forced to 0 (zero)\&.
The attachment is then changed to \fBXmATTACH_POSITION\fP, with a
position that corresponds to the \fIx\fP value of the child\&'s left (or
right) edge\&.
To fix the position of a side at a specific \fIx\fP value, use
\fBXmATTACH_FORM\fP or \fBXmATTACH_OPPOSITE_FORM\fP with the \fIx\fP
value as the left (or right) offset\&.
.IP "   \(bu" 6
Unmapping a child has no effect on the Form except that the child
is not mapped\&.
.IP "   \(bu" 6
Unmanaging a child unmaps it\&.
If no other child is attached to it, or if all children attached to it
and all children recursively attached to them are also all unmanaged,
all of those children are treated as if they did not exist in
determining the size of the Form\&.
.IP "   \(bu" 6
When using \fBXtSetValues\fP to change the \fBXmNx\fP resource of a
child, you must simultaneously set its left attachment to either
\fBXmATTACH_SELF\fP or \fBXmATTACH_NONE\fP\&.
Otherwise, the request is not granted\&.
If \fBXmNresizable\fP is False, the request is granted only if the
child\&'s size can remain the same\&.
.IP "   \(bu" 6
A left (or right) attachment of \fBXmATTACH_WIDGET\fP, where
\fBXmNleftWidget\fP (or \fBXmNrightWidget\fP) is NULL, acts like an
attachment of \fBXmATTACH_FORM\fP\&.
.IP "   \(bu" 6
If an attachment is made to a widget that is not a child of the
Form, but an ancestor of the widget is a child of the Form, the
attachment is made to the ancestor\&.
.PP
All these considerations are true of top and bottom attachments as well,
with top acting like left, bottom acting like right, \fIy\fP acting like
\fIx\fP, and height acting like width\&.
.SS "Classes"
.PP
Form inherits behavior, resources, and traits from \fBCore\fP,
\fBComposite\fP, \fBConstraint\fP,
\fBXmManager\fP, and \fBXmBulletinBoard\fP\&.
.PP
The class pointer is \fBxmFormWidgetClass\fP\&.
.PP
The class name is \fBXmForm\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.
\fBXmForm Resource Set\fP
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNfractionBaseXmCMaxValueint100CSG
_____
XmNhorizontalSpacingXmCSpacingDimension0CSG
_____
XmNrubberPositioningXmCRubberPositioningBooleanFalseCSG
_____
XmNverticalSpacingXmCSpacingDimension0CSG
_____
.TE
.IP "\fBXmNfractionBase\fP" 10
Specifies the denominator used in calculating the relative position of
a child widget using \fBXmATTACH_POSITION\fP constraints\&.
The value must not be 0 (zero)\&.
.IP "" 10
If the value of a child\&'s \fBXmNleftAttachment\fP (or
\fBXmNrightAttachment\fP) is \fBXmATTACH_POSITION\fP, the position of
the left (or right) side of the child is relative to the left
side of the Form and is a fraction of the width of the Form\&.
This fraction is the value of the child\&'s \fBXmNleftPosition\fP (or
\fBXmNrightPosition\fP) resource divided by the value of the Form\&'s
\fBXmNfractionBase\fP\&.
.IP "" 10
If the value of a child\&'s \fBXmNtopAttachment\fP (or
\fBXmNbottomAttachment\fP) is \fBXmATTACH_POSITION\fP, the position of
the top (or bottom) side of the child is relative to the top
side
of the Form and is a fraction of the height of the Form\&.
This fraction is the value of the child\&'s \fBXmNtopPosition\fP (or
\fBXmNbottomPosition\fP) resource divided by the value of the Form\&'s
\fBXmNfractionBase\fP\&.
.IP "\fBXmNhorizontalSpacing\fP" 10
Specifies the offset for right and left attachments\&. This resource is
only used if no offset resource is specified (when attaching to a
widget), or if no margin resource is specified (when attaching
to the Form)\&.
.IP "\fBXmNrubberPositioning\fP" 10
Indicates the default near (left) and top attachments for a child of the
Form\&.
(Note that whether this resource actually applies to the left or
right side of the child and its attachment
depends on the value of
the \fBXmNlayoutDirection\fP\&.)
.IP "" 10
The default left attachment is applied whenever initialization or
\fBXtSetValues\fP leaves the child without either a left or right
attachment\&.
The default top attachment is applied whenever initialization or
\fBXtSetValues\fP leaves the child without either a top or bottom
attachment\&.
.IP "" 10
If this Boolean resource is set to False, \fBXmNleftAttachment\fP and
\fBXmNtopAttachment\fP default to \fBXmATTACH_FORM\fP,
\fBXmNleftOffset\fP defaults to the current \fIx\fP value of the left
side of the child,
and \fBXmNtopOffset\fP defaults to the current
\fIy\fP value of the child\&.
The effect is to position the child according to its absolute distance
from the left or top side of the Form\&.
.IP "" 10
If this resource is set to True, \fBXmNleftAttachment\fP and
\fBXmNtopAttachment\fP default to \fBXmATTACH_POSITION\fP,
\fBXmNleftPosition\fP defaults to a value proportional to the current
\fIx\fP value of the left side of the child divided by the width of the
Form, and \fBXmNtopPosition\fP defaults to a value proportional to the
current \fIy\fP value of the child divided by the height of the Form\&.
The effect is to position the child relative to the left or top
side of the Form and in proportion to the width or height of the Form\&.
.IP "\fBXmNverticalSpacing\fP" 10
Specifies the offset for top and bottom attachments\&. This resource is
only used if no offset resource is specified (when attaching to a
widget), or if no margin resource is specified (when attaching
to the Form)\&.
.IP "" 10
.TS
tab() box;
c s s s s
l| l| l| l| l.
\fBXmForm Constraint Resource Set\fP
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNbottomAttachmentXmCAttachmentunsigned charXmATTACH_NONECSG
_____
XmNbottomOffsetXmCOffsetint0CSG
_____
XmNbottomPositionXmCPositionint0CSG
_____
XmNbottomWidgetXmCWidgetWidgetNULLCSG
_____
XmNleftAttachmentXmCAttachmentunsigned charXmATTACH_NONECSG
_____
XmNleftOffsetXmCOffsetint0CSG
_____
XmNleftPositionXmCPositionint0CSG
_____
XmNleftWidgetXmCWidgetWidgetNULLCSG
_____
XmNresizableXmCBooleanBooleanTrueCSG
_____
XmNrightAttachmentXmCAttachmentunsigned charXmATTACH_NONECSG
_____
XmNrightOffsetXmCOffsetint0CSG
_____
XmNrightPositionXmCPositionint0CSG
_____
XmNrightWidgetXmCWidgetWidgetNULLCSG
_____
XmNtopAttachmentXmCAttachmentunsigned charXmATTACH_NONECSG
_____
XmNtopOffsetXmCOffsetint0CSG
_____
XmNtopPositionXmCPositionint0CSG
_____
XmNtopWidgetXmCWidgetWidgetNULLCSG
_____
.TE
.IP "\fBXmNbottomAttachment\fP" 10
Specifies attachment of the bottom side of the child\&. It can have the
following values:
.RS
.IP "\fBXmATTACH_NONE\fP" 10
Do not attach the bottom side of the child\&.
.IP "\fBXmATTACH_FORM\fP" 10
Attach the bottom side of the child to the bottom
side of the Form\&.
.IP "\fBXmATTACH_OPPOSITE_FORM\fP" 10
Attach the bottom side of the child to
the top side of the Form\&.
\fBXmNbottomOffset\fP can be used to determine the visibility of the
child\&.
.IP "\fBXmATTACH_WIDGET\fP" 10
Attach the bottom side of the child to the top
side of the widget or
gadget specified in the \fBXmNbottomWidget\fP resource\&.
If \fBXmNbottomWidget\fP is NULL, \fBXmATTACH_WIDGET\fP is replaced by
\fBXmATTACH_FORM\fP, and the child is attached to the bottom side of the
Form\&.
.IP "\fBXmATTACH_OPPOSITE_WIDGET\fP" 10
Attach the bottom side of the child to
the bottom side of the widget or
gadget specified in the \fBXmNbottomWidget\fP resource\&.
.IP "\fBXmATTACH_POSITION\fP" 10
Attach the bottom side of the child to a
position that is relative to
the top side of the Form and in proportion to the height of the Form\&.
This position is determined by the \fBXmNbottomPosition\fP and
\fBXmNfractionBase\fP resources\&.
.IP "\fBXmATTACH_SELF\fP" 10
Attach the bottom side of the child to a position
that is proportional
to the current \fIy\fP value of the bottom of the child divided by the
height of the Form\&.
This position is determined by the \fBXmNbottomPosition\fP and
\fBXmNfractionBase\fP resources\&.
\fBXmNbottomPosition\fP is set to a value proportional to the current
\fIy\fP value of the bottom of the child divided by the height of the
Form\&.
.RE
.IP "\fBXmNbottomOffset\fP" 10
Specifies the constant offset between the bottom side of the
child and the object to which it is
attached\&.
The relationship established remains, regardless of any resizing operations
that occur\&.
When this resource is explicitly set, the value of \fBXmNverticalSpacing\fP
is ignored\&.
.IP "\fBXmNbottomPosition\fP" 10
This resource is used to determine the position of the bottom side of
the child when the child\&'s \fBXmNbottomAttachment\fP is set to
\fBXmATTACH_POSITION\fP\&.
In this case the position of the bottom side of the child is relative to
the top side of the Form and is a fraction of the height of the Form\&.
This fraction is the value of the child\&'s \fBXmNbottomPosition\fP
resource divided by the value of the Form\&'s \fBXmNfractionBase\fP\&.
For example, if the child\&'s \fBXmNbottomPosition\fP is 50, the Form\&'s
\fBXmNfractionBase\fP is 100, and the Form\&'s height is 200, the position
of the bottom side of the child is 100\&.
.IP "\fBXmNbottomWidget\fP" 10
Specifies the widget or gadget to which
the bottom side of the child is attached\&.
This resource is used if the \fBXmNbottomAttachment\fP resource
is set to either \fBXmATTACH_WIDGET\fP
or \fBXmATTACH_OPPOSITE_WIDGET\fP\&.
.IP "" 10
A string-to-widget resource converter is automatically installed for use
with this resource\&.
With this converter, the widget that is to be the value of the resource
must exist at the time the widget that has the resource is created\&.
.IP "\fBXmNleftAttachment\fP" 10
Specifies attachment of the near (left) side of the child\&.
(Note that whether this resource actually applies to the left or
right side of the child and its attachment
depends on the value of
the \fBXmNlayoutDirection\fP resource\&.)
It can have the following values:
.RS
.IP "\fBXmATTACH_NONE\fP" 10
Do not attach the left side of the child\&.
If \fBXmNrightAttachment\fP is also \fBXmATTACH_NONE\fP, this value is
ignored and the child is given a default left attachment\&.
.IP "\fBXmATTACH_FORM\fP" 10
Attach the left side of the child to the left
side of the Form\&.
.IP "\fBXmATTACH_OPPOSITE_FORM\fP" 10
Attach the left side of the child to the
right side of the Form\&.
\fBXmNleftOffset\fP can be used to determine the visibility of the
child\&.
.IP "\fBXmATTACH_WIDGET\fP" 10
Attach the left side of the child to the right
side of the widget or
gadget specified in the \fBXmNleftWidget\fP resource\&.
If \fBXmNleftWidget\fP is NULL, \fBXmATTACH_WIDGET\fP is replaced by
\fBXmATTACH_FORM\fP, and the child is attached to the left side of the
Form\&.
.IP "\fBXmATTACH_OPPOSITE_WIDGET\fP" 10
Attach the left side of the child to
the left side of the widget or
gadget specified in the \fBXmNleftWidget\fP resource\&.
.IP "\fBXmATTACH_POSITION\fP" 10
Attach the left side of the child to a
position that is relative to
the left side of the Form and in proportion to the width of the Form\&.
This position is determined by the \fBXmNleftPosition\fP and
\fBXmNfractionBase\fP resources\&.
.IP "\fBXmATTACH_SELF\fP" 10
Attach the left side of the child to a position
that is proportional to
the current \fIx\fP value of the left side of the child divided by the
width of the Form\&.
This position is determined by the \fBXmNleftPosition\fP and
\fBXmNfractionBase\fP resources\&.
\fBXmNleftPosition\fP is set to a value proportional to the current
\fIx\fP value of the left side of the child divided by the width of the
Form\&.
.RE
.IP "\fBXmNleftOffset\fP" 10
Specifies the constant offset between the near (left) side of the
child and the object to which it is attached\&.
(Note that whether this resource actually applies to the left or
right side of the child and its attachment
depends on the value of
the \fBXmNlayoutDirection\fP resource\&.)
The relationship established remains, regardless of any resizing operations
that occur\&.
When this resource is explicitly set, the value of \fBXmNhorizontalSpacing\fP
is ignored\&.
.IP "\fBXmNleftPosition\fP" 10
This resource is used to determine the position of the near (left) side
of the child when the child\&'s \fBXmNleftAttachment\fP is set to
\fBXmATTACH_POSITION\fP\&.
(Note that whether this resource actually applies to the left or
right side of the child and its attachment
depends on the value of
the \fBXmNlayoutDirection\fP resource\&.)
.IP "" 10
In this case, the position of the left side of the child is relative to
the left side of the Form and is a fraction of the width of the Form\&.
This fraction is the value of the child\&'s \fBXmNleftPosition\fP resource
divided by the value of the Form\&'s \fBXmNfractionBase\fP\&.
For example, if the child\&'s \fBXmNleftPosition\fP is 50, the Form\&'s
\fBXmNfractionBase\fP is 100, and the Form\&'s width is 200, the position
of the left side of the child is 100\&.
.IP "\fBXmNleftWidget\fP" 10
Specifies the widget or gadget to which the near (left) side of the
child is attached\&.
(Note that whether this resource actually applies to the left or
right side of the child and its attachment
depends on the value of
the \fBXmNlayoutDirection\fP resource\&.)
The \fBXmNleftWidget\fP resource is used if the \fBXmNleftAttachment\fP
resource is set to either \fBXmATTACH_WIDGET\fP
or \fBXmATTACH_OPPOSITE_WIDGET\fP\&.
.IP "" 10
A string-to-widget resource converter is automatically installed for use
with this resource\&.
With this converter, the widget that is to be the value of the resource
must exist at the time the widget that has the resource is created\&.
.IP "\fBXmNresizable\fP" 10
This Boolean resource specifies whether or not a child\&'s request for a
new size is (conditionally) granted by the Form\&.
If this resource is set to True the request is granted if possible\&.
If this resource is set to False the request is always refused\&.
.IP "" 10
If a child has both left and right attachments, its width is completely
controlled by the Form, regardless of the value of the child\&'s
\fBXmNresizable\fP resource\&.
If a child has a left or right attachment but not both, the child\&'s
\fBXmNwidth\fP is used in setting its width if the value of the child\&'s
\fBXmNresizable\fP resource is True\&.
These conditions are also true for top and bottom attachments, with
height acting like width\&.
.IP "\fBXmNrightAttachment\fP" 10
Specifies attachment of the far (right) side of the child\&.
(Note that whether this resource actually applies to the left or
right side of the child and its attachment
depends on the value of
the \fBXmNlayoutDirection\fP resource\&.)
It can have the following values:
.RS
.IP "\fBXmATTACH_NONE\fP" 10
Do not attach the right side of the child\&.
.IP "\fBXmATTACH_FORM\fP" 10
Attach the right side of the child to the right
side of the Form\&.
.IP "\fBXmATTACH_OPPOSITE_FORM\fP" 10
Attach the right side of the child to
the left side of the Form\&.
\fBXmNrightOffset\fP can be used to determine the visibility of the
child\&.
.IP "\fBXmATTACH_WIDGET\fP" 10
Attach the right side of the child to the left
side of the widget or
gadget specified in the \fBXmNrightWidget\fP resource\&.
If \fBXmNrightWidget\fP is NULL, \fBXmATTACH_WIDGET\fP is replaced by
\fBXmATTACH_FORM\fP, and the child is attached to the right side of the
Form\&.
.IP "\fBXmATTACH_OPPOSITE_WIDGET\fP" 10
Attach the right side of the child to
the right side of the widget or
gadget specified in the \fBXmNrightWidget\fP resource\&.
.IP "\fBXmATTACH_POSITION\fP" 10
Attach the right side of the child to a
position that is relative to
the left side of the Form and in proportion to the width of the Form\&.
This position is determined by the \fBXmNrightPosition\fP and
\fBXmNfractionBase\fP resources\&.
.IP "\fBXmATTACH_SELF\fP" 10
Attach the right side of the child to a position
that is proportional to
the current \fIx\fP value of the right side of the child divided by the
width of the Form\&.
This position is determined by the \fBXmNrightPosition\fP and
\fBXmNfractionBase\fP resources\&.
\fBXmNrightPosition\fP is set to a value proportional to the current
\fIx\fP value of the right side of the child divided by the width of the
Form\&.
.RE
.IP "\fBXmNrightOffset\fP" 10
Specifies the constant offset between the far (right) side of the
child and the object to which it is attached\&.
(Note that whether this resource actually applies to the left or
right side of the child and its attachment
depends on the value of
the \fBXmNlayoutDirection\fP resource\&.)
The relationship established remains, regardless of any resizing operations
that occur\&.
When this resource is explicitly set, the value of \fBXmNhorizontalSpacing\fP
is ignored\&.
.IP "\fBXmNrightPosition\fP" 10
This resource is used to determine the position of the far (right) side
of the child when the child\&'s \fBXmNrightAttachment\fP is set to
\fBXmATTACH_POSITION\fP\&.
(Note that whether this resource actually applies to the left or
right side of the child and its attachment
depends on the value of
the \fBXmNlayoutDirection\fP resource\&.)
.IP "" 10
In this case the position of the right side of the child is relative to
the left side of the Form and is a fraction of the width of the Form\&.
This fraction is the value of the child\&'s \fBXmNrightPosition\fP resource
divided by
the value of the Form\&'s \fBXmNfractionBase\fP\&.
For example, if the child\&'s \fBXmNrightPosition\fP is 50, the Form\&'s
\fBXmNfractionBase\fP is 100, and the Form\&'s width is 200, the position
of the right side of the child is 100\&.
.IP "\fBXmNrightWidget\fP" 10
Specifies the widget or gadget
to which the far (right) side of the child is attached\&.
(Note that whether this resource actually applies to the left or
right side of the child and its attachment
depends on the value of
the \fBXmNlayoutDirection\fP resource\&.)
The \fBXmNrightWidget\fP resource is used if the
\fBXmNrightAttachment\fP resource
is set to either \fBXmATTACH_WIDGET\fP
or \fBXmATTACH_OPPOSITE_WIDGET\fP\&.
.IP "" 10
A string-to-widget resource converter is automatically installed for use
with this resource\&.
With this converter, the widget that is to be the value of the resource
must exist at the time the widget that has the resource is created\&.
.IP "\fBXmNtopAttachment\fP" 10
Specifies attachment of the top side of the child\&. It can have
following values:
.RS
.IP "\fBXmATTACH_NONE\fP" 10
Do not attach the top side of the child\&.
If the \fBXmNbottomAttachment\fP resource
is also \fBXmATTACH_NONE\fP, this value is
ignored and the child is given a default top attachment\&.
.IP "\fBXmATTACH_FORM\fP" 10
Attach the top side of the child to the top side
of the Form\&.
.IP "\fBXmATTACH_OPPOSITE_FORM\fP" 10
Attach the top side of the child to the
bottom side of the Form\&.
\fBXmNtopOffset\fP can be used to determine the visibility of the
child\&.
.IP "\fBXmATTACH_WIDGET\fP" 10
Attach the top side of the child to the bottom
side of the widget or
gadget specified in the \fBXmNtopWidget\fP resource\&.
If \fBXmNtopWidget\fP is NULL, \fBXmATTACH_WIDGET\fP is replaced by
\fBXmATTACH_FORM\fP and the child is attached to the top side of the
Form\&.
.IP "\fBXmATTACH_OPPOSITE_WIDGET\fP" 10
Attach the top side of the child to
the top side of the widget or
gadget specified in the \fBXmNtopWidget\fP resource\&.
.IP "\fBXmATTACH_POSITION\fP" 10
Attach the top side of the child to a
position that is relative to
the top side of the Form and in proportion to the height of the Form\&.
This position is determined by the \fBXmNtopPosition\fP and
\fBXmNfractionBase\fP resources\&.
.IP "\fBXmATTACH_SELF\fP" 10
Attach the top side of the child to a position
that is proportional to
the current \fIy\fP value of the child divided by the height of the
Form\&.
This position is determined by the \fBXmNtopPosition\fP and
\fBXmNfractionBase\fP resources\&.
\fBXmNtopPosition\fP is set to a value proportional to the current
\fIy\fP value of the child divided by the height of the Form\&.
.RE
.IP "\fBXmNtopOffset\fP" 10
Specifies the constant offset between the top side of the
child and the object to which it is
attached\&.
The relationship established remains, regardless of any resizing operations
that occur\&.
When this resource is explicitly set, the value of \fBXmNverticalSpacing\fP
is ignored\&.
.IP "\fBXmNtopPosition\fP" 10
This resource is used to determine the position of the top side of
the child when the child\&'s \fBXmNtopAttachment\fP is set to
\fBXmATTACH_POSITION\fP\&.
In this case, the position of the top side of the child is relative to
the top side of the Form and is a fraction of the height of the Form\&.
This fraction is the value of the child\&'s \fBXmNtopPosition\fP
resource divided by the value of the Form\&'s \fBXmNfractionBase\fP\&.
For example, if the child\&'s \fBXmNtopPosition\fP is 50, the Form\&'s
\fBXmNfractionBase\fP is 100, and the Form\&'s height is 200, the position
of the top side of the child is 100\&.
.IP "\fBXmNtopWidget\fP" 10
Specifies the widget or gadget to which the top
side of the child is attached\&.
This resource is used if \fBXmNtopAttachment\fP is
set to a value of either \fBXmATTACH_WIDGET\fP
or \fBXmATTACH_OPPOSITE_WIDGET\fP\&.
.IP "" 10
A string-to-widget resource converter is automatically installed for use
with this resource\&.
With this converter, the widget that is to be the value of the resource
must exist at the time the widget that has the resource is created\&.
.SS "Inherited Resources"
.PP
Form 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\&.
.PP
.TS
tab() box;
c s s s s
l| l| l| l| l.
\fBXmBulletinBoard Resource Set\fP
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNallowOverlapXmCAllowOverlapBooleanTrueCSG
_____
XmNautoUnmanageXmCAutoUnmanageBooleanTrueCG
_____
XmNbuttonFontListXmCButtonFontListXmFontListdynamicCSG
_____
XmNbuttonRenderTableXmCButtonRenderTableXmRenderTabledynamicCSG
_____
XmNcancelButtonXmCWidgetWidgetNULLSG
_____
XmNdefaultButtonXmCWidgetWidgetNULLSG
_____
XmNdefaultPositionXmCDefaultPositionBooleanTrueCSG
_____
XmNdialogStyleXmCDialogStyleunsigned chardynamicCSG
_____
XmNdialogTitleXmCDialogTitleXmStringNULLCSG
_____
XmNfocusCallbackXmCCallbackXtCallbackListNULLC
_____
XmNlabelFontListXmCLabelFontListXmFontListdynamicCSG
_____
XmNlabelRenderTableXmCLabelRenderTableXmRenderTabledynamicCSG
_____
XmNmapCallbackXmCCallbackXtCallbackListNULLC
_____
XmNmarginHeightXmCMarginHeightDimension0CSG
_____
XmNmarginWidthXmCMarginWidthDimension0CSG
_____
XmNnoResizeXmCNoResizeBooleanFalseCSG
_____
XmNresizePolicyXmCResizePolicyunsigned charXmRESIZE_ANYCSG
_____
XmNshadowTypeXmCShadowTypeunsigned charXmSHADOW_OUTCSG
_____
XmNtextFontListXmCTextFontListXmFontListdynamicCSG
_____
XmNtextRenderTableXmCTextRenderTableXmRenderTabledynamicCSG
_____
XmNtextTranslationsXmCTranslationsXtTranslationsNULLC
_____
XmNunmapCallbackXmCCallbackXtCallbackListNULLC
_____
.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
_____
XmNinitialFocusXmCInitialFocusWidgetdynamicCSG
_____
XmNlayoutDirectionXmCLayoutDirectionXmDirectiondynamicCG
_____
XmNnavigationTypeXmCNavigationTypeXmNavigationTypeXmTAB_GROUPCSG
_____
XmNpopupHandlerCallbackXmCCallbackXtCallbackListNULLC
_____
XmNshadowThicknessXmCShadowThicknessDimensiondynamicCSG
_____
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
_____
XmNacceleratorsXmCAcceleratorsXtAcceleratorsdynamicN/A
_____
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
XmForm inherits translations from XmBulletinBoard\&.
.SH "RELATED"
.PP
\fBComposite\fP(3), \fBConstraint\fP(3), \fBCore\fP(3),
\fBXmBulletinBoard\fP(3),
\fBXmCreateForm\fP,
\fBXmCreateFormDialog\fP(3),
\fBXmManager\fP(3),
\fBXmVaCreateForm\fP, and
\fBXmVaCreateManagedForm\fP\&.