annotate tests/glyph-test.el @ 407:ed6218a7d4d3

Added tag r21-2-33 for changeset b8cc9ab3f761
author cvs
date Mon, 13 Aug 2007 11:17:10 +0200
parents b8cc9ab3f761
children 501cfd01ee6d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
1 (set-extent-begin-glyph
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
2 (make-extent (point) (point))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
3 (setq im (make-glyph [xpm :file "xemacs-icon.xpm"])))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
4
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
5 (set-extent-begin-glyph
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
6 (make-extent (point) (point))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
7 (make-glyph [string :data "xemacs"]))
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
8
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
9 (defun foo ()
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
10 (interactive)
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
11 (setq ok-select (not ok-select)))
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
12
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
13 (defun fee () (interactive) (message "hello"))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
14
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
15 ;; button in a group
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
16 (setq ok-select nil)
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
17 (set-extent-begin-glyph
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
18 (make-extent (point) (point))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
19 (setq radio-button1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
20 (make-glyph
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 404
diff changeset
21 [button :face widget
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 404
diff changeset
22 :descriptor ["ok1" (setq ok-select t)
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
23 :style radio :selected ok-select]])))
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
24 ;; button in a group
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
25 (set-extent-begin-glyph
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
26 (make-extent (point) (point))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
27 (setq radio-button2
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
28 (make-glyph
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
29 ` [button :descriptor ["ok2" (setq ok-select nil) :style radio
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
30 :selected (not ok-select)]])))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
31 ;; toggle button
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
32 (set-extent-begin-glyph
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
33 (make-extent (point) (point))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
34 (setq tbutton
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
35 (make-glyph [button :descriptor ["ok3" (setq ok-select nil)
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
36 :style toggle
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
37 :selected (not ok-select)]])))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
38 (set-extent-begin-glyph
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
39 (make-extent (point) (point))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
40 (setq toggle-button
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
41 (make-glyph [button :descriptor ["ok4" :style toggle
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
42 :callback
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
43 (setq ok-select (not ok-select))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
44 :selected ok-select]])))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
45
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
46 ;; normal pushbutton
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
47 (set-extent-begin-glyph
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
48 (make-extent (point) (point))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
49 (setq push-button
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
50 (make-glyph [button :width 10 :height 2
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
51 :face modeline-mousable
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 404
diff changeset
52 :descriptor "ok" :callback foo
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
53 :selected t])))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
54 ;; tree view
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
55 (set-extent-begin-glyph
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
56 (make-extent (point) (point))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
57 (setq tree (make-glyph
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
58 [tree-view :width 10
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
59 :descriptor "My Tree"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
60 :properties (:items (["One" foo]
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
61 (["Two" foo]
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
62 ["Four" foo]
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
63 "Six")
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
64 "Three"))])))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
65
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
66 ;; tab control
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
67 (set-extent-begin-glyph
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
68 (make-extent (point) (point))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
69 (setq tab (make-glyph
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
70 [tab-control :descriptor "My Tab"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
71 :face highlight
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
72 :orientation right
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
73 :properties (:items (["One" foo :selected t]
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
74 ["Two" fee :selected nil]
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
75 ["Three" foo :selected nil]))])))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
76
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
77 ;; progress gauge
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
78 (set-extent-begin-glyph
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
79 (make-extent (point) (point))
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
80 (setq pgauge (make-glyph
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
81 [progress-gauge :width 10 :height 2
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
82 :descriptor "ok"])))
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
83 ;; progress the progress ...
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
84 (let ((x 0))
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
85 (while (<= x 100)
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 404
diff changeset
86 (set-image-instance-property (glyph-image-instance pgauge) :value x)
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
87 (setq x (+ x 5))
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
88 (sit-for 0.1)))
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
89
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
90 ;; progress gauge in the modeline
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
91 (setq global-mode-string
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
92 (cons (make-extent nil nil)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
93 (setq pg (make-glyph
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
94 [progress-gauge :width 5 :pixel-height 16
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
95 :descriptor "ok"]))))
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
96 ;; progress the progress ...
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
97 (let ((x 0))
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
98 (while (<= x 100)
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 404
diff changeset
99 (set-image-instance-property (glyph-image-instance pg) :value x)
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
100 (setq x (+ x 5))
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
101 (sit-for 0.1)))
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
102
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
103 (set-extent-begin-glyph
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
104 (make-extent (point) (point))
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
105 (make-glyph
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
106 [button :face modeline-mousable
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
107 :descriptor "ok" :callback foo
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
108 :image [xpm :file "../etc/xemacs-icon.xpm"]]))
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
109
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
110 ;; normal pushbutton
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
111 (set-extent-begin-glyph
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
112 (make-extent (point) (point))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
113 (setq pbutton
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
114 (make-glyph [button :descriptor ["A Big Button" foo ]])))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
115
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
116 ;; edit box
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
117 (set-extent-begin-glyph
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
118 (make-extent (point) (point))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
119 (setq edit-field (make-glyph [edit-field :pixel-width 50 :pixel-height 30
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
120 :face bold-italic
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
121 :descriptor ["Hello"]])))
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
122 ;; combo box
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
123 (set-extent-begin-glyph
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
124 (make-extent (point) (point))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
125 (setq combo-box (make-glyph
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
126 [combo-box :width 10 :descriptor ["Hello"]
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
127 :properties (:items ("One" "Two" "Three"))])))
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
128
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
129 ;; label
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
130 (set-extent-begin-glyph
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
131 (make-extent (point) (point))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
132 (setq label (make-glyph [label :pixel-width 150 :descriptor "Hello"])))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
133
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
134 ;; string
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
135 (set-extent-begin-glyph
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
136 (make-extent (point) (point))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
137 (setq str (make-glyph [string :data "Hello There"])))
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
138
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
139 ;; scrollbar
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
140 ;(set-extent-begin-glyph
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
141 ; (make-extent (point) (point))
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
142 ; (make-glyph [scrollbar :width 50 :height 20 :descriptor ["Hello"]]))
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
143
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
144 ;; generic subwindow
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
145 (setq sw (make-glyph [subwindow :pixel-width 50 :pixel-height 70]))
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
146 (set-extent-begin-glyph (make-extent (point) (point)) sw)
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
147
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
148 ;; layout
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
149 (setq layout
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
150 (make-glyph
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
151 [layout :pixel-width 200 :pixel-height 250
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
152 :orientation vertical
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
153 :justify left
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
154 :border [string :data "Hello There Mrs"]
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
155 :items ([layout :orientation horizontal
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
156 :items (radio-button1 radio-button2)]
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
157 edit-field toggle-button label str)]))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
158 (set-glyph-face layout 'gui-element)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
159 (set-extent-begin-glyph
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
160 (make-extent (point) (point)) layout)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
161
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
162 (setq test-toggle-widget nil)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
163
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
164 (defun test-toggle (widget)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
165 (set-extent-begin-glyph
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
166 (make-extent (point) (point))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
167 (make-glyph (vector 'button
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
168 :descriptor "ok"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
169 :style 'toggle
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
170 :selected `(funcall test-toggle-value
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
171 ,widget)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
172 :callback `(funcall test-toggle-action
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
173 ,widget)))))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
174
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
175 (defun test-toggle-action (widget &optional event)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
176 (if widget
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
177 (message "Widget is t")
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
178 (message "Widget is nil")))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
179
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
180 (defun test-toggle-value (widget)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
181 (setq widget (not widget))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
182 (not widget))