forked from khchen/wNim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwToolBar.html
603 lines (487 loc) · 72.1 KB
/
wToolBar.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
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
<?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>wToolBar</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">wToolBar</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="#10" id="60">Consts</a>
<ul class="simple simple-toc-section">
<li><a class="reference" href="#wTbFlat"
title="wTbFlat = 0x00000800"><wbr />w<wbr />Tb<wbr />Flat<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wTbNoDivider"
title="wTbNoDivider = 0x00000040"><wbr />w<wbr />Tb<wbr />No<wbr />Divider<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wTbhorizontal"
title="wTbhorizontal = 0"><wbr />w<wbr />Tbhorizontal<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wTbVertical"
title="wTbVertical = 0x00000080"><wbr />w<wbr />Tb<wbr />Vertical<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wTbBottom"
title="wTbBottom = 0x00000003"><wbr />w<wbr />Tb<wbr />Bottom<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wTbRight"
title="wTbRight = 131"><wbr />w<wbr />Tb<wbr />Right<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wTbNoAlign"
title="wTbNoAlign = 0x00000008"><wbr />w<wbr />Tb<wbr />No<wbr />Align<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wTbNoResize"
title="wTbNoResize = 0x00000004"><wbr />w<wbr />Tb<wbr />No<wbr />Resize<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wTbDefaultStyle"
title="wTbDefaultStyle = 2048"><wbr />w<wbr />Tb<wbr />Default<wbr />Style<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wTbNormal"
title="wTbNormal = 0x00000000"><wbr />w<wbr />Tb<wbr />Normal<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wTbSeparator"
title="wTbSeparator = 0x00000001"><wbr />w<wbr />Tb<wbr />Separator<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wTbCheck"
title="wTbCheck = 0x00000002"><wbr />w<wbr />Tb<wbr />Check<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wTbRadio"
title="wTbRadio = 6"><wbr />w<wbr />Tb<wbr />Radio<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wTbDropDown"
title="wTbDropDown = 0x00000080"><wbr />w<wbr />Tb<wbr />Drop<wbr />Down<span class="attachedType"></span></a></li>
</ul>
</li>
<li>
<a class="reference reference-toplevel" href="#12" id="62">Procs</a>
<ul class="simple simple-toc-section">
<li><a class="reference" href="#getToolsCount%2CwToolBar"
title="getToolsCount(self: wToolBar): int"><wbr />get<wbr />Tools<wbr />Count<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getToolPos%2CwToolBar%2CwCommandID"
title="getToolPos(self: wToolBar; toolId: wCommandID): int"><wbr />get<wbr />Tool<wbr />Pos<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getToolSize%2CwToolBar"
title="getToolSize(self: wToolBar): wSize"><wbr />get<wbr />Tool<wbr />Size<span class="attachedType"></span></a></li>
<li><a class="reference" href="#deleteToolByPos%2CwToolBar%2CNatural"
title="deleteToolByPos(self: wToolBar; pos: Natural)"><wbr />delete<wbr />Tool<wbr />By<wbr />Pos<span class="attachedType"></span></a></li>
<li><a class="reference" href="#deleteTool%2CwToolBar%2CwCommandID"
title="deleteTool(self: wToolBar; toolId: wCommandID)"><wbr />delete<wbr />Tool<span class="attachedType"></span></a></li>
<li><a class="reference" href="#clearTools%2CwToolBar"
title="clearTools(self: wToolBar)"><wbr />clear<wbr />Tools<span class="attachedType"></span></a></li>
<li><a class="reference" href="#insertTool%2CwToolBar%2Cint%2CwCommandID%2Cstring%2CwBitmap%2Cstring%2Cstring%2Cint"
title="insertTool(self: wToolBar; pos: int; toolId: wCommandID; label = "";
bitmap: wBitmap = nil; shortHelp = ""; longHelp = ""; kind: int = wTbNormal)"><wbr />insert<wbr />Tool<span class="attachedType"></span></a></li>
<li><a class="reference" href="#insertSeparator%2CwToolBar%2Cint"
title="insertSeparator(self: wToolBar; pos: int)"><wbr />insert<wbr />Separator<span class="attachedType"></span></a></li>
<li><a class="reference" href="#insertCheckTool%2CwToolBar%2Cint%2CwCommandID%2Cstring%2CwBitmap%2Cstring%2Cstring"
title="insertCheckTool(self: wToolBar; pos: int; toolId: wCommandID; label = "";
bitmap: wBitmap = nil; shortHelp = ""; longHelp = "")"><wbr />insert<wbr />Check<wbr />Tool<span class="attachedType"></span></a></li>
<li><a class="reference" href="#insertRadioTool%2CwToolBar%2Cint%2CwCommandID%2Cstring%2CwBitmap%2Cstring%2Cstring"
title="insertRadioTool(self: wToolBar; pos: int; toolId: wCommandID; label = "";
bitmap: wBitmap = nil; shortHelp = ""; longHelp = "")"><wbr />insert<wbr />Radio<wbr />Tool<span class="attachedType"></span></a></li>
<li><a class="reference" href="#insertDropDownTool%2CwToolBar%2Cint%2CwCommandID%2Cstring%2CwBitmap%2Cstring%2Cstring"
title="insertDropDownTool(self: wToolBar; pos: int; toolId: wCommandID; label = "";
bitmap: wBitmap = nil; shortHelp = ""; longHelp = "")"><wbr />insert<wbr />Drop<wbr />Down<wbr />Tool<span class="attachedType"></span></a></li>
<li><a class="reference" href="#addTool%2CwToolBar%2CwCommandID%2Cstring%2CwBitmap%2Cstring%2Cstring%2Cint"
title="addTool(self: wToolBar; toolId: wCommandID; label = ""; bitmap: wBitmap = nil;
shortHelp = ""; longHelp = ""; kind: int = wTbNormal)"><wbr />add<wbr />Tool<span class="attachedType"></span></a></li>
<li><a class="reference" href="#addSeparator%2CwToolBar"
title="addSeparator(self: wToolBar)"><wbr />add<wbr />Separator<span class="attachedType"></span></a></li>
<li><a class="reference" href="#addCheckTool%2CwToolBar%2CwCommandID%2Cstring%2CwBitmap%2Cstring%2Cstring"
title="addCheckTool(self: wToolBar; toolId: wCommandID; label = ""; bitmap: wBitmap = nil;
shortHelp = ""; longHelp = "")"><wbr />add<wbr />Check<wbr />Tool<span class="attachedType"></span></a></li>
<li><a class="reference" href="#addRadioTool%2CwToolBar%2CwCommandID%2Cstring%2CwBitmap%2Cstring%2Cstring"
title="addRadioTool(self: wToolBar; toolId: wCommandID; label = ""; bitmap: wBitmap = nil;
shortHelp = ""; longHelp = "")"><wbr />add<wbr />Radio<wbr />Tool<span class="attachedType"></span></a></li>
<li><a class="reference" href="#addDropDownTool%2CwToolBar%2CwCommandID%2Cstring%2CwBitmap%2Cstring%2Cstring"
title="addDropDownTool(self: wToolBar; toolId: wCommandID; label = ""; bitmap: wBitmap = nil;
shortHelp = ""; longHelp = "")"><wbr />add<wbr />Drop<wbr />Down<wbr />Tool<span class="attachedType"></span></a></li>
<li><a class="reference" href="#enableTool%2CwToolBar%2CwCommandID"
title="enableTool(self: wToolBar; toolId: wCommandID; enable = true)"><wbr />enable<wbr />Tool<span class="attachedType"></span></a></li>
<li><a class="reference" href="#disableTool%2CwToolBar%2CwCommandID"
title="disableTool(self: wToolBar; toolId: wCommandID)"><wbr />disable<wbr />Tool<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getToolEnabled%2CwToolBar%2CwCommandID"
title="getToolEnabled(self: wToolBar; toolId: wCommandID): bool"><wbr />get<wbr />Tool<wbr />Enabled<span class="attachedType"></span></a></li>
<li><a class="reference" href="#toggleTool%2CwToolBar%2CwCommandID"
title="toggleTool(self: wToolBar; toolId: wCommandID; toggle = true)"><wbr />toggle<wbr />Tool<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getToolState%2CwToolBar%2CwCommandID"
title="getToolState(self: wToolBar; toolId: wCommandID): bool"><wbr />get<wbr />Tool<wbr />State<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getToolShortHelp%2CwToolBar%2CwCommandID"
title="getToolShortHelp(self: wToolBar; toolId: wCommandID): string"><wbr />get<wbr />Tool<wbr />Short<wbr />Help<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setToolShortHelp%2CwToolBar%2CwCommandID%2Cstring"
title="setToolShortHelp(self: wToolBar; toolId: wCommandID; shortHelp = "")"><wbr />set<wbr />Tool<wbr />Short<wbr />Help<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getToolLongHelp%2CwToolBar%2CwCommandID"
title="getToolLongHelp(self: wToolBar; toolId: wCommandID): string"><wbr />get<wbr />Tool<wbr />Long<wbr />Help<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setToolLongHelp%2CwToolBar%2CwCommandID%2Cstring"
title="setToolLongHelp(self: wToolBar; toolId: wCommandID; longHelp = "")"><wbr />set<wbr />Tool<wbr />Long<wbr />Help<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getDropdownMenu%2CwToolBar%2CwCommandID"
title="getDropdownMenu(self: wToolBar; toolId: wCommandID): wMenu"><wbr />get<wbr />Dropdown<wbr />Menu<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setDropdownMenu%2CwToolBar%2CwCommandID%2CwMenu"
title="setDropdownMenu(self: wToolBar; toolId: wCommandID; menu: wMenu = nil)"><wbr />set<wbr />Dropdown<wbr />Menu<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getToolLabel%2CwToolBar%2CwCommandID"
title="getToolLabel(self: wToolBar; toolId: wCommandID): string"><wbr />get<wbr />Tool<wbr />Label<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setToolLabel%2CwToolBar%2CwCommandID%2Cstring"
title="setToolLabel(self: wToolBar; toolId: wCommandID; label: string)"><wbr />set<wbr />Tool<wbr />Label<span class="attachedType"></span></a></li>
<li><a class="reference" href="#init%2CwToolBar%2CwWindow%2CwStyle"
title="init(self: wToolBar; parent: wWindow; id = wDefaultID; style: wStyle = wTbDefaultStyle)"><wbr />init<span class="attachedType"></span></a></li>
<li><a class="reference" href="#ToolBar%2CwWindow%2CwStyle"
title="ToolBar(parent: wWindow; id = wDefaultID; style: wStyle = wTbDefaultStyle): wToolBar"><wbr />Tool<wbr />Bar<span class="attachedType"></span></a></li>
</ul>
</li>
<li>
<a class="reference reference-toplevel" href="#14" id="64">Methods</a>
<ul class="simple simple-toc-section">
<li><a class="reference" href="#getBestSize.e%2CwToolBar"
title="getBestSize(self: wToolBar): wSize"><wbr />get<wbr />Best<wbr />Size<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getDefaultSize.e%2CwToolBar"
title="getDefaultSize(self: wToolBar): wSize"><wbr />get<wbr />Default<wbr />Size<span class="attachedType"></span></a></li>
<li><a class="reference" href="#show.e%2CwToolBar"
title="show(self: wToolBar; flag = true)"><wbr />show<span class="attachedType"></span></a></li>
<li><a class="reference" href="#release.e%2CwToolBar"
title="release(self: wToolBar)"><wbr />release<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 toolbar is a bar of buttons and/or other controls usually placed below the menu bar in a wFrame.<table class="docinfo" frame="void" rules="none"><col class="docinfo-name" /><col class="docinfo-content" /><tbody valign="top"><tr><th class="docinfo-name">Superclass:</th><td><a class="reference external" href="wControl.html">wControl</a></td></tr>
</tbody></table><table class="docinfo" frame="void" rules="none"><col class="docinfo-name" /><col class="docinfo-content" /><tbody valign="top"><tr><th class="docinfo-name">Styles:</th><td><table border="1" class="docutils"><tr><th>Styles</th><th>Description</th></tr>
<tr><td>wTbFlat</td><td>Gives the toolbar a flat and transparent look.</td></tr>
<tr><td>wTbNoDivider</td><td>Specifies no divider (border) above the toolbar.</td></tr>
<tr><td>wTbHorizontal</td><td>Specifies horizontal layout (default).</td></tr>
<tr><td>wTbVertical</td><td>Specifies vertical layout.</td></tr>
<tr><td>wTbBottom</td><td>Align the toolbar at the bottom of parent window.</td></tr>
<tr><td>wTbRight</td><td>Align the toolbar at the right side of parent window.</td></tr>
<tr><td>wTbNoAlign</td><td>Specifies no alignment with the parent window.</td></tr>
<tr><td>wTbNoResize</td><td>Specifies no resize.</td></tr>
<tr><td>wTbDefaultStyle</td><td>Combination of wTbHorizontal and wTbFlat</td></tr>
</table></td></tr>
</tbody></table><table class="docinfo" frame="void" rules="none"><col class="docinfo-name" /><col class="docinfo-content" /><tbody valign="top"><tr><th class="docinfo-name">Events:</th><td><a class="reference external" href="wCommandEvent.html">wCommandEvent</a><table border="1" class="docutils"><tr><th>wCommandEvent</th><th>Description</th></tr>
<tr><td>wEvent_Tool</td><td>Click left mouse button on the tool bar. Same as wEvent_Menu.</td></tr>
<tr><td>wEvent_ToolRightClick</td><td>Click right mouse button on the tool bar.</td></tr>
<tr><td>wEvent_ToolDropDown</td><td>Drop down menu selected. If unhandled, displays the default dropdown menu.</td></tr>
<tr><td>wEvent_ToolEnter</td><td>The mouse cursor has moved into or moved off a tool.</td></tr>
</table></td></tr>
</tbody></table></p>
<div class="section" id="10">
<h1><a class="toc-backref" href="#10">Consts</a></h1>
<dl class="item">
<a id="wTbFlat"></a>
<dt><pre><a href="wToolBar.html#wTbFlat"><span class="Identifier">wTbFlat</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000800</span></pre></dt>
<a id="wTbNoDivider"></a>
<dt><pre><a href="wToolBar.html#wTbNoDivider"><span class="Identifier">wTbNoDivider</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000040</span></pre></dt>
<a id="wTbhorizontal"></a>
<dt><pre><a href="wToolBar.html#wTbhorizontal"><span class="Identifier">wTbhorizontal</span></a> <span class="Other">=</span> <span class="DecNumber">0</span></pre></dt>
<a id="wTbVertical"></a>
<dt><pre><a href="wToolBar.html#wTbVertical"><span class="Identifier">wTbVertical</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000080</span></pre></dt>
<a id="wTbBottom"></a>
<dt><pre><a href="wToolBar.html#wTbBottom"><span class="Identifier">wTbBottom</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000003</span></pre></dt>
<a id="wTbRight"></a>
<dt><pre><a href="wToolBar.html#wTbRight"><span class="Identifier">wTbRight</span></a> <span class="Other">=</span> <span class="DecNumber">131</span></pre></dt>
<a id="wTbNoAlign"></a>
<dt><pre><a href="wToolBar.html#wTbNoAlign"><span class="Identifier">wTbNoAlign</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000008</span></pre></dt>
<a id="wTbNoResize"></a>
<dt><pre><a href="wToolBar.html#wTbNoResize"><span class="Identifier">wTbNoResize</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000004</span></pre></dt>
<a id="wTbDefaultStyle"></a>
<dt><pre><a href="wToolBar.html#wTbDefaultStyle"><span class="Identifier">wTbDefaultStyle</span></a> <span class="Other">=</span> <span class="DecNumber">2048</span></pre></dt>
<a id="wTbNormal"></a>
<dt><pre><a href="wToolBar.html#wTbNormal"><span class="Identifier">wTbNormal</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000000</span></pre></dt>
<a id="wTbSeparator"></a>
<dt><pre><a href="wToolBar.html#wTbSeparator"><span class="Identifier">wTbSeparator</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000001</span></pre></dt>
<a id="wTbCheck"></a>
<dt><pre><a href="wToolBar.html#wTbCheck"><span class="Identifier">wTbCheck</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000002</span></pre></dt>
<a id="wTbRadio"></a>
<dt><pre><a href="wToolBar.html#wTbRadio"><span class="Identifier">wTbRadio</span></a> <span class="Other">=</span> <span class="DecNumber">6</span></pre></dt>
<a id="wTbDropDown"></a>
<dt><pre><a href="wToolBar.html#wTbDropDown"><span class="Identifier">wTbDropDown</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000080</span></pre></dt>
</dl></div>
<div class="section" id="12">
<h1><a class="toc-backref" href="#12">Procs</a></h1>
<dl class="item">
<a id="getToolsCount,wToolBar"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getToolsCount%2CwToolBar"><span class="Identifier">getToolsCount</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</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 number of tools in the toolbar.
</dd>
<a id="getToolPos,wToolBar,wCommandID"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getToolPos%2CwToolBar%2CwCommandID"><span class="Identifier">getToolPos</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</span></a><span class="Other">;</span> <span class="Identifier">toolId</span><span class="Other">:</span> <a href="wTypes.html#wCommandID"><span class="Identifier">wCommandID</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">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 tool position in the toolbar, or wNotFound if the tool is not found.
</dd>
<a id="getToolSize,wToolBar"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getToolSize%2CwToolBar"><span class="Identifier">getToolSize</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</span></a><span class="Other">)</span><span class="Other">:</span> <a href="wTypes.html#wSize"><span class="Identifier">wSize</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">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 size of a whole button.
</dd>
<a id="deleteToolByPos,wToolBar,Natural"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#deleteToolByPos%2CwToolBar%2CNatural"><span class="Identifier">deleteToolByPos</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</span></a><span class="Other">;</span> <span class="Identifier">pos</span><span class="Other">:</span> <span class="Identifier">Natural</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>
This function behaves like deleteTool but it deletes the tool at the specified position.
</dd>
<a id="deleteTool,wToolBar,wCommandID"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#deleteTool%2CwToolBar%2CwCommandID"><span class="Identifier">deleteTool</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</span></a><span class="Other">;</span> <span class="Identifier">toolId</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="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>
Removes the specified tool from the toolbar and deletes it.
</dd>
<a id="clearTools,wToolBar"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#clearTools%2CwToolBar"><span class="Identifier">clearTools</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</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="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>
Deletes all the tools in the toolbar.
</dd>
<a id="insertTool,wToolBar,int,wCommandID,string,wBitmap,string,string,int"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#insertTool%2CwToolBar%2Cint%2CwCommandID%2Cstring%2CwBitmap%2Cstring%2Cstring%2Cint"><span class="Identifier">insertTool</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</span></a><span class="Other">;</span> <span class="Identifier">pos</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">;</span> <span class="Identifier">toolId</span><span class="Other">:</span> <a href="wTypes.html#wCommandID"><span class="Identifier">wCommandID</span></a><span class="Other">;</span> <span class="Identifier">label</span> <span class="Other">=</span> <span class="StringLit">""</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">shortHelp</span> <span class="Other">=</span> <span class="StringLit">""</span><span class="Other">;</span> <span class="Identifier">longHelp</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">int</span> <span class="Other">=</span> <span class="Identifier">wTbNormal</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>
Inserts the tool with the specified attributes into the toolbar at the given position.
</dd>
<a id="insertSeparator,wToolBar,int"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#insertSeparator%2CwToolBar%2Cint"><span class="Identifier">insertSeparator</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</span></a><span class="Other">;</span> <span class="Identifier">pos</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">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>
Inserts the separator into the toolbar at the given position.
</dd>
<a id="insertCheckTool,wToolBar,int,wCommandID,string,wBitmap,string,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#insertCheckTool%2CwToolBar%2Cint%2CwCommandID%2Cstring%2CwBitmap%2Cstring%2Cstring"><span class="Identifier">insertCheckTool</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</span></a><span class="Other">;</span> <span class="Identifier">pos</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">;</span> <span class="Identifier">toolId</span><span class="Other">:</span> <a href="wTypes.html#wCommandID"><span class="Identifier">wCommandID</span></a><span class="Other">;</span> <span class="Identifier">label</span> <span class="Other">=</span> <span class="StringLit">""</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">shortHelp</span> <span class="Other">=</span> <span class="StringLit">""</span><span class="Other">;</span> <span class="Identifier">longHelp</span> <span class="Other">=</span> <span class="StringLit">""</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>
Insert the check (or toggle) tool into the toolbar at the given position.
</dd>
<a id="insertRadioTool,wToolBar,int,wCommandID,string,wBitmap,string,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#insertRadioTool%2CwToolBar%2Cint%2CwCommandID%2Cstring%2CwBitmap%2Cstring%2Cstring"><span class="Identifier">insertRadioTool</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</span></a><span class="Other">;</span> <span class="Identifier">pos</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">;</span> <span class="Identifier">toolId</span><span class="Other">:</span> <a href="wTypes.html#wCommandID"><span class="Identifier">wCommandID</span></a><span class="Other">;</span> <span class="Identifier">label</span> <span class="Other">=</span> <span class="StringLit">""</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">shortHelp</span> <span class="Other">=</span> <span class="StringLit">""</span><span class="Other">;</span> <span class="Identifier">longHelp</span> <span class="Other">=</span> <span class="StringLit">""</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>
Insert the radio tool into the toolbar at the given position.
</dd>
<a id="insertDropDownTool,wToolBar,int,wCommandID,string,wBitmap,string,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#insertDropDownTool%2CwToolBar%2Cint%2CwCommandID%2Cstring%2CwBitmap%2Cstring%2Cstring"><span class="Identifier">insertDropDownTool</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</span></a><span class="Other">;</span> <span class="Identifier">pos</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">;</span> <span class="Identifier">toolId</span><span class="Other">:</span> <a href="wTypes.html#wCommandID"><span class="Identifier">wCommandID</span></a><span class="Other">;</span> <span class="Identifier">label</span> <span class="Other">=</span> <span class="StringLit">""</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">shortHelp</span> <span class="Other">=</span> <span class="StringLit">""</span><span class="Other">;</span> <span class="Identifier">longHelp</span> <span class="Other">=</span> <span class="StringLit">""</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>
Insert the drowdown tool into the toolbar at the given position.
</dd>
<a id="addTool,wToolBar,wCommandID,string,wBitmap,string,string,int"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#addTool%2CwToolBar%2CwCommandID%2Cstring%2CwBitmap%2Cstring%2Cstring%2Cint"><span class="Identifier">addTool</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</span></a><span class="Other">;</span> <span class="Identifier">toolId</span><span class="Other">:</span> <a href="wTypes.html#wCommandID"><span class="Identifier">wCommandID</span></a><span class="Other">;</span> <span class="Identifier">label</span> <span class="Other">=</span> <span class="StringLit">""</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">shortHelp</span> <span class="Other">=</span> <span class="StringLit">""</span><span class="Other">;</span> <span class="Identifier">longHelp</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">int</span> <span class="Other">=</span> <span class="Identifier">wTbNormal</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>
Adds a tool to the toolbar.
</dd>
<a id="addSeparator,wToolBar"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#addSeparator%2CwToolBar"><span class="Identifier">addSeparator</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</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="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>
Adds a separator for spacing groups of tools.
</dd>
<a id="addCheckTool,wToolBar,wCommandID,string,wBitmap,string,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#addCheckTool%2CwToolBar%2CwCommandID%2Cstring%2CwBitmap%2Cstring%2Cstring"><span class="Identifier">addCheckTool</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</span></a><span class="Other">;</span> <span class="Identifier">toolId</span><span class="Other">:</span> <a href="wTypes.html#wCommandID"><span class="Identifier">wCommandID</span></a><span class="Other">;</span> <span class="Identifier">label</span> <span class="Other">=</span> <span class="StringLit">""</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">shortHelp</span> <span class="Other">=</span> <span class="StringLit">""</span><span class="Other">;</span> <span class="Identifier">longHelp</span> <span class="Other">=</span> <span class="StringLit">""</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>
Adds a new check (or toggle) tool to the toolbar.
</dd>
<a id="addRadioTool,wToolBar,wCommandID,string,wBitmap,string,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#addRadioTool%2CwToolBar%2CwCommandID%2Cstring%2CwBitmap%2Cstring%2Cstring"><span class="Identifier">addRadioTool</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</span></a><span class="Other">;</span> <span class="Identifier">toolId</span><span class="Other">:</span> <a href="wTypes.html#wCommandID"><span class="Identifier">wCommandID</span></a><span class="Other">;</span> <span class="Identifier">label</span> <span class="Other">=</span> <span class="StringLit">""</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">shortHelp</span> <span class="Other">=</span> <span class="StringLit">""</span><span class="Other">;</span> <span class="Identifier">longHelp</span> <span class="Other">=</span> <span class="StringLit">""</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>
Adds a new radio tool to the toolbar.
</dd>
<a id="addDropDownTool,wToolBar,wCommandID,string,wBitmap,string,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#addDropDownTool%2CwToolBar%2CwCommandID%2Cstring%2CwBitmap%2Cstring%2Cstring"><span class="Identifier">addDropDownTool</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</span></a><span class="Other">;</span> <span class="Identifier">toolId</span><span class="Other">:</span> <a href="wTypes.html#wCommandID"><span class="Identifier">wCommandID</span></a><span class="Other">;</span> <span class="Identifier">label</span> <span class="Other">=</span> <span class="StringLit">""</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">shortHelp</span> <span class="Other">=</span> <span class="StringLit">""</span><span class="Other">;</span> <span class="Identifier">longHelp</span> <span class="Other">=</span> <span class="StringLit">""</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>
Adds a new drowdown tool to the toolbar.
</dd>
<a id="enableTool,wToolBar,wCommandID"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#enableTool%2CwToolBar%2CwCommandID"><span class="Identifier">enableTool</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</span></a><span class="Other">;</span> <span class="Identifier">toolId</span><span class="Other">:</span> <a href="wTypes.html#wCommandID"><span class="Identifier">wCommandID</span></a><span class="Other">;</span> <span class="Identifier">enable</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">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>
Enables or disables the tool.
</dd>
<a id="disableTool,wToolBar,wCommandID"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#disableTool%2CwToolBar%2CwCommandID"><span class="Identifier">disableTool</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</span></a><span class="Other">;</span> <span class="Identifier">toolId</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">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>
Disables the tool.
</dd>
<a id="getToolEnabled,wToolBar,wCommandID"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getToolEnabled%2CwToolBar%2CwCommandID"><span class="Identifier">getToolEnabled</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</span></a><span class="Other">;</span> <span class="Identifier">toolId</span><span class="Other">:</span> <a href="wTypes.html#wCommandID"><span class="Identifier">wCommandID</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">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>
Called to determine whether a tool is enabled (responds to user input).
</dd>
<a id="toggleTool,wToolBar,wCommandID"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#toggleTool%2CwToolBar%2CwCommandID"><span class="Identifier">toggleTool</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</span></a><span class="Other">;</span> <span class="Identifier">toolId</span><span class="Other">:</span> <a href="wTypes.html#wCommandID"><span class="Identifier">wCommandID</span></a><span class="Other">;</span> <span class="Identifier">toggle</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="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>
Toggles a tool on or off.
</dd>
<a id="getToolState,wToolBar,wCommandID"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getToolState%2CwToolBar%2CwCommandID"><span class="Identifier">getToolState</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</span></a><span class="Other">;</span> <span class="Identifier">toolId</span><span class="Other">:</span> <a href="wTypes.html#wCommandID"><span class="Identifier">wCommandID</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">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>
Gets the on/off state of a toggle tool.
</dd>
<a id="getToolShortHelp,wToolBar,wCommandID"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getToolShortHelp%2CwToolBar%2CwCommandID"><span class="Identifier">getToolShortHelp</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</span></a><span class="Other">;</span> <span class="Identifier">toolId</span><span class="Other">:</span> <a href="wTypes.html#wCommandID"><span class="Identifier">wCommandID</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 short help for the given tool.
</dd>
<a id="setToolShortHelp,wToolBar,wCommandID,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setToolShortHelp%2CwToolBar%2CwCommandID%2Cstring"><span class="Identifier">setToolShortHelp</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</span></a><span class="Other">;</span> <span class="Identifier">toolId</span><span class="Other">:</span> <a href="wTypes.html#wCommandID"><span class="Identifier">wCommandID</span></a><span class="Other">;</span> <span class="Identifier">shortHelp</span> <span class="Other">=</span> <span class="StringLit">""</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 short help for the given tool.
</dd>
<a id="getToolLongHelp,wToolBar,wCommandID"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getToolLongHelp%2CwToolBar%2CwCommandID"><span class="Identifier">getToolLongHelp</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</span></a><span class="Other">;</span> <span class="Identifier">toolId</span><span class="Other">:</span> <a href="wTypes.html#wCommandID"><span class="Identifier">wCommandID</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 long help for the given tool.
</dd>
<a id="setToolLongHelp,wToolBar,wCommandID,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setToolLongHelp%2CwToolBar%2CwCommandID%2Cstring"><span class="Identifier">setToolLongHelp</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</span></a><span class="Other">;</span> <span class="Identifier">toolId</span><span class="Other">:</span> <a href="wTypes.html#wCommandID"><span class="Identifier">wCommandID</span></a><span class="Other">;</span> <span class="Identifier">longHelp</span> <span class="Other">=</span> <span class="StringLit">""</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 long help for the given tool.
</dd>
<a id="getDropdownMenu,wToolBar,wCommandID"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getDropdownMenu%2CwToolBar%2CwCommandID"><span class="Identifier">getDropdownMenu</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</span></a><span class="Other">;</span> <span class="Identifier">toolId</span><span class="Other">:</span> <a href="wTypes.html#wCommandID"><span class="Identifier">wCommandID</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 dropdown menu for the given tool.
</dd>
<a id="setDropdownMenu,wToolBar,wCommandID,wMenu"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setDropdownMenu%2CwToolBar%2CwCommandID%2CwMenu"><span class="Identifier">setDropdownMenu</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</span></a><span class="Other">;</span> <span class="Identifier">toolId</span><span class="Other">:</span> <a href="wTypes.html#wCommandID"><span class="Identifier">wCommandID</span></a><span class="Other">;</span> <span class="Identifier">menu</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">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 dropdown menu for the tool given by its id.
</dd>
<a id="getToolLabel,wToolBar,wCommandID"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getToolLabel%2CwToolBar%2CwCommandID"><span class="Identifier">getToolLabel</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</span></a><span class="Other">;</span> <span class="Identifier">toolId</span><span class="Other">:</span> <a href="wTypes.html#wCommandID"><span class="Identifier">wCommandID</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">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 label for the given tool.
</dd>
<a id="setToolLabel,wToolBar,wCommandID,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setToolLabel%2CwToolBar%2CwCommandID%2Cstring"><span class="Identifier">setToolLabel</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</span></a><span class="Other">;</span> <span class="Identifier">toolId</span><span class="Other">:</span> <a href="wTypes.html#wCommandID"><span class="Identifier">wCommandID</span></a><span class="Other">;</span> <span class="Identifier">label</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="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 label for the tool given by its id.
</dd>
<a id="init,wToolBar,wWindow,wStyle"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#init%2CwToolBar%2CwWindow%2CwStyle"><span class="Identifier">init</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</span></a><span class="Other">;</span> <span class="Identifier">parent</span><span class="Other">:</span> <a href="wTypes.html#wWindow"><span class="Identifier">wWindow</span></a><span class="Other">;</span> <span class="Identifier">id</span> <span class="Other">=</span> <span class="Identifier">wDefaultID</span><span class="Other">;</span>
<span class="Identifier">style</span><span class="Other">:</span> <a href="wTypes.html#wStyle"><span class="Identifier">wStyle</span></a> <span class="Other">=</span> <span class="Identifier">wTbDefaultStyle</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">wNilAccess</span><span class="Other">,</span> <span class="Identifier">wWindowError</span><span class="Other">,</span>
<span class="Identifier">wCursorError</span><span class="Other">,</span> <span class="Identifier">wBrushError</span><span class="Other">,</span> <span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">IndexDefect</span><span class="Other">,</span> <span class="Identifier">wFontError</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>
Initializes a toolbar.
</dd>
<a id="ToolBar,wWindow,wStyle"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#ToolBar%2CwWindow%2CwStyle"><span class="Identifier">ToolBar</span></a><span class="Other">(</span><span class="Identifier">parent</span><span class="Other">:</span> <a href="wTypes.html#wWindow"><span class="Identifier">wWindow</span></a><span class="Other">;</span> <span class="Identifier">id</span> <span class="Other">=</span> <span class="Identifier">wDefaultID</span><span class="Other">;</span> <span class="Identifier">style</span><span class="Other">:</span> <a href="wTypes.html#wStyle"><span class="Identifier">wStyle</span></a> <span class="Other">=</span> <span class="Identifier">wTbDefaultStyle</span><span class="Other">)</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</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">discardable</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">wNilAccess</span><span class="Other">,</span> <span class="Identifier">wWindowError</span><span class="Other">,</span> <span class="Identifier">wCursorError</span><span class="Other">,</span> <span class="Identifier">wBrushError</span><span class="Other">,</span>
<span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">IndexDefect</span><span class="Other">,</span> <span class="Identifier">wFontError</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 class="section" id="14">
<h1><a class="toc-backref" href="#14">Methods</a></h1>
<dl class="item">
<a id="getBestSize.e,wToolBar"></a>
<dt><pre><span class="Keyword">method</span> <a href="#getBestSize.e%2CwToolBar"><span class="Identifier">getBestSize</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</span></a><span class="Other">)</span><span class="Other">:</span> <a href="wTypes.html#wSize"><span class="Identifier">wSize</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">locks</span><span class="Other">:</span> <span class="StringLit">"unknown"</span><span class="Other">,</span>
<span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</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 best size for the tool bar.
</dd>
<a id="getDefaultSize.e,wToolBar"></a>
<dt><pre><span class="Keyword">method</span> <a href="#getDefaultSize.e%2CwToolBar"><span class="Identifier">getDefaultSize</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</span></a><span class="Other">)</span><span class="Other">:</span> <a href="wTypes.html#wSize"><span class="Identifier">wSize</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">locks</span><span class="Other">:</span> <span class="StringLit">"unknown"</span><span class="Other">,</span>
<span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</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 default size for the tool bar.
</dd>
<a id="show.e,wToolBar"></a>
<dt><pre><span class="Keyword">method</span> <a href="#show.e%2CwToolBar"><span class="Identifier">show</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</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">inline</span><span class="Other">,</span> <span class="Identifier">locks</span><span class="Other">:</span> <span class="StringLit">"unknown"</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</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>
Shows or hides the toolbar.
</dd>
<a id="release.e,wToolBar"></a>
<dt><pre><span class="Keyword">method</span> <a href="#release.e%2CwToolBar"><span class="Identifier">release</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wToolBar"><span class="Identifier">wToolBar</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">locks</span><span class="Other">:</span> <span class="StringLit">"unknown"</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="Identifier">RootEffect</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Release all the resources during destroying. Used internally.
</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>