File: Menu6.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 (131 lines) | stat: -rw-r--r-- 4,619 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
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
/* 
 * 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: Menu6.dat /main/7 1995/07/13 18:46:01 drk $"
*/

#) Press KMenuBar.  The \"File\" menu button is armed.
   Press KUp. There is no change.
!)
#) Press KRight.  The \"Edit\" menu button is armed.
   Press KUp.  There is no change.
!)
#) Press KDown.  A message is printed stating the
   \"Edit\" button was cascaded.
!)

#) Press KMenuBar. The \"File\" menu button is armed.
   Press KDown. A message is printed stating the File 
   button was cascaded.  Press KCancel.
!)
C)
#) Click MB1 on the \"Arrange\" menu item.
   A 2-dimensional menu with a cascade button is posted.
!)
#) Press KLeft.  The \"Arrange\" menu is unposted.
   Press KRight.  The \"Arrange\" menu is posted.
!)
#) Press KUp then KLeft.  The CascadeButton is armed.
!)
#) Press KReturn. The submenu is posted.
!)
#) Press KLeft.  The submenu is unposted.
!)
#) Press KRight to repost, then Hit ESC to unpost.
   (HINT: try this on an R3 server)
!)
#) Press KDown, KRight.  The \"Layout\" Menu is posted which is a
   horizontal menu.
!)
#) Press KUp.  The \"Two Ovals\" menu item is armed.
   Press KEscape.  The menu is unposted.
!)
C)
/* test for PIRS 1098 */

@) This test confirms that the Label Widget/Gadgets subclasses correctly
resize narrower after the XmNacceleratorText resource is changed to NULL.
@) You should see a small window with several menus in it. 

#) Pop up each menu; note
that the selectable items have acceleratorText displayed. 
#) For each item, select the item; doing so sets acceleratorText to NULL. 
Confirm that the item has shrunk in horizontal size appropriately by popping 
up the menu again.

C)

#) For each item, select the item again; doing so resets the acceleratorText
to a non-NULL string larger than the original. 
Confirm that some value for acceleratorText has reappeared and that the 
widget has grown in horizontal size appropriately.

C)
E)

#) Bring up the Arrange menu. It is a 2-dimensional menu with   a cascade 
   button. Use the arrow keys to move down to the cascade button and press
   return.  The submenu should pop up. Use the left arrow key to unpost the
   submenu. Post it again. Hit ESC to unpost the last menu.
   (HINT: try this on an R3 server!)   Use the up-arrow key to move off 
   the cascade button.
#) Use the right arrow key and the Layout Menu should popup. This is a 
   horizontal menu which has the buttons very close together.  Left and 
   right arrow keys should move you between the buttons in this menu. 
   Up and down arrows should move you to the Arrange Menu.
#) Unpost all menus. Btn1-click on the Arrange cascade. Move the pointer over
   any other button in the menu other than the cascade button. Press MB1. The
   button you are over should get the highlight and the button which had the
   highlight previously should lose it. Move the pointer in and out of the menu
   with the button pressed down. The highlight should disappear then reappear.
C)
/* test for PIRS 1098 */

@) This test confirms that the Label Widget/Gadgets subclasses correctly
resize narrower after the XmNacceleratorText resource is changed to NULL.
@) You should see a small window with several menus in it. 

#) Pop up each menu; note
that the selectable items have acceleratorText displayed. 
#) For each item, select the item; doing so sets acceleratorText to NULL. 
Confirm that the item has shrunk in horizontal size appropriately by popping 
up the menu again.

C)

#) For each item, select the item again; doing so resets the acceleratorText
to a non-NULL string larger than the original. 
Confirm that some value for acceleratorText has reappeared and that the 
widget has grown in horizontal size appropriately.
C)
E)