• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..26-Sep-2001-

ImakefileH A D10-Feb-2001280 1610

READMEH A D10-Feb-20011.3 KiB3730

demo.cH A D10-Feb-2001922 3626

xm_attach.cH A D10-Feb-20013.1 KiB12581

README

1xm_attach (w, where, ...)
2Widget w;
3char *where;
4
5     xm_attach permits specification of XmForm child  attachments
6     in  a  simple and consise manner.  _w_ is the widget ID of the
7     Form child.  _where_ is a four-character string  specifying  the
8     top,  left,  right,  and  bottom attachments, in that order.
9     Each character determines the  attach  type  and  subsequent
10     args read, as follows (all non-widget args are integers):
11
12          n    ATTACH_NONE
13          f    ATTACH_FORM (offset)
14          F    ATTACH_OPPOSITE_FORM (offset)
15          w    ATTACH_WIDGET (widget, offset)
16          W    ATTACH_OPPOSITE_WIDGET (widget, offset)
17          p    ATTACH_POSITION (position)
18          s    ATTACH_SELF
19          -    do not attach this side
20
21     Example:
22
23          xm_attach(button1, "fnwp", 5, button2, 5, 20);
24
25     is equivalent to the following mess:
26
27          XtVaSetValues(button1,
28                        XmNtopAttachment, XmATTACH_FORM,
29                        XmNtopOffset, 5,
30                        XmNleftAttachment, XmATTACH_NONE,
31                        XmNrightAttachment, XmATTACH_WIDGET,
32                        XmNrightOffset, 5,
33                        XmNrightWidget, button2,
34                        XmNbottomAttachment, XmATTACH_POSITION,
35                        XmNbottomPosition, 20,
36                        (char*) NULL);
37