forked from rofl0r/KOL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kol_pas.htm
5107 lines (5045 loc) · 236 KB
/
kol_pas.htm
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
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<html>
<head>
<title>KOL Help: unit KOL.pas</title>
</head>
<body bgcolor="#FFFFEF" text="#000000" link="#008080" vlink="#008000" alink="#808000">
<h1 align="center">
<a href="cplxmath_pas.htm"><font face="Webdings" size=7>7</font></a>
<a href="err_pas.htm"><font face="Webdings" size=7>8</font></a>
<font face="Arial" color="#FF8080">unit KOL.pas</font>
</h1>
<hr>
<p>
Please note, that KOL does not use keyword 'class'. Instead,
poor Pascal 'object' is the base of our objects. So, remember,
how we worked earlier with such Object Pascal's objects:
<br>
- to create objects dynamically, use P<objname> instead of
T<objname> to allocate a pointer for dynamically created
object instance;
<br>
- remember, that constructors of objects can not be virtual.
Override procedure Init instead in your own derived objects;
<br>
- rather then call constructors of objects, call global procedures
New<objname> (e.g. <a href=#newlabel>NewLabel</a>). If not, first (for virtualally
created objects) call New( ); then call constructor Create
(which calls Init) - but this is possible only if the constructor
is overriden by a new one.
<br>
- the operator 'is' is not applicable to objects. And operator 'as'
is not necessary (and is not applicable too), use typecast to desired
object type, e.g.: "PSomeObjectType( C )" inplace of "C as TSomeClassType".
<br>
<hr>
Also remember, that IF [ MyObj: PMyObj ] THEN
NOT[ with MyObj do ] BUT[ with MyObj^ do ]
Though it is possible to skip '^' symbol when accessing member
fields, methods, properties, e.g. [ MyObj.Execute; ]
<hr>
<table border=1 cellpadding=6 width=100%>
<colgroup valign=top span=2>
<tr>
<td> objects </td> <td> functions by category </td>
</tr>
<td>
<a href="_TObj.htm">_TObj</a>
<a href="TObj.htm">TObj</a><br>
<a href="TList.htm">TList</a>
<a href="TListEx.htm">TListEx</a>
<a href="TStrList.htm">TStrList</a>
<a href="TStrListEx.htm">TStrListEx</a><br>
<a href="TTree.htm">TTree</a>
<a href="TDirList.htm">TDirList</a>
<a href="TIniFile.htm">TIniFile</a>
<a href="TCabFile.htm">TCabFile</a>
<a href="TStream.htm">TStream</a><br>
<a href="TControl.htm">TControl</a><br>
<a href="TGraphicTool.htm">TGraphicTool</a>
<a href="TCanvas.htm">TCanvas</a>
<a href="TImageList.htm">TImageList</a>
<a href="TIcon.htm">TIcon</a>
<a href="TBitmap.htm">TBitmap</a>
<a href="TGif.htm">TGif</a>
<a href="TGifDecoder.htm">TGifDecoder</a>
<a href="TJpeg.htm">TJpeg</a><br>
<a href="TTimer.htm">TTimer</a>
<a href="TThread.htm">TThread</a>
<a href="TTrayIcon.htm">TTrayIcon</a>
<a href="TDirChange.htm">TDirChange</a>
<a href="TMediaPlayer.htm">TMediaPlayer</a><br>
<a href="TMenu.htm">TMenu</a>
<a href="TOpenSaveDialog.htm">TOpenSaveDialog</a>
<a href="TOpenDirDialog.htm">TOpenDirDialog</a>
<a href="TColorDialog.htm">TColorDialog</a><br>
<a href="TAction.htm">TAction</a>
<a href="TActionList.htm">TActionList</a><br>
<a href="Exception.htm">Exception</a><br>
</td>
<td>
<a href="kol_pas.htm#visual_objects_constructors">
Visual objects constructing functions
</a><br><br>
<a href="#Working with null-terminated and ansi strings">Working with null-terminated and ansi strings</a><br>
<a href="#Small bit arrays (max 32 bits in array)">Small bit arrays (max 32 bits in array)</a><br>
<a href="#Arithmetics, geometry and other utility functions">Arithmetics, geometry and other utility functions</a><br>
<a href="#Data sorting (quicksort implementation)">Data sorting (quicksort implementation)</a><br>
<a href="#String to number and number to string conversions">String to number and number to string conversions</a><br>
<a href="#64-bit integer numbers">64-bit integer numbers</a><br>
<a href="#Floating point numbers">Floating point numbers</a><br>
<a href="#Date and time handling">Date and time handling</a><br>
<a href="#File and directory routines">File and directory routines</a><br>
<a href="#System functions and working with windows">System functions and working with windows</a><br>
<a href="#Text in clipboard operations">Text in clipboard operations</a><br>
<a href="#Wrappers to registry API functions">Wrappers to registry API functions</a><br>
</td>
</table>
Several conditional symbols can be used in a project
(Project ¦ Options ¦ Directories/Conditional Defines)
to change code generated a bit. There are following:
<pre>
PAS_VERSION - to use Pascal version of the code.
PARANOIA - to force short versions of asm instructions (for D5
and below, D6 and higher use those instructions always).
USE_CONSTRUCTORS - to use constructors like in VCL.
USE_CUSTOMEXTENSIONS - to extend TControl with custom additions.
UNICODE_CTRLS - to use Unicode versions of controls (WM_XXXXW messages,
etc.)
USE_MHTOOLTIP - to use MHTOOLTIP.
NOT_USE_OnIdle - to stop using OnIdle event (to make code smaller
if it is not used actually).
USE_ASM_DODRAG - to use assembler version of code for DoDrag.
ENUM_DYN_HANDLERS_AFTER_RUN - to allow all the events handling even when
<a href=#appletterminated>AppletTerminated</a> become TRUE.
ALL_BUTTONS_RESPOND_TO_ENTER - obvious (by default, buttons respond to key
SPACE, since those are working this way in Windows).
ESC_CLOSE_DIALOGS - to allow closing all dialogs with ESCAPE.
OpenSaveDialog_Extended - to allow using custom extensions for OpenSaveDialog.
AUTO_CONTEXT_HELP - to use automatic respond to WM_CONTEXTMENU to call
context help.
NOT_FIX_CURINDEX - to use old version of TControl.SetItems, which could
lead to loose CurIndex value (e.g. for Combobox)
NEW_MODAL - to use extended madalness.
USE_SETMODALRESULT - to guarantee ModalResult property assigninig handling.
USE_MENU_CURCTL - to use CurCtl property in popup menu to detect which
control initiated a pop-up.
NEW_MENU_ACCELL - to use another menu accelerators handling, without
AcceleratorTable
USE_DROPDOWNCOUNT - to force setting combobox dropdown count.
NOT_UNLOAD_RICHEDITLIB - to stop unload Rich Edit library in finalization
section (to economy several byte of code).
DEBUG_GDIOBJECTS - to allow counting all the GDI objects used.
CHK_BITBLT - to check BitBlt operations.
DEBUG_ENDSESSION - to allow debugging WM_ENDSESSION handling.
DEBUG_CREATEWINDOW - to debug CreateWindow.
TEST_CLOSE - to debug Close.
DEBUG_MENU - to debug menu.
DEBUG_DBLBUFF - to debug DoubleBuffered.
DEBUG - other debugging.
</pre>
</p>
<h2 align="center"><font face="Arial" color="#FF8080">Content</font></h2>
<a name="pobj"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>PObj</b></font> = ^ <a href=#tobj>TObj</a>;</font>
<br>
</p>
<a name="plist"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>PList</b></font> = ^ <a href=#tlist>TList</a>;</font>
<br>
</p>
<a name="tobjectmethod"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TObjectMethod</b></font> = <b>procedure</b> <b>of</b> <b>object</b>;</font>
<br>
</p>
<a name="tonevent"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TOnEvent</b></font> = <b>procedure</b>( Sender: <a href=#pobj>PObj</a> ) <b>of</b> <b>object</b>;</font>
<br>
This type of event is the most common - event handler when called can
know only what object was a sender of this call. Replaces good known
VCL TNotifyEvent event type.
</p>
<a name="newlist"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>NewList</b></font>: <a href=#plist>PList</a>;</font>
<br>
Returns pointer to newly created <a href=#tlist>TList</a> object. Use it instead usual
<a href=tlist.htm#create>TList.Create</a> as it is done in VCL or XCL.
</p>
<a name="fastincnum2elements"></a>
<p>
<font face="Courier" color="#800080"><b>procedure</b> <font color="#808000"><b>FastIncNum2Elements</b></font>( List: <a href=#tlist>TList</a>; FromIdx, Count, Value: <b>Integer</b> );</font>
<br>
Very fast adds Value to List elements from List[FromIdx] to List[FromIdx+Count-1].
Given elements must exist. Count must be > 0.
</p>
<a name="free_and_nil"></a>
<p>
<font face="Courier" color="#800080"><b>procedure</b> <font color="#808000"><b>Free_And_Nil</b></font>( <b>var</b> Obj );</font>
<br>
Obj.Free and Obj := nil, where Obj *MUST* be <a href=#tobj>TObj</a> or its descendant
(TControl, <a href=#tmenu>TMenu</a>, etc.) This procedure is not compatible with VCL's
FreeAndNil, which works with TObject, since this it has another name.
</p>
<a name="newlistex"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>NewListEx</b></font>: PListEx;</font>
<br>
Creates extended list.
</p>
<a name="newtree"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>NewTree</b></font>( AParent: PTree; <b>const</b> AName: <b>String</b> ): PTree;</font>
<br>
Constructs tree node, adding it to the end of children list of
the AParent. If AParent is nil, new root tree node is created.
</p>
<a name="tonthreadexecute"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TOnThreadExecute</b></font> = <b>function</b>( Sender: PThread ): <b>Integer</b> <b>of</b> <b>object</b>;</font>
<br>
Event to be called when Execute method is called for <a href=#tthread>TThread</a>
</p>
<a name="newthread"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>NewThread</b></font>: PThread;</font>
<br>
Creates thread object (always suspended). After creating, set event
OnExecute and perform Resume operation.
</p>
<a name="newthreadex"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>NewThreadEx</b></font>( <b>const</b> Proc: <a href=#tonthreadexecute>TOnThreadExecute</a> ): PThread;</font>
<br>
Creates thread object, assigns Proc to its OnExecute event and runs
it.
</p>
<a name="newthreadautofree"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>NewThreadAutoFree</b></font>( <b>const</b> Proc: <a href=#tonthreadexecute>TOnThreadExecute</a> ): PThread;</font>
<br>
Creates thread object similar to <a href=#newthreadex>NewThreadEx</a>, but freeing automatically
when executing of such thread finished. Be sure that a thread is resumed
at least to provide its object keeper freeing.
</p>
<a name="_newstream"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>_NewStream</b></font>( <b>const</b> StreamMethods: TStreamMethods ): PStream;</font>
<br>
Use this method only to define your own stream type. See also declared
below (in KOL.pas) methods used to implement standard KOL streams. You can use it in
your code to create streams, which are partially based on standard
methods.
</p>
<a name="newfilestream"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>NewFileStream</b></font>( <b>const</b> FileName: <b>String</b>; Options: <b>DWORD</b> ): PStream;</font>
<br>
Creates file stream for read and write. Exact set of open attributes
should be passed through Options parameter (see <a href=#filecreate>FileCreate</a> where those
flags are listed).
</p>
<a name="newreadfilestream"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>NewReadFileStream</b></font>( <b>const</b> FileName: <b>String</b> ): PStream;</font>
<br>
Creates file stream for read only.
</p>
<a name="newwritefilestream"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>NewWriteFileStream</b></font>( <b>const</b> FileName: <b>String</b> ): PStream;</font>
<br>
Creates file stream for write only. Truncating of file (if needed)
is provided automatically.
</p>
<a name="newreadwritefilestream"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>NewReadWriteFileStream</b></font>( <b>const</b> FileName: <b>String</b> ): PStream;</font>
<br>
Creates stream for read and write file. To truncate file, if it is
necessary, change Size property.
</p>
<a name="newmemorystream"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>NewMemoryStream</b></font>: PStream;</font>
<br>
Creates memory stream (read and write).
</p>
<a name="newexmemorystream"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>NewExMemoryStream</b></font>( ExistingMem: <b>Pointer</b>; Size: <b>DWORD</b> ): PStream;</font>
<br>
Creates memory stream on base of existing memory. It is not possible
to write out of top bound given by Size (i.e. memory can not be resized,
or reallocated. When stream object is destroyed this memory is not freed.
</p>
<a name="stream2stream"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>Stream2Stream</b></font>( Dst, Src: PStream; Count: <b>DWORD</b> ): <b>DWORD</b>;</font>
<br>
Copies Count (or less, if the rest of Src is not sufficiently long)
bytes from Src to Dst, but with optimizing in cases, when Src or/and
Dst are memory streams (intermediate buffer is not allocated).
</p>
<a name="stream2streamex"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>Stream2StreamEx</b></font>( Dst, Src: PStream; Count: <b>DWORD</b> ): <b>DWORD</b>;</font>
<br>
Copies Count bytes from Src to Dst, but without any optimization.
Unlike <a href=#stream2stream>Stream2Stream</a> function, it can be applied to very large streams.
See also <a href=#stream2streamexbufsz>Stream2StreamExBufSz</a>.
</p>
<a name="stream2streamexbufsz"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>Stream2StreamExBufSz</b></font>( Dst, Src: PStream; Count, BufSz: <b>DWORD</b> ): <b>DWORD</b>;</font>
<br>
Copies Count bytes from Src to Dst using buffer of given size, but without
other optimizations.
Unlike <a href=#stream2stream>Stream2Stream</a> function, it can be applied to very large streams
</p>
<a name="resource2stream"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>Resource2Stream</b></font>( DestStrm: PStream; Inst: HInst; ResName: <b>PChar</b>; ResType: <b>PChar</b> ): <b>Integer</b>;</font>
<br>
Loads given resource to DestStrm. Useful for non-standard
resources to load it into memory (use memory stream for such
purpose). Use one of following resource types to pass as ResType:
<pre>
RT_ACCELERATOR Accelerator table
RT_ANICURSOR Animated cursor
RT_ANIICON Animated icon
RT_BITMAP Bitmap resource
RT_CURSOR Hardware-dependent cursor resource
RT_DIALOG Dialog box
RT_FONT Font resource
RT_FONTDIR Font directory resource
RT_GROUP_CURSOR Hardware-independent cursor resource
RT_GROUP_ICON Hardware-independent icon resource
RT_ICON Hardware-dependent icon resource
RT_MENU Menu resource
RT_MESSAGETABLE Message-table entry
RT_RCDATA Application-defined resource (raw data)
RT_STRING String-table entry
RT_VERSION Version resource
</pre>
<br>For example:
<p align=left><font face="Courier" color="008080"><b><pre>
<font color="800000"><b>var</b></font> MemStrm: PStream;
JpgObj: PJpeg;
......
MemStrm := <a href="kol_pas.htm#newmemorystream target="_top""><font color="008080">NewMemoryStream</font></a>;
JpgObj := NewJpeg;
......
Resource2Stream( MemStrm, hInstance, <font color="A08020">'MYJPEG'</font>, RT_RCDATA );
MemStrm.Position := 0;
JpgObj.LoadFromStream( MemStrm );
MemStrm.Free;
......
</pre></b></font></p>
</p>
<a name="newbits"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>NewBits</b></font>: PBits;</font>
<br>
Creates variable-length bits array object.
</p>
<a name="newstrlist"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>NewStrList</b></font>: PStrList;</font>
<br>
Creates string list object.
</p>
<a name="getfilelist"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>GetFileList</b></font>( <b>const</b> dir: <b>string</b> ): PStrList;</font>
<br>
By Alexander Shakhaylo. Returns list of file names of the given directory.
</p>
<a name="newstrlistex"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>NewStrListEx</b></font>: PStrListEx;</font>
<br>
Creates extended string list object.
</p>
<a name="pwstrlist"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>PWStrList</b></font> = ^ TWstrList;</font>
<br>
</p>
<a name="newwstrlist"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>NewWStrList</b></font>: <a href=#pwstrlist>PWStrList</a>;</font>
<br>
Creates new <a href=#twstrlist>TWStrList</a> object and returns a pointer to it.
</p>
<a name="newwstrlistex"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>NewWStrListEx</b></font>: PWStrListEx;</font>
<br>
Creates new <a href=#twstrlistex>TWStrListEx</a> objects and returns a pointer to it.
</p>
<a name="tgraphictooltype"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TGraphicToolType</b></font> =( gttBrush, gttFont, gttPen );</font>
<br>
Graphic object types, mainly for internal use.
</p>
<a name="pgraphictool"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>PGraphicTool</b></font> = ^ <a href=#tgraphictool>TGraphicTool</a>;</font>
<br>
</p>
<a name="tongraphicchange"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TOnGraphicChange</b></font> = <b>procedure</b>( Sender: <a href=#pgraphictool>PGraphicTool</a> ) <b>of</b> <b>object</b>;</font>
<br>
An event mainly for internal use.
</p>
<a name="tbrushstyle"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TBrushStyle</b></font> =( bsSolid, bsClear, bsHorizontal, bsVertical, bsFDiagonal, bsBDiagonal, bsCross, bsDiagCross );</font>
<br>
Available brush styles.
</p>
<a name="tfontstyles"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TFontStyles</b></font> =( fsBold, fsItalic, fsUnderline, fsStrikeOut );</font>
<br>
Available font styles.
</p>
<a name="tfontstyle"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TFontStyle</b></font> = <b>set</b> <b>of</b> <a href=#tfontstyles>TFontStyles</a>;</font>
<br>
Font style is representing as a set of XFontStyles.
</p>
<a name="tfontpitch"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TFontPitch</b></font> =( fpDefault, fpFixed, fpVariable );</font>
<br>
Availabe font pitch values.
</p>
<a name="tfontname"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TFontName</b></font> = <b>type</b> <b>string</b>;</font>
<br>
Font name is represented as a string.
</p>
<a name="tfontcharset"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TFontCharset</b></font> = 0 . . 255;</font>
<br>
Font charset is represented by number from 0 to 255.
</p>
<a name="tfontquality"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TFontQuality</b></font> =( fqDefault, fqDraft, fqProof, fqNonAntialiased, fqAntialiased );</font>
<br>
Font quality.
</p>
<a name="tpenstyle"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TPenStyle</b></font> =( psSolid, psDash, psDot, psDashDot, psDashDotDot, psClear, psInsideFrame );</font>
<br>
Available pen styles. For more info see Delphi or Win32 help files.
</p>
<a name="tpenmode"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TPenMode</b></font> =( pmBlack, pmNotMerge, pmMaskNotPen, pmNotCopy, pmMaskPenNot, pmNot, pmXor, pmNotMask, pmMask, pmNotXor, pmNop, pmMergePenNot, pmCopy, pmMergeNotPen, pmMerge, pmWhite );</font>
<br>
Available pen modes. For more info see Delphi or Win32 help files.
</p>
<a name="tpenendcap"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TPenEndCap</b></font> =( pecRound, pecSquare, pecFlat );</font>
<br>
Avalable (for geometric pen) end cap styles.
</p>
<a name="tpenjoin"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TPenJoin</b></font> =( pjRound, pjBevel, pjMiter );</font>
<br>
Available (for geometric pen) join styles.
</p>
<a name="color2rgb"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>Color2RGB</b></font>( Color: TColor ): TColor;</font>
<br>
Function to get RGB color from system color. Parameter can be also RGB
color, in that case result is just equal to a parameter.
</p>
<a name="colorsmix"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>ColorsMix</b></font>( Color1, Color2: TColor ): TColor;</font>
<br>
Returns color, which RGB components are build as an (approximate)
arithmetic mean of correspondent RGB components of both source
colors (these both are first converted from system to RGB, and
result is always RGB color). Please note: this function is fast,
but can be not too exact.
</p>
<a name="color2rgbquad"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>Color2RGBQuad</b></font>( Color: TColor ): TRGBQuad;</font>
<br>
Converts color to RGB, used to represent RGB values in palette entries
(actually swaps R and B bytes).
</p>
<a name="color2color16"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>Color2Color16</b></font>( Color: TColor ): <b>WORD</b>;</font>
<br>
Converts Color to RGB, packed to word (as it is used in format pf16bit).
</p>
<a name="deffontcolor"></a>
<p>
<font face="Courier" color="#800080"><b>var</b> <font color="#808000"><b>DefFontColor</b></font>: TColor = clWindowText;</font>
<br>
Default font color.
</p>
<a name="globalgraphics_usefontorient"></a>
<p>
<font face="Courier" color="#800080"><b>var</b> <font color="#808000"><b>GlobalGraphics_UseFontOrient</b></font>: <b>Boolean</b>;</font>
<br>
Global flag. If stays False (default), Orientation property of Font
objects is ignored. This flag is set to True automatically in
RotateFonts add-on.
</p>
<a name="newfont"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>NewFont</b></font>: <a href=#pgraphictool>PGraphicTool</a>;</font>
<br>
Creates and returns font graphic tool object.
</p>
<a name="newbrush"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>NewBrush</b></font>: <a href=#pgraphictool>PGraphicTool</a>;</font>
<br>
Creates and returns new brush object.
</p>
<a name="newpen"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>NewPen</b></font>: <a href=#pgraphictool>PGraphicTool</a>;</font>
<br>
Creates and returns new pen object.
</p>
<a name="tfillstyle"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TFillStyle</b></font> =( fsSurface, fsBorder );</font>
<br>
Available filling styles. For more info see Win32 or Delphi help files.
</p>
<a name="tfillmode"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TFillMode</b></font> =( fmAlternate, fmWinding );</font>
<br>
Available filling modes. For more info see Win32 or Delphi help files.
</p>
<a name="tcopymode"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TCopyMode</b></font> = <b>Integer</b>;</font>
<br>
Available copying modes are following:
cmBlackness<br>
cmDstInvert<br>
cmMergeCopy<br>
cmMergePaint<br>
cmNotSrcCopy<br>
cmNotSrcErase<br>
cmPatCopy<br>
cmPatInvert<br>
cmPatPaint<br>
cmSrcAnd<br>
cmSrcCopy<br>
cmSrcErase<br>
cmSrcInvert<br>
cmSrcPaint<br>
cmWhiteness<br>
Also it is possible to use any other available ROP2 modes. For more info,
see Win32 help files.
</p>
<a name="pcanvas"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>PCanvas</b></font> = ^ <a href=#tcanvas>TCanvas</a>;</font>
<br>
</p>
<a name="tongethandle"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TOnGetHandle</b></font> = <b>function</b>( Canvas: <a href=#pcanvas>PCanvas</a> ): HDC <b>of</b> <b>object</b>;</font>
<br>
For internal use mainly.
</p>
<a name="tontextarea"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TOnTextArea</b></font> = <b>procedure</b>( Sender: <a href=#pcanvas>PCanvas</a>; <b>var</b> Size: TSize; <b>var</b> P0: TPoint );</font>
<br>
Event to calculate actual area, occupying by a text. It is used
to optionally extend calculating of TextArea taking into considaration
font Orientation property.
</p>
<a name="globalcanvas_ontextarea"></a>
<p>
<font face="Courier" color="#800080"><b>var</b> <font color="#808000"><b>GlobalCanvas_OnTextArea</b></font>: <a href=#tontextarea>TOnTextArea</a>;</font>
<br>
Global event to extend Canvas with possible add-ons, applied
when rotated fonts are used only (to take into consideration
Font.Orientation property in TextArea method).
</p>
<a name="newcanvas"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>NewCanvas</b></font>( DC: HDC ): <a href=#pcanvas>PCanvas</a>;</font>
<br>
Use to construct Canvas on base of memory DC.
</p>
<a name="timagelistcolors"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TImageListColors</b></font> =( ilcColor, ilcColor4, ilcColor8, ilcColor16, ilcColor24, ilcColor32, ilcColorDDB, ilcDefault );</font>
<br>
ImageList color schemes available.
</p>
<a name="tdrawingstyles"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TDrawingStyles</b></font> =( dsBlend25, dsBlend50, dsMask, dsTransparent );</font>
<br>
ImageList drawing styles available.
</p>
<a name="tdrawingstyle"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TDrawingStyle</b></font> = <b>Set</b> <b>of</b> <a href=#tdrawingstyles>TDrawingStyles</a>;</font>
<br>
Style of drawing is a combination of all available drawing styles.
</p>
<a name="timagetype"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TImageType</b></font> =( itBitmap, itIcon, itCursor );</font>
<br>
ImageList types available.
</p>
<a name="pimagelist"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>PImageList</b></font> = ^ <a href=#timagelist>TImageList</a>;</font>
<br>
</p>
<a name="tpixelformat"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TPixelFormat</b></font> =( pfDevice, pf1bit, pf4bit, pf8bit, pf15bit, pf16bit, pf24bit, pf32bit, pfCustom );</font>
<br>
Available pixel formats.
</p>
<a name="tbitmaphandletype"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TBitmapHandleType</b></font> =( bmDIB, bmDDB );</font>
<br>
Available bitmap handle types.
</p>
<a name="newbitmap"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>NewBitmap</b></font>( W, H: <b>Integer</b> ): PBitmap;</font>
<br>
Creates bitmap object of given size. If it is possible, do not change its
size (Width and Heigth) later - this can economy code a bit. See <a href=#tbitmap>TBitmap</a>.
</p>
<a name="newdibbitmap"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>NewDIBBitmap</b></font>( W, H: <b>Integer</b>; PixelFormat: <a href=#tpixelformat>TPixelFormat</a> ): PBitmap;</font>
<br>
Creates DIB bitmap object of given size and pixel format. If it is possible,
do not change its size (Width and Heigth) later - this can economy code a bit.
See <a href=#tbitmap>TBitmap</a>.
</p>
<a name="calcscanlinesize"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>CalcScanLineSize</b></font>( Header: PBitmapInfoHeader ): <b>Integer</b>;</font>
<br>
May be will be useful.
</p>
<a name="loadmappedbitmap"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>LoadMappedBitmap</b></font>( hInst: THandle; BmpResID: <b>Integer</b>; <b>const</b> Map: <b>array</b> <b>of</b> TColor ): HBitmap;</font>
<br>
This function can be used to load bitmap and replace some it colors to
desired ones. This function especially useful when loaded by the such way
bitmap is used as toolbar bitmap - to replace some original colors to
system default colors. To use this function properly, the bitmap shoud
be prepared as 16-color bitmap, which uses only system colors. To do so,
create a new 16-color bitmap with needed dimensions in Borland Image Editor
and paste a bitmap image, copyed in another graphic tool, and then save it.
If this is not done, bitmap will not be loaded correctly!
</p>
<a name="loadmappedbitmapex"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>LoadMappedBitmapEx</b></font>( MasterObj: <a href=#pobj>PObj</a>; hInst: THandle; BmpResName: <b>PChar</b>; <b>const</b> Map: <b>array</b> <b>of</b> TColor ): HBitmap;</font>
<br>
Like <a href=#loadmappedbitmap>LoadMappedBitmap</a>, but much powerful. It uses <a href=#createmappedbitmapex>CreateMappedBitmapEx</a>
by Alex Pravdin, so it understands any bitmap color format, including
pf24bit. Also, LoadMappedBitmapEx provides auto-destroying loaded resource
when MasterObj is destroyed.
</p>
<a name="createmappedbitmap"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>CreateMappedBitmap</b></font>( Instance: THandle; Bitmap: <b>Integer</b>; Flags: UINT; ColorMap: PColorMap; NumMaps: <b>Integer</b> ): HBitmap; stdcall;</font>
<br>
Creates mapped bitmap replacing colors correspondently to the
ColorMap (each pare of colors defines color replaced and a color
used for replace it in the bitmap). See also <a href=#createmappedbitmapex>CreateMappedBitmapEx</a>.
</p>
<a name="createmappedbitmapex"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>CreateMappedBitmapEx</b></font>( Instance: THandle; BmpRsrcName: <b>PChar</b>; Flags: Cardinal; ColorMap: PColorMap; NumMaps: <b>Integer</b> ): HBitmap;</font>
<br>
By Alex Pravdin.
Creates mapped bitmap independently from bitmap color format (works
correctly with bitmaps having format deeper than 8bit per pixel).
</p>
<a name="saveicons2stream"></a>
<p>
<font face="Courier" color="#800080"><b>procedure</b> <font color="#808000"><b>SaveIcons2Stream</b></font>( <b>const</b> Icons: <b>array</b> <b>of</b> PIcon; Strm: PStream );</font>
<br>
Saves several icons (of different dimentions) to stream.
</p>
<a name="saveicons2streamex"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>SaveIcons2StreamEx</b></font>( <b>const</b> BmpHandles: <b>array</b> <b>of</b> HBitmap; Strm: PStream ): <b>Boolean</b>;</font>
<br>
Saves icons creating it from pairs of bitmaps and their masks.
BmpHandles array must contain pairs of bitmap handles, each pair
of color bitmap and mask bitmap of the same size.
</p>
<a name="saveicons2file"></a>
<p>
<font face="Courier" color="#800080"><b>procedure</b> <font color="#808000"><b>SaveIcons2File</b></font>( <b>const</b> Icons: <b>array</b> <b>of</b> PIcon; <b>const</b> FileName: <b>String</b> );</font>
<br>
Saves several icons (of different dimentions) to file. (Single file
with extension .ico can contain several different sized icon images
to use later one with the most appropriate size).
</p>
<a name="newicon"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>NewIcon</b></font>: PIcon;</font>
<br>
Creates new icon object, setting its Size to 32 by default. Created icon
is Empty.
</p>
<a name="getfileiconcount"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>GetFileIconCount</b></font>( <b>const</b> FileName: <b>String</b> ): <b>Integer</b>;</font>
<br>
Returns number of icon resources stored in given (executable) file.
</p>
<a name="loadimgicon"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>LoadImgIcon</b></font>( RsrcName: <b>PChar</b>; Size: <b>Integer</b> ): HIcon;</font>
<br>
Loads icon of specified size from the resource.
</p>
<a name="newmetafile"></a>
<p>
<font face="Courier" color="#800080"><b>function</b> <font color="#808000"><b>NewMetafile</b></font>: PMetafile;</font>
<br>
Creates metafile object.
</p>
<a name="id_self"></a>
<p>
<font face="Courier" color="#800080"><b>var</b> <font color="#808000"><b>ID_SELF</b></font>: array[ 0 . . 5 ] <b>of</b> <b>Char</b> =( 'S', 'E', 'L', 'F', '_', #0 );</font>
<br>
Identifier for window property "Self", stored directly in window, when
it is created. This property is used to [fast] find TControl object,
correspondent to given window handle (using API call GetProp).
</p>
<a name="id_prevproc"></a>
<p>
<font face="Courier" color="#800080"><b>var</b> <font color="#808000"><b>ID_PREVPROC</b></font>: array[ 0 . . 9 ] <b>of</b> <b>Char</b> =( 'P', 'R', 'E', 'V', '_', 'P', 'R', 'O', 'C', #0 );</font>
<br>
</p>
<a name="pcontrol"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>PControl</b></font> = ^ TControl;</font>
<br>
Type of pointer to TControl visual object. All
<a href="kol_pas.htm#visual_objects_constructors">
constructing functions
</a>
New[ControlName] are returning
pointer of this type. Do not forget about some difference
of using objects from using classes. Identifier Self for
methods of object is not of pointer type, and to pass
pointer to Self, it is necessary to pass @Self instead.
At the same time, to use pointer to object in 'WITH' operator,
it is necessary to apply suffix '^' to pointer to get know
to compiler, what do You want.
</p>
<a name="twindowfunc"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TWindowFunc</b></font> = <b>function</b>( Sender: <a href=#pcontrol>PControl</a>; <b>var</b> Msg: TMsg; <b>var</b> Rslt: <b>Integer</b> ): <b>Boolean</b>;</font>
<br>
Event type to define custom extended message handlers (as pointers to
procedure entry points). Such handlers are usually defined like add-ons,
extending behaviour of certain controls and attached using AttachProc
method of TControl. If the handler detects, that it is necessary to stop
further message processing, it should return True.
</p>
<a name="tmousebutton"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TMouseButton</b></font> =( mbNone, mbLeft, mbRight, mbMiddle );</font>
<br>
Available mouse buttons. mbNone is useful to get know, that
there were no mouse buttons pressed.
</p>
<a name="tmouseeventdata"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TMouseEventData</b></font> = <b>packed</b> <b>Record</b></font>
<br>
Record to pass it to mouse handling routines, assigned to OnMouseXXXX
events.
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="32"> </td>
<td valign="top">
<font face="Courier" color="#800080">Button: <a href=#tmousebutton>TMouseButton</a>;</font>
</td>
<td valign="top">
</td>
</tr>
<tr>
<td width="32"> </td>
<td valign="top">
<font face="Courier" color="#800080">StopHandling: <b>Boolean</b>;</font>
</td>
<td valign="top">
Set it to True in OnMouseXXXX event handler to
</td>
</tr>
<tr>
<td width="32"> </td>
<td valign="top">
<font face="Courier" color="#800080">R1, R2: <b>Byte</b>;</font>
</td>
<td valign="top">
Not used
</td>
</tr>
<tr>
<td width="32"> </td>
<td valign="top">
<font face="Courier" color="#800080">Shift : <b>DWORD</b>;</font>
</td>
<td valign="top">
HiWord( Shift ) = zDelta in WM_MOUSEWHEEL
</td>
</tr>
<tr>
<td width="32"> </td>
<td valign="top">
<font face="Courier" color="#800080">X, Y : SmallInt;</font>
</td>
<td valign="top">
</td>
</tr>
</table>
<font face="Courier" color="#800080"><b>end</b>;</font>
</p>
<a name="tonmouse"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TOnMouse</b></font> = <b>procedure</b>( Sender: <a href=#pcontrol>PControl</a>; <b>var</b> Mouse: <a href=#tmouseeventdata>TMouseEventData</a> ) <b>of</b> <b>object</b>;</font>
<br>
Common mouse handling event type.
</p>
<a name="tonkey"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TOnKey</b></font> = <b>procedure</b>( Sender: <a href=#pcontrol>PControl</a>; <b>var</b> Key: Longint; Shift: <b>DWORD</b> ) <b>of</b> <b>object</b>;</font>
<br>
Key events. Shift is a combination of flags MK_SHIFT, MK_CONTROL, MK_ALT.
(See GetShiftState funtion).
</p>
<a name="tonchar"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TOnChar</b></font> = <b>procedure</b>( Sender: <a href=#pcontrol>PControl</a>; <b>var</b> Key: <b>Char</b>; Shift: <b>DWORD</b> ) <b>of</b> <b>object</b>;</font>
<br>
Char event. Shift is a combination of flags MK_SHIFT, MK_CONTROL, MK_ALT.
</p>
<a name="ttabkey"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TTabKey</b></font> =( tkTab, tkLeftRight, tkUpDown, tkPageUpPageDn );</font>
<br>
Available tabulating key groups.
</p>
<a name="ttabkeys"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TTabKeys</b></font> = <b>Set</b> <b>of</b> <a href=#ttabkey>TTabKey</a>;</font>
<br>
Set of tabulating key groups, allowed to be used in with a control
(are installed by TControl.LookTabKey property).
</p>
<a name="tonmessage"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TOnMessage</b></font> = <b>function</b>( <b>var</b> Msg: TMsg; <b>var</b> Rslt: <b>Integer</b> ): <b>Boolean</b> <b>of</b> <b>object</b>;</font>
<br>
Event type for events, which allows to extend behaviour of windowed controls
descendants using add-ons.
</p>
<a name="toneventaccept"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TOnEventAccept</b></font> = <b>procedure</b>( Sender: <a href=#pobj>PObj</a>; <b>var</b> Accept: <b>Boolean</b> ) <b>of</b> <b>object</b>;</font>
<br>
Event type for OnClose event.
</p>
<a name="tclosequeryreason"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TCloseQueryReason</b></font> =( qClose, qShutdown, qLogoff );</font>
<br>
Request reason type to call OnClose and OnQueryEndSession.
</p>
<a name="twindowstate"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TWindowState</b></font> =( wsNormal, wsMinimized, wsMaximized );</font>
<br>
Avalable states of TControl's window object.
</p>
<a name="tonsplit"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TOnSplit</b></font> = <b>function</b>( Sender: <a href=#pcontrol>PControl</a>; NewSize1, NewSize2: <b>Integer</b> ): <b>Boolean</b> <b>of</b> <b>object</b>;</font>
<br>
Event type for OnSplit event handler, designed specially for splitter
control. Event handler must return True to accept new size of previous
(to splitter) control and new size of the rest of client area of parent.
</p>
<a name="tontvbegindrag"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TOnTVBeginDrag</b></font> = <b>procedure</b>( Sender: <a href=#pcontrol>PControl</a>; Item: THandle ) <b>of</b> <b>object</b>;</font>
<br>
Event type for OnTVBeginDrag event (defined for tree view control).
</p>
<a name="tontvbeginedit"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TOnTVBeginEdit</b></font> = <b>function</b>( Sender: <a href=#pcontrol>PControl</a>; Item: THandle ): <b>Boolean</b> <b>of</b> <b>object</b>;</font>
<br>
Event type for OnTVBeginEdit event (for tree view control).
</p>
<a name="tontvendedit"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TOnTVEndEdit</b></font> = <b>function</b>( Sender: <a href=#pcontrol>PControl</a>; Item: THandle; <b>const</b> NewTxt: <b>String</b> ): <b>Boolean</b> <b>of</b> <b>object</b>;</font>
<br>
Event type for TOnTVEndEdit event.
</p>
<a name="tontvexpanding"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TOnTVExpanding</b></font> = <b>function</b>( Sender: <a href=#pcontrol>PControl</a>; Item: THandle; Expand: <b>Boolean</b> ): <b>Boolean</b> <b>of</b> <b>object</b>;</font>
<br>
Event type for TOnTVExpanding event.
</p>
<a name="tontvexpanded"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TOnTVExpanded</b></font> = <b>procedure</b>( Sender: <a href=#pcontrol>PControl</a>; Item: THandle; Expand: <b>Boolean</b> ) <b>of</b> <b>object</b>;</font>
<br>
Event type for OnTVExpanded event.
</p>
<a name="tontvdelete"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TOnTVDelete</b></font> = <b>procedure</b>( Sender: <a href=#pcontrol>PControl</a>; Item: THandle ) <b>of</b> <b>object</b>;</font>
<br>
Event type for OnTVDelete event.
</p>
<a name="tontvselchanging"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TOnTVSelChanging</b></font> = <b>function</b>( Sender: <a href=#pcontrol>PControl</a>; oldItem, newItem: THandle ): <b>Boolean</b> <b>of</b> <b>object</b>;</font>
<br>
When the handler returns False, selection is not changed.
</p>
<a name="tondrag"></a>
<p>
<font face="Courier" color="#800080"><b>type</b> <font color="#808000"><b>TOnDrag</b></font> = <b>function</b>( Sender: <a href=#pcontrol>PControl</a>; ScrX, ScrY: <b>Integer</b>; <b>var</b> CursorShape: <b>Integer</b>; <b>var</b> Stop: <b>Boolean</b> ): <b>Boolean</b> <b>of</b> <b>object</b>;</font>