forked from khchen/wNim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wMenuItem.html
412 lines (329 loc) · 45.4 KB
/
wMenuItem.html
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- This file is generated by Nim. -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Favicon -->
<link rel="shortcut icon" href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAUAAAAF////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAIAAABbAAAAlQAAAKIAAACbAAAAmwAAAKIAAACVAAAAWwAAAAL///8A////AP///wD///8A////AAAAABQAAADAAAAAYwAAAA3///8A////AP///wD///8AAAAADQAAAGMAAADAAAAAFP///wD///8A////AP///wAAAACdAAAAOv///wD///8A////AP///wD///8A////AP///wD///8AAAAAOgAAAJ3///8A////AP///wAAAAAnAAAAcP///wAAAAAoAAAASv///wD///8A////AP///wAAAABKAAAAKP///wAAAABwAAAAJ////wD///8AAAAAgQAAABwAAACIAAAAkAAAAJMAAACtAAAAFQAAABUAAACtAAAAkwAAAJAAAACIAAAAHAAAAIH///8A////AAAAAKQAAACrAAAAaP///wD///8AAAAARQAAANIAAADSAAAARf///wD///8AAAAAaAAAAKsAAACk////AAAAADMAAACcAAAAnQAAABj///8A////AP///wAAAAAYAAAAGP///wD///8A////AAAAABgAAACdAAAAnAAAADMAAAB1AAAAwwAAAP8AAADpAAAAsQAAAE4AAAAb////AP///wAAAAAbAAAATgAAALEAAADpAAAA/wAAAMMAAAB1AAAAtwAAAOkAAAD/AAAA/wAAAP8AAADvAAAA3gAAAN4AAADeAAAA3gAAAO8AAAD/AAAA/wAAAP8AAADpAAAAtwAAAGUAAAA/AAAA3wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAADfAAAAPwAAAGX///8A////AAAAAEgAAADtAAAAvwAAAL0AAADGAAAA7wAAAO8AAADGAAAAvQAAAL8AAADtAAAASP///wD///8A////AP///wD///8AAAAAO////wD///8A////AAAAAIcAAACH////AP///wD///8AAAAAO////wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A//8AAP//AAD4HwAA7/cAAN/7AAD//wAAoYUAAJ55AACf+QAAh+EAAAAAAADAAwAA4AcAAP5/AAD//wAA//8AAA=="/>
<link rel="icon" type="image/png" sizes="32x32" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4QQQEwksSS9ZWwAAAk1JREFUWMPtll2ITVEUx39nn/O7Y5qR8f05wtCUUr6ZIS++8pEnkZInPImneaCQ5METNdOkeFBKUhMPRIkHKfEuUZSUlGlKPN2TrgfncpvmnntnmlEyq1Z7t89/rf9a6+y99oZxGZf/XeIq61EdtgKXgdXA0xrYAvBjOIF1AI9zvjcC74BSpndrJPkBWDScTF8Aa4E3wDlgHbASaANmVqlcCnwHvgDvgVfAJ+AikAAvgfVZwLnSVZHZaOuKoQi3ZOMi4NkYkpe1p4J7A8BpYAD49hfIy/oqG0+hLomiKP2L5L+1ubn5115S+3OAn4EnwBlgMzCjyt6ZAnQCJ4A7wOs88iRJHvw50HoujuPBoCKwHWiosy8MdfZnAdcHk8dxXFJ3VQbQlCTJvRBCGdRbD4M6uc5glpY3eAihpN5S5w12diSEcCCEcKUO4ljdr15T76ur1FDDLIQQ3qv71EdDOe3Kxj3leRXyk+pxdWnFWod6Wt2bY3de3aSuUHcPBVimHs7mK9WrmeOF6lR1o9qnzskh2ar2qm1qizpfXaPeVGdlmGN5pb09qMxz1Xb1kLqgzn1RyH7JUXW52lr5e/Kqi9qpto7V1atuUzfnARrV7jEib1T76gG2qxdGmXyiekkt1GswPTtek0aBfJp6YySGBfWg2tPQ0FAYgf1stUfdmdcjarbYJEniKIq6gY/Aw+zWHAC+p2labGpqiorFYgGYCEzN7oQdQClN07O1/EfDyGgC0ALMBdYAi4FyK+4H3gLPsxfR1zRNi+NP7nH5J+QntnXe5B5mpfQAAAAASUVORK5CYII=">
<!-- Google fonts -->
<link href='https://fonts.googleapis.com/css?family=Lato:400,600,900' rel='stylesheet' type='text/css'/>
<link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600' rel='stylesheet' type='text/css'/>
<!-- CSS -->
<title>wMenuItem</title>
<link rel="stylesheet" type="text/css" href="nimdoc.out.css">
<script type="text/javascript" src="dochack.js"></script>
<script type="text/javascript">
function main() {
var pragmaDots = document.getElementsByClassName("pragmadots");
for (var i = 0; i < pragmaDots.length; i++) {
pragmaDots[i].onclick = function(event) {
// Hide tease
event.target.parentNode.style.display = "none";
// Show actual
event.target.parentNode.nextElementSibling.style.display = "inline";
}
}
const toggleSwitch = document.querySelector('.theme-switch input[type="checkbox"]');
function switchTheme(e) {
if (e.target.checked) {
document.documentElement.setAttribute('data-theme', 'dark');
localStorage.setItem('theme', 'dark');
} else {
document.documentElement.setAttribute('data-theme', 'light');
localStorage.setItem('theme', 'light');
}
}
toggleSwitch.addEventListener('change', switchTheme, false);
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
document.documentElement.setAttribute('data-theme', "dark");
toggleSwitch.checked = true;
} else if (window.matchMedia && window.matchMedia('(prefers-color-scheme: light)').matches) {
document.documentElement.setAttribute('data-theme', "light");
toggleSwitch.checked = false;
} else {
const currentTheme = localStorage.getItem('theme') ? localStorage.getItem('theme') : null;
if (currentTheme) {
document.documentElement.setAttribute('data-theme', currentTheme);
if (currentTheme === 'dark') {
toggleSwitch.checked = true;
}
}
}
}
</script>
</head>
<body onload="main()">
<div class="document" id="documentId">
<div class="container">
<h1 class="title">wMenuItem</h1>
<div class="row">
<div class="three columns">
<div class="theme-switch-wrapper">
<label class="theme-switch" for="checkbox">
<input type="checkbox" id="checkbox" />
<div class="slider round"></div>
</label>
<em>Dark Mode</em>
</div>
<div id="global-links">
<ul class="simple">
<li>
<a href="https://github.com/khchen/wNim">Github Project</a>
</li>
<li>
<a href="wNim.html">Main Page</a>
</li>
</ul>
</div>
<ul class="simple simple-toc" id="toc-list">
<li>
<a class="reference reference-toplevel" href="#12" id="62">Procs</a>
<ul class="simple simple-toc-section">
<li><a class="reference" href="#getMenu%2CwMenuItem"
title="getMenu(self: wMenuItem): wMenu"><wbr />get<wbr />Menu<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getKind%2CwMenuItem"
title="getKind(self: wMenuItem): wMenuItemKind"><wbr />get<wbr />Kind<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getSubMenu%2CwMenuItem"
title="getSubMenu(self: wMenuItem): wMenu"><wbr />get<wbr />Sub<wbr />Menu<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getText%2CwMenuItem"
title="getText(self: wMenuItem): string"><wbr />get<wbr />Text<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getLabel%2CwMenuItem"
title="getLabel(self: wMenuItem): string"><wbr />get<wbr />Label<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setText%2CwMenuItem%2Cstring"
title="setText(self: wMenuItem; text: string)"><wbr />set<wbr />Text<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setLabel%2CwMenuItem%2Cstring"
title="setLabel(self: wMenuItem; text: string)"><wbr />set<wbr />Label<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getLabelText%2CwMenuItem"
title="getLabelText(self: wMenuItem): string"><wbr />get<wbr />Label<wbr />Text<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getHelp%2CwMenuItem"
title="getHelp(self: wMenuItem): string"><wbr />get<wbr />Help<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setHelp%2CwMenuItem%2Cstring"
title="setHelp(self: wMenuItem; help: string)"><wbr />set<wbr />Help<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getBitmap%2CwMenuItem"
title="getBitmap(self: wMenuItem): wBitmap"><wbr />get<wbr />Bitmap<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setBitmap%2CwMenuItem%2CwBitmap"
title="setBitmap(self: wMenuItem; bitmap: wBitmap = nil)"><wbr />set<wbr />Bitmap<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getId%2CwMenuItem"
title="getId(self: wMenuItem): wCommandID"><wbr />get<wbr />Id<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setId%2CwMenuItem%2CwCommandID"
title="setId(self: wMenuItem; id: wCommandID)"><wbr />set<wbr />Id<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getData%2CwMenuItem"
title="getData(self: wMenuItem): int"><wbr />get<wbr />Data<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setData%2CwMenuItem%2Cint"
title="setData(self: wMenuItem; data: int)"><wbr />set<wbr />Data<span class="attachedType"></span></a></li>
<li><a class="reference" href="#isCheck%2CwMenuItem"
title="isCheck(self: wMenuItem): bool"><wbr />is<wbr />Check<span class="attachedType"></span></a></li>
<li><a class="reference" href="#isRadio%2CwMenuItem"
title="isRadio(self: wMenuItem): bool"><wbr />is<wbr />Radio<span class="attachedType"></span></a></li>
<li><a class="reference" href="#isSeparator%2CwMenuItem"
title="isSeparator(self: wMenuItem): bool"><wbr />is<wbr />Separator<span class="attachedType"></span></a></li>
<li><a class="reference" href="#isSubMenu%2CwMenuItem"
title="isSubMenu(self: wMenuItem): bool"><wbr />is<wbr />Sub<wbr />Menu<span class="attachedType"></span></a></li>
<li><a class="reference" href="#enable%2CwMenuItem"
title="enable(self: wMenuItem; flag = true)"><wbr />enable<span class="attachedType"></span></a></li>
<li><a class="reference" href="#disable%2CwMenuItem"
title="disable(self: wMenuItem)"><wbr />disable<span class="attachedType"></span></a></li>
<li><a class="reference" href="#isEnabled%2CwMenuItem"
title="isEnabled(self: wMenuItem): bool"><wbr />is<wbr />Enabled<span class="attachedType"></span></a></li>
<li><a class="reference" href="#check%2CwMenuItem"
title="check(self: wMenuItem; flag = true)"><wbr />check<span class="attachedType"></span></a></li>
<li><a class="reference" href="#isChecked%2CwMenuItem"
title="isChecked(self: wMenuItem): bool"><wbr />is<wbr />Checked<span class="attachedType"></span></a></li>
<li><a class="reference" href="#toggle%2CwMenuItem"
title="toggle(self: wMenuItem)"><wbr />toggle<span class="attachedType"></span></a></li>
<li><a class="reference" href="#detach%2CwMenuItem"
title="detach(self: wMenuItem)"><wbr />detach<span class="attachedType"></span></a></li>
<li><a class="reference" href="#init%2CwMenuItem%2CwCommandID%2Cstring%2Cstring%2CwBitmap%2CwMenu"
title="init(self: wMenuItem; id: wCommandID = wIdAny; text = ""; help = ""; kind = wMenuItemNormal;
bitmap: wBitmap = nil; submenu: wMenu = nil)"><wbr />init<span class="attachedType"></span></a></li>
<li><a class="reference" href="#MenuItem%2CwCommandID%2Cstring%2Cstring%2CwBitmap%2CwMenu_2"
title="MenuItem(id: wCommandID = wIdAny; text = ""; help = ""; kind = wMenuItemNormal;
bitmap: wBitmap = nil; submenu: wMenu = nil): wMenuItem"><wbr />Menu<wbr />Item<span class="attachedType"></span></a></li>
</ul>
</li>
</ul>
</div>
<div class="nine columns" id="content">
<div id="tocRoot"></div>
<p class="module-desc">A menu item represents an item in a menu.<table class="docinfo" frame="void" rules="none"><col class="docinfo-name" /><col class="docinfo-content" /><tbody valign="top"><tr><th class="docinfo-name">Seealso:</th><td><a class="reference external" href="wMenu.html">wMenu</a> <a class="reference external" href="wMenuBar.html">wMenuBar</a></td></tr>
</tbody></table></p>
<div class="section" id="12">
<h1><a class="toc-backref" href="#12">Procs</a></h1>
<dl class="item">
<a id="getMenu,wMenuItem"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getMenu%2CwMenuItem"><span class="Identifier">getMenu</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMenuItem"><span class="Identifier">wMenuItem</span></a><span class="Other">)</span><span class="Other">:</span> <a href="wTypes.html#wMenu"><span class="Identifier">wMenu</span></a> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">inline</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">wNilAccess</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Returns the menu this item is in, or NULL if this item is not attached.
</dd>
<a id="getKind,wMenuItem"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getKind%2CwMenuItem"><span class="Identifier">getKind</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMenuItem"><span class="Identifier">wMenuItem</span></a><span class="Other">)</span><span class="Other">:</span> <a href="wTypes.html#wMenuItemKind"><span class="Identifier">wMenuItemKind</span></a> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">inline</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Returns the item kind, one of wMenuItemNormal, wMenuItemCheck, wMenuItemRadio, wMenuItemSeparator, or wMenuItemSubMenu.
</dd>
<a id="getSubMenu,wMenuItem"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getSubMenu%2CwMenuItem"><span class="Identifier">getSubMenu</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMenuItem"><span class="Identifier">wMenuItem</span></a><span class="Other">)</span><span class="Other">:</span> <a href="wTypes.html#wMenu"><span class="Identifier">wMenu</span></a> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">inline</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Returns the submenu for the menu item, or nil if there isn't one.
</dd>
<a id="getText,wMenuItem"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getText%2CwMenuItem"><span class="Identifier">getText</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMenuItem"><span class="Identifier">wMenuItem</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">inline</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Returns the text for the menu item.
</dd>
<a id="getLabel,wMenuItem"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getLabel%2CwMenuItem"><span class="Identifier">getLabel</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMenuItem"><span class="Identifier">wMenuItem</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">inline</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Returns the text for the menu item.
</dd>
<a id="setText,wMenuItem,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setText%2CwMenuItem%2Cstring"><span class="Identifier">setText</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMenuItem"><span class="Identifier">wMenuItem</span></a><span class="Other">;</span> <span class="Identifier">text</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">wNilAccess</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Sets the text for the menu item.
</dd>
<a id="setLabel,wMenuItem,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setLabel%2CwMenuItem%2Cstring"><span class="Identifier">setLabel</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMenuItem"><span class="Identifier">wMenuItem</span></a><span class="Other">;</span> <span class="Identifier">text</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">wNilAccess</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Sets the text for the menu item.
</dd>
<a id="getLabelText,wMenuItem"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getLabelText%2CwMenuItem"><span class="Identifier">getLabelText</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMenuItem"><span class="Identifier">wMenuItem</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">inline</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Returns the text for the menu item, not include any accelerator characters.
</dd>
<a id="getHelp,wMenuItem"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getHelp%2CwMenuItem"><span class="Identifier">getHelp</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMenuItem"><span class="Identifier">wMenuItem</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">inline</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Returns the help string.
</dd>
<a id="setHelp,wMenuItem,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setHelp%2CwMenuItem%2Cstring"><span class="Identifier">setHelp</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMenuItem"><span class="Identifier">wMenuItem</span></a><span class="Other">;</span> <span class="Identifier">help</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">inline</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Sets the help string.
</dd>
<a id="getBitmap,wMenuItem"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getBitmap%2CwMenuItem"><span class="Identifier">getBitmap</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMenuItem"><span class="Identifier">wMenuItem</span></a><span class="Other">)</span><span class="Other">:</span> <a href="wTypes.html#wBitmap"><span class="Identifier">wBitmap</span></a> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">inline</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Returns the bitmap.
</dd>
<a id="setBitmap,wMenuItem,wBitmap"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setBitmap%2CwMenuItem%2CwBitmap"><span class="Identifier">setBitmap</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMenuItem"><span class="Identifier">wMenuItem</span></a><span class="Other">;</span> <span class="Identifier">bitmap</span><span class="Other">:</span> <a href="wTypes.html#wBitmap"><span class="Identifier">wBitmap</span></a> <span class="Other">=</span> <span class="Keyword">nil</span><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma">
<span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">wNilAccess</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Sets the bitmap for the menu item, nil for clear the bitmap.
</dd>
<a id="getId,wMenuItem"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getId%2CwMenuItem"><span class="Identifier">getId</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMenuItem"><span class="Identifier">wMenuItem</span></a><span class="Other">)</span><span class="Other">:</span> <a href="wTypes.html#wCommandID"><span class="Identifier">wCommandID</span></a> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">inline</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Returns the menu item identifier.
</dd>
<a id="setId,wMenuItem,wCommandID"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setId%2CwMenuItem%2CwCommandID"><span class="Identifier">setId</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMenuItem"><span class="Identifier">wMenuItem</span></a><span class="Other">;</span> <span class="Identifier">id</span><span class="Other">:</span> <a href="wTypes.html#wCommandID"><span class="Identifier">wCommandID</span></a><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">wNilAccess</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Sets the id for the menu item.
</dd>
<a id="getData,wMenuItem"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getData%2CwMenuItem"><span class="Identifier">getData</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMenuItem"><span class="Identifier">wMenuItem</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">int</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">inline</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Returns the data associated with the item.
</dd>
<a id="setData,wMenuItem,int"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setData%2CwMenuItem%2Cint"><span class="Identifier">setData</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMenuItem"><span class="Identifier">wMenuItem</span></a><span class="Other">;</span> <span class="Identifier">data</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Sets the item associated data.
</dd>
<a id="isCheck,wMenuItem"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#isCheck%2CwMenuItem"><span class="Identifier">isCheck</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMenuItem"><span class="Identifier">wMenuItem</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">bool</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Determines whether a menu item is a kind of check item.
</dd>
<a id="isRadio,wMenuItem"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#isRadio%2CwMenuItem"><span class="Identifier">isRadio</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMenuItem"><span class="Identifier">wMenuItem</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">bool</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Determines whether a menu item is a kind of radio item.
</dd>
<a id="isSeparator,wMenuItem"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#isSeparator%2CwMenuItem"><span class="Identifier">isSeparator</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMenuItem"><span class="Identifier">wMenuItem</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">bool</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Determines whether a menu item is a kind of separator.
</dd>
<a id="isSubMenu,wMenuItem"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#isSubMenu%2CwMenuItem"><span class="Identifier">isSubMenu</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMenuItem"><span class="Identifier">wMenuItem</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">bool</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Determines whether a menu item is a kind of submenu.
</dd>
<a id="enable,wMenuItem"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#enable%2CwMenuItem"><span class="Identifier">enable</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMenuItem"><span class="Identifier">wMenuItem</span></a><span class="Other">;</span> <span class="Identifier">flag</span> <span class="Other">=</span> <span class="Identifier">true</span><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">wNilAccess</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Enables or disables (greys out) a menu item.
</dd>
<a id="disable,wMenuItem"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#disable%2CwMenuItem"><span class="Identifier">disable</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMenuItem"><span class="Identifier">wMenuItem</span></a><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">inline</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">wNilAccess</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Disables (greys out) a menu item.
</dd>
<a id="isEnabled,wMenuItem"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#isEnabled%2CwMenuItem"><span class="Identifier">isEnabled</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMenuItem"><span class="Identifier">wMenuItem</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">bool</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">wNilAccess</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Determines whether a menu item is enabled.
</dd>
<a id="check,wMenuItem"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#check%2CwMenuItem"><span class="Identifier">check</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMenuItem"><span class="Identifier">wMenuItem</span></a><span class="Other">;</span> <span class="Identifier">flag</span> <span class="Other">=</span> <span class="Identifier">true</span><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">wNilAccess</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Checks or unchecks the menu item.
</dd>
<a id="isChecked,wMenuItem"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#isChecked%2CwMenuItem"><span class="Identifier">isChecked</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMenuItem"><span class="Identifier">wMenuItem</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">bool</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">wNilAccess</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Determines whether a menu item is checked.
</dd>
<a id="toggle,wMenuItem"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#toggle%2CwMenuItem"><span class="Identifier">toggle</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMenuItem"><span class="Identifier">wMenuItem</span></a><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">wNilAccess</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Toggle the menu item.
</dd>
<a id="detach,wMenuItem"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#detach%2CwMenuItem"><span class="Identifier">detach</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMenuItem"><span class="Identifier">wMenuItem</span></a><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">wNilAccess</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Detach a menu item from all menu.
</dd>
<a id="init,wMenuItem,wCommandID,string,string,wBitmap,wMenu"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#init%2CwMenuItem%2CwCommandID%2Cstring%2Cstring%2CwBitmap%2CwMenu"><span class="Identifier">init</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMenuItem"><span class="Identifier">wMenuItem</span></a><span class="Other">;</span> <span class="Identifier">id</span><span class="Other">:</span> <a href="wTypes.html#wCommandID"><span class="Identifier">wCommandID</span></a> <span class="Other">=</span> <span class="Identifier">wIdAny</span><span class="Other">;</span> <span class="Identifier">text</span> <span class="Other">=</span> <span class="StringLit">""</span><span class="Other">;</span> <span class="Identifier">help</span> <span class="Other">=</span> <span class="StringLit">""</span><span class="Other">;</span>
<span class="Identifier">kind</span> <span class="Other">=</span> <span class="Identifier">wMenuItemNormal</span><span class="Other">;</span> <span class="Identifier">bitmap</span><span class="Other">:</span> <a href="wTypes.html#wBitmap"><span class="Identifier">wBitmap</span></a> <span class="Other">=</span> <span class="Keyword">nil</span><span class="Other">;</span> <span class="Identifier">submenu</span><span class="Other">:</span> <a href="wTypes.html#wMenu"><span class="Identifier">wMenu</span></a> <span class="Other">=</span> <span class="Keyword">nil</span><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma">
<span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">wError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Initializer.
</dd>
<a id="MenuItem,wCommandID,string,string,wBitmap,wMenu_2"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#MenuItem%2CwCommandID%2Cstring%2Cstring%2CwBitmap%2CwMenu_2"><span class="Identifier">MenuItem</span></a><span class="Other">(</span><span class="Identifier">id</span><span class="Other">:</span> <a href="wTypes.html#wCommandID"><span class="Identifier">wCommandID</span></a> <span class="Other">=</span> <span class="Identifier">wIdAny</span><span class="Other">;</span> <span class="Identifier">text</span> <span class="Other">=</span> <span class="StringLit">""</span><span class="Other">;</span> <span class="Identifier">help</span> <span class="Other">=</span> <span class="StringLit">""</span><span class="Other">;</span> <span class="Identifier">kind</span> <span class="Other">=</span> <span class="Identifier">wMenuItemNormal</span><span class="Other">;</span>
<span class="Identifier">bitmap</span><span class="Other">:</span> <a href="wTypes.html#wBitmap"><span class="Identifier">wBitmap</span></a> <span class="Other">=</span> <span class="Keyword">nil</span><span class="Other">;</span> <span class="Identifier">submenu</span><span class="Other">:</span> <a href="wTypes.html#wMenu"><span class="Identifier">wMenu</span></a> <span class="Other">=</span> <span class="Keyword">nil</span><span class="Other">)</span><span class="Other">:</span> <a href="wTypes.html#wMenuItem"><span class="Identifier">wMenuItem</span></a> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">inline</span><span class="Other">,</span>
<span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">wError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Constructor.
</dd>
</dl></div>
</div>
</div>
<div class="row">
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim.</small>
</div>
</div>
</div>
</div>
</body>
</html>