forked from khchen/wNim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwComboBox.html
552 lines (443 loc) · 60.7 KB
/
wComboBox.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
<?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>wComboBox</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">wComboBox</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="#wCbSimple"
title="wCbSimple = 0x00000001"><wbr />w<wbr />Cb<wbr />Simple<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wCbDropDown"
title="wCbDropDown = 0x00000002"><wbr />w<wbr />Cb<wbr />Drop<wbr />Down<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wCbReadOnly"
title="wCbReadOnly = 0x00000003"><wbr />w<wbr />Cb<wbr />Read<wbr />Only<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wCbSort"
title="wCbSort = 0x00000100"><wbr />w<wbr />Cb<wbr />Sort<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wCbNeededScroll"
title="wCbNeededScroll = 0x00200000"><wbr />w<wbr />Cb<wbr />Needed<wbr />Scroll<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wCbAlwaysScroll"
title="wCbAlwaysScroll = 2099200"><wbr />w<wbr />Cb<wbr />Always<wbr />Scroll<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wCbAutoHScroll"
title="wCbAutoHScroll = 0x00000040"><wbr />w<wbr />Cb<wbr />Auto<wbr />HScroll<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="#getCount%2CwComboBox"
title="getCount(self: wComboBox): int"><wbr />get<wbr />Count<span class="attachedType"></span></a></li>
<li><a class="reference" href="#len%2CwComboBox"
title="len(self: wComboBox): int"><wbr />len<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getText%2CwComboBox%2Cint"
title="getText(self: wComboBox; index: int): string"><wbr />get<wbr />Text<span class="attachedType"></span></a></li>
<li><a class="reference" href="#%5B%5D%2CwComboBox%2Cint"
title="`[]`(self: wComboBox; index: int): string"><wbr />`[]`<span class="attachedType"></span></a></li>
<li><a class="reference" href="#insert%2CwComboBox%2Cint%2Cstring"
title="insert(self: wComboBox; pos: int; text: string)"><wbr />insert<span class="attachedType"></span></a></li>
<li><a class="reference" href="#insert%2CwComboBox%2Cint%2CopenArray%5Bstring%5D"
title="insert(self: wComboBox; pos: int; list: openArray[string])"><wbr />insert<span class="attachedType"></span></a></li>
<li><a class="reference" href="#append%2CwComboBox%2Cstring"
title="append(self: wComboBox; text: string)"><wbr />append<span class="attachedType"></span></a></li>
<li><a class="reference" href="#append%2CwComboBox%2CopenArray%5Bstring%5D"
title="append(self: wComboBox; list: openArray[string])"><wbr />append<span class="attachedType"></span></a></li>
<li><a class="reference" href="#delete%2CwComboBox%2Cint"
title="delete(self: wComboBox; index: int)"><wbr />delete<span class="attachedType"></span></a></li>
<li><a class="reference" href="#delete%2CwComboBox%2Cstring"
title="delete(self: wComboBox; text: string)"><wbr />delete<span class="attachedType"></span></a></li>
<li><a class="reference" href="#clear%2CwComboBox"
title="clear(self: wComboBox)"><wbr />clear<span class="attachedType"></span></a></li>
<li><a class="reference" href="#findText%2CwComboBox%2Cstring"
title="findText(self: wComboBox; text: string): int"><wbr />find<wbr />Text<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getSelection%2CwComboBox"
title="getSelection(self: wComboBox): int"><wbr />get<wbr />Selection<span class="attachedType"></span></a></li>
<li><a class="reference" href="#select%2CwComboBox%2Cint"
title="select(self: wComboBox; index: int)"><wbr />select<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setSelection%2CwComboBox%2Cint"
title="setSelection(self: wComboBox; index: int)"><wbr />set<wbr />Selection<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setText%2CwComboBox%2Cint%2Cstring"
title="setText(self: wComboBox; index: int; text: string)"><wbr />set<wbr />Text<span class="attachedType"></span></a></li>
<li><a class="reference" href="#changeValue%2CwComboBox%2Cstring"
title="changeValue(self: wComboBox; text: string)"><wbr />change<wbr />Value<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setValue%2CwComboBox%2Cstring"
title="setValue(self: wComboBox; text: string)"><wbr />set<wbr />Value<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getValue%2CwComboBox"
title="getValue(self: wComboBox): string"><wbr />get<wbr />Value<span class="attachedType"></span></a></li>
<li><a class="reference" href="#isListEmpty%2CwComboBox"
title="isListEmpty(self: wComboBox): bool"><wbr />is<wbr />List<wbr />Empty<span class="attachedType"></span></a></li>
<li><a class="reference" href="#isTextEmpty%2CwComboBox"
title="isTextEmpty(self: wComboBox): bool"><wbr />is<wbr />Text<wbr />Empty<span class="attachedType"></span></a></li>
<li><a class="reference" href="#isPopup%2CwComboBox"
title="isPopup(self: wComboBox): bool"><wbr />is<wbr />Popup<span class="attachedType"></span></a></li>
<li><a class="reference" href="#popup%2CwComboBox"
title="popup(self: wComboBox)"><wbr />popup<span class="attachedType"></span></a></li>
<li><a class="reference" href="#dismiss%2CwComboBox"
title="dismiss(self: wComboBox)"><wbr />dismiss<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getEditControl%2CwComboBox"
title="getEditControl(self: wComboBox): wTextCtrl"><wbr />get<wbr />Edit<wbr />Control<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getTextCtrl%2CwComboBox"
title="getTextCtrl(self: wComboBox): wTextCtrl"><wbr />get<wbr />Text<wbr />Ctrl<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getListControl%2CwComboBox"
title="getListControl(self: wComboBox): wListBox"><wbr />get<wbr />List<wbr />Control<span class="attachedType"></span></a></li>
<li><a class="reference" href="#init%2CwComboBox%2CwWindow%2Cstring%2CopenArray%5Bstring%5D%2CwStyle"
title="init(self: wComboBox; parent: wWindow; id = wDefaultID; value: string = "";
pos = wDefaultPoint; size = wDefaultSize; choices: openArray[string] = [];
style: wStyle = wCbDropDown)"><wbr />init<span class="attachedType"></span></a></li>
<li><a class="reference" href="#ComboBox%2CwWindow%2Cstring%2CopenArray%5Bstring%5D%2CwStyle"
title="ComboBox(parent: wWindow; id = wDefaultID; value: string = ""; pos = wDefaultPoint;
size = wDefaultSize; choices: openArray[string] = [];
style: wStyle = wCbDropDown): wComboBox"><wbr />Combo<wbr />Box<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="#getDefaultSize.e%2CwComboBox"
title="getDefaultSize(self: wComboBox): wSize"><wbr />get<wbr />Default<wbr />Size<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getBestSize.e%2CwComboBox"
title="getBestSize(self: wComboBox): wSize"><wbr />get<wbr />Best<wbr />Size<span class="attachedType"></span></a></li>
<li><a class="reference" href="#release.e%2CwComboBox"
title="release(self: wComboBox)"><wbr />release<span class="attachedType"></span></a></li>
</ul>
</li>
<li>
<a class="reference reference-toplevel" href="#15" id="65">Iterators</a>
<ul class="simple simple-toc-section">
<li><a class="reference" href="#items.i%2CwComboBox"
title="items(self: wComboBox): string"><wbr />items<span class="attachedType"></span></a></li>
<li><a class="reference" href="#pairs.i%2CwComboBox"
title="pairs(self: wComboBox): (int, string)"><wbr />pairs<span class="attachedType"></span></a></li>
</ul>
</li>
</ul>
</div>
<div class="nine columns" id="content">
<div id="tocRoot"></div>
<p class="module-desc"><p>A combobox is like a combination of an edit control and a listbox.</p>
<p>Notice: a combobox may recieve events propagated from its child text control. (wEvent_Text, wEvent_TextUpdate, wEvent_TextMaxlen etc.) In these case, event.window should be the child text control, not combobox itself.</p>
<table class="docinfo" frame="void" rules="none"><col class="docinfo-name" /><col class="docinfo-content" /><tbody valign="top"><tr><th class="docinfo-name">Appearance:</th><td><img src="images/wComboBox.png"/></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">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>wCbSimple</td><td>Creates a combobox with a permanently displayed list.</td></tr>
<tr><td>wCbDropDown</td><td>Creates a combobox with a drop-down list.</td></tr>
<tr><td>wCbReadOnly</td><td>Allows the user to choose from the list but doesn't allow to enter a value.</td></tr>
<tr><td>wCbSort</td><td>Sorts the entries in the list alphabetically.</td></tr>
<tr><td>wCbNeededScroll</td><td>Only create a vertical scrollbar if needed.</td></tr>
<tr><td>wCbAlwaysScroll</td><td>Always show a vertical scrollbar.</td></tr>
<tr><td>wCbAutoHScroll</td><td>Automatically scrolls the text in an edit control to the right when the user types a character at the end of the line.</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_ComboBox</td><td>When an item on the list is selected, calling getValue() returns the new value of selection.</td></tr>
<tr><td>wEvent_ComboBoxCloseUp</td><td>When the listbox of the combobox disappears.</td></tr>
<tr><td>wEvent_ComboBoxDropDown</td><td>When the listbox part of the combobox is shown.</td></tr>
<tr><td>wEvent_Text</td><td>When the text changes.</td></tr>
<tr><td>wEvent_TextUpdate</td><td>When the control is about to redraw itself.</td></tr>
<tr><td>wEvent_TextMaxlen</td><td>When the user tries to enter more text into the control than the limit.</td></tr>
<tr><td>wEvent_TextEnter</td><td>When pressing Enter key.</td></tr>
<tr><td>wEvent_CommandSetFocus</td><td>When the control receives the keyboard focus.</td></tr>
<tr><td>wEvent_CommandKillFocus</td><td>When the control loses the keyboard focus.</td></tr>
<tr><td>wEvent_CommandLeftDoubleClick</td><td>Double-clicked the left mouse button within the control.</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="wCbSimple"></a>
<dt><pre><a href="wComboBox.html#wCbSimple"><span class="Identifier">wCbSimple</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000001</span></pre></dt>
<a id="wCbDropDown"></a>
<dt><pre><a href="wComboBox.html#wCbDropDown"><span class="Identifier">wCbDropDown</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000002</span></pre></dt>
<a id="wCbReadOnly"></a>
<dt><pre><a href="wComboBox.html#wCbReadOnly"><span class="Identifier">wCbReadOnly</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000003</span></pre></dt>
<a id="wCbSort"></a>
<dt><pre><a href="wComboBox.html#wCbSort"><span class="Identifier">wCbSort</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000100</span></pre></dt>
<a id="wCbNeededScroll"></a>
<dt><pre><a href="wComboBox.html#wCbNeededScroll"><span class="Identifier">wCbNeededScroll</span></a> <span class="Other">=</span> <span class="DecNumber">0x00200000</span></pre></dt>
<a id="wCbAlwaysScroll"></a>
<dt><pre><a href="wComboBox.html#wCbAlwaysScroll"><span class="Identifier">wCbAlwaysScroll</span></a> <span class="Other">=</span> <span class="DecNumber">2099200</span></pre></dt>
<a id="wCbAutoHScroll"></a>
<dt><pre><a href="wComboBox.html#wCbAutoHScroll"><span class="Identifier">wCbAutoHScroll</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000040</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="getCount,wComboBox"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getCount%2CwComboBox"><span class="Identifier">getCount</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wComboBox"><span class="Identifier">wComboBox</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 items in the control.
</dd>
<a id="len,wComboBox"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#len%2CwComboBox"><span class="Identifier">len</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wComboBox"><span class="Identifier">wComboBox</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 items in the control.
</dd>
<a id="getText,wComboBox,int"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getText%2CwComboBox%2Cint"><span class="Identifier">getText</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wComboBox"><span class="Identifier">wComboBox</span></a><span class="Other">;</span> <span class="Identifier">index</span><span class="Other">:</span> <span class="Identifier">int</span><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 text of the item with the given index.
</dd>
<a id="[],wComboBox,int"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#%5B%5D%2CwComboBox%2Cint"><span class="Identifier">`[]`</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wComboBox"><span class="Identifier">wComboBox</span></a><span class="Other">;</span> <span class="Identifier">index</span><span class="Other">:</span> <span class="Identifier">int</span><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="Identifier">IndexDefect</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 of the item with the given index. Raise error if index out of bounds.
</dd>
<a id="insert,wComboBox,int,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#insert%2CwComboBox%2Cint%2Cstring"><span class="Identifier">insert</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wComboBox"><span class="Identifier">wComboBox</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">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">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 given string before the specified position. Notice that the inserted item won't be sorted even the listbox has wCbSort style. If pos is -1, the string is added to the end of the list.
</dd>
<a id="insert,wComboBox,int,openArray[string]"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#insert%2CwComboBox%2Cint%2CopenArray%5Bstring%5D"><span class="Identifier">insert</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wComboBox"><span class="Identifier">wComboBox</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">list</span><span class="Other">:</span> <span class="Identifier">openArray</span><span class="Other">[</span><span class="Identifier">string</span><span class="Other">]</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 multiple strings in the same time.
</dd>
<a id="append,wComboBox,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#append%2CwComboBox%2Cstring"><span class="Identifier">append</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wComboBox"><span class="Identifier">wComboBox</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">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>
Appends the given string to the end. If the combobox has the wCbSort style, the string is inserted into the list and the list is sorted.
</dd>
<a id="append,wComboBox,openArray[string]"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#append%2CwComboBox%2CopenArray%5Bstring%5D"><span class="Identifier">append</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wComboBox"><span class="Identifier">wComboBox</span></a><span class="Other">;</span> <span class="Identifier">list</span><span class="Other">:</span> <span class="Identifier">openArray</span><span class="Other">[</span><span class="Identifier">string</span><span class="Other">]</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>
Appends multiple strings in the same time.
</dd>
<a id="delete,wComboBox,int"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#delete%2CwComboBox%2Cint"><span class="Identifier">delete</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wComboBox"><span class="Identifier">wComboBox</span></a><span class="Other">;</span> <span class="Identifier">index</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>
Delete a string in the combobox.
</dd>
<a id="delete,wComboBox,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#delete%2CwComboBox%2Cstring"><span class="Identifier">delete</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wComboBox"><span class="Identifier">wComboBox</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">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>
Search and delete the specified string in the combobox.
</dd>
<a id="clear,wComboBox"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#clear%2CwComboBox"><span class="Identifier">clear</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wComboBox"><span class="Identifier">wComboBox</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>
Remove all items from a combobox.
</dd>
<a id="findText,wComboBox,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#findText%2CwComboBox%2Cstring"><span class="Identifier">findText</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wComboBox"><span class="Identifier">wComboBox</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 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>
Finds an item whose label matches the given text.
</dd>
<a id="getSelection,wComboBox"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getSelection%2CwComboBox"><span class="Identifier">getSelection</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wComboBox"><span class="Identifier">wComboBox</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 index of the selected item or wNotFound(-1) if no item is selected.
</dd>
<a id="select,wComboBox,int"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#select%2CwComboBox%2Cint"><span class="Identifier">select</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wComboBox"><span class="Identifier">wComboBox</span></a><span class="Other">;</span> <span class="Identifier">index</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>
Sets the selection to the given index or removes the selection entirely if index == wNotFound(-1).
</dd>
<a id="setSelection,wComboBox,int"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setSelection%2CwComboBox%2Cint"><span class="Identifier">setSelection</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wComboBox"><span class="Identifier">wComboBox</span></a><span class="Other">;</span> <span class="Identifier">index</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>
The same as select().
</dd>
<a id="setText,wComboBox,int,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setText%2CwComboBox%2Cint%2Cstring"><span class="Identifier">setText</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wComboBox"><span class="Identifier">wComboBox</span></a><span class="Other">;</span> <span class="Identifier">index</span><span class="Other">:</span> <span class="Identifier">int</span><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="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>
Changes the text of the specified combobox item.
</dd>
<a id="changeValue,wComboBox,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#changeValue%2CwComboBox%2Cstring"><span class="Identifier">changeValue</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wComboBox"><span class="Identifier">wComboBox</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="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 text for the combobox text field. Notice that this proc won't generate wEvent_Text event.
</dd>
<a id="setValue,wComboBox,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setValue%2CwComboBox%2Cstring"><span class="Identifier">setValue</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wComboBox"><span class="Identifier">wComboBox</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">inline</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>
Sets the text for the combobox text field. Notice that this proc will generate wEvent_Text event.
</dd>
<a id="getValue,wComboBox"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getValue%2CwComboBox"><span class="Identifier">getValue</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wComboBox"><span class="Identifier">wComboBox</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>
Gets the text for the combobox text field.
</dd>
<a id="isListEmpty,wComboBox"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#isListEmpty%2CwComboBox"><span class="Identifier">isListEmpty</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wComboBox"><span class="Identifier">wComboBox</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>
Returns true if the list of combobox choices is empty.
</dd>
<a id="isTextEmpty,wComboBox"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#isTextEmpty%2CwComboBox"><span class="Identifier">isTextEmpty</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wComboBox"><span class="Identifier">wComboBox</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>
Returns true if the text of the combobox is empty.
</dd>
<a id="isPopup,wComboBox"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#isPopup%2CwComboBox"><span class="Identifier">isPopup</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wComboBox"><span class="Identifier">wComboBox</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>
Returns whether or not the listbox is popup.
</dd>
<a id="popup,wComboBox"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#popup%2CwComboBox"><span class="Identifier">popup</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wComboBox"><span class="Identifier">wComboBox</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>
Shows the listbox portion of the combobox.
</dd>
<a id="dismiss,wComboBox"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#dismiss%2CwComboBox"><span class="Identifier">dismiss</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wComboBox"><span class="Identifier">wComboBox</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>
Hides the listbox portion of the combobox.
</dd>
<a id="getEditControl,wComboBox"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getEditControl%2CwComboBox"><span class="Identifier">getEditControl</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wComboBox"><span class="Identifier">wComboBox</span></a><span class="Other">)</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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 text control part of this combobox, or nil if no such control.
</dd>
<a id="getTextCtrl,wComboBox"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getTextCtrl%2CwComboBox"><span class="Identifier">getTextCtrl</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wComboBox"><span class="Identifier">wComboBox</span></a><span class="Other">)</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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 text control part of this combobox, or nil if no such control. The same as getEditControl().
</dd>
<a id="getListControl,wComboBox"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getListControl%2CwComboBox"><span class="Identifier">getListControl</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wComboBox"><span class="Identifier">wComboBox</span></a><span class="Other">)</span><span class="Other">:</span> <a href="wTypes.html#wListBox"><span class="Identifier">wListBox</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 list control part of this combobox, or nil if no such control.
</dd>
<a id="init,wComboBox,wWindow,string,openArray[string],wStyle"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#init%2CwComboBox%2CwWindow%2Cstring%2CopenArray%5Bstring%5D%2CwStyle"><span class="Identifier">init</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wComboBox"><span class="Identifier">wComboBox</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">value</span><span class="Other">:</span> <span class="Identifier">string</span> <span class="Other">=</span> <span class="StringLit">""</span><span class="Other">;</span>
<span class="Identifier">pos</span> <span class="Other">=</span> <span class="Identifier">wDefaultPoint</span><span class="Other">;</span> <span class="Identifier">size</span> <span class="Other">=</span> <span class="Identifier">wDefaultSize</span><span class="Other">;</span> <span class="Identifier">choices</span><span class="Other">:</span> <span class="Identifier">openArray</span><span class="Other">[</span><span class="Identifier">string</span><span class="Other">]</span> <span class="Other">=</span> <span class="Other">[</span><span class="Other">]</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">wCbDropDown</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="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>
Initializes a combobox.
</dd>
<a id="ComboBox,wWindow,string,openArray[string],wStyle"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#ComboBox%2CwWindow%2Cstring%2CopenArray%5Bstring%5D%2CwStyle"><span class="Identifier">ComboBox</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">value</span><span class="Other">:</span> <span class="Identifier">string</span> <span class="Other">=</span> <span class="StringLit">""</span><span class="Other">;</span> <span class="Identifier">pos</span> <span class="Other">=</span> <span class="Identifier">wDefaultPoint</span><span class="Other">;</span>
<span class="Identifier">size</span> <span class="Other">=</span> <span class="Identifier">wDefaultSize</span><span class="Other">;</span> <span class="Identifier">choices</span><span class="Other">:</span> <span class="Identifier">openArray</span><span class="Other">[</span><span class="Identifier">string</span><span class="Other">]</span> <span class="Other">=</span> <span class="Other">[</span><span class="Other">]</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">wCbDropDown</span><span class="Other">)</span><span class="Other">:</span> <a href="wTypes.html#wComboBox"><span class="Identifier">wComboBox</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="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 class="section" id="14">
<h1><a class="toc-backref" href="#14">Methods</a></h1>
<dl class="item">
<a id="getDefaultSize.e,wComboBox"></a>
<dt><pre><span class="Keyword">method</span> <a href="#getDefaultSize.e%2CwComboBox"><span class="Identifier">getDefaultSize</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wComboBox"><span class="Identifier">wComboBox</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 control.
</dd>
<a id="getBestSize.e,wComboBox"></a>
<dt><pre><span class="Keyword">method</span> <a href="#getBestSize.e%2CwComboBox"><span class="Identifier">getBestSize</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wComboBox"><span class="Identifier">wComboBox</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 acceptable minimal size for the control.
</dd>
<a id="release.e,wComboBox"></a>
<dt><pre><span class="Keyword">method</span> <a href="#release.e%2CwComboBox"><span class="Identifier">release</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wComboBox"><span class="Identifier">wComboBox</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 class="section" id="15">
<h1><a class="toc-backref" href="#15">Iterators</a></h1>
<dl class="item">
<a id="items.i,wComboBox"></a>
<dt><pre><span class="Keyword">iterator</span> <a href="#items.i%2CwComboBox"><span class="Identifier">items</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wComboBox"><span class="Identifier">wComboBox</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>
Iterate each item in this control.
</dd>
<a id="pairs.i,wComboBox"></a>
<dt><pre><span class="Keyword">iterator</span> <a href="#pairs.i%2CwComboBox"><span class="Identifier">pairs</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wComboBox"><span class="Identifier">wComboBox</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">int</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>
Iterates over each item in this control. Yields <tt class="docutils literal"><span class="pre">(index, [index])</span></tt> pairs.
</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>