File: Form1a.dat

package info (click to toggle)
motif 2.3.4-13
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 81,160 kB
  • ctags: 51,769
  • sloc: ansic: 596,938; cpp: 3,951; yacc: 2,854; makefile: 2,070; csh: 1,199; sh: 1,070; lex: 455
file content (79 lines) | stat: -rw-r--r-- 3,084 bytes parent folder | download | duplicates (3)
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
/* 
 * Motif
 *
 * Copyright (c) 1987-2012, The Open Group. All rights reserved.
 *
 * These libraries and programs are free software; you can
 * redistribute them and/or modify them under the terms of the GNU
 * Lesser General Public License as published by the Free Software
 * Foundation; either version 2 of the License, or (at your option)
 * any later version.
 *
 * These libraries and programs are distributed in the hope that
 * they will be useful, but WITHOUT ANY WARRANTY; without even the
 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
 * PURPOSE. See the GNU Lesser General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with these librararies and programs; if not, write
 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
 * Floor, Boston, MA 02110-1301 USA
*/ 
/* 
 * HISTORY
*/ 
/*
static char rcsid[] = "$XConsortium: Form1a.dat /main/4 1995/07/13 18:04:44 drk $"
*/
@) Try the following steps.
#) Only Child1 is visible.
#) Attach the TOP edge of Child2 to WIDGET. Child2 appears below Child1.
#) Attach the RIGHT edge of Child2 to FORM. Child2 resizes to the size of
the Form.
#) Attach the RIGHT edge of Child2 to WIDGET. Child2 disappears.
#) Attach the RIGHT edge of Child2 to OPPOSITE_WIDGET. Child2 reappears the
same size as Child1.
#) Attach the RIGHT edge of Child1 to FORM. The edge of Child2, which is
attached to the right edge of Child1, should resize with it.
#) Attach the RIGHT edge of Child1 to POSITION-6.  The Form should resize
larger so that the buttons fill 60% of the form.
C)
#) Attach the RIGHT edge of BUTTON2 to SELF. Note that the corresponding label
in the bottom pane shows "ATTACH_POSITION".
#) Attach the RIGHT edge of BUTTON1 to FORM. The edges of the two buttons are
no longer attached, so PushButton2 should NOT resize.
#) Attach the LEFT edge of BUTTON1 to WIDGET. The form will resize very 
small and a warning about circular attachments will appear.
#) Attach the LEFT edge of BUTTON1 to FORM. The form resizes so the buttons
are visible.
#) Attach the RIGHT edge of BUTTON2 to POSITION-4. The form grows and Push
Button1 continues to fill the form left-to-right.
C)
!) Error Conditions.
#) Attach the BOTTOM of BUTTON1 to ATTACH_WIDGET.
#) In stdout, you should see an error message.
@) Warning: 
   Name: form
   Class: XmForm
   Circular dependency in Form children.
#) Use the two CLEAR buttons to reset both buttons.
#) Attach the BOTTOM of BUTTON1 to POSITION-8. Child2 is not visible and
the form will grow slightly.
C)
!) More error conditions.
#) Attach LEFT edge of BUTTON2 to WIDGET. Child2 appears to the right of
Child1.
#) Attach RIGHT edge of BUTTON2 to WIDGET.
#) This is an impossible case to render, so Button2 will disappear and
the following message appears in stdout:
@) Warning: 
@)    Name: form
@)    Class: XmForm
@)    Circular dependency in Form children.
#) Use the CLEAR buttons to reset. 
C)
#) Got the idea? You can experiment for awhile.
#) Use the CLEAR keys to reset things.
E)