forked from khchen/wNim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wTextCtrl.html
944 lines (755 loc) · 112 KB
/
wTextCtrl.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
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
<?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>wTextCtrl</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">wTextCtrl</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="#7" id="57">Types</a>
<ul class="simple simple-toc-section">
<li><a class="reference" href="#wAutoCompleteProvider"
title="wAutoCompleteProvider = proc (self: wTextCtrl): seq[string]"><wbr />w<wbr />Auto<wbr />Complete<wbr />Provider<span class="attachedType"></span></a></li>
</ul>
</li>
<li>
<a class="reference reference-toplevel" href="#10" id="60">Consts</a>
<ul class="simple simple-toc-section">
<li><a class="reference" href="#wTeMultiLine"
title="wTeMultiLine = 0x00000004"><wbr />w<wbr />Te<wbr />Multi<wbr />Line<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wTeReadOnly"
title="wTeReadOnly = 0x00000800"><wbr />w<wbr />Te<wbr />Read<wbr />Only<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wTePassword"
title="wTePassword = 0x00000020"><wbr />w<wbr />Te<wbr />Password<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wTeNoHideSel"
title="wTeNoHideSel = 0x00000100"><wbr />w<wbr />Te<wbr />No<wbr />Hide<wbr />Sel<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wTeLeft"
title="wTeLeft = 0x00000000"><wbr />w<wbr />Te<wbr />Left<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wTeCentre"
title="wTeCentre = 0x00000001"><wbr />w<wbr />Te<wbr />Centre<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wTeCenter"
title="wTeCenter = 0x00000001"><wbr />w<wbr />Te<wbr />Center<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wTeRight"
title="wTeRight = 0x00000002"><wbr />w<wbr />Te<wbr />Right<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wTeDontWrap"
title="wTeDontWrap = 1048704"><wbr />w<wbr />Te<wbr />Dont<wbr />Wrap<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wTeRich"
title="wTeRich = 1152921504606846976'i64"><wbr />w<wbr />Te<wbr />Rich<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wTeProcessTab"
title="wTeProcessTab = 0x00004000"><wbr />w<wbr />Te<wbr />Process<wbr />Tab<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wAcFile"
title="wAcFile = 1"><wbr />w<wbr />Ac<wbr />File<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wAcDir"
title="wAcDir = 2"><wbr />w<wbr />Ac<wbr />Dir<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wAcMru"
title="wAcMru = 4"><wbr />w<wbr />Ac<wbr />Mru<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wAcUrl"
title="wAcUrl = 8"><wbr />w<wbr />Ac<wbr />Url<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="#isMultiLine%2CwTextCtrl"
title="isMultiLine(self: wTextCtrl): bool"><wbr />is<wbr />Multi<wbr />Line<span class="attachedType"></span></a></li>
<li><a class="reference" href="#isEditable%2CwTextCtrl"
title="isEditable(self: wTextCtrl): bool"><wbr />is<wbr />Editable<span class="attachedType"></span></a></li>
<li><a class="reference" href="#isSingleLine%2CwTextCtrl"
title="isSingleLine(self: wTextCtrl): bool"><wbr />is<wbr />Single<wbr />Line<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setModified%2CwTextCtrl%2Cbool"
title="setModified(self: wTextCtrl; modified: bool)"><wbr />set<wbr />Modified<span class="attachedType"></span></a></li>
<li><a class="reference" href="#discardEdits%2CwTextCtrl"
title="discardEdits(self: wTextCtrl)"><wbr />discard<wbr />Edits<span class="attachedType"></span></a></li>
<li><a class="reference" href="#markDirty%2CwTextCtrl"
title="markDirty(self: wTextCtrl)"><wbr />mark<wbr />Dirty<span class="attachedType"></span></a></li>
<li><a class="reference" href="#isModified%2CwTextCtrl"
title="isModified(self: wTextCtrl): bool"><wbr />is<wbr />Modified<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setEditable%2CwTextCtrl%2Cbool"
title="setEditable(self: wTextCtrl; flag: bool)"><wbr />set<wbr />Editable<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setMargin%2CwTextCtrl%2Cint%2Cint"
title="setMargin(self: wTextCtrl; left: int; right: int)"><wbr />set<wbr />Margin<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setMargin%2CwTextCtrl%2C"
title="setMargin(self: wTextCtrl; margin: (int, int))"><wbr />set<wbr />Margin<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setMargin%2CwTextCtrl%2Cint"
title="setMargin(self: wTextCtrl; margin: int)"><wbr />set<wbr />Margin<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getMargin%2CwTextCtrl"
title="getMargin(self: wTextCtrl): tuple[left: int, right: int]"><wbr />get<wbr />Margin<span class="attachedType"></span></a></li>
<li><a class="reference" href="#xyToPosition%2CwTextCtrl%2Cint%2Cint"
title="xyToPosition(self: wTextCtrl; x: int; y: int): int"><wbr />xy<wbr />To<wbr />Position<span class="attachedType"></span></a></li>
<li><a class="reference" href="#xyToPosition%2CwTextCtrl%2CwPoint"
title="xyToPosition(self: wTextCtrl; pos: wPoint): int"><wbr />xy<wbr />To<wbr />Position<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getLineCount%2CwTextCtrl"
title="getLineCount(self: wTextCtrl): int"><wbr />get<wbr />Line<wbr />Count<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getNumberOfLines%2CwTextCtrl"
title="getNumberOfLines(self: wTextCtrl): int"><wbr />get<wbr />Number<wbr />Of<wbr />Lines<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getLineLength%2CwTextCtrl%2Cint"
title="getLineLength(self: wTextCtrl; line: int): int"><wbr />get<wbr />Line<wbr />Length<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getLastPosition%2CwTextCtrl"
title="getLastPosition(self: wTextCtrl): int"><wbr />get<wbr />Last<wbr />Position<span class="attachedType"></span></a></li>
<li><a class="reference" href="#isEmpty%2CwTextCtrl"
title="isEmpty(self: wTextCtrl): bool"><wbr />is<wbr />Empty<span class="attachedType"></span></a></li>
<li><a class="reference" href="#positionToXY%2CwTextCtrl%2Cint"
title="positionToXY(self: wTextCtrl; pos: int): wPoint"><wbr />position<wbr />To<wbr />XY<span class="attachedType"></span></a></li>
<li><a class="reference" href="#showPosition%2CwTextCtrl%2Cint"
title="showPosition(self: wTextCtrl; pos: int)"><wbr />show<wbr />Position<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getSelection%2CwTextCtrl"
title="getSelection(self: wTextCtrl): Slice[int]"><wbr />get<wbr />Selection<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getInsertionPoint%2CwTextCtrl"
title="getInsertionPoint(self: wTextCtrl): int"><wbr />get<wbr />Insertion<wbr />Point<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setSelection%2CwTextCtrl%2Cint%2Cint"
title="setSelection(self: wTextCtrl; start: int; last: int)"><wbr />set<wbr />Selection<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setSelection%2CwTextCtrl%2CSlice%5Bint%5D"
title="setSelection(self: wTextCtrl; range: Slice[int])"><wbr />set<wbr />Selection<span class="attachedType"></span></a></li>
<li><a class="reference" href="#selectAll%2CwTextCtrl"
title="selectAll(self: wTextCtrl)"><wbr />select<wbr />All<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setInsertionPoint%2CwTextCtrl%2Cint"
title="setInsertionPoint(self: wTextCtrl; pos: int)"><wbr />set<wbr />Insertion<wbr />Point<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setInsertionPointEnd%2CwTextCtrl"
title="setInsertionPointEnd(self: wTextCtrl)"><wbr />set<wbr />Insertion<wbr />Point<wbr />End<span class="attachedType"></span></a></li>
<li><a class="reference" href="#selectNone%2CwTextCtrl"
title="selectNone(self: wTextCtrl)"><wbr />select<wbr />None<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getRange%2CwTextCtrl%2CSlice%5Bint%5D"
title="getRange(self: wTextCtrl; range: Slice[int]): string"><wbr />get<wbr />Range<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getValue%2CwTextCtrl"
title="getValue(self: wTextCtrl): string"><wbr />get<wbr />Value<span class="attachedType"></span></a></li>
<li><a class="reference" href="#copy%2CwTextCtrl"
title="copy(self: wTextCtrl)"><wbr />copy<span class="attachedType"></span></a></li>
<li><a class="reference" href="#cut%2CwTextCtrl"
title="cut(self: wTextCtrl)"><wbr />cut<span class="attachedType"></span></a></li>
<li><a class="reference" href="#paste%2CwTextCtrl"
title="paste(self: wTextCtrl)"><wbr />paste<span class="attachedType"></span></a></li>
<li><a class="reference" href="#undo%2CwTextCtrl"
title="undo(self: wTextCtrl)"><wbr />undo<span class="attachedType"></span></a></li>
<li><a class="reference" href="#redo%2CwTextCtrl"
title="redo(self: wTextCtrl)"><wbr />redo<span class="attachedType"></span></a></li>
<li><a class="reference" href="#canRedo%2CwTextCtrl"
title="canRedo(self: wTextCtrl): bool"><wbr />can<wbr />Redo<span class="attachedType"></span></a></li>
<li><a class="reference" href="#canUndo%2CwTextCtrl"
title="canUndo(self: wTextCtrl): bool"><wbr />can<wbr />Undo<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setMaxLength%2CwTextCtrl%2Cint"
title="setMaxLength(self: wTextCtrl; length: int)"><wbr />set<wbr />Max<wbr />Length<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setValue%2CwTextCtrl%2Cstring"
title="setValue(self: wTextCtrl; value: string)"><wbr />set<wbr />Value<span class="attachedType"></span></a></li>
<li><a class="reference" href="#changeValue%2CwTextCtrl%2Cstring"
title="changeValue(self: wTextCtrl; value: string)"><wbr />change<wbr />Value<span class="attachedType"></span></a></li>
<li><a class="reference" href="#clear%2CwTextCtrl"
title="clear(self: wTextCtrl)"><wbr />clear<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getLineText%2CwTextCtrl%2Cint"
title="getLineText(self: wTextCtrl; line: int): string"><wbr />get<wbr />Line<wbr />Text<span class="attachedType"></span></a></li>
<li><a class="reference" href="#writeText%2CwTextCtrl%2Cstring"
title="writeText(self: wTextCtrl; text: string)"><wbr />write<wbr />Text<span class="attachedType"></span></a></li>
<li><a class="reference" href="#appendText%2CwTextCtrl%2Cstring"
title="appendText(self: wTextCtrl; text: string)"><wbr />append<wbr />Text<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getTextSelection%2CwTextCtrl"
title="getTextSelection(self: wTextCtrl): string"><wbr />get<wbr />Text<wbr />Selection<span class="attachedType"></span></a></li>
<li><a class="reference" href="#replace%2CwTextCtrl%2CSlice%5Bint%5D%2Cstring"
title="replace(self: wTextCtrl; range: Slice[int]; value: string)"><wbr />replace<span class="attachedType"></span></a></li>
<li><a class="reference" href="#remove%2CwTextCtrl%2CSlice%5Bint%5D"
title="remove(self: wTextCtrl; range: Slice[int])"><wbr />remove<span class="attachedType"></span></a></li>
<li><a class="reference" href="#loadFile%2CwTextCtrl%2Cstring"
title="loadFile(self: wTextCtrl; filename: string)"><wbr />load<wbr />File<span class="attachedType"></span></a></li>
<li><a class="reference" href="#saveFile%2CwTextCtrl%2Cstring"
title="saveFile(self: wTextCtrl; filename: string)"><wbr />save<wbr />File<span class="attachedType"></span></a></li>
<li><a class="reference" href="#len%2CwTextCtrl"
title="len(self: wTextCtrl): int"><wbr />len<span class="attachedType"></span></a></li>
<li><a class="reference" href="#add%2CwTextCtrl%2Cstring"
title="add(self: wTextCtrl; text: string)"><wbr />add<span class="attachedType"></span></a></li>
<li><a class="reference" href="#formatSelection%2CwTextCtrl%2CwFont%2CwColor%2CwColor"
title="formatSelection(self: wTextCtrl; font: wFont; fore: wColor; back: wColor)"><wbr />format<wbr />Selection<span class="attachedType"></span></a></li>
<li><a class="reference" href="#loadRtf%2CwTextCtrl%2Cstring"
title="loadRtf(self: wTextCtrl; rtf: string)"><wbr />load<wbr />Rtf<span class="attachedType"></span></a></li>
<li><a class="reference" href="#saveRtf%2CwTextCtrl"
title="saveRtf(self: wTextCtrl; selectionOnly = false): string"><wbr />save<wbr />Rtf<span class="attachedType"></span></a></li>
<li><a class="reference" href="#loadRtfFile%2CwTextCtrl%2Cstring"
title="loadRtfFile(self: wTextCtrl; filename: string)"><wbr />load<wbr />Rtf<wbr />File<span class="attachedType"></span></a></li>
<li><a class="reference" href="#saveRtfFile%2CwTextCtrl%2Cstring"
title="saveRtfFile(self: wTextCtrl; filename: string; selectionOnly = false)"><wbr />save<wbr />Rtf<wbr />File<span class="attachedType"></span></a></li>
<li><a class="reference" href="#disableAutoComplete%2CwTextCtrl"
title="disableAutoComplete(self: wTextCtrl)"><wbr />disable<wbr />Auto<wbr />Complete<span class="attachedType"></span></a></li>
<li><a class="reference" href="#enableAutoComplete%2CwTextCtrl"
title="enableAutoComplete(self: wTextCtrl; flags = 5 or 8): bool"><wbr />enable<wbr />Auto<wbr />Complete<span class="attachedType"></span></a></li>
<li><a class="reference" href="#enableAutoComplete%2CwTextCtrl%2CwAutoCompleteProvider"
title="enableAutoComplete(self: wTextCtrl; provider: wAutoCompleteProvider): bool"><wbr />enable<wbr />Auto<wbr />Complete<span class="attachedType">wAutoCompleteProvider</span></a></li>
<li><a class="reference" href="#init%2CwTextCtrl%2CwWindow%2Cstring%2CwStyle"
title="init(self: wTextCtrl; parent: wWindow; id = wDefaultID; value: string = "";
pos = wDefaultPoint; size = wDefaultSize; style: wStyle = wTeLeft)"><wbr />init<span class="attachedType"></span></a></li>
<li><a class="reference" href="#TextCtrl%2CwWindow%2Cstring%2CwStyle"
title="TextCtrl(parent: wWindow; id = wDefaultID; value: string = ""; pos = wDefaultPoint;
size = wDefaultSize; style: wStyle = wTeLeft): wTextCtrl"><wbr />Text<wbr />Ctrl<span class="attachedType"></span></a></li>
<li><a class="reference" href="#init%2CwTextCtrl%2CHWND"
title="init(self: wTextCtrl; hWnd: HWND)"><wbr />init<span class="attachedType"></span></a></li>
<li><a class="reference" href="#TextCtrl%2CHWND"
title="TextCtrl(hWnd: HWND): wTextCtrl"><wbr />Text<wbr />Ctrl<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="#setFont.e%2CwTextCtrl%2CwFont"
title="setFont(self: wTextCtrl; font: wFont)"><wbr />set<wbr />Font<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getBestSize.e%2CwTextCtrl"
title="getBestSize(self: wTextCtrl): wSize"><wbr />get<wbr />Best<wbr />Size<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getDefaultSize.e%2CwTextCtrl"
title="getDefaultSize(self: wTextCtrl): wSize"><wbr />get<wbr />Default<wbr />Size<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setBackgroundColor.e%2CwTextCtrl%2CwColor"
title="setBackgroundColor(self: wTextCtrl; color: wColor)"><wbr />set<wbr />Background<wbr />Color<span class="attachedType"></span></a></li>
<li><a class="reference" href="#release.e%2CwTextCtrl"
title="release(self: wTextCtrl)"><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="#lines.i%2CwTextCtrl"
title="lines(self: wTextCtrl): string"><wbr />lines<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 text control allows text to be displayed and edited.</p>
<p>If the user pressed Enter key inside the control, a wEvent_TextEnter event will be generated. If this event is not processed, the default behavior of text control will be doen. However, for read-only control, wEvent_TextEnter will never be generated.</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/wTextCtrl.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>wTeMultiLine</td><td>The text control allows multiple lines.</td></tr>
<tr><td>wTePassword</td><td>The text will be echoed as asterisks.</td></tr>
<tr><td>wTeReadOnly</td><td>The text will not be user-editable.</td></tr>
<tr><td>wTeNoHideSel</td><td>Show the selection event when it doesn't have focus.</td></tr>
<tr><td>wTeLeft</td><td>The text in the control will be left-justified (default).</td></tr>
<tr><td>wTeCentre</td><td>The text in the control will be centered.</td></tr>
<tr><td>wTeCenter</td><td>The text in the control will be centered.</td></tr>
<tr><td>wTeRight</td><td>The text in the control will be right-justified.</td></tr>
<tr><td>wTeDontWrap</td><td>Don't wrap at all, show horizontal scrollbar instead.</td></tr>
<tr><td>wTeRich</td><td>Use rich text control, this allows to have more than 64KB of text in the control.</td></tr>
<tr><td>wTeProcessTab</td><td>With this style, press TAB key to insert a TAB character instead of switches focus to the next control. Only works with wTeMultiLine.</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_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>
</table></td></tr>
</tbody></table></p>
<div class="section" id="7">
<h1><a class="toc-backref" href="#7">Types</a></h1>
<dl class="item">
<a id="wAutoCompleteProvider"></a>
<dt><pre><a href="wTextCtrl.html#wAutoCompleteProvider"><span class="Identifier">wAutoCompleteProvider</span></a> <span class="Other">=</span> <span class="Keyword">proc</span> <span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">seq</span><span class="Other">[</span><span class="Identifier">string</span><span class="Other">]</span></pre></dt>
<dd>
Callback function to provide the custom source for autocomplete
</dd>
</dl></div>
<div class="section" id="10">
<h1><a class="toc-backref" href="#10">Consts</a></h1>
<dl class="item">
<a id="wTeMultiLine"></a>
<dt><pre><a href="wTextCtrl.html#wTeMultiLine"><span class="Identifier">wTeMultiLine</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000004</span></pre></dt>
<a id="wTeReadOnly"></a>
<dt><pre><a href="wTextCtrl.html#wTeReadOnly"><span class="Identifier">wTeReadOnly</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000800</span></pre></dt>
<a id="wTePassword"></a>
<dt><pre><a href="wTextCtrl.html#wTePassword"><span class="Identifier">wTePassword</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000020</span></pre></dt>
<a id="wTeNoHideSel"></a>
<dt><pre><a href="wTextCtrl.html#wTeNoHideSel"><span class="Identifier">wTeNoHideSel</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000100</span></pre></dt>
<a id="wTeLeft"></a>
<dt><pre><a href="wTextCtrl.html#wTeLeft"><span class="Identifier">wTeLeft</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000000</span></pre></dt>
<a id="wTeCentre"></a>
<dt><pre><a href="wTextCtrl.html#wTeCentre"><span class="Identifier">wTeCentre</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000001</span></pre></dt>
<a id="wTeCenter"></a>
<dt><pre><a href="wTextCtrl.html#wTeCenter"><span class="Identifier">wTeCenter</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000001</span></pre></dt>
<a id="wTeRight"></a>
<dt><pre><a href="wTextCtrl.html#wTeRight"><span class="Identifier">wTeRight</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000002</span></pre></dt>
<a id="wTeDontWrap"></a>
<dt><pre><a href="wTextCtrl.html#wTeDontWrap"><span class="Identifier">wTeDontWrap</span></a> <span class="Other">=</span> <span class="DecNumber">1048704</span></pre></dt>
<a id="wTeRich"></a>
<dt><pre><a href="wTextCtrl.html#wTeRich"><span class="Identifier">wTeRich</span></a> <span class="Other">=</span> <span class="DecNumber">1152921504606846976'i64</span></pre></dt>
<a id="wTeProcessTab"></a>
<dt><pre><a href="wTextCtrl.html#wTeProcessTab"><span class="Identifier">wTeProcessTab</span></a> <span class="Other">=</span> <span class="DecNumber">0x00004000</span></pre></dt>
<a id="wAcFile"></a>
<dt><pre><a href="wTextCtrl.html#wAcFile"><span class="Identifier">wAcFile</span></a> <span class="Other">=</span> <span class="DecNumber">1</span></pre></dt>
<a id="wAcDir"></a>
<dt><pre><a href="wTextCtrl.html#wAcDir"><span class="Identifier">wAcDir</span></a> <span class="Other">=</span> <span class="DecNumber">2</span></pre></dt>
<a id="wAcMru"></a>
<dt><pre><a href="wTextCtrl.html#wAcMru"><span class="Identifier">wAcMru</span></a> <span class="Other">=</span> <span class="DecNumber">4</span></pre></dt>
<a id="wAcUrl"></a>
<dt><pre><a href="wTextCtrl.html#wAcUrl"><span class="Identifier">wAcUrl</span></a> <span class="Other">=</span> <span class="DecNumber">8</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="isMultiLine,wTextCtrl"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#isMultiLine%2CwTextCtrl"><span class="Identifier">isMultiLine</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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 this is a multi line edit control and false otherwise.
</dd>
<a id="isEditable,wTextCtrl"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#isEditable%2CwTextCtrl"><span class="Identifier">isEditable</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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 controls contents may be edited by user.
</dd>
<a id="isSingleLine,wTextCtrl"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#isSingleLine%2CwTextCtrl"><span class="Identifier">isSingleLine</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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 this is a single line edit control and false otherwise.
</dd>
<a id="setModified,wTextCtrl,bool"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setModified%2CwTextCtrl%2Cbool"><span class="Identifier">setModified</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</span></a><span class="Other">;</span> <span class="Identifier">modified</span><span class="Other">:</span> <span class="Identifier">bool</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>
Marks the control as being modified by the user or not.
</dd>
<a id="discardEdits,wTextCtrl"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#discardEdits%2CwTextCtrl"><span class="Identifier">discardEdits</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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>
Resets the internal modified flag as if the current changes had been saved.
</dd>
<a id="markDirty,wTextCtrl"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#markDirty%2CwTextCtrl"><span class="Identifier">markDirty</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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>
Mark text as modified (dirty).
</dd>
<a id="isModified,wTextCtrl"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#isModified%2CwTextCtrl"><span class="Identifier">isModified</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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 has been modified by user.
</dd>
<a id="setEditable,wTextCtrl,bool"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setEditable%2CwTextCtrl%2Cbool"><span class="Identifier">setEditable</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</span></a><span class="Other">;</span> <span class="Identifier">flag</span><span class="Other">:</span> <span class="Identifier">bool</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>
Makes the text item editable or read-only.
</dd>
<a id="setMargin,wTextCtrl,int,int"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setMargin%2CwTextCtrl%2Cint%2Cint"><span class="Identifier">setMargin</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</span></a><span class="Other">;</span> <span class="Identifier">left</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">;</span> <span class="Identifier">right</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>
Set the left and right margins.
</dd>
<a id="setMargin,wTextCtrl,"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setMargin%2CwTextCtrl%2C"><span class="Identifier">setMargin</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</span></a><span class="Other">;</span> <span class="Identifier">margin</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">int</span><span class="Other">,</span> <span class="Identifier">int</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>
Set the left and right margins.
</dd>
<a id="setMargin,wTextCtrl,int"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setMargin%2CwTextCtrl%2Cint"><span class="Identifier">setMargin</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</span></a><span class="Other">;</span> <span class="Identifier">margin</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>
Set the left and right margins to the same value.
</dd>
<a id="getMargin,wTextCtrl"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getMargin%2CwTextCtrl"><span class="Identifier">getMargin</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Keyword">tuple</span><span class="Other">[</span><span class="Identifier">left</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">,</span> <span class="Identifier">right</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>
Returns the margins.
</dd>
<a id="xyToPosition,wTextCtrl,int,int"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#xyToPosition%2CwTextCtrl%2Cint%2Cint"><span class="Identifier">xyToPosition</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</span></a><span class="Other">;</span> <span class="Identifier">x</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">;</span> <span class="Identifier">y</span><span class="Other">:</span> <span class="Identifier">int</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>
Converts the given zero based column and line number to a position.
</dd>
<a id="xyToPosition,wTextCtrl,wPoint"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#xyToPosition%2CwTextCtrl%2CwPoint"><span class="Identifier">xyToPosition</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</span></a><span class="Other">;</span> <span class="Identifier">pos</span><span class="Other">:</span> <a href="wTypes.html#wPoint"><span class="Identifier">wPoint</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>
Converts the given zero based column and line number to a position.
</dd>
<a id="getLineCount,wTextCtrl"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getLineCount%2CwTextCtrl"><span class="Identifier">getLineCount</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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>
Gets the number of lines in the control.
</dd>
<a id="getNumberOfLines,wTextCtrl"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getNumberOfLines%2CwTextCtrl"><span class="Identifier">getNumberOfLines</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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 lines in the text control buffer. The same as getLineCount().
</dd>
<a id="getLineLength,wTextCtrl,int"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getLineLength%2CwTextCtrl%2Cint"><span class="Identifier">getLineLength</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</span></a><span class="Other">;</span> <span class="Identifier">line</span><span class="Other">:</span> <span class="Identifier">int</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>
Gets the length of the specified line, not including any trailing newline character
</dd>
<a id="getLastPosition,wTextCtrl"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getLastPosition%2CwTextCtrl"><span class="Identifier">getLastPosition</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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 zero based index of the last position in the text control, which is equal to the number of characters in the control.
</dd>
<a id="isEmpty,wTextCtrl"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#isEmpty%2CwTextCtrl"><span class="Identifier">isEmpty</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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 control is currently empty.
</dd>
<a id="positionToXY,wTextCtrl,int"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#positionToXY%2CwTextCtrl%2Cint"><span class="Identifier">positionToXY</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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="Other">:</span> <a href="wTypes.html#wPoint"><span class="Identifier">wPoint</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="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>
Converts given position to a zero-based column, line number pair.
</dd>
<a id="showPosition,wTextCtrl,int"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#showPosition%2CwTextCtrl%2Cint"><span class="Identifier">showPosition</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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">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>
Makes the line containing the given position visible.
</dd>
<a id="getSelection,wTextCtrl"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getSelection%2CwTextCtrl"><span class="Identifier">getSelection</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Slice</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>
Gets the current selection range. If result.b < result.a, there was no selection.
</dd>
<a id="getInsertionPoint,wTextCtrl"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getInsertionPoint%2CwTextCtrl"><span class="Identifier">getInsertionPoint</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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 insertion point, or cursor, position.
</dd>
<a id="setSelection,wTextCtrl,int,int"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setSelection%2CwTextCtrl%2Cint%2Cint"><span class="Identifier">setSelection</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</span></a><span class="Other">;</span> <span class="Identifier">start</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">;</span> <span class="Identifier">last</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>
Selects the text starting at the first position up to (but not including) the character at the last position.
</dd>
<a id="setSelection,wTextCtrl,Slice[int]"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setSelection%2CwTextCtrl%2CSlice%5Bint%5D"><span class="Identifier">setSelection</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</span></a><span class="Other">;</span> <span class="Identifier">range</span><span class="Other">:</span> <span class="Identifier">Slice</span><span class="Other">[</span><span class="Identifier">int</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>
Selects the text in range (including).
</dd>
<a id="selectAll,wTextCtrl"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#selectAll%2CwTextCtrl"><span class="Identifier">selectAll</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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>
Selects all text.
</dd>
<a id="setInsertionPoint,wTextCtrl,int"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setInsertionPoint%2CwTextCtrl%2Cint"><span class="Identifier">setInsertionPoint</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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>
Sets the insertion point at the given position.
</dd>
<a id="setInsertionPointEnd,wTextCtrl"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setInsertionPointEnd%2CwTextCtrl"><span class="Identifier">setInsertionPointEnd</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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>
Sets the insertion point at the end of the text control.
</dd>
<a id="selectNone,wTextCtrl"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#selectNone%2CwTextCtrl"><span class="Identifier">selectNone</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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>
Deselects selected text in the control.
</dd>
<a id="getRange,wTextCtrl,Slice[int]"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getRange%2CwTextCtrl%2CSlice%5Bint%5D"><span class="Identifier">getRange</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</span></a><span class="Other">;</span> <span class="Identifier">range</span><span class="Other">:</span> <span class="Identifier">Slice</span><span class="Other">[</span><span class="Identifier">int</span><span class="Other">]</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="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 in range.
</dd>
<a id="getValue,wTextCtrl"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getValue%2CwTextCtrl"><span class="Identifier">getValue</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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="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>
Gets the contents of the control.
</dd>
<a id="copy,wTextCtrl"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#copy%2CwTextCtrl"><span class="Identifier">copy</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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>
Copies the selected text to the clipboard.
</dd>
<a id="cut,wTextCtrl"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#cut%2CwTextCtrl"><span class="Identifier">cut</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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>
Copies the selected text to the clipboard and removes it from the control.
</dd>
<a id="paste,wTextCtrl"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#paste%2CwTextCtrl"><span class="Identifier">paste</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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>
Pastes text from the clipboard to the text item.
</dd>
<a id="undo,wTextCtrl"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#undo%2CwTextCtrl"><span class="Identifier">undo</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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>
If there is an undo facility and the last operation can be undone, undoes the last operation.
</dd>
<a id="redo,wTextCtrl"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#redo%2CwTextCtrl"><span class="Identifier">redo</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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>
If there is a redo facility and the last operation can be redone, redoes the last operation.
</dd>
<a id="canRedo,wTextCtrl"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#canRedo%2CwTextCtrl"><span class="Identifier">canRedo</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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 there is a redo facility available and the last operation can be redone.
</dd>
<a id="canUndo,wTextCtrl"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#canUndo%2CwTextCtrl"><span class="Identifier">canUndo</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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 there is an undo facility available and the last operation can be undone.
</dd>
<a id="setMaxLength,wTextCtrl,int"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setMaxLength%2CwTextCtrl%2Cint"><span class="Identifier">setMaxLength</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</span></a><span class="Other">;</span> <span class="Identifier">length</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
This function sets the maximum number of characters the user can enter into the control.
</dd>
<a id="setValue,wTextCtrl,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setValue%2CwTextCtrl%2Cstring"><span class="Identifier">setValue</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</span></a><span class="Other">;</span> <span class="Identifier">value</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 new text control value. Note that, unlike most other functions changing the controls values, this function generates a wEvent_Text event. To avoid this you can use changeValue() instead.
</dd>
<a id="changeValue,wTextCtrl,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#changeValue%2CwTextCtrl%2Cstring"><span class="Identifier">changeValue</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</span></a><span class="Other">;</span> <span class="Identifier">value</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 new text control value. This functions does not generate the wEvent_Text event.
</dd>
<a id="clear,wTextCtrl"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#clear%2CwTextCtrl"><span class="Identifier">clear</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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>
Clears the text in the control.
</dd>
<a id="getLineText,wTextCtrl,int"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getLineText%2CwTextCtrl%2Cint"><span class="Identifier">getLineText</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</span></a><span class="Other">;</span> <span class="Identifier">line</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 contents of a given line in the text control, not including any trailing newline character.
</dd>
<a id="writeText,wTextCtrl,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#writeText%2CwTextCtrl%2Cstring"><span class="Identifier">writeText</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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>
Writes the text into the text control at the current insertion position.
</dd>
<a id="appendText,wTextCtrl,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#appendText%2CwTextCtrl%2Cstring"><span class="Identifier">appendText</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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 text to the end of the text control.
</dd>
<a id="getTextSelection,wTextCtrl"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getTextSelection%2CwTextCtrl"><span class="Identifier">getTextSelection</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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="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>
Gets the text currently selected in the control or empty string if there is no selection.
</dd>
<a id="replace,wTextCtrl,Slice[int],string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#replace%2CwTextCtrl%2CSlice%5Bint%5D%2Cstring"><span class="Identifier">replace</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</span></a><span class="Other">;</span> <span class="Identifier">range</span><span class="Other">:</span> <span class="Identifier">Slice</span><span class="Other">[</span><span class="Identifier">int</span><span class="Other">]</span><span class="Other">;</span> <span class="Identifier">value</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>
Replaces the text in range.
</dd>
<a id="remove,wTextCtrl,Slice[int]"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#remove%2CwTextCtrl%2CSlice%5Bint%5D"><span class="Identifier">remove</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</span></a><span class="Other">;</span> <span class="Identifier">range</span><span class="Other">:</span> <span class="Identifier">Slice</span><span class="Other">[</span><span class="Identifier">int</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>
Removes the text in range.
</dd>
<a id="loadFile,wTextCtrl,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#loadFile%2CwTextCtrl%2Cstring"><span class="Identifier">loadFile</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</span></a><span class="Other">;</span> <span class="Identifier">filename</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">IOError</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">ReadIOEffect</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Loads and displays the named file, if it exists.
</dd>
<a id="saveFile,wTextCtrl,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#saveFile%2CwTextCtrl%2Cstring"><span class="Identifier">saveFile</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</span></a><span class="Other">;</span> <span class="Identifier">filename</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">IOError</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="Identifier">WriteIOEffect</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Saves the contents of the control in a text file.
</dd>
<a id="len,wTextCtrl"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#len%2CwTextCtrl"><span class="Identifier">len</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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 characters in the control.
</dd>
<a id="add,wTextCtrl,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#add%2CwTextCtrl%2Cstring"><span class="Identifier">add</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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 text to the end of the text control. The same as appendText()
</dd>
<a id="formatSelection,wTextCtrl,wFont,wColor,wColor"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#formatSelection%2CwTextCtrl%2CwFont%2CwColor%2CwColor"><span class="Identifier">formatSelection</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</span></a><span class="Other">;</span> <span class="Identifier">font</span><span class="Other">:</span> <a href="wTypes.html#wFont"><span class="Identifier">wFont</span></a><span class="Other">;</span> <span class="Identifier">fore</span><span class="Other">:</span> <a href="wTypes.html#wColor"><span class="Identifier">wColor</span></a><span class="Other">;</span> <span class="Identifier">back</span><span class="Other">:</span> <a href="wTypes.html#wColor"><span class="Identifier">wColor</span></a><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">inline</span><span class="Other">,</span>
<span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">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>
Format the selected text if wTeRich style is specified
</dd>
<a id="loadRtf,wTextCtrl,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#loadRtf%2CwTextCtrl%2Cstring"><span class="Identifier">loadRtf</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</span></a><span class="Other">;</span> <span class="Identifier">rtf</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>
Loads and displays Rich Text Format (RTF) string. Only works for rich text control.
</dd>
<a id="saveRtf,wTextCtrl"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#saveRtf%2CwTextCtrl"><span class="Identifier">saveRtf</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</span></a><span class="Other">;</span> <span class="Identifier">selectionOnly</span> <span class="Other">=</span> <span class="Identifier">false</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="Identifier">Defect</span><span class="Other">,</span> <span class="Identifier">IOError</span><span class="Other">,</span> <span class="Identifier">OSError</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">ReadIOEffect</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Saves the all or selected text in Rich Text Format (RTF) string. Only works for rich text control.
</dd>
<a id="loadRtfFile,wTextCtrl,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#loadRtfFile%2CwTextCtrl%2Cstring"><span class="Identifier">loadRtfFile</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</span></a><span class="Other">;</span> <span class="Identifier">filename</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">IOError</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">ReadIOEffect</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Loads and displays Rich Text Format (RTF) file. Only works for rich text control.
</dd>
<a id="saveRtfFile,wTextCtrl,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#saveRtfFile%2CwTextCtrl%2Cstring"><span class="Identifier">saveRtfFile</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</span></a><span class="Other">;</span> <span class="Identifier">filename</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">selectionOnly</span> <span class="Other">=</span> <span class="Identifier">false</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">IOError</span><span class="Other">,</span> <span class="Identifier">Defect</span><span class="Other">,</span> <span class="Identifier">OSError</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">WriteIOEffect</span><span class="Other">,</span> <span class="Identifier">ReadIOEffect</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Saves the all or selected text in Rich Text Format (RTF) file. Only works for rich text control.
</dd>
<a id="disableAutoComplete,wTextCtrl"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#disableAutoComplete%2CwTextCtrl"><span class="Identifier">disableAutoComplete</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</span></a><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">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>
Disable the autocompletion.
</dd>
<a id="enableAutoComplete,wTextCtrl"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#enableAutoComplete%2CwTextCtrl"><span class="Identifier">enableAutoComplete</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</span></a><span class="Other">;</span> <span class="Identifier">flags</span> <span class="Other">=</span> <span class="DecNumber">5</span> <span class="Keyword">or</span> <span class="DecNumber">8</span><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">discardable</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>
Enable the autocompletion and use system predefined sources. <em>flags</em> is a bitwise combination of wAcFile, wAcDir, wAcMru, wAcUrl.<table border="1" class="docutils"><tr><th>Flags</th><th>Description</th></tr>
<tr><td>wAcFile</td><td>Include the file system and directories.</td></tr>
<tr><td>wAcDir</td><td>Include the file directories only.</td></tr>
<tr><td>wAcMru</td><td>Include the URLs in the user's <strong>Recently Used</strong> list.</td></tr>
<tr><td>wAcUrl</td><td>Include the URLs in the user's <strong>History</strong> list.</td></tr>
</table>
</dd>
<a id="enableAutoComplete,wTextCtrl,wAutoCompleteProvider"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#enableAutoComplete%2CwTextCtrl%2CwAutoCompleteProvider"><span class="Identifier">enableAutoComplete</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</span></a><span class="Other">;</span> <span class="Identifier">provider</span><span class="Other">:</span> <a href="wTextCtrl.html#wAutoCompleteProvider"><span class="Identifier">wAutoCompleteProvider</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">discardable</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>
Enable the autocompletion and use custom source.
</dd>
<a id="init,wTextCtrl,wWindow,string,wStyle"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#init%2CwTextCtrl%2CwWindow%2Cstring%2CwStyle"><span class="Identifier">init</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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">style</span><span class="Other">:</span> <a href="wTypes.html#wStyle"><span class="Identifier">wStyle</span></a> <span class="Other">=</span> <span class="Identifier">wTeLeft</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 text control.
</dd>
<a id="TextCtrl,wWindow,string,wStyle"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#TextCtrl%2CwWindow%2Cstring%2CwStyle"><span class="Identifier">TextCtrl</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">style</span><span class="Other">:</span> <a href="wTypes.html#wStyle"><span class="Identifier">wStyle</span></a> <span class="Other">=</span> <span class="Identifier">wTeLeft</span><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">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>
<a id="init,wTextCtrl,HWND"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#init%2CwTextCtrl%2CHWND"><span class="Identifier">init</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</span></a><span class="Other">;</span> <span class="Identifier">hWnd</span><span class="Other">:</span> <span class="Identifier">HWND</span><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">wError</span><span class="Other">,</span> <span class="Identifier">wWindowError</span><span class="Other">,</span> <span class="Identifier">wCursorError</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">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>
Initializes a text control by subclassing a system handle. Used internally.
</dd>
<a id="TextCtrl,HWND"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#TextCtrl%2CHWND"><span class="Identifier">TextCtrl</span></a><span class="Other">(</span><span class="Identifier">hWnd</span><span class="Other">:</span> <span class="Identifier">HWND</span><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">discardable</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">wError</span><span class="Other">,</span>
<span class="Identifier">wWindowError</span><span class="Other">,</span> <span class="Identifier">wCursorError</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">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>
Constructor.
</dd>
</dl></div>
<div class="section" id="14">
<h1><a class="toc-backref" href="#14">Methods</a></h1>
<dl class="item">
<a id="setFont.e,wTextCtrl,wFont"></a>
<dt><pre><span class="Keyword">method</span> <a href="#setFont.e%2CwTextCtrl%2CwFont"><span class="Identifier">setFont</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</span></a><span class="Other">;</span> <span class="Identifier">font</span><span class="Other">:</span> <a href="wTypes.html#wFont"><span class="Identifier">wFont</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="Identifier">wNilAccess</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="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 font for this text control.
</dd>
<a id="getBestSize.e,wTextCtrl"></a>
<dt><pre><span class="Keyword">method</span> <a href="#getBestSize.e%2CwTextCtrl"><span class="Identifier">getBestSize</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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">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="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Returns the best acceptable minimal size for the control.
</dd>
<a id="getDefaultSize.e,wTextCtrl"></a>
<dt><pre><span class="Keyword">method</span> <a href="#getDefaultSize.e%2CwTextCtrl"><span class="Identifier">getDefaultSize</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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">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="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Returns the default size for the control.
</dd>
<a id="setBackgroundColor.e,wTextCtrl,wColor"></a>
<dt><pre><span class="Keyword">method</span> <a href="#setBackgroundColor.e%2CwTextCtrl%2CwColor"><span class="Identifier">setBackgroundColor</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</span></a><span class="Other">;</span> <span class="Identifier">color</span><span class="Other">:</span> <a href="wTypes.html#wColor"><span class="Identifier">wColor</span></a><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">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 background color of the control.
</dd>
<a id="release.e,wTextCtrl"></a>
<dt><pre><span class="Keyword">method</span> <a href="#release.e%2CwTextCtrl"><span class="Identifier">release</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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="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>
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="lines.i,wTextCtrl"></a>
<dt><pre><span class="Keyword">iterator</span> <a href="#lines.i%2CwTextCtrl"><span class="Identifier">lines</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wTextCtrl"><span class="Identifier">wTextCtrl</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>
Iterates over each line in the control.
</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>