File: Form10.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 (89 lines) | stat: -rw-r--r-- 3,673 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
80
81
82
83
84
85
86
87
88
89
/* 
 * 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: Form10.dat /main/4 1995/07/13 18:00:58 drk $"
*/

#) A client with a form widget containing a ArrowButton widget will
   appear.  The ArrowButton will fill the form. 
!) 
C)

#) The ArrowButton will now have a topOffset of 10, a bottomOffset
   of 30, a leftOffset of 20, and a rightOffset of 40. 
!) 
C)

#) The form will now have top/bottom/left/right Attachment set to
   XmATTACH_POSITION, and the ArrowButton will have a leftPosition of
   10, a rightPosition of 90, a topPosition of 25, and a
   bottomPosition of 75. 
#) Note that the above resource settings would result in a
   ArrowButton widget which was centered in the form, and was 80% as
   wide as the form, and 50% as tall as the form.  However, since
   the offsets set earlier are still in effect, the ArrowButton will
   be further indented 10 from the top, 30 from the bottom, 20 from
   the left, and 40 from the right of the form. 
!) 
C)

#) The form will now have a fractionBase of 10, and the ArrowButton
   will have a leftPosition of 1, a rightPosition of 9, a
   topPosition of 3, and a bottomPosition of 8. 
#) Note that the above resource settings would result in a
   ArrowButton widget which was centered in the form, and was 80% as
   wide as the form, and 20% as tall as the form.  However, since
   the offsets set earlier are still in effect, the ArrowButton will
   be further indented 10 from the top, 30 from the bottom, 20 from
   the left, and 40 from the right of the form. 
!) 
C)

#) A client with a form should appear. The form should be about
   500x100 pixels, and should have three ArrowButtons within
   it.  The form will have left/right Attachment set to
   XmATTACH_POSITION, and topAttachment set to XmATTACH_FORM for
   the first two arrows and bottomAttachment set to XmATTACH_FORM
   for the third arrow.  The  first arrow will have a leftPosition
   of 10, a rightPosition of 30, and a topOffset of 20.  The second
   arrow will have a leftPosition of 40, a rightPosition of 60, and
   a topOffset of 0.  The third arrow will have a leftPosition of
   70, a rightPosition of 90, and a bottomOffset of 5.
!) 
#) Note that the above resource settings will result in ArrowButton
   widgets which are each 20% as wide as the form, and separated
   horizontally from the form and eachother by a space 10% as wide
   as the form.  In addition, the first two widgets will each be
   offset from the top of the form, and the third widget will be
   offset from the bottom of the form, by the amounts listed above. 
!) 
#) Resize the client several times. You should see the arrows move
   and resize,  but retain the same relative horizontal positions
   and sizes. 
!) 
#) Iconify and Normalize the client window. 
!) 
E)