File: VirtualTrees.dtx

package info (click to toggle)
mysql-gui-tools 5.0r12-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 105,540 kB
  • ctags: 50,897
  • sloc: sql: 348,439; pascal: 285,780; cpp: 94,578; ansic: 90,768; objc: 33,761; sh: 25,629; xml: 10,924; yacc: 10,755; java: 9,986; php: 2,806; python: 2,068; makefile: 1,945; perl: 3
file content (6495 lines) | stat: -rw-r--r-- 243,029 bytes parent folder | download | duplicates (4)
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495





@@ckButtonDisabled
<COMBINE Check button image indices>

@@ckCheckMixedDisabled
<COMBINE Check button image indices>

simple button

@@ckEmpty
<COMBINE Check button image indices>

an empty image used as place holder radio buttons

@@ckRadioCheckedDisabled
<COMBINE Check button image indices>

check boxes
















@@ShortenString@HDC@WideString@Integer@Boolean@Integer
Note
It is assumed that the string really needs shortage. Check this in advance.
Summary
General purpose routine to shorten a Unicode string to a given maximum size.

Description
Adjusts the given string <B>S</B> so that it fits into the given width. <B>DC</B> holds the handle to a valid device
context which can be used to determine the width of a string. Of couse, this device context should be set up with the
proper values for the current font. <B>EllipsisWidth</B> gives the width (in logical units) of the three points to be
added to the shorted string. If this value is 0 then it will be determined implicitely. For higher speed (and multiple
entries to be shorted) specify this value explicitely. <B>RTL</B> determines if right-to-left reading is active, which is
needed to put the ellipsisis on the correct side. The result is the left part of the string which fits into the given
space plus the ellipsisis.


@@TBaseVirtualTree
TBaseVirtualTree is the main and base class for all other Virtual Treeview descendants. This class implements most of the
base features and abilities and can be used to derive new classes, which want to hide most of the details of the tree,
which other descendants like TVirtualStringTree publish. Do not use the base treeview as object. It is not meant to be
instantiated directly, instead via an descendant.

@@TBaseVirtualTree.AdjustCoordinatesByIndent@TVTPaintInfo@Integer
During painting of the main column some coordinates must be adjusted due to the tree lines.
The offset resulting from the tree lines and indentation level is given in Indent.

@@TBaseVirtualTree.AdjustImageBorder@TCustomImageList@TBidiMode@Integer@TRect@TVTImageInfo
Depending on the width of the image list as well as the given bidi mode R must be adjusted.

@@TBaseVirtualTree.AdjustTotalCount@PVirtualNode@Integer@Boolean
Sets a node's total count to the given value and recursively adjusts the parent's total count
(actually, the adjustment is done iteratively to avoid function call overheads).

@@TBaseVirtualTree.AdjustTotalHeight@PVirtualNode@Integer@Boolean
Sets a node's total height to the given value and recursively adjusts the parent's total height.

@@TBaseVirtualTree.CalculateCacheEntryCount
Calculates the size of the position cache.

@@TBaseVirtualTree.CalculateVerticalAlignments@Boolean@Boolean@PVirtualNode@Integer@Integer
Calculates the vertical alignment of the given node and its associated expand/collapse button during
a node paint cycle depending on the required node alignment style.

@@TBaseVirtualTree.ChangeCheckState@PVirtualNode@TCheckState
Sets the check state of the node according to the given value and the node's check type.
If the check state must be propagated to the parent nodes and one of them refuses to change then
nothing happens and False is returned, otherwise True.

@@TBaseVirtualTree.ClearNodeBackground@TVTPaintInfo@Boolean@Boolean@TRect
Erases a nodes background depending on what the application decides to do.
UseBackground determines whether or not to use the background picture, while Floating indicates
that R is given in coordinates of the small node bitmap or the superordinated target bitmap used in PaintTree.

@@TBaseVirtualTree.CMDenySubclassing@TMessage
If a Windows XP Theme Manager component is used in the application it will try to subclass all controls which do not
explicitly deny this. Virtual Treeview knows how to handle XP themes so it does not need subclassing.

@@TBaseVirtualTree.CMHintShow@TCMHintShow
Determines hint message (tooltip) and out-of-hint rect.
Note: A special handling is needed here because we cannot pass wide strings back to the caller.
      I had to introduce the hint data record anyway so we can use this to pass the hint string.
      We still need to set a dummy hint string in the message to make the VCL showing the hint window.

@@TBaseVirtualTree.CMHintShowPause@TCMHintShowPause
Tells the application that the tree (and only the tree) does not want a delayed tool tip.
Normal hints / header hints use the default delay (except the first time).

@@TBaseVirtualTree.CollectSelectedNodesLTR@Integer@Integer@Integer@TAlignment@TRect@TRect
Helper routine used when a draw selection takes place. This version handles left-to-right directionality.
In the process of adding or removing nodes the current selection is modified which requires to pack it after
the function returns. Another side effect of this method is that a temporary list of nodes will be created
(see also InternalCacheNode) which must be inserted into the current selection by the caller.

@@TBaseVirtualTree.CollectSelectedNodesRTL@Integer@Integer@Integer@TAlignment@TRect@TRect
Helper routine used when a draw selection takes place. This version handles right-to-left directionality.
See also comments in CollectSelectedNodesLTR.

@@TBaseVirtualTree.CompareNodePositions@PVirtualNode@PVirtualNode
Tries hard and smart to quickly determine whether Node1's structural position is before Node2's position
Returns 0 if Node1 = Node2, < 0 if Node1 is located before Node2 else > 0.

@@TBaseVirtualTree.DrawLineImage@TVTPaintInfo@Integer@Integer@Integer@Integer@TVTLineType@Boolean
Draws (depending on Style) one of the 5 line types of the tree.
If Reverse is True then a right-to-left column is being drawn, hence horizontal lines must be mirrored.
X and Y describe the left upper corner of the line image rectangle, while H denotes its height (and width).

@@TBaseVirtualTree.FAlignment
 

@@TBaseVirtualTree.FAnimationDuration
 

@@TBaseVirtualTree.FAnimationType
 

@@TBaseVirtualTree.FAutoExpandDelay
amount of milliseconds to wait until a node is expanded if it is the
drop target

@@TBaseVirtualTree.FAutoScrollDelay
amount of milliseconds to wait until autoscrolling becomes active

@@TBaseVirtualTree.FAutoScrollInterval
determines speed of auto scrolling

@@TBaseVirtualTree.FBackground
A background image loadable at design and runtime.

@@TBaseVirtualTree.FButtonFillMode
for rectangular tree buttons only: how to fill them

@@TBaseVirtualTree.FButtonStyle
style of the tree buttons

@@TBaseVirtualTree.FChangeDelay
used to delay OnChange event


@@TBaseVirtualTree.FCheckImageKind
light or dark, cross marks or tick marks

@@TBaseVirtualTree.FCheckImages
Reference to global image list to be used for the check images.

@@TBaseVirtualTree.FCheckNode
node which "captures" an check event

@@TBaseVirtualTree.FClipboardFormats
a list of clipboard format descriptions enabled for this tree

@@TBaseVirtualTree.FColors
class comprising all customizable colors in the tree

@@TBaseVirtualTree.FDefaultPasteMode
Used to determine where to add pasted nodes to.

@@TBaseVirtualTree.FDottedBrush
used to paint dotted lines without special pens

@@TBaseVirtualTree.FDragImage
drag image management

@@TBaseVirtualTree.FDragImageKind
determines whether or not and what to show in the drag image

@@TBaseVirtualTree.FDragManager
drag'n drop, cut'n paste

@@TBaseVirtualTree.FDragOperations
determines which operations are allowed during drag'n drop

@@TBaseVirtualTree.FDragScrollStart
Contains the start time when a tree does auto scrolling as drop target.

@@TBaseVirtualTree.FDragSelection
temporary copy of FSelection used during drag'n drop

@@TBaseVirtualTree.FDragThreshold
used to determine when to actually start a drag'n drop operation

@@TBaseVirtualTree.FDragType
used to switch between OLE and VCL drag'n drop

@@TBaseVirtualTree.FDrawSelectionMode
determines the paint mode for draw selection

@@TBaseVirtualTree.FDrawSelShiftState
keeps the initial shift state when the user starts selection with
the mouse

@@TBaseVirtualTree.FDropTargetNode
node currently selected as drop target

@@TBaseVirtualTree.FEditDelay
determines time to elapse before a node goes into edit mode

@@TBaseVirtualTree.FEditLink
used to comunicate with an application defined editor

@@TBaseVirtualTree.FFontChanged
flag for keeping informed about font changes in the off screen buffer

@@TBaseVirtualTree.FHeaderRect
Space which the header currently uses in the control (window coords).

@@TBaseVirtualTree.FHintData
used while preparing the hint window

@@TBaseVirtualTree.FHintMode
determines the kind of the hint window

@@TBaseVirtualTree.FHotCursor
can be set to additionally indicate the current hot node

@@TBaseVirtualTree.FIncrementalSearch
Used to determine whether and how incremental search is to be used.

@@TBaseVirtualTree.FindInPositionCache@Cardinal@Cardinal
Looks through the position cache and returns the node whose top position is the largest one which is smaller or equal
to the given vertical position.
The returned node does not necessarily occupy the given position but is the nearest one to start
iterating from to approach the real node for a given position. CurrentPos receives the actual position of the found
node which is needed for further iteration.

@@TBaseVirtualTree.FindInPositionCache@PVirtualNode@Cardinal
Looks through the position cache and returns the node whose top position is the largest one which is smaller or equal
to the position of the given node.

@@TBaseVirtualTree.FLastClickPos
Used for retained drag start and wheel mouse scrolling.

@@TBaseVirtualTree.FLastDropMode
set while dragging and used to track changes

@@TBaseVirtualTree.FLastHintRect
Area which the must must leave to reshow a hint.

@@TBaseVirtualTree.FLastSearchNode
Reference to node which was last found as search fit.

@@TBaseVirtualTree.FLastSelectionLevel
keeps the last node level for constrained multiselection

@@TBaseVirtualTree.FLastStructureChangeReason
used for delayed structur change event

@@TBaseVirtualTree.FLastVCLDragTarget
A node cache for VCL drag'n drop (keywords: DragLeave on DragDrop).

@@TBaseVirtualTree.FLineMode
tree lines or bands etc.

@@TBaseVirtualTree.FLineStyle
style of the tree lines

@@TBaseVirtualTree.FMargin
horizontal border distance

@@TBaseVirtualTree.FNodeAlignment
determines how to interpret the align member of a node

@@TBaseVirtualTree.FNodeDataSize
number of bytes to allocate with each node (in addition to its base
structure and the internal data), if -1 then do callback


@@TBaseVirtualTree.FOldFontChange
helper method pointer for tracking font changes in the off screen buffer

@@TBaseVirtualTree.FOnAdvancedHeaderDraw
Used when owner draw is enabled for the header and a column
is set to owner draw mode. But only if OnHeaderDrawQueryElements
returns at least one element to be drawn by the application.
In this case OnHeaderDraw is not used.

@@TBaseVirtualTree.FOnAfterCellPaint
triggered after a column of an item has been painted

@@TBaseVirtualTree.FOnAfterItemErase
triggered after an item's background has been erased

@@TBaseVirtualTree.FOnAfterItemPaint
triggered after an item has been painted

@@TBaseVirtualTree.FOnBeforeCellPaint
triggered when a column of an item is about to be painted

@@TBaseVirtualTree.FOnBeforeItemErase
triggered when an item's background is about to be erased

@@TBaseVirtualTree.FOnBeforeItemPaint
triggered when an item is about to be painted

@@TBaseVirtualTree.FOnChange
selection change

@@TBaseVirtualTree.FOnChecking
called just before a node's check state is changed

@@TBaseVirtualTree.FOnCompareNodes
used during sort

@@TBaseVirtualTree.FOnCreateDataObject
called to allow for app./descentant defined data objects

@@TBaseVirtualTree.FOnCreateDragManager
called to allow for app./descendant defined drag managers

@@TBaseVirtualTree.FOnCreateEditor
called when a node goes into edit mode, this allows applications
to supply their own editor

@@TBaseVirtualTree.FOnDragAllowed
used to get permission for manual drag in mouse down

@@TBaseVirtualTree.FOnDragDrop
called on release of mouse button (if drop was allowed)

@@TBaseVirtualTree.FOnDragOver
called for every mouse move

@@TBaseVirtualTree.FOnEditCancelled
called when editing has been cancelled

@@TBaseVirtualTree.FOnEdited
called when editing has successfully been finished

@@TBaseVirtualTree.FOnEditing
called just before a node goes into edit mode

@@TBaseVirtualTree.FOnFocusChanged
called when the focus goes to a new node and/or column

@@TBaseVirtualTree.FOnFocusChanging
called when the focus is about to go to a new node and/or column
(can be cancelled)

@@TBaseVirtualTree.FOnFreeNode
called when a node is about to be destroyed, user data can and should
be freed in this event

@@TBaseVirtualTree.FOnGetCursor
called to allow the app. to set individual cursors

@@TBaseVirtualTree.FOnGetHeaderCursor
triggered to allow the app. to use customized cursors for the header

@@TBaseVirtualTree.FOnGetHelpContext
called when a node specific help theme should be called

@@TBaseVirtualTree.FOnGetImage
used to retrieve the image index of a given node

@@TBaseVirtualTree.FOnGetLineStyle
triggered when a custom line style is used and the pattern brush
needs to be build

@@TBaseVirtualTree.FOnGetNodeDataSize
called if NodeDataSize is -1

@@TBaseVirtualTree.FOnGetPopupMenu
called when the popup for a node needs to be shown

@@TBaseVirtualTree.FOnGetUserClipboardFormats
gives application/descentants the opportunity to
add own clipboard formats on the fly

@@TBaseVirtualTree.FOnHeaderDragged
header (column) drag'n drop

@@TBaseVirtualTree.FOnHeaderDraggedOut
header (column) drag'n drop, which did not result in a valid drop.

@@TBaseVirtualTree.FOnHeaderDragging
header (column) drag'n drop

@@TBaseVirtualTree.FOnHeaderDraw
Used when owner draw is enabled for the header and a column is set
to owner draw mode.

@@TBaseVirtualTree.FOnHeaderDrawQueryElements
Used for advanced header painting to query the
application for the elements, which are drawn by it and which should
be drawn by the tree.

@@TBaseVirtualTree.FOnHotChange
called when the current "hot" node (that is, the node under the mouse)
changes and hot tracking is enabled

@@TBaseVirtualTree.FOnIncrementalSearch
triggered on every key press (not key down)

@@TBaseVirtualTree.FOnInitChildren
called when a node's children are needed (expanding etc.)

@@TBaseVirtualTree.FOnInitNode
called when a node needs to be initialized (child count etc.)

@@TBaseVirtualTree.FOnKeyAction
used to selectively prevent key actions (full expand on Ctrl+'+' etc.)

@@TBaseVirtualTree.FOnMeasureItem
Triggered when a node is about to be drawn and its height was not yet
determined by the application.

@@TBaseVirtualTree.FOnNodeCopied
call after a node has been copied

@@TBaseVirtualTree.FOnNodeCopying
called when an node is copied to another parent node (probably in
another tree, but within the same application, can be cancelled)

@@TBaseVirtualTree.FOnNodeMoved
called after a node and its children have been moved to another
parent node (probably another tree, but within the same application)

@@TBaseVirtualTree.FOnNodeMoving
called just before a node is moved from one parent node to another
(this can be cancelled)

@@TBaseVirtualTree.FOnPaintBackground
triggered if a part of the tree's background must be erased which is
not covered by any node

@@TBaseVirtualTree.FOnRenderOLEData
application/descendant defined clipboard formats

@@TBaseVirtualTree.FOnResetNode
called when a node is set to be uninitialized

@@TBaseVirtualTree.FOnScroll
called when one or both paint offsets changed

@@TBaseVirtualTree.FOnStateChange
Called whenever a state in the tree changes.

@@TBaseVirtualTree.FOnStructureChange
structural change like adding nodes etc.

@@TBaseVirtualTree.FOnUpdating
called from BeginUpdate, EndUpdate, BeginSynch and EndSynch

@@TBaseVirtualTree.FPanningCursor
Current wheel panning cursor.

@@TBaseVirtualTree.FPanningImage
A little 32x32 bitmap to indicate the panning reference point.

@@TBaseVirtualTree.FPanningWindow
Helper window for wheel panning

@@TBaseVirtualTree.FPendingCheckState
the new state the check node will get if all wents fine

@@TBaseVirtualTree.FPositionCache
array which stores node references ordered by vertical positions
(see also DoValidateCache for more information)

@@TBaseVirtualTree.FRangeAnchor
anchor node for selection with the keyboard, determines start of a
selection range

@@TBaseVirtualTree.FScrollBarOptions
common properties of horizontal and vertical scrollbar

@@TBaseVirtualTree.FScrollDirections
directions to scroll client area into depending on mouse position

@@TBaseVirtualTree.FSearchBuffer
Collects a sequence of keypresses used to do incremental searching.

@@TBaseVirtualTree.FSearchDirection
Direction to incrementally search the tree.

@@TBaseVirtualTree.FSearchStart
Where to start iteration on each key press.

@@TBaseVirtualTree.FSearchTimeout
Number of milliseconds after which to stop incremental searching.

@@TBaseVirtualTree.FSelection
list of currently selected nodes

@@TBaseVirtualTree.FSelectionBlendFactor
Determines the factor by which the selection rectangle is to be
faded if enabled.

@@TBaseVirtualTree.FSelectionCount
number of currently selected nodes (size of FSelection might differ)

@@TBaseVirtualTree.FSelectionCurveRadius
radius for rounded selection rectangles

@@TBaseVirtualTree.FSingletonNodeArray
Contains only one element for quick addition of single nodes
to the selection.

@@TBaseVirtualTree.FStartIndex
index to start validating cache from

@@TBaseVirtualTree.FStates
various active/pending states the tree needs to consider

@@TBaseVirtualTree.FSynchUpdateCount
synchronizer, causes all events which are usually done via timers
to happen immediately, regardless of the normal update state

@@TBaseVirtualTree.FTempNodeCache
used at various places to hold temporarily a bunch of node refs.

@@TBaseVirtualTree.FTempNodeCount
number of nodes in FTempNodeCache

@@TBaseVirtualTree.FTextMargin
space between the node's text and its horizontal bounds

@@TBaseVirtualTree.FTotalInternalDataSize
Cache of the sum of the necessary internal data size for all tree
classes derived from this base class.

@@TBaseVirtualTree.FUpdateCount
update stopper, updates of the tree control are only done if = 0

@@TBaseVirtualTree.FVCLDragEffect
A cache for VCL drag'n drop to keep the current drop effect.

@@TBaseVirtualTree.FVisibleCount
number of currently visible nodes

@@TBaseVirtualTree.FWantTabs
If True then the tree also consumes the tab key.

@@TBaseVirtualTree.GetDragManager
Returns the internal drag manager interface. If this does not yet exist then it is created here.

@@TBaseVirtualTree.GetFullyVisible@PVirtualNode
Determines whether the given node has the visibility flag set as well as all its parents are expanded.

@@TBaseVirtualTree.GetVisible@PVirtualNode
Determines if the given node marked as being visible.

@@TBaseVirtualTree.GetVisiblePath@PVirtualNode
Determines if all parents of the given node are expanded and have the visibility flag set.


@@TBaseVirtualTree.HandleDrawSelection@Integer@Integer
Handles multi-selection with a focus rectangle.
Result is True if something changed in selection.

@@TBaseVirtualTree.HasVisibleNextSibling@PVirtualNode
Helper method to determine if the given node has a visible sibling. This is needed to
draw correct tree lines.

@@TBaseVirtualTree.InitializeFirstColumnValues@TVTPaintInfo
Determines initial index, position and cell size of the first visible column.

@@TBaseVirtualTree.InitializeLineImageAndSelectLevel@PVirtualNode@TLineImage
This method is used during paint cycles and initializes an array of line type IDs. These IDs are used to paint
the tree lines in front of the given node.
Additionally an initial count of selected parents is determined and returned which is used for specific painting.

@@TBaseVirtualTree.InitRootNode@Cardinal
Reinitializes the root node.

@@TBaseVirtualTree.InterruptValidation
Waits until the worker thread has stopped validating the caches of this tree.

@@TBaseVirtualTree.IsFirstVisibleChild@PVirtualNode@PVirtualNode
Helper method to check if Node is the same as the first visible child of Parent.

@@TBaseVirtualTree.IsLastVisibleChild@PVirtualNode@PVirtualNode
Helper method to check if Node is the same as the last visible child of Parent.

@@TBaseVirtualTree.LimitPaintingToArea@TCanvas@TRect@HRGN
Limits further painting onto the given canvas to the given rectangle.
VisibleRegion is an optional region which can be used to limit drawing further.

@@TBaseVirtualTree.PrepareBitmaps@Boolean@Boolean
initializes the contents of the internal bitmaps

@@TBaseVirtualTree.PrepareCell@TVTPaintInfo@Integer@Integer
This method is called immediately before a cell's content is drawn und is responsible to paint selection colors etc.

@@TBaseVirtualTree.ReadOldOptions@TReader
Migration helper routine to silently convert forms containing the old tree options member into the new
sub-options structure.

@@TBaseVirtualTree.SetChildCount@PVirtualNode@Cardinal
Changes a node's child structure to accomodate the new child count. This is used to add or delete
child nodes to/from the end of the node's child list. To insert or delete a specific node a separate
routine is used.

@@TBaseVirtualTree.SetFullyVisible@PVirtualNode@Boolean
This method ensures that a node is visible and all its parent nodes are expanded and also visible
if Value is True. Otherwise the visibility flag of the node is reset but the expand state
of the parent nodes stays untouched.

@@TBaseVirtualTree.SetVisible@PVirtualNode@Boolean
Sets the visibility style of the given node according to Value.

@@TBaseVirtualTree.SetVisiblePath@PVirtualNode@Boolean
If Value is True then all parent nodes of Node are expanded.

@@TBaseVirtualTree.TileBackground@TBitmap@TCanvas@TPoint@TRect
Draws the given source graphic so that it tiles into the given rectangle which is relative to the target bitmap.
The graphic is aligned so that it always starts at the upper left corner of the target canvas.
Offset gives the position of the target window in an possible superordinated surface.

@@TBaseVirtualTree.WMContextMenu@TWMContextMenu
This method is called when a popup menu is about to be displayed.
We have to cancel some pending states here to avoid interferences.

@@TBaseVirtualTree.WMHScroll@TWMHScroll
local functions

@@TBaseVirtualTree.WMKeyDown@TWMKeyDown
Keyboard event handling for node focus, selection, node specific popup menus and help invokation.
For a detailed description of every action done here read the help.


@@TBlendMode.bmConstantAlpha
apply given constant alpha

@@TBlendMode.bmConstantAlphaAndColor
blend the destination color with the given constant color und the constant alpha value

@@TBlendMode.bmMasterAlpha
use alpha value of source pixel and multiply it with the constant alpha value

@@TBlendMode.bmPerPixelAlpha
use alpha value of the source pixel

@@TChangeReason.crAccumulated
used for delayed changes

@@TChangeReason.crChildAdded
one or more child nodes have been added

@@TChangeReason.crChildDeleted
one or more child nodes have been deleted

@@TChangeReason.crIgnore
used as placeholder

@@TChangeReason.crNodeAdded
a node has been added

@@TChangeReason.crNodeCopied
a node has been duplicated

@@TChangeReason.crNodeMoved
a node has been moved to a new place


@@TCheckImageKind
Summary
Determines which images should be used for checkboxes and radio buttons.

Description
Provided with the tree are nine different image sets for the check images used when toCheckSupport is enabled in
TreeOptions.
<TABLE noborder>
<IMAGE Check images overview>
</TABLE>


Eight of the nine lists are predefined while one is a custom check image list, which can be filled by the application.
Use ckCustom as CheckImageKind value and assign an image list to the CustomCheckImages property to enable custom images.



The order of the images in the image lists is always as listed below. Make sure you have the same amount of images in
your custom image list, if you want own check images.



    * empty image (ckEmpty)

<B>Radio buttons:</B>

    * uncheck normal (ckRadioUncheckedNormal)
    * unchecked hot (ckRadioUncheckedHot)
    * unchecked pressed (ckRadioUncheckedPressed)
    * unchecked disabled (ckRadioUncheckedDisabled)
    * checked normal (ckRadioCheckedNormal)
    * checked hot (ckRadioCheckedHot)
    * checked pressed (ckRadioCheckedPressed)
    * checked disabled (ckRadioCheckedDisabled)

<B>Check boxes:</B>

    * unchecked normal (ckCheckUncheckedNormal)
    * unchecked hot (ckCheckUncheckedHot)
    * unchecked pressed (ckCheckUncheckedPressed)
    * unchecked disabled (ckCheckUncheckedDisabled)
    * checked normal (ckCheckCheckedNormal)
    * checked hot (ckCheckCheckedHot)
    * checked pressed (ckCheckCheckedPressed)
    * checked disabled (ckCheckCheckedDisabled)
    * mixed normal (ckCheckMixedNormal)
    * mixed hot (ckCheckMixedHot)
    * mixed pressed (ckCheckMixedPressed)
    * mixed disabled (ckCheckMixedDisabled)

<B>Node buttons:</B>

    * button normal (ckButtonNormal)
    * button hot (ckButtonHot)
    * button pressed (ckButtonPressed)
    * button disabled (ckButtonDisabled)

@@TCheckImageKind.ckCustom
application defined check images

@@TCheckImageKind.ckDarkCheck
black cross

@@TCheckImageKind.ckDarkTick
black tick mark

@@TCheckImageKind.ckFlat
flat images (no 3D border)

@@TCheckImageKind.ckLightCheck
gray cross

@@TCheckImageKind.ckLightTick
gray tick mark

@@TCheckImageKind.ckSystem
System defined check images.

@@TCheckImageKind.ckSystemFlat
Flat system defined check images.

@@TCheckImageKind.ckXP
Windows XP style

@@TCheckState.csCheckedNormal
checked and not pressed

@@TCheckState.csCheckedPressed
checked and pressed

@@TCheckState.csMixedNormal
3-state check box and not pressed

@@TCheckState.csMixedPressed
3-state check box and pressed

@@TCheckState.csUncheckedNormal
unchecked and not pressed

@@TCheckState.csUncheckedPressed
unchecked and pressed


@@TClipboardFormatList.Add@string@TVirtualTreeClass@Cardinal@TFormatEtc
Adds the given data to the internal list. The priority value is used to sort formats for importance. Larger priority
values mean less priority.

@@TClipboardFormatList.EnumerateFormats@TVirtualTreeClass@TFormatEtcArray@TClipboardFormats
Returns a list of format records for the given class. If assigned the AllowedFormats is used to limit the
enumerated formats to those described in the list.

@@TClipboardFormatList.EnumerateFormats@TVirtualTreeClass@TStrings
Returns a list of format descriptions for the given class.

@@TClipboardFormatList.Sort
local function

@@TClipboardFormatListEntry.Description
The string used to register the format with Windows.

@@TClipboardFormatListEntry.FormatEtc
The definition of the format in the IDataObject.

@@TClipboardFormatListEntry.Priority
Number which determines the order of formats used in IDataObject.

@@TClipboardFormatListEntry.TreeClass
The tree class which supports rendering this format.

@@TClipboardFormats
Summary
List of strings describing clipboard formats.



Description
This class is an extended string list which allows to enter description strings for clipboard formats which are checked
agains registered formats and only accepted if the particular format could be found. This way there is an unambiqious and
portable description of allowed clipboard formats possible.

@@TClipboardFormats.Add@string
Summary
Adds a new format to the internal list.



Description
Adds or inserts a new format to the internal list but restricts additions to the clipbard formats to only those which are
registered with the owner tree or one of its ancestors.

@@TClipboardFormats.Insert@Integer@string
<COMBINE TClipboardFormats.Add@string>


@@TCustomVirtualStringTree.FDefaultText
text to show if there's no OnGetText event handler (e.g. at design time)

@@TCustomVirtualStringTree.FEllipsisWidth
width of '...' for the current font

@@TCustomVirtualStringTree.FInternalDataOffset
offset to the internal data of the string tree

@@TCustomVirtualStringTree.FOnNewText
used to notify the application about an edited node caption

@@TCustomVirtualStringTree.FOnPaintText
triggered before either normal or fixed text is painted to allow
even finer customization (kind of sub cell painting)

@@TCustomVirtualStringTree.FOnShortenString
used to allow the application a customized string shortage

@@TCustomVirtualStringTree.FTextHeight
true size of the font


@@TEnumFormatEtc
 




@@THeaderState.hsAutoSizing
auto size chain is in progess, do not trigger again on WM_SIZE

@@THeaderState.hsDragging
header dragging is in progress (only if enabled)

@@THeaderState.hsDragPending
left button is down, user might want to start dragging a column

@@THeaderState.hsLoading
The header currently loads from stream, so updates are not necessary.

@@THeaderState.hsTracking
column resizing is in progress

@@THeaderState.hsTrackPending
left button is down, user might want to start resize a column


@@THintAnimationType.hatFade
fade in the hint/tooltip, like in Windows 2000

@@THintAnimationType.hatNone
no animation at all, just display hint/tooltip

@@THintAnimationType.hatSlide
slide in the hint/tooltip, like in Windows 98

@@THintAnimationType.hatSystemDefault
use what the system is using (slide for Win9x, slide/fade for Win2K+, depends on settings)


@@THitPosition.hiAbove
above the client area (if relative) or the absolute tree area

@@THitPosition.hiBelow
below the client area (if relative) or the absolute tree area

@@THitPosition.hiNowhere
no node is involved (possible only if the tree is not as tall as the client area)

@@THitPosition.hiOnItem
on the bitmaps/buttons or label associated with an item

@@THitPosition.hiOnItemButton
on the button associated with an item

@@THitPosition.hiOnItemCheckbox
on the checkbox if enabled

@@THitPosition.hiOnItemIndent
in the indentation area in front of a node

@@THitPosition.hiOnItemLabel
on the normal text area associated with an item

@@THitPosition.hiOnItemLeft
in the area to the left of a node's text area (e.g. when right aligned or centered)

@@THitPosition.hiOnItemRight
in the area to the right of a node's text area (e.g. if left aligned or centered)

@@THitPosition.hiOnNormalIcon
on the "normal" image

@@THitPosition.hiOnStateIcon
on the state image

@@THitPosition.hiToLeft
to the left of the client area (if relative) or the absolute tree area

@@THitPosition.hiToRight
to the right of the client area (if relative) or the absolute tree area


@@TItemEraseAction.eaColor
Use the provided color to erase the background instead the one of the tree.

@@TItemEraseAction.eaDefault
The tree should erase the item's background (bitmap or solid).

@@TItemEraseAction.eaNone
Do nothing. Let the application paint the background.



@@TScrollBarOptions
 

@@TScrollBarOptions.FScrollBars
used to hide or show vertical and/or horizontal scrollbar

@@TScrollBarOptions.FScrollBarStyle
kind of scrollbars to use


@@TStringEditLink
Summary
TStringEditLink is the standard node editor of a TVirtualStringTree.

Description
TStringEditLink implements the interface IVTEditLink. This is a simple node editor which wraps a TEdit and is not Unicode
aware. A virtual string tree will use this node editor if the event OnCreateEditor is not handled and a node must be
edited. After the node's text has been edited the event OnNewText will be fired and the application should replace the
\old text with the new and edited text.



The node editor instance will automatically be destroyed via reference counting when it is not needed anymore. Never
destroy it explicitly - except when you know what you are doing.



Remarks
If you want to modify some aspects of how the node editor works, i.e. suppress some characters or initialize it with a
different text but the node's text, you can inherit your own class from TStringEditLink and return an instance of it in
the OnCreateEditor event.

@@TStringEditLink.BeginEdit
Summary
This function will be called by the virtual string tree when the editing starts.

Description
Please see interface IVTEditLink for a detailed explanation of this interface function.

@@TStringEditLink.CancelEdit
Summary
This function will be called by the virtual string tree when the current editing is about to be cancelled.

Description
Please see interface IVTEditLink for a detailed explanation of this interface function.

@@TStringEditLink.EndEdit
Summary
This function will be called by the virtual string tree when the current editing is being finished.

Description
Please see interface IVTEditLink for a detailed explanation of this interface function.

@@TStringEditLink.FColumn
The column of the node.

@@TStringEditLink.FEdit
A normal custom edit control.

@@TStringEditLink.FNode
The node to be edited.

@@TStringEditLink.FStopping
Set to True when the edit link requests stopping the edit action.

@@TStringEditLink.FTextBounds
Smallest rectangle around the text.

@@TStringEditLink.FTree
A back reference to the tree calling.

@@TStringEditLink.GetBounds
Summary
The virtual string tree uses this function to get the current bounding rect of the node editor.

Description
Please see interface IVTEditLink for a detailed explanation of this interface function.

@@TStringEditLink.PrepareEdit@TBaseVirtualTree@PVirtualNode@TColumnIndex
Summary
This function is called by a virtual string tree to initialize the node editor.

Description
Please see interface IVTEditLink for a detailed explanation of this interface function.

@@TStringEditLink.ProcessMessage@TMessage
Summary
This function is used to forward messages being directed to the virtual string tree.

Description
Please see interface IVTEditLink for a detailed explanation of this interface function.

@@TStringEditLink.SetBounds@TRect
Summary
The virtual string tree calls this function to initialize the bounding rect of the node editor.

Description
Please see interface IVTEditLink for a detailed explanation of this interface function.

@@TStringTreeOptions
Summary
Options class used in the string tree and its descentants.

Description
This options class publishes all properties inherited from its ancestor and does not add any further functionality.

@@TToggleAnimationData.Brush
the brush to be used to erase uncovered parts

@@TToggleAnimationData.DC
the DC of the window to erase unconvered parts

@@TToggleAnimationData.Expand
if true then expanding is in progress

@@TToggleAnimationData.R
the scroll rectangle

@@TToggleAnimationData.Window
copy of the tree's window handle

@@TVirtualDrawTree
Summary
Descendant of TBaseVirtualTree, which passes node paint events through to the application (similar to a draw grid)

Description
This tree implementation enhances the base tree to allow the application to draw its own stuff into the tree window.


@@TVirtualNode.Align
line/button alignment

@@TVirtualNode.CheckState
indicates the current check state (e.g. checked, pressed etc.)

@@TVirtualNode.CheckType
indicates which check type shall be used for this node

@@TVirtualNode.Data
this is a placeholder, each node gets extra data determined by NodeDataSize

@@TVirtualNode.Dummy
dummy value to fill DWORD boundary

@@TVirtualNode.NodeHeight
height in pixels

@@TVirtualNode.States
states describing various properties of the node (expanded, initialized etc.)

@@TVirtualNodeState.vsAllChildrenHidden
Set if vsHasChildren is set and no child node has the vsVisible flag set.

@@TVirtualNodeState.vsChecking
Node's check state is changing, avoid propagation.

@@TVirtualNodeState.vsClearing
A node's children are being deleted. Don't register structure change event.

@@TVirtualNodeState.vsCutOrCopy
Node is selected as cut or copy and paste source.

@@TVirtualNodeState.vsDeleting
Set when the node is about to be freed.

@@TVirtualNodeState.vsDisabled
Set if node is disabled.

@@TVirtualNodeState.vsExpanded
Set if the node is expanded.

@@TVirtualNodeState.vsHasChildren
Indicates the presence of child nodes without actually setting them.

@@TVirtualNodeState.vsHeightMeasured
Node height has been determined and does not need a recalculation.

@@TVirtualNodeState.vsInitialized
Set after the node has been initialized.

@@TVirtualNodeState.vsInitialUserData
Set if (via AddChild or InsertNode) initial user data has been set which requires OnFreeNode.

@@TVirtualNodeState.vsMultiline
Node text is wrapped at the cell boundaries instead of being shorted.

@@TVirtualNodeState.vsSelected
Set if the node is in the current selection.

@@TVirtualNodeState.vsVisible
Indicate whether the node is visible or not (independant of the expand states of its parents).


@@TVirtualTreeColumn.ComputeHeaderLayout@HDC@TRect@Boolean@Boolean@TPoint@TPoint@TRect
Description
The layout of a column header is determined by a lot of factors. This method takes them all into account and determines
all necessary positions and bounds:

    * for the header text
    * the header glyph
    * the sort glyph

Summary
Calculates the layout of a column header.

@@TVirtualTreeColumn.GetRect
Summary
\Returns the rectangle this column occupies in the header (relative to (0, 0) of the non-client area).

Description
\Returns the rectangle this column occupies in the header (relative to (0, 0) of the non-client area).


@@TVirtualTreeColumns.AdjustAutoSize@TColumnIndex@Boolean
Description
Called only if the header is in auto-size mode which means a column needs to be so large that it fills all the horizontal
space not occupied by the other columns. CurrentIndex (if not InvalidColumn) describes which column has just been
resized.

Summary
Called when columns must be sized so that the fit the client area.

@@TVirtualTreeColumns.AdjustDownColumn@TPoint
Description
If this column is allowed to be clicked then it is also kept for later use.

Summary
Determines the column from the given position and returns it. 

@@TVirtualTreeColumns.AdjustHoverColumn@TPoint
Summary
Determines the new hover column index and returns true if the index actually changed else False.

Description
Determines the new hover column index and returns true if the index actually changed else False.

@@TVirtualTreeColumns.AdjustPosition@TVirtualTreeColumn@Cardinal
Summary
Reorders the column position array so that the given column gets the given position.

Description
Reorders the column position array so that the given column gets the given position.

@@TVirtualTreeColumns.AnimatedResize@TColumnIndex@Integer
Summary
Resizes the given column animated by scrolling the window DC.

Description
Resizes the given column animated by scrolling the window DC.

@@TVirtualTreeColumns.ColumnFromPosition@TColumnPosition
Summary
\Returns the index of the column at the given position.

Description
\Returns the index of the column at the given position.

@@TVirtualTreeColumns.ColumnFromPosition@TPoint@Boolean
Summary
Determines the current column based on the position passed in P.

Description
Determines the current column based on the position passed in P.

@@TVirtualTreeColumns.DrawXPButton@HDC@TRect@Boolean@Boolean@Boolean
Summary
Helper procedure to draw an Windows XP like header button.

Description
Helper procedure to draw an Windows XP like header button.

@@TVirtualTreeColumns.Equals@TVirtualTreeColumns
Summary
Compares itself with the given set of columns.

Description
Equals returns true if all published properties are the same (including column order), otherwise false is returned.

@@TVirtualTreeColumns.FClearing
True if columns are being deleted entirely.

@@TVirtualTreeColumns.FClickIndex
last clicked column

@@TVirtualTreeColumns.FDragIndex
index of column currently being dragged

@@TVirtualTreeColumns.FDropBefore
True if drop position is in the left half of a column, False for the right
side to drop the dragged column to

@@TVirtualTreeColumns.FDropTarget
current target column (index) while dragging

@@TVirtualTreeColumns.FHeaderBitmap
backbuffer for drawing

@@TVirtualTreeColumns.FixPositions
Summary
Fixes column positions after loading from DFM.

Description
Fixes column positions after loading from DFM.

@@TVirtualTreeColumns.FNeedPositionsFix
True if FixPositions must still be called after DFM loading.

@@TVirtualTreeColumns.GetColumnAndBounds@TPoint@Integer@Integer@Boolean
Summary
\Returns the column where the mouse is currently in as well as the left and right bound of this column.

Description
<B>Left</B> and <B>Right</B> are undetermined if no column is involved.

@@TVirtualTreeColumns.GetColumnBounds@TColumnIndex@Integer@Integer
Summary
\Returns the left and right bound of the given column.

Description
If <B>Column</B> is NoColumn then the entire client width is returned.

@@TVirtualTreeColumns.GetFirstVisibleColumn
Summary
\Returns the index of the first visible column or "InvalidColumn" if either no columns are defined or all columns are
hidden.

Description
\Returns the index of the first visible column or "InvalidColumn" if either no columns are defined or all columns are
hidden.

@@TVirtualTreeColumns.GetLastVisibleColumn
Summary
\Returns the index of the last visible column or "InvalidColumn" if either no columns are defined or all columns are
hidden.



Description
\Returns the index of the last visible column or "InvalidColumn" if either no columns are defined or all columns are
hidden.

@@TVirtualTreeColumns.GetNextColumn@TColumnIndex
Summary
\Returns the next column in display order. Column is the index of an item in the collection (a column).

Description
\Returns the next column in display order. Column is the index of an item in the collection (a column).

@@TVirtualTreeColumns.GetNextVisibleColumn@TColumnIndex
Summary
\Returns the next visible column in display order, Column is an index into the columns list.



Description
\Returns the next visible column in display order, Column is an index into the columns list.

@@TVirtualTreeColumns.GetPreviousColumn@TColumnIndex
Summary
\Returns the previous column in display order, Column is an index into the columns list.

Description
\Returns the previous column in display order, Column is an index into the columns list.

@@TVirtualTreeColumns.GetPreviousVisibleColumn@TColumnIndex
Summary
\Returns the previous column in display order, Column is an index into the columns list.

Description
\Returns the previous column in display order, Column is an index into the columns list.

@@TVirtualTreeColumns.GetVisibleColumns
Summary
\Returns a list of all currently visible columns in actual order.

Description
\Returns a list of all currently visible columns in actual order.

@@TVirtualTreeColumns.HandleClick@TPoint@TMouseButton@Boolean@Boolean
Summary
Generates a click event if the mouse button has been released over the same column it was pressed first.

Description
Alternatively, <B>Force</B> might be set to true to indicate that the down index does not matter (right, middle and
double click).

@@TVirtualTreeColumns.IndexChanged@Integer@Integer
Summary
Called by a column when its index in the collection changes.

Description
If <B>NewIndex</B> is -1 then the column is about to be removed otherwise it is moved to a new index. The method will
then update the position array to reflect the change.

@@TVirtualTreeColumns.InitializePositionArray
Summary
Ensures that the column position array contains as much entries as columns are defined.

Description
The array is resized and initialized with default values if needed.

@@TVirtualTreeColumns.IsValidColumn@TColumnIndex
Summary
Determines whether the given column is valid or not, that is, whether it is one of the current columns.

Description
Determines whether the given column is valid or not, that is, whether it is one of the current columns.


@@TVirtualTreeColumns.UpdatePositions@Boolean
Summary
Recalculates the left border of every column and updates their position property according to the PostionToIndex array,
which primarily determines where each column is placed visually.

@@TVirtualTreeHintWindow
Summary
Internally used hint window class to support Unicode hints.

Description
TVirtualTreeHintWindow replaces Delphi's own hint window, but only for the tree controls. For the rest of the application
the hint stays at it is. This means not the global HintWindowClass variable is changed but only the locally used class by
properly responding to CM_HINTSHOW.

@@TVirtualTreeHintWindow.InternalPaint@Integer@Integer
local functions

@@TVirtualTreeHintWindow.IsHintMsg@TMsg
The VCL is a bit too generous when telling that an existing hint can be cancelled. Need to specify further here.

@@TVirtualTreeHintWindow.WMEraseBkgnd@TWMEraseBkgnd
The control is fully painted by own code so don't erase its background as this causes flickering.

@@TVirtualTreeHintWindow.WMNCPaint@TMessage
The control is fully painted by own code so don't paint any borders.

@@TVirtualTreeHintWindow.WMShowWindow@TWMShowWindow
Clear hint data when the window becomes hidden.

@@TVirtualTreeOptions
Summary
Collects all binary options of the tree control into one place for easier access.

Description
TVirtualTreeOptions does not add any new functionality to TCustomVirtualTreeOptions but is the publicly available class.


@@TVSTTextSourceType.tstAll
All nodes are rendered. Initialization is done on the fly.

@@TVSTTextSourceType.tstCutCopySet
Only nodes currently marked as being in the cut/copy clipboard set are rendered.

@@TVSTTextSourceType.tstInitialized
Only initialized nodes are rendered.

@@TVSTTextSourceType.tstSelected
Only selected nodes are rendered.

@@TVSTTextSourceType.tstVisible
Only visible nodes are rendered.


@@TVSTTextType.ttNormal
normal label of the node, this is also the text which can be edited

@@TVSTTextType.ttStatic
static (non-editable) text after the normal text

@@TVTAnimationOption.toAnimatedToggle
Expanding and collapsing a node is animated (quick window scroll).


@@TVTAutoOption.toAutoChangeScale
Change default node height automatically if the system's font scale is set to big fonts.

@@TVTAutoOption.toAutoDeleteMovedNodes
Delete nodes which where moved in a drag operation (if not directed otherwise).

@@TVTAutoOption.toAutoDropExpand
Expand node if it is the drop target for more than certain time.

@@TVTAutoOption.toAutoExpand
Nodes are expanded (collapsed) when getting (losing) the focus.

@@TVTAutoOption.toAutoFreeOnCollapse
Frees any child node after a node has been collapsed (HasChildren flag stays there).

@@TVTAutoOption.toAutoHideButtons
Node buttons are hidden when there are child nodes, but all are invisible.

@@TVTAutoOption.toAutoScroll
Scroll if mouse is near the border while dragging or selecting.

@@TVTAutoOption.toAutoScrollOnExpand
Scroll as many child nodes in view as possible after expanding a node.

@@TVTAutoOption.toAutoSort
Sort tree when Header.SortColumn or Header.SortDirection change or sort node if
child nodes are added.

@@TVTAutoOption.toAutoSpanColumns
Large entries continue into next column(s) if there's no text in them (no clipping).

@@TVTAutoOption.toAutoTristateTracking
Checkstates are automatically propagated for tri state check boxes.

@@TVTAutoOption.toDisableAutoscrollOnFocus
Disable scrolling a column entirely into view if it gets focused.



@@TVTButtonFillMode.fmShaded
color gradient, Windows XP style (legacy code, use toThemeAware on Windows XP instead)

@@TVTButtonFillMode.fmTransparent
transparent color, use the item's background color

@@TVTButtonFillMode.fmTreeColor
solid color, uses the tree's background color

@@TVTButtonFillMode.fmWindowColor
solid color, uses clWindow


@@TVTButtonStyle.bsRectangle
traditional Windows look (plus/minus buttons)

@@TVTButtonStyle.bsTriangle
traditional Macintosh look

@@TVTColors
Summary
Collects all color related options for the tree control.

Description
TVTColors makes it much more conventient to adjust Virtual Treeview's colors. Since everything is in one place you can
also easily compare all colors.


@@TVTDataObject.FAdviseHolder
Reference to an OLE supplied implementation for advising.

@@TVTDataObject.FForClipboard
Determines which data to render with GetData.

@@TVTDataObject.FInternalStgMediumArray
The available formats in the DataObject

@@TVTDataObject.FOwner
The tree which provides clipboard or drag data.








@@TVTDragImage.FColorKey
color to make fully transparent regardless of any other setting

@@TVTDragImage.FFade
determines whether to fade the drag image from center to borders or not

@@TVTDragImage.FOwner
the actual drag image to blend to screen

@@TVTDragImage.FRestriction
determines in which directions the drag image can be moved

@@TVTDragImage.FStates
Determines the states of the drag image class.

@@TVTDragImage.FTransparency
alpha value of the drag image (0 - fully transparent, 255 - fully opaque)


@@TVTDragImage.GetVisible
True if the drag image is currently hidden (used only when dragging)

Returns True if the internal drag image is used (i.e. the system does not natively support drag images) and
the internal image is currently visible on screen.




@@TVTDragImage.RecaptureBackground@TBaseVirtualTree@TRect@HRGN@Boolean@Boolean
Note
The passed rectangle is given in client coordinates of the current drop target tree (given in Tree). The caller does not
check if the given rectangle is actually within the drag image. Hence this method must do all the checks. This method
does nothing if the system manages the drag image.
Summary
Notification by the drop target tree to update the background image because something in the tree has changed.

@@TVTDragImage.ShowDragImage
Summary
Shows the drag image after it has been hidden by HideDragImage.

Description
Also this method does nothing if the system manages the drag image.



@@TVTDragImageKind.diComplete
show a complete drag image with all columns, only visible columns are shown

@@TVTDragImageKind.diMainColumnOnly
show only the main column (the tree column)

@@TVTDragImageKind.diNoImage
don't show a drag image at all


@@TVTDragManager.FDataObject
A reference to the data object passed in by DragEnter (only used when the owner
tree is the current drop target).

@@TVTDragManager.FDropTargetHelper
Win2k > Drag image support

@@TVTDragManager.FFullDragging
True, if full dragging is currently enabled in the system.

@@TVTDragManager.FIsDropTarget
True if the owner is currently the drop target.



@@TVTDrawSelectionMode.smBlendedRectangle
alpha blending, uses special colors (see TVTColors)

@@TVTDrawSelectionMode.smDottedRectangle
same as DrawFocusRect


@@TVTHeader.DetermineSplitterIndex@TPoint
Note
The hit test is checking from right to left to make enlarging of zero-sized columns possible.
Description
\Result is rrue if column border was hit (with -3..+5 pixels tolerance). For continuous resizing the current track index
and the column's left border are set.

Summary
Tries to find the index of that column whose right border corresponds to <B>P</B>.


@@TVTHeader.FDragImage
drag image management during header drag

@@TVTHeader.FDragStart
initial mouse drag position

@@TVTHeader.FImageChangeLink
connections to the image list to get notified about changes

@@TVTHeader.FLeftTrackPos
left border of this column to quickly calculate its width on resize

@@TVTHeader.FMainColumn
the column which holds the tree

@@TVTHeader.FStates
used to keep track of internal states the header can enter

@@TVTHeader.FStyle
button style

@@TVTHeader.FTrackStart
client coordinates of the tracking start point











@@TVTHeaderOption.hoAutoResize
adjust a column so that the header never exceeds client width of owner control

@@TVTHeaderOption.hoColumnResize
resizing columns is allowed

@@TVTHeaderOption.hoDblClickResize
allows a column to resize itself to its largest entry

@@TVTHeaderOption.hoDrag
dragging columns is allowed

@@TVTHeaderOption.hoHotTrack
header captions are highlighted when mouse is over a particular column

@@TVTHeaderOption.hoOwnerDraw
header items with the owner draw style can be drawn by the application via event

@@TVTHeaderOption.hoRestrictDrag
header can only be dragged horizontally

@@TVTHeaderOption.hoShowHint
show application defined header hint

@@TVTHeaderOption.hoShowImages
show images

@@TVTHeaderOption.hoShowSortGlyphs
allow visible sort glyphs

@@TVTHeaderOption.hoVisible
header is visible

@@TVTHeaderStyle.hsFlatButtons
flatter look than hsThickButton, like an always raised flat TToolButton

@@TVTHeaderStyle.hsPlates
flat TToolButton look and feel (raise on hover etc.)

@@TVTHeaderStyle.hsThickButtons
TButton look and feel

@@TVTHeaderStyle.hsXPStyle
Windows XP style


@@TVTHintData.DefaultHint
used only if there is no node specific hint string available
or a header hint is about to appear

@@TVTHintData.HintRect
used for draw trees only, string trees get the size from the hint string

@@TVTHintData.HintText
set when size of the hint window is calculated

@@TVTHintMode.hmDefault
show the hint of the control

@@TVTHintMode.hmHint
show node specific hint string returned by the application

@@TVTHintMode.hmHintAndDefault
same as hmHint but show the control's hint if no node is concerned

@@TVTHintMode.hmTooltip
show the text of the node if it isn't already fully shown

@@TVTImageInfo.Ghosted
flag to indicate that the image must be drawn slightly lighter

@@TVTImageInfo.Index
index in the associated image list



@@TVTIncrementalSearch.isAll
search every node in tree, initialize if necessary

@@TVTIncrementalSearch.isInitializedOnly
search only initialized nodes, skip others

@@TVTIncrementalSearch.isNone
disable incremental search

@@TVTIncrementalSearch.isVisibleOnly
search only visible nodes, initialize if necessary


@@TVTInternalPaintOption.poBackground
draw background image if there is any and it is enabled

@@TVTInternalPaintOption.poColumnColor
erase node's background with the column's color

@@TVTInternalPaintOption.poDrawDropMark
draw drop mark if a node is currently the drop target

@@TVTInternalPaintOption.poDrawFocusRect
draw focus rectangle around the focused node

@@TVTInternalPaintOption.poDrawSelection
draw selected nodes with the normal selection color

@@TVTInternalPaintOption.poGridLines
draw grid lines if enabled

@@TVTInternalPaintOption.poMainOnly
draw only the main column

@@TVTInternalPaintOption.poSelectedOnly
draw only selected nodes



@@TVTLineMode.lmBands
looks similar to a Nassi-Schneidermann diagram

@@TVTLineMode.lmNormal
usual tree lines (as in TTreeview)


@@TVTLineStyle.lsCustomStyle
application provides a line pattern

@@TVTLineStyle.lsDotted
usual dotted lines (default)

@@TVTLineStyle.lsSolid
simple solid lines


@@TVTLineType.ltBottomRight
a line from bottom to the center and from there to the right

@@TVTLineType.ltLeft
a line from top to bottom at the left

@@TVTLineType.ltLeftBottom
a combination of ltLeft and a line at the bottom from left to right

@@TVTLineType.ltNone
no line at all

@@TVTLineType.ltRight
a line from center to the right

@@TVTLineType.ltTopDown
a line from top to bottom

@@TVTLineType.ltTopDownRight
a line from top to bottom and from center to the right

@@TVTLineType.ltTopRight
a line from bottom to center and from there to the right
special styles for alternative drawings of tree lines


@@TVTMiscOption.toAcceptOLEDrop
Register tree as OLE accepting drop target

@@TVTMiscOption.toCheckSupport
Show checkboxes/radio buttons.

@@TVTMiscOption.toEditable
Node captions can be edited.

@@TVTMiscOption.toFullRepaintOnResize
Fully invalidate the tree when its window is resized (CS_HREDRAW/CS_VREDRAW).

@@TVTMiscOption.toGridExtensions
Use some special enhancements to simulate and support grid behavior.

@@TVTMiscOption.toInitOnSave
Initialize nodes when saving a tree to a stream.

@@TVTMiscOption.toReadOnly
The tree does not allow to be modified in any way. No action is executed and
node editing is not possible.

@@TVTMiscOption.toReportMode
Tree behaves like TListView in report mode.

@@TVTMiscOption.toToggleOnDblClick
Toggle node expansion state when it is double clicked.

@@TVTMiscOption.toWheelPanning
Support for mouse panning (wheel mice only). This option and toMiddleClickSelect are
mutal exclusive, where panning has precedence.


@@TVTNodeAlignment.naFromBottom
the align member specifies amount of units (usually pixels) from top border of the node

@@TVTNodeAlignment.naFromTop
align is to be measured from bottom

@@TVTNodeAlignment.naProportional
align is to be measure in percent of the entire node height and relative to top


@@TVTNodeAttachMode.amAddChildFirst
add node as first child of destination

@@TVTNodeAttachMode.amAddChildLast
add node as last child of destination

@@TVTNodeAttachMode.amInsertAfter
insert node just after destionation (as sibling of destination)

@@TVTNodeAttachMode.amInsertBefore
insert node just before destination (as sibling of destination)

@@TVTNodeAttachMode.amNoWhere
just for simplified tests, means to ignore the Add/Insert command









@@TVTPaintInfo.Alignment
how to align within the node rectangle

@@TVTPaintInfo.BidiMode
directionality to be used for painting

@@TVTPaintInfo.BrushOrigin
the alignment for the brush used to draw dotted lines

@@TVTPaintInfo.Canvas
the canvas to paint on

@@TVTPaintInfo.Column
the node's column index to paint

@@TVTPaintInfo.ImageInfo
info about each possible node image

@@TVTPaintInfo.Node
the node to paint

@@TVTPaintInfo.NodeWidth
the actual node width

@@TVTPaintInfo.PaintOptions
a copy of the paint options passed to PaintTree

@@TVTPaintInfo.Position
the column position of the node

@@TVTPaintOption.toAlwaysHideSelection
Do not draw node selection, regardless of focused state.

@@TVTPaintOption.toFullVertGridLines
Display vertical lines over the full client area, not only the space occupied by nodes.
This option only has an effect if toShowVertGridLines is enabled too.

@@TVTPaintOption.toGhostedIfUnfocused
Ghosted images are still shown as ghosted if unfocused (otherwise the become non-ghosted
images).

@@TVTPaintOption.toHideFocusRect
Avoid drawing the dotted rectangle around the currently focused node.

@@TVTPaintOption.toHideSelection
Selected nodes are drawn as unselected nodes if the tree is unfocused.

@@TVTPaintOption.toHotTrack
Track which node is under the mouse cursor.

@@TVTPaintOption.toPopupMode
Paint tree as would it always have the focus (useful for tree combo boxes etc.)

@@TVTPaintOption.toShowBackground
Use the background image if there's one.

@@TVTPaintOption.toShowButtons
Display collapse/expand buttons left to a node.

@@TVTPaintOption.toShowDropmark
Show the dropmark during drag'n drop operations.

@@TVTPaintOption.toShowHorzGridLines
Display horizontal lines to simulate a grid.

@@TVTPaintOption.toShowRoot
Show lines also at top level (does not show the hidden/internal root node).

@@TVTPaintOption.toShowTreeLines
Display tree lines to show hierarchy of nodes.

@@TVTPaintOption.toShowVertGridLines
Display vertical lines (depending on columns) to simulate a grid.

@@TVTPaintOption.toThemeAware
Draw UI elements (header, tree buttons etc.) according to the current theme if
enabled (Windows XP+ only, application must be themed).

@@TVTPaintOption.toUseBlendedImages
Enable alpha blending for ghosted nodes or those which are being cut/copied.

@@TVTPaintOption.toUseBlendedSelection
Enable alpha blending for node selections.






@@TVTSearchStart.ssAlwaysStartOver
always use the first/last node (depending on direction) to search from

@@TVTSearchStart.ssFocusedNode
use the currently focused node

@@TVTSearchStart.ssLastHit
use the last found node

@@TVTSelectionOption.toCenterScrollIntoView
Center nodes vertically in the client area when scrolling into view.

@@TVTSelectionOption.toDisableDrawSelection
Prevent user from selecting with the selection rectangle in multiselect mode.

@@TVTSelectionOption.toExtendedFocus
Entries other than in the main column can be selected, edited etc.

@@TVTSelectionOption.toFullRowSelect
Hit test as well as selection highlight are not constrained to the text of a node.

@@TVTSelectionOption.toLevelSelectConstraint
Constrain selection to the same level as the selection anchor.

@@TVTSelectionOption.toMiddleClickSelect
Allow selection, dragging etc. with the middle mouse button. This and toWheelPanning
are mutual exclusive.

@@TVTSelectionOption.toMultiSelect
Allow more than one node to be selected.

@@TVTSelectionOption.toRightClickSelect
Allow selection, dragging etc. with the right mouse button.

@@TVTSelectionOption.toSiblingSelectConstraint
constrain selection to nodes with same parent

@@TVTSelectionOption.toSimpleDrawSelection
Simplifies draw selection, so a node's caption does not need to intersect with the
selection rectangle.



@@TVTStringOption.toAutoAcceptEditChange
Automatically accept changes during edit if the user finishes editing other then
VK_RETURN or ESC. If not set then changes are cancelled.

@@TVTStringOption.toSaveCaptions
If set then the caption is automatically saved with the tree node, regardless of what is
saved in the user data.

@@TVTStringOption.toShowStaticText
Show static text in a caption which can be differently formatted than the caption
but cannot be edited.


@@TVTUpdateState.usBegin
The tree just entered the update state (BeginUpdate call for the first time).

@@TVTUpdateState.usBeginSynch
The tree just entered the synch update state (BeginSynch call for the first time).

@@TVTUpdateState.usEnd
The tree just left the update state (EndUpdate called for the last level).

@@TVTUpdateState.usEndSynch
The tree just left the synch update state (EndSynch called for the last level).

@@TVTUpdateState.usSynch
Begin/EndSynch has been called but the tree did not change the update state.

@@TVTUpdateState.usUpdate
Begin/EndUpdate has been called but the tree did not change the update state.






@@VirtualTrees.pas
Version 4.0.0

 The contents of this file are subject to the Mozilla Public License
 Version 1.1 (the "License"); you may not use this file except in compliance
 with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/

 Alternatively, you may redistribute this library, use and/or modify it under the terms of the
 GNU Lesser General Public License as published by the Free Software Foundation;
 either version 2.1 of the License, or (at your option) any later version.
 You may obtain a copy of the LGPL at http://www.gnu.org/copyleft/.

 Software distributed under the License is distributed on an "AS IS" basis,
 WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the
 specific language governing rights and limitations under the License.

 The original code is VirtualTrees.pas, released September 30, 2000.

 The initial developer of the original code is digital publishing AG (Munich, Germany, www.digitalpublishing.de),
 written by Dipl. Ing. Mike Lischke (public@lischke-online.de, www.lischke-online.de).

 Portions created by digital publishing AG are Copyright
 (C) 1999-2001 digital publishing AG. All Rights Reserved.
----------------------------------------------------------------------------------------------------------------------

 September 2003
   - Improvement: Edit property of TStringEditLink promoted to public.
   - Improvement: ShortenString better takes right-to-left contexts into account.
   - Improvement: toAlwaysHideSelection introduced. Allows to hide node selections entirely.
   - Improvement: toUseBlendedSelection introduced. Allows to have translucent node selections.
   - Bug fix: Mantis bug entries #140, 144, 125, 122, 129.
   - Improvement: Mantis feature request #113, toSimpleDrawSelection introduced.
   - Improvement: ComputeNodeHeight introduced. Helper method to delegate node height calculation to the tree.
   - Improvement: Alt key might be pressed when clicking in the tree. This allows to start drawing the selection
                  rectangle also on node captions and images (which would otherwise start dragging).
 August 2003
   - Bug fix: ValidateCache was not always called in ToggleNode when InvalidateCache was used.
   - Bug fix: FLastHintRect was sometimes not reset preventing so a new hint to appear.
   - Bug fix: Redundant ChangeCheckState in HandleMouseDown removed.
   - Bug fix: OnHeaderDblClick was triggered even if the colum was set to be unclickable.
   - Bug fix: Wheel panning and scrolling was not possible if toAutoScroll was not set. This option has another meaning
              and should not impact wheel handling.
   - Bug fix: VT control could not be set as ActiveControl at design time.
   - Bug fix: In method ContentToText it could be that the text contained the separator char as regular character, so
              it was necessary to wrap the text with quotation marks then.
   - Bug fix: Bidi mode and aligment was not correctly considered in UpdateEditBounds when grid extensions were enabled.
 July 2003
   - Improvement: Check for nil hint data in TVirtualTreeHintWindow.CalcHintRect just to be on the safe side.
   - Improvedment: TVirtualTreeColumn.ComputeHeaderLayout is now virtual to allow descentants to change the layout.
   - Improvement: toFullVertGridLines, vertical grid lines can be drawn over the full client are height.
   - Improvement: flickering on column resizing is gone.
   - Improvement: System conformal border width calculation for certain tasks.
   - Improvement: Animation parameter for TVTHeader.AutoFitColumns to avoid the size animation (default: True).
   - Improvement: ParentFont property for the header. Default is False to stay compatible with older tree versions.
   - Bug fix: cursor rectangle for spanned columns in normal hint mode was too small.
   - Feature: the implementation is now more than 30.000 lines in size.
   - Bug fix: Access violation fixed, which was sometimes caused by setting VT to edit mode if the old edit link
              was not freed yet (because it was still handling a message).
   - Improvement: Hint animation now does no longer stop quick switches to new hints.
   - Improvement: ParentBackground property published.
   - Bug fix: vsAllChildrenHidden and vsExpanded are now removed from a node's state if there are no child nodes anymore
   - Improvement: column width limit to 10000 is now only applied on non-NT systems (Win9x/Me).
   - Improvement: single letter mode in incremental search is not used if the current node also fits
                  the repeated character.
 June 2003
   - Bug fix: correct theme change handling when switching to classic mode.
   - Improvement: new event OnMeasureItem, new handling for application driven node heights.
     TCustomVirtualStringTree.ComputeNodeHeight implementation to easy node height computation for multi line nodes.
   - Improvement: Header is nil'ed when the tree is destroyed and checked before used in TBaseVirtualTree.Notification
     in order to avoid potential problems accessing an invalid address.
   - Bug fix: The cut and copy pending states in the tree and participating nodes were not removed.
   - Bug fix: csPaintCopy was not considered when painting (used for TWinControl.PaintTo, e.g. in Form.Print).
   - Bug fix: DT_NOPREFIX added for header text output.
 May 2003
   - Bug fix: Thread safe check for current tree reference in the worker thread, as it can be reset before it was used.
   - Bug fix: Color change for non-standard background colors after all columns were hidden.
   - Improvement: new node background erase action (eaNone).

 For full document history see help file.

 Credits for their valuable assistance and code donations go to:
   Freddy Ertl, Marian Aldenhvel, Thomas Bogenrieder, Jim Kuenemann, Werner Lehmann, Jens Treichler,
   Paul Gallagher (IBO tree), Ondrej Kelle, Ronaldo Melo Ferraz, Heri Bender, Roland Bedrftig (BCB)
   Anthony Mills, Alexander Egorushkin (BCB), Mathias Torell (BCB), Frank van den Bergh, Vadim Sedulin, Peter Evans,
   Milan Vandrovec (BCB), Steve Moss (system check images), Joe White, David Clark (local node memory manager),
   Anders Thomsen, Igor Afanasyev, Eugene Programmer
 Beta testers:
   Freddy Ertl, Hans-Jrgen Schnorrenberg, Werner Lehmann, Jim Kueneman, Vadim Sedulin, Moritz Franckenstein,
   Wim van der Vegt, Franc v/d Westelaken
 Indirect contribution (via publicly accessible work of those persons):
   Alex Denissov, Hiroyuki Hori (MMXAsm expert)
 Documentation:
   Markus Spoettl and toolsfactory GbR (http://www.doc-o-matic.com/, sponsoring Virtual Treeview
   with a free copy of the Doc-O-Matic help authoring system), Sven H. (Step by step tutorial)
 CLX:
   Dmitri Dmitrienko (initial developer)













@@Check button image indices
 

@@ckButtonHot
<COMBINE Check button image indices>

@@ckButtonNormal
<COMBINE Check button image indices>

@@ckButtonPressed
<COMBINE Check button image indices>

@@ckCheckCheckedDisabled
<COMBINE Check button image indices>

@@ckCheckCheckedHot
<COMBINE Check button image indices>

@@ckCheckCheckedNormal
<COMBINE Check button image indices>

@@ckCheckCheckedPressed
<COMBINE Check button image indices>

@@ckCheckMixedHot
<COMBINE Check button image indices>

@@ckCheckMixedNormal
<COMBINE Check button image indices>

@@ckCheckMixedPressed
<COMBINE Check button image indices>

@@ckCheckUncheckedDisabled
<COMBINE Check button image indices>

@@ckCheckUncheckedHot
<COMBINE Check button image indices>

@@ckCheckUncheckedNormal
<COMBINE Check button image indices>

@@ckCheckUncheckedPressed
<COMBINE Check button image indices>

@@ckRadioCheckedHot
<COMBINE Check button image indices>

@@ckRadioCheckedNormal
<COMBINE Check button image indices>

@@ckRadioCheckedPressed
<COMBINE Check button image indices>

@@ckRadioUncheckedDisabled
<COMBINE Check button image indices>

@@ckRadioUncheckedHot
<COMBINE Check button image indices>

@@ckRadioUncheckedNormal
<COMBINE Check button image indices>

@@ckRadioUncheckedPressed
<COMBINE Check button image indices>

@@EVirtualTreeError
Description
EVirtualTreeError is a normal exception derivation especially for Virtual Treeview. This class does not add much value to
its parent class but is rather there to better tell when an exception particularly from Virtual Treeview was raised.

@@TBufferedString


@@TBaseVirtualTree.Alignment
Summary
Determines the horizontal alignment of text if no columns are defined.

Description
This property is only used if there are no columns defined and applies only to the node captions. Right alignment means
here the right client area border and left aligned means the node buttons/lines etc. (both less the text margin).

@@TBaseVirtualTree.AnimationDuration
Summary
Determines the maximum duration the tree can use to play an animation.

Description
The value is specified in milliseconds and per default there are 200 ms as time frame, which is the recommended duration
for such operations. On older systems (particularly Windows 95 and Windows 98) the animation process might not get enough
CPU time to avoid expensive animations to finish properly. Still the animation loop tries to stay as close as possible to
the given time.

@@TBaseVirtualTree.AutoExpandDelay
Summary
Time delay after which a node gets expanded if it is the current drop target.

Description
This value is specified in milliseconds and determines when to expand a node if it is the current drop target. This value
is only used if voAutoDropExpand in Options is set.

@@TBaseVirtualTree.AutoScrollDelay
Summary
Time which determines when auto scrolling should start.

Description
Once the mouse pointer has been moved near to a border a timer is started using the interval specified by
AutoScrollDelay. When the timer has fired auto scrolling starts provided it is enabled (see also TreeOptions). The value
is specified in milliseconds.

@@TBaseVirtualTree.AutoScrollInterval
Summary
Time interval between scroll events when doing auto scroll.

Description
This property determines the speed how the tree is scrolled vertically or horizontally when auto scrolling is in
progress. The value is given in milliseconds.

@@TBaseVirtualTree.Background
Summary
Holds a background image for the tree.

Description
Virtual Treeview supports a fixed background image which does not scroll but can be adjusted by BackgroundOffsetX and
BackgroundOffsetY.

@@TBaseVirtualTree.BackgroundOffsetX
Summary
Horizontal offset of the background image.

Description
Determines the horizontal offset of the left border of the background image. This value is relative to the target canvas
where the tree is painted to (usually the tree window).

@@TBaseVirtualTree.BackgroundOffsetY
Summary
Vertical offset of the background image.

Description
Determines the vertical offset of the top border of the background image. This value is relative to the target canvas
where the tree is painted to (usually the tree window).

@@TBaseVirtualTree.BorderStyle
Summary
Same as TForm.BorderStyle.

Description
See TForm.BorderStyle.

@@TBaseVirtualTree.ButtonFillMode
Summary
Determines how to fill the background of the node buttons.

Description
This property is used to specify how the interior of the little plus and minus node buttons should be drawn, if
ButtonStyle is bsTriangle.

@@TBaseVirtualTree.ButtonStyle
Summary
Determines the look of node buttons.

Description
Determines the look of node buttons.

@@TBaseVirtualTree.ChangeDelay
Summary
Time which determines when the OnChange event should be triggered after the actual change event.

Description
In order to accumulate many quick changes in the tree you can use this delay value to specify after which wait time the
OnChange event should occur. A value of 0 means to trigger OnChange immediately after the change (usually a selection or
focus change) happend. Any value \> 0 will start a timer which then triggers OnChange.



\Note that there is the synchronous mode (started by BeginSynch) which effectively circumvents the change delay for the
duration of the synchronous mode (stopped by EndSynch) regardless of the ChangeDelay setting.

@@TBaseVirtualTree.CheckImageKind
Summary
Determines which images should be used for checkboxes and radio buttons.

Description
CheckImageKind can be used to switch the image set, which should be used for the tree. Read the description about
TCheckImageKind for a list of all images, which can be used. CheckImageKind can also be set to ckCustom, which allows to
supply a customized set of images to the tree. In order to have that working you must assign an image list
(TCustomImageList) to the CustomCheckImages property.

@@TCheckState
Summary
\Returns the current state of a node's check box, radio button or node button.

Description
The check states include both, transient and fluent (temporary) states. The only temporary state defined so far is the
pressed state.

@@TBaseVirtualTree.CheckState
Summary
Read or set the check state of a node.

Description
The CheckState property can be used to read the current check state of a node or to set a new one. Virtual Treeview
ensures that invalid check states (e.g. csMixedPressed for radio buttons) do not cause an error.

@@TBaseVirtualTree.CheckType
Summary
Read or set the check type of a node.

Description
The CheckType property can be used to read the current check type of a node or to set a new one. Setting a new check type
will reset a the node's check state to csUncheckedNormal.

@@TBaseVirtualTree.ChildCount
Summary
Read or set the number of child nodes of a node.

Description
ChildCount can be used to read the current number of child nodes or to change it. Assigning a lower value than there was
before will automatically delete as many child nodes (starting from the last child) as there are more than what was set.
Increasing the value will add new child nodes. Note: code behind this property is very effective, so it using ChildCount
is highly recommended over manipulating the child count using AddChild, InsertNode and DeleteNode.

@@TBaseVirtualTree.ChildrenInitialized
Summary
Read whether a node's child count has been initialized already.

Description
This read only property is used to determine whether a node's child count has been set. Alternatively, the child count
value is not considered if vsHasChildren is not in the node states.

@@TBaseVirtualTree.ClipboardFormats
Summary
Special class to keep a list of clipboard format descriptions.

Description
This TStringList descendant is used to keep a number of clipboard format descriptions, which are usually used to register
clipboard formats with the system. Using a string list for this task allows to store enabled clipboard formats in the
DFM.

@@TBaseVirtualTree.Colors
Summary
A collection of colors used in the tree.

Description
This property holds an instance of the TVTColors class, which is used to customize many of the colors used in a tree.
Placing them all in a specialized class helps organizing the colors in the object inspector and improves general
management.

@@TBaseVirtualTree.CustomCheckImages
Summary
Assign your own image list to get the check images you like most.

Description
The CustomCheckImages property is used when custom check images are enabled (see also ckCustom in TCheckImageKind).

See Also
TCheckImageKind

@@TBaseVirtualTree.DefaultNodeHeight
Summary
Read or set the height new nodes get as initial value.

Description
This property allows to read the current initial height for new nodes and to set a new value. Note that changing the
property value does <B>not</B> change the height of existing nodes. Only new nodes are affected.

@@TBaseVirtualTree.DefaultPasteMode
Summary
Read or set the value, which determines where to add pasted nodes to.

Description
The default paste mode is an attach mode, which is used when pasting data from the clipboard into the tree. Usually, you
will want new nodes to be added as child nodes to the currently focused node (and this is also the default value), but
you can also specify to add nodes only as siblings.



See Also
TVTNodeAttachMode

@@TBaseVirtualTree.HintAnimation
Summary
Read or set the current hint animation type.

Description
With this property you can specify what animation you would like to play when displaying a hint. For some applications it
might not be good to animate hints, hence you can entirely switch them off. Usually however you will leave the system
standard. This way the user can decide whether and which hint animation he or she likes.

@@TBaseVirtualTree.DragHeight
Summary
Read or set the vertical limit of the internal drag image.

Description
The DragHeight property (as well as the DragWidth property) are only for compatibility reason in the tree. If a platform
does not support the IDropTargetHelper interface (Windows 9x/Me, Windows NT 4.0) then Virtual Treeview uses its own
implementation of a DragImage. Since displaying a translucent drag image is performance hungry you should limit the image
size shown for the drag operation.

@@TBaseVirtualTree.DragWidth
Summary
Read or set the horizontal limit of the internal drag image.

Description
The DragWidth property (as well as the DragHeight property) are only for compatibility reason in the tree. If a platform
does not support the IDropTargetHelper interface (Windows 9x/Me, Windows NT 4.0) then Virtual Treeview uses its own
implementation of a DragImage. Since displaying a translucent drag image is performance hungry you should limit the image
size shown for the drag operation.

@@TBaseVirtualTree.DragImage
Summary
Holds the instance of the internal drag image.

Description
For older systems where the IDropTargetHelper interface is not supported Virtual Treeview simulates the translucent drag
image during drag'n drop. The property DragImage makes the internal drag image instance accessible for special handling.
The class itself is always created but is usually not visible when the IDropTargetHelper interface is supported.

@@TBaseVirtualTree.DragImageKind
Summary
Read or set what should be shown in the drag image.

Description
DragImageKind allows to switch parts of the drag image off and on.

@@TBaseVirtualTree.DragManager
Summary
Holds the reference to the internal drag manager.

Description
The drag manager is the central point for the drag'n drop support in Virtual Treeview. Usually you do not need to access
it but sometimes it might be necessary so the reference is accessible through this property.



See Also
TVTDragManager

@@TBaseVirtualTree.DragOperations
Summary
Read or set which drag operations may be allowed in the tree.

Description
Using this property you can determine, which actions may be performed when a drag operation is finished. The default
value includes move, copy and link, where link is rather an esoteric value and only there because it is supported by OLE.
The values used directly determine which image is shown for the drag cursor. The specified drag operations do not tell
which actions will actually be performed but only, which actions are allowed. They still can be modified during drag'n
drop by using a modifier key like the control, shift or alt key or can entirely be ignored by the drop handler.

@@TBaseVirtualTree.DragSelection
Summary
Keeps a temporary list of nodes during drag'n drop.

Description
This list is a local copy of the current selection array and is only used during a drag operation.

@@TBaseVirtualTree.DragType
Summary
Read or set which subsystem should be used for dragging.

Description
Traditionally, Delphi only supports its own drag mechanism, which is not compatible with the rest of the system. This VCL
dragging also does not support to transport random data nor does it support drag operations between applications. Thus
Virtual Treeview also supports the generally used OLE dragging, which in turn is incompatible with VCL dragging.
Depending on your needs you can enable either VCL or OLE dragging as both together cannot be started. However, Virtual
Treeview is able to act as drop target for both kind of data, independant of what is set in DragType.

@@TBaseVirtualTree.DrawSelectionMode
Summary
Read or set how multiselection with the mouse is to be visualized.

Description
Virtuall Treeview allows to display two different selection rectangles when doing multiselection with the mouse. One is
the traditiional dotted focus rectangle and the other one is a translucent color rectangle. The latter is the preferred
\one but the former is set as default (for compatibility reasons).

@@TBaseVirtualTree.DropTargetNode
Summary
Contains the current drop target node if the tree is currently the target of a drag'n drop operation.

Description
The drop target node has no meaning except during drag'n drop and only if the tree it belongs to is itself the current
drop target. But even then DropTargetNode might be nil, particularly when the mouse hovers over an area in the tree,
which is not covered by a node.

@@TBaseVirtualTree.EditDelay
Summary
Read or set the maximum time between two single clicks on the same node, which should start node editing.

Description
A node edit operation can be started using the keyboard (F2 key), in code using EditNode or by clicking twice on the same
node (but not doing a double click). EditDelay is the maxmimum time distance between both clicks in which the edit
\operation is started.

See Also
<LINK Editing.htm, Editors and editing>

@@TBaseVirtualTree.EditLink
Summary
Keeps a reference to the internal edit link during a node edit operation.

Description
During an edit operation a link is established between the tree and the editor for the current node. By default a simple
TEdit control is used as editor but due to the great customization possibilities there can be any node editor you may
want. In order to communicate with this potentially unknown node editor the edit link is used. The EditLink property
holds this link during the edit operation, so you can manipulate the interface.

@@TBaseVirtualTree.Expanded
Summary
Read or set the expanded state of a particular node.

Description
Using this property you can expand or collapse the given node. This method uses the central ToggleNode method.

@@TBaseVirtualTree.FocusedColumn
Summary
Read or set the currently focused collumn.

Description
When toExtendedFocus in TVTSelectionOptions is enabled then the user can select node cells in others than the main column
(the column with the tree structure). In order to keep track, which column is currently selected FocusedColumn is used
(similar to FocusedNode).



See Also
FocusedNode, TVTSelectionOptions

@@TBaseVirtualTree.FocusedNode
Summary
Read or set the currently focused node.

Description
One node (and only one) in the tree view can have the current input focus, marked as dotted rectangle around the node's
caption. Having the input focus means this node can be edited by pressing F2 or clicking on it and user keyboard input is
interpreted with respect to the focused node (e.g. tree navigation, expansion/collapsing etc.). If extended focus is
enabled then also the FocusedColumn property is taken into account. Read there for more info about column focus.



See Also
FocusedColumn, TVTSelectionOptions

@@TBaseVirtualTree.Font
Summary
Same as TWinControl.Font.

Description
See TWinControl.Font.

@@TBaseVirtualTree.FullyVisible
Summary
Read or set whether a node is fully visible or not.

Description
Beside the fact that a node can be out of the client area there are two possibilities for it to be hidden. One is the
vsVisible state in TVirtualNodeState, which hides the node regardles of the current state of another node, if not
specified. The other one is that one or more parent nodes might be collapsed, hiding so their entire child nodes
structure. The visibility flag itself can be checked using the IsVisible property, while the expansion state of parents
nodes can be examined via the VisiblePath property. If both are true then the node is said to be fully visible.



See Also
IsVisible, VisiblePath, vsVisible, TVirtualNodeStates

@@TBaseVirtualTree.HasChildren
Summary
Read or set whether a node has got children.

Description
A node can be set to have children by assigning true to this property. Internally this will add the vsHasChildren state
to the node but not add any child nodes. This state in turn will cause the node to be drawn with a plus sign in front of
its caption, denoting so it can be expanded and will show child nodes. As long as the child nodes are not touch in any
way (e.g. by expanding the parent node or by navigatin or searching/sorting the tree) there will be no actual child
nodes. They simply do not exist yet. However they will be created as soon as an access is done.



Setting the HasChildren property to false will delete any existing child node.



See Also
vsHasChildren, TVirtualNodeStates

@@TBaseVirtualTree.Header
Summary
Provides access to the header instance.

Description
This property is used to allow access to the header instance, which manages all aspects of the tree's header image as
well as the column settings.



See Also
TVTHeader

@@TBaseVirtualTree.HeaderRect
Summary
\Returns the non-client-area rectangle used for the header.

Description
Use this property to determine the extents used by the header of Virtual Treeview.

@@TBaseVirtualTree.HintMode
Summary
Read or set what type of hint you want for the tree view.

Description
Virtual Treeview supports several hints modes. This includes the normal hint used for any other TControl class as well as
a node specific hint, which is individual for each node or even each cell.

@@TBaseVirtualTree.HotCursor
Summary
Read or set which cursor should be used for hot nodes.

Description
When you enable toHotTrack in TreeOptions.PaintOptions then the node, which is currently under the mouse pointer becomes
the hot node. This is a special state, which can be used for certain effects. Hot nodes have by default an underlined
caption and may cause the cursor to change to what ever you like. The HotCursor property is used to specify, which cursor
is to be used.



See Also
HotNode, TVTPaintOptions

@@TBaseVirtualTree.HotNode
Summary
Read, which node is currently the hot node.

Description
When you enable toHotTrack in TreeOptions.PaintOptions then the node, which is currently under the mouse pointer becomes
the hot node. The property HotNode can be used to access this node for special handling.



See Also
HotCursor, toHotTrack, TVTPaintOptions

@@TBaseVirtualTree.Images
Summary
Read or set the tree's normal image list.

Description
Just like with TListView and TTreeview also Virtual Treeview can take an image list for its normal images. Additionally,
there are image lists for state images and check images.



See Also
StateImages, CheckImages

@@TBaseVirtualTree.IncrementalSearch
Summary
Read or set the current incremental search mode.

Description
Virtual Treeview can do an incremental search by calling back the application when comparing node captions. The
IncrementalSearch property determines whether incremental search is enabled and which nodes should be searched through.



See Also
IncrementalSearchDirection, IncrementalSearchStart, IncrementalSearchTimeout

@@TBaseVirtualTree.IncrementalSearchDirection
Summary
Read or set the direction to be used for incremental search.

Description
When incremental search is enabled then Virtual Treeview can search forward and backward from the start point given by
IncrementalSearchStart.



See Also
IncrementalSearch, IncrementalSearchStart, IncrementalSearchTime123out

@@TBaseVirtualTree.IncrementalSearchStart
Summary
Read or set where to start incremental search.

Description
When incremental search is enabled in the tree view then you can specify here, where to start the next incremental search
\operation from.



See Also
IncrementalSearch, IncrementalSearchDirection, IncrementalSearchTimeout

@@TBaseVirtualTree.IncrementalSearchTimeout
Summary
Read or set the maximum time, which is allowed between two consecutive key strokes so that incremental search stays
active.

Description
When incremental search is enabled in Virtual Treeview then you can specify here after what time incremental search
should stop when no keyboard input is encountered any longer. This property so determines also the speed at which users
have to type letters to keep the incremental search rolling.



See Also
IncrementalSearch, IncrementalSearchDirection, IncrementalSearchStart

@@TBaseVirtualTree.Indent
Summary
Read or set the indentation amount for node levels.

Description
Each new level in the tree (child nodes of a parent node) are visually shifted to distinguish betwenn them and their
parent node (that's the tree layout after all). The Indent property determines the shift distance in pixels.

@@TBaseVirtualTree.IsDisabled
Summary
Read or set the enabled state of the given node.

Description
A node can have many different states. One of them is its enabled state, which can be set via this property. Enabling a
node means it can be focused and selected, so it can take part in clipboard and drag'n drop operations, and can be
edited.

@@TBaseVirtualTree.IsVisible
Summary
Read or set the visibility state of the given node.

Description
A node can be made invisible using this property. That means, even if its parent nodes all are expanded the node is not
shown and the visual image is as would the node not exist. However it still can be searched or take part in certain other
\operations.

@@TBaseVirtualTree.LastDropMode
Summary
Read how the last drop operation finished.

Description
In the case you don't handle drag'n drop operations directly in OnDragDrop it might be necessary to know how the last
drag operation finshed. Read more in the drag mode enumeration about what is possible.

@@TBaseVirtualTree.LineMode
Summary
Read or set the mode of the tree lines.

Description
Apart from the usual lines Virtual Treeview also supports a special draw mode named bands. This allows for neat visual
effects.

@@TBaseVirtualTree.LineStyle
Summary
Read or set the mode of the tree lines.

Description
Virtual Treeview allows to customize the lines used to display the node hierarchy. The default style is a dotted pattern,
but you can also make solid lines or specify your own line pattern.

@@TBaseVirtualTree.Margin
Summary
Read or set the tree's node margin.

Description
The node margin is the distance between the cell bounds and its content like the lines, images, check box and so on.
However this border is only applied to the left and right side of the node cell.



\Note: there is also a TextMargin property in TVirtualStringTree, which is an additional border for the cell text only.



See Also
TVirtualStringTree.TextMargin

@@TBaseVirtualTree.MultiLine
Summary
Read or toggle the multiline feature for a given node.

Description
Since multiline support for nodes requires extra processing this behavior is switchable. When switched on the node is
wrapped into the available space until the node height is exhausted. By including carriage return/line feed pairs you can
explicitely specify where to start new lines. The node's height is not automatically adjusted to the given text. Instead
there is an event (OnMeasureItem), which can be used to compute a node's height before it is displayed the first time. In
addition an application can use the ComputeNodeHeight method to compute the height of the node depending on its caption
text.

@@TBaseVirtualTree.NodeAlignment
Summary
Read or set the node alignment value.

Description
Nodes have got an align member, which is used to determine the vertical position of the node's images and tree lines. The
NodeAlignment property specifies how to interpret the value in the align member.



See Also
TVirtualNode

@@TBaseVirtualTree.NodeDataSize
Summary
Read or set the extra data size for each node.

Description
A node can have an area for user data, which can be used to store application defined, node specific data in. Use
GetNodeData to get the address of this area. In addition to assigning a value here you can also use the OnGetNodeDataSize
event, which is called when NodeDataSize is -1.



See Also
<LINK DataHandling.htm, Data handling>

@@TBaseVirtualTree.NodeHeight
Summary
Read or set a node's height.

Description
Each node can have its individual height, which is stored in the node's record. You could directly assign a value to this
member but I strongly discourage this as it does not update certain other structures in the tree. Instead use the
NodeHeight property here to modify a node's height.

@@TBaseVirtualTree.NodeParent
Summary
Read or set a node's parent node.

Description
When reading this property then either the node's real parent node is returned or nil if the parent node is the internal,
hidden root node. When writing to this property you will effectively move a node to a new location.



See Also
MoveTo, CopyTo

@@TBaseVirtualTree.OffsetX
<COMBINE TBaseVirtualTree.OffsetXY>

@@TBaseVirtualTree.OffsetXY
Summary
Read or set the tree's current horizontal and vertical scroll offsets.

Description
Virtual Treeview allows to retrieve or set the internal scroll offset directly, without sending WM_HSCROLL/WM_VSCROLL
message around. This allows also to link two or more trees together. This scroll offset is given in pixels and is always
less or equal 0.

@@TBaseVirtualTree.OffsetY
<COMBINE TBaseVirtualTree.OffsetXY>

@@TBaseVirtualTree.OnAdvancedHeaderDraw
Summary
Header paint support event.

Description
The OnAdvancedHeaderDraw event is used when owner draw is enabled for the header and a column is set to owner draw mode.
It can be used to custom draw only certain parts of the header instead the whole thing. A good example for this event is
customizing the background of the header for only one column. With the standard custom draw method (OnHeaderDraw) you are
in an all-or-nothing situation and have to paint everything in the header including the text, images and sort direction
indicator. OnAdvancedHeaderDraw however uses OnHeaderDrawQueryElements to ask for the elements the application wants to
draw and acts accordingly.



See Also
OnHeaderDrawQueryElements, OnHeaderDraw

@@TBaseVirtualTree.OnAfterCellPaint
Summary
Paint support event.

Description
This event is called whenever a cell has been painted. A cell is defined as being one part of a node bound to a certain
column. This event is called several times per node (the amount is determined by visible columns and size of the part to
draw).



See Also
<LINK PaintCycles.htm, Paint cycles and stages>

@@TBaseVirtualTree.OnAfterItemErase
Summary
Paint support event.

Description
Called after the background of a node has been erased (erasing can also be filling with a background image). This event
is called once per node in a paint cycle.

See Also
<LINK PaintCycles.htm, Paint cycles and stages>

@@TBaseVirtualTree.OnAfterItemPaint
Summary
Paint support event.

Description
Called after a node has been drawn. This event is called once per node.

See Also
<LINK PaintCycles.htm, Paint cycles and stages>

@@TBaseVirtualTree.OnAfterPaint
Summary
Paint support event.

Description
Called after all nodes which needed an update have been drawn. This event is called once per paint cycle.

See Also
<LINK PaintCycles.htm, Paint cycles and stages>

@@TBaseVirtualTree.OnBeforeCellPaint
Summary
Paint support event.

Description
This event is called immediately before a cell is painted.

See Also
<LINK PaintCycles.htm, Paint cycles and stages>

@@TBaseVirtualTree.OnBeforeItemErase
Summary
Paint support event.

Description
Called when the background of a node is about to be erased.

See Also
<LINK PaintCycles.htm, Paint cycles and stages>

@@TBaseVirtualTree.OnBeforeItemPaint
Summary
Paint support event.

Description
Called after the background of a node has been drawn and just before the node itself is painted. In this event the
application gets the opportunity to decide whether a node should be drawn normally or should be skipped. The application
can draw the node itself if necessary or leave the node area blank.

See Also
<LINK PaintCycles.htm, Paint cycles and stages>

@@TBaseVirtualTree.OnBeforePaint
Summary
Paint support event.

Description
Called as very first event in a paint cycle. In this event has the application the opportunity to do some special
preparation of the canvas onto which the tree is painted, e.g. setting a special viewport and origin or a different
mapping mode.

See Also
<LINK PaintCycles.htm, Paint cycles and stages>

@@TBaseVirtualTree.OnChange
Summary
Navigation support event.

Description
Called when a node's selection state has changed.

@@TBaseVirtualTree.OnChecked
Summary
Check support event.

Description
Triggered when a node's check state has changed.

@@TBaseVirtualTree.OnChecking
Summary
Check support event.

Description
Triggered when a node's check state is about to change and allows to prevent the change.

@@TBaseVirtualTree.OnCollapsed
Summary
Miscellaneous event.

Description
Triggered after a node has been collapsed, that is, its child nodes are no longer displayed.

@@TBaseVirtualTree.OnCollapsing
Summary
Miscellaneous event.

Description
Triggered when a node is about to be collapsed and allows to prevent collapsing the node by setting <B>Allowed</B> to
false.

@@TBaseVirtualTree.OnColumnClick
Summary
Header and column support event.

Description
Triggered when the user released a mouse button over the same column in the client area on which the button was pressed
previously.

See Also
OnHeaderClick

@@TBaseVirtualTree.OnColumnDblClick
Summary
Header and column support event.

Description
Same as OnColumnClick but for double clicks.



See Also
OnColumnClick, OnHeaderDblClick

@@TBaseVirtualTree.OnColumnResize
Summary
Header and column support routine.

Description
Triggered when a column is being resized. During resize OnColumnResize is frequently hence you should make any code in
the associated event handle a short and fast as possible.

@@TBaseVirtualTree.OnCompareNodes
Summary
Sort and search support event.

Description
This event is the core event for all comparations between nodes. It is important that you <B>write a handler</B> for this
event if you want <B>to sort nodes</B>!



<B>Result</B> must be set to less than 0 if <B>Node1</B> is considered as being before <B>Node2</B>, equal to 0 if both a
considered being the same and greater than 0 if the first node is considered as being after node 2. Keep in mind that you
don't need to take sort direction into account. This is automatically handled by the tree. Simply return a comparation
\result as would there be an ascending sort order.



Below is some sample code taken from the Advanced Demo:


<CODE>
<B>procedure</B> TMainForm.VDT1CompareNodes(Sender: TBaseVirtualTree; Node1, Node2: PVirtualNode; Column: Integer;
  <B>var</B> Result: Integer);

<COLOR Blue>// used to sort the image draw tree</COLOR>

<B>var</B>
  Data1,
  Data2: PImageData;

<B>begin</B>
  Data1 := Sender.GetNodeData(Node1);
  Data2 := Sender.GetNodeData(Node2);
  <COLOR Blue>// folder are always before files</COLOR>
  <B>if</B> Data1.IsFolder \<\> Data2.IsFolder <B>then</B>
  <B>begin</B>
    <COLOR Blue>// one of both is a folder the other a file</COLOR>
    <B>if</B> Data1.IsFolder <B>then</B>
      \Result := <COLOR Pink>-1</COLOR>
    <B>else</B>
      \Result := <COLOR Pink>1</COLOR>;
  <B>end
<COLOR Blue>  </COLOR>else</B><COLOR Blue> // both are of same type (folder or file)</COLOR>
    \Result := CompareText(Data1.FullPath, Data2.FullPath);
<B>end</B>;

</CODE>
See Also
SortTree, Sort

@@TBaseVirtualTree.OnCreateDataObject
Summary
Drag'n drop support event.

Description
This event is called when the tree's drag manager needs a data object interface to start a drag'n drop operation.
Descentants (which override DoGetDataObject) or the application can return an own IDataObject implementation to support
special formats.

@@TBaseVirtualTree.OnCreateDragManager
Summary
Drag'n drop support event.

Description
This event is usually not used but allows power users to create their own drag manager to have different actions and/or
formats than the internal drag manager.

@@TBaseVirtualTree.OnCreateEditor
Summary
Editing support event.

Description
Allows to supply a customized node editor without changing the tree. TBaseVirtualTree triggers this event and raises an
exception if there no editor is returned. If you don't want this then disable edit support for nodes in
TreeOptions.MiscOptions. Descentants like TCustomVirtualStringTree supply a generic and simple string editor.

See Also
<LINK Editing.htm, Editors and editing>

@@TBaseVirtualTree.OnDragAllowed
Summary
Drag'n drop support event.

Description
This event is called in the mouse button down handler to determine whether the application allows to start a drag
\operation. Since this check is done in sync with the other code it is much prefered over doing a <B>manual</B>
BeginDrag.

Note
The OnDragAllowed event is called only if the current DragMode is dmManual.

@@TBaseVirtualTree.OnDragDrop
Summary
Drag'n drop support event.

Description
Triggered when either a VCL or a OLE drop action occured. Accepting drag and drop actions is not trivial. In order to
maintain a minimum compatibility with the VCL drag'n drop system Virtual Tree accepts not only OLE drop actions but also
those issued by the Delphi VCL (which is totally different to the OLE way, unfortunately), provided toAcceptOLEDrop is
set in TreeOptions.MiscOptions. The code snippet below is taken from a sample project provided with Virtual Tree. It
shows a general way to deal with dropped data. The following check list can be used as orientation and additional comment
to the code:



      1. Determine what kind of drop data is passed. If <B>DataObject</B> is nil or <B>Formats</B> is empty then the drag
         source is a VCL control. The event is not triggered for OLE drag'n drop if there is no OLE format is available (which
         should never occur).
      2. If the event is triggered by a VCL control then use <B>Source</B> to access either the control or the drag
         \object, depending on the circumstances of the action.
      3. For OLE drag'n drop iterate through the <B>Formats</B> list to find a format you can handle.
      4. If you find CF_VIRTUALTREE then the source of the drag operation is a Virtual Treeview. Since this is the native
         tree format you can pass it to the <B>Sender</B>'s ProcessDrop method which will take care to retrieve the data and act
         depending on <B>Effect</B> and <B>Mode</B>. No further action by the application is usually required in this case.
      5. If you do not find CF_VIRTUALTREE then the operation has been initiated by another application, e.g. the
         Explorer (then you will find CF_HDROP or CF_SHELLIDLIST in formats) or Notepad (then you will get CF_TEXT and perhaps
         CF_UNICODETEXT) etc., depending on the data which is actually dropped.
      6. Use the provided <B>DataObject</B> to get the drop data via IDataObject.GetData and act depending on the format
         you get.
      7. Finally set <B>Effect</B> to either DROPEFFECT_COPY, DROPEFFECT_MOVE or DROPEFFECT_NONE to indicate which
         \operation needs to be finished in <B>Sender</B> when the event returns. If you return DROPEFFECT_MOVE then all marked
         nodes in the source tree will be deleted, otherwise they stay where they are.


<CODE>
<B>procedure</B> TMainForm.VTDragDrop(Sender: TBaseVirtualTree; Source: TObject; DataObject: IDataObject;
  <B>const</B> Formats: <B>array</B> <B>of</B> Word; Shift: TShiftState; Pt: TPoint; <B>var</B> Effect: Integer; Mode: TDropMode);

<B>var</B>
  I: Integer;
  AttachMode: TVTNodeAttachMode;

<B>begin</B>
  <B>if</B> Length(Formats) \> 0 <B>then</B>
  <B>begin</B>
<COLOR Blue>    // OLE drag'n drop
    // If the native tree format is listed then use this and accept the drop, otherwise recject (ignore) it.
    // It is recommend by Microsoft to order available clipboard formats in decreasing detail richness so
    // the first best format which we can accept is usually the best format we can get at all.</COLOR>
    <B>for</B> I := 0 <B>to</B> High(Formats) <B>do</B>
      <B>if</B> Formats[I] = CF_VIRTUALTREE <B>then</B>
      <B>begin</B>
        <B>case</B> Mode <B>of</B>
          dmAbove:
            AttachMode := amInsertBefore;
          dmOnNode:
            AttachMode := amAddChildLast;
          dmBelow:
            AttachMode := amInsertAfter;
        <B>else</B>
          <B>if</B> Assigned(Source) <B>and</B> (Source is TBaseVirtualTree) <B>and</B> (Sender \<\> Source) <B>then</B>
            AttachMode := amInsertBefore
          <B>else</B>
            AttachMode := amNowhere;
        <B>end</B>;
        <COLOR Blue>// in the case the drop target does an optimized move Effect is set to DROPEFFECT_NONE
        // to indicate this also to the drag source (so the source doesn't need to take any further action)</COLOR>
        Sender.ProcessDrop(DataObject, Sender.DropTargetNode, Effect, AttachMode);
        Break;
      <B>end</B>;
<B>  end
  else
  begin</B>
    <COLOR Blue>// VCL drag'n drop, Effects contains by default both move and copy effect suggestion,
    // as usual the application has to find out what operation is finally to do</COLOR>
    Beep;
<B>  end;
end;
</B>
</CODE>

@@TBaseVirtualTree.OnDragOver
Summary
Drag'n drop support event.

Description
Triggered when Sender is the potential target of a drag'n drop operation. You can use this event to allow or deny a drop
\operation by setting Allowed to True or False, respectively. For conditions of OLE or VCL drag source see OnDragDrop.

See Also
OnDragDrop

@@TBaseVirtualTree.OnEditCancelled
Summary
Editing support event.

Description
Triggered when an edit action has been cancelled.

See Also
<LINK Editing.htm, Editors and editing>

@@TBaseVirtualTree.OnEdited
Summary
Editing support event.

Description
Triggered when an edit action has successfully been finished.

See Also
<LINK Editing.htm, Editors and editing>

@@TBaseVirtualTree.OnEditing
Summary
Editing support event.

Description
Triggered when a node is about to be edited. Use <B>Allowed</B> to allow or deny this action.

See Also
<LINK Editing.htm, Editors and editing>

@@TBaseVirtualTree.OnExpanded
Summary
Misscellaneous event.

Description
Triggered after a node has been expanded.

@@TBaseVirtualTree.OnExpanding
Summary
Miscellaneous event.

Description
Triggered just before a node is expanded. Use <B>Allowed</B> to allow or deny this action.

@@TBaseVirtualTree.OnFocusChanged
Summary
Navigation support event.

Description
Triggered after the focused node changed. When examining <B>Node</B> keep in mind that it can be nil, meaning there is no
focused node.

@@TBaseVirtualTree.OnFocusChanging
Summary
Navigation support event.

Description
Triggered when the node focus is about to change. You can use <B>Allowed</B> to allow or deny a focus change. Keep in
mind that either the old or the new node can be nil.

@@TBaseVirtualTree.OnFreeNode
Summary
Data management node.

Description
Triggered when a node is about to be freed. This is the ideal place to free/disconnect your own data you associated with <B>Node</B>.
Keep in mind, that data which is stored directly in the node does not need to be free by the application. This is part of
the node record and will be freed when the node is freed. You should however finalize the data in such a case if it
contains references to external memory objects (e.g. variants, strings, interfaces).

@@TBaseVirtualTree.OnGetCursor
Summary
Miscellaneous event.

Description
This event is triggered from the WM_SETCURSOR message to allow the application use several individual cursors for a tree.
The Cursor property allows to set one cursor for the whole control but not to use separate cursors for different tree
parts.

@@TBaseVirtualTree.OnGetHeaderCursor
Summary
Header and column support event.

Description
This event is triggered from the WM_SETCURSOR message to allow the application to define individual cursors for the
header part of the tree control.

@@TBaseVirtualTree.OnGetHelpContext
Summary
Miscellaneous event.

Description
This event is usually triggered when the user pressed F1 while the tree has the focus. The tree is iteratively traversed
all the way up to the top level parent of the given node until a valid help context index is returned (via this event).
When the loop reaches the top level without getting a help index then the tree control's help index is used. If the tree
itself does not have a help context index then a further traversal is initiated going up parent by parent of each control
in the current window hierarchy until either a valid index is found or there is no more window parent.

@@TBaseVirtualTree.OnGetImageIndex
Summary
Display management event.

Description
This event is triggered whenever the tree needs the index of an image, be it the normal, the selected or the state image.
The event should be as fast as possible because it is at times frequently called when the layout of the node must be
determined, e.g. while doing draw selection with the mouse or painting the tree. <B>Kind</B> determines which image is
needed and <B>Column</B> determines for which column of the node the image is needed. This value can be -1 to indicate
there is no column used. The parameter <B>Ghosted</B> can be set to true to blend the image 50% against the tree
background and can be used for instance in explorer trees to mark hidden file system objects. Additionally nodes are also
drawn with a ghosted icon if the are part of a cut set during a pending cut-to-clipboard operation. In this case changing
the ghosted parameter has no effect.

Note
Blending nodes can be switched by using toUseBlendImages in TreeOptions.PaintOptions.

@@TBaseVirtualTree.OnGetLineStyle
Summary
Display management event.

Description
This event is used to customize the appearance of the tree and grid lines and is only triggered if the LineStyle property
is set to lsCustomStyle. The event must return a pointer to an array containing bits for an 8 x 8 pixel image with word
aligned entries. For more info see PrepareBitmaps and the Windows APIs CreateBitmap and CreatePatternBrush.

Note
It is important that you do not use dynamically allocated memory in this event (also no local variables on the stack). If
you do so then either the memory is not valid on return of the event (if allocated on stack) or will never be freed (if
allocated with a memory manager). Instead use a constant array and return its address.
See Also
PrepareBitmaps

@@TBaseVirtualTree.OnGetNodeDataSize
Summary
Data management event.

Description
Triggered when access to a node's data happens the first time but the actual data size is not yet set. Usually you would
specify the size of the data you want to have added to each node by NodeDataSize, e.g. SizeOf(TMyRecord) is quite usual
there (where TMyRecord is the structure you want to have stored in the node). Sometimes, however it is not possible to
determine the node size in advance, so you can leave NodeDataSize being -1 (the default value) and the OnGetNodeDataSize
event is triggered as soon as the first regular node is created (the hidden root node does not have user data but
\internal data which is determined by other means).

See Also
NodeDataSize, <LINK DataHandling.htm, Data handling>

@@TBaseVirtualTree.OnGetPopupMenu
Summary
Miscellaneous event.

Description
This event allows the application to return a popup menu which is specific to a certain node. The tree does an automatic
traversal all the way up to the top level node which is the parent of a given node to get a popup menu. If <B>Menu</B> is
set then the traversal stops. Otherwise it continues until either a menu is set, AskParent is set to False or the top
level parent has been reached.

@@TBaseVirtualTree.OnGetUserClipboardFormats
Summary
Drag'n drop and clipboard support event.

Description
Whenever the tree needs to specify the available clipboard formats for a clipboard or drag'n drop operation it calls this
event too, to allow the application or descentants (which would override DoGetUserClipboardFormats) to specify own
formats which can be rendered. Since the build-in data object does not know how to render formats which are specified
here you have to supply a handler for the OnRenderOLEData event or an own IDataObject implementation to fully support
your own formats.



Use the <B>Formats</B> parameter which is an open array and add the identifiers of your formats (which you got when you
registered the format).

@@TBaseVirtualTree.OnHeaderClick
Summary
Header & column support event.

Description
This event is triggered when the user clicks on a header button and is usually a good place to set the current SortColumn
and SortDirection.

See Also
SortColumn, SortDirection

@@TBaseVirtualTree.OnHeaderDblClick
Summary
Header & column support event.

Description
Unlike OnHeaderClick this event is triggered for double clicks on any part of the header and comes with more detailed
information like shift state, which mouse button caused the event and the mouse position.

See Also
OnHeaderClick

@@TBaseVirtualTree.OnHeaderDragged
Summary
Header & column support event.

Description
Triggered after the user has released the left mouse button when a header drag operation was active. <B>Column</B>
contains the index of the column which was dragged. Use this index for the Columns property of the header to find out the
current position. <B>OldPosition</B> is the position which <B>Column</B> occupied before it was dragged around.

@@TBaseVirtualTree.OnHeaderDraggedOut
Summary
Header & column support event.

Description
When during a header drag operation the mouse moves out of the header rectangle and the mouse button is released then an
OnHeaderDraggedOut event will be fired with the target mouse position in screen coordinates.

@@TBaseVirtualTree.OnHeaderDragging
Summary
Header & column support event.

Description
Triggered just before dragging of a header button starts. Set <B>Allowed</B> to False if you want to prevent the drag
\operation of the given column.

@@TBaseVirtualTree.OnHeaderDraw
Summary
Header & column support event.

Description
If you set the hoOwnerDraw style in TVTHeader.Options and a column has been set to vsOwnerDraw (see also
TVirtualTreeColumn.Style) then OnDrawHeader is called whenever a column needs painting.

@@TBaseVirtualTree.OnHeaderDrawQueryElements
Summary
Header & column support event.

Description
Used for advanced header painting to query the application for the elements, which are drawn by it and which should be
drawn by the tree.



See Also
OnAdvancedHeaderDraw

@@TBaseVirtualTree.OnHeaderMouseDown
Summary
Header & column support event.

Description
This event is similar to OnHeaderClick but comes with more detailed information like shift state, which mouse button
caused the event and the mouse position.

@@TBaseVirtualTree.OnHeaderMouseMove
Summary
Header & column support event.

Description
This event is triggered when the mouse pointer is moved over the header area.

@@TBaseVirtualTree.OnHeaderMouseUp
Summary
Header & column support event.

Description
This event is very much like OnHeaderMouseDown but is triggered when a mouse button is released.

@@TBaseVirtualTree.OnHotChange
Summary
Navigation support event.

Description
This event is triggered if hot tracking is enabled (see also TreeOptions.PaintOptions) and when the mouse pointer moves
from one node caption to another. In full row select mode most parts of a node are considered as being part of the
caption.

@@TBaseVirtualTree.OnIncrementalSearch
Summary
Miscellaneous event.

Description
This event is integral part of the incremental search functionality (see also Keyboard, hotkeys and incremental search).
It is triggered during search for a node which matches the given string. Similar to other compare routines return a value
\< 0 if the node's caption is considered as being before the given text, = 0 if it is the same and \> 0 if it is
considered being after the given text.


<CODE>
<B>procedure</B> TfrmProperties.VST3IncrementalSearch(Sender: TBaseVirtualTree; Node: PVirtualNode; <B>const</B> Text: WideString;
  <B>var</B> Result: Integer);

<B>var</B>
  S, PropText: <B>string</B>;


<B>begin</B>
  <COLOR Blue>// Note: This code requires a proper Unicode/WideString comparison routine which I did not want to link here for
  // size and clarity reasons. For now strings are (implicitly) converted to ANSI to make the comparison work.
  // Search is not case sensitive.</COLOR>
  S := Text;
  <B>if</B> Node.Parent = Sender.RootNode <B>then</B>
  <B>begin</B>
    <COLOR Blue>// root nodes</COLOR>
    <B>if</B> Node.Index = 0 <B>then</B>
      PropText := <COLOR Pink>'Description'</COLOR>
    <B>else</B>
      PropText := <COLOR Pink>'Origin'</COLOR>;
  <B>end
  else
  begin</B>
    PropText := PropertyTexts[Node.Parent.Index, Node.Index, ptkText];
  <B>end</B>;

  <COLOR Blue>// By using StrLIComp we can specify a maximum length to compare. This allows us to find also nodes
  // which match only partially.</COLOR>
  \Result := StrLIComp(PChar(S), PChar(PropText), Min(Length(S), Length(PropText)))
<B>end</B>;
</CODE>
Note
Usually incremental search allows to match also partially. Hence it is recommended to do comparison only up to the length
\of the shorter string.

@@TBaseVirtualTree.OnInitChildren
Summary
Node management event.

Description
In order to allow the tree only to fill content where needed it is possible to set the vsHasChildren style in a node's
initializaton whithout really adding any child nodes. These child nodes must be initialized first when they are about to
be displayed or another access (like search, iteration etc.) occurs.



The application usually prepares data needed to fill child nodes when they are initialized and retrieves the actual
number. Set <B>ChildCount</B> to the number of children you want.

See Also
<LINK Paradigm.htm, The virtual paradigm>

@@TBaseVirtualTree.OnInitNode
Summary
Node management event.

Description
This event is important to connect the tree to your internal data. It is the ideal place to put references or whatever
you need into a node's data area. You can set some initial states like selection, expansion state or that a node has
child nodes.

See Also
<LINK Paradigm.htm, The virtual paradigm>

@@TBaseVirtualTree.OnKeyAction
Summary
Miscellaneous event.

Description
This event is a convinient way for the application or descentant trees to change the semantic of a certain key stroke. It
is triggered when the user presses a key and allows either to process that key normally (leave <B>DoDefault</B> being
True) or change it to another key instead (set <B>DoDefault</B> to False then). This way a key press can change its
meaning or entirely be ignored (if <B>CharCode</B> is set to 0).

@@TBaseVirtualTree.OnLoadNode
Summary
Streaming support event.

Description
This event is typically triggered when serialized tree data must be restored, e.g. when loading the tree from file or
stream or during a clipboard/drag'n drop operation. You should only read in what you wrote out in OnSaveNode. For safety
there is a check in the loader code which tries to keep the internal serialization structure intact in case the
application does not read correctly.

See Also
OnSaveNode, LoadFromStream, SaveToStream, AddFromStream, VTTreeStreamVersion, TVTHeader.LoadFromStream,
TVTHeader.SaveToStream

@@TBaseVirtualTree.OnMeasureItem
Summary
Miscellaneous event.

Description
Virtual Treeview supports individual node heights. However it might sometimes unpractical to set this height in advance
(e.g. during OnInitNode). Another scenario might be that multi line nodes must size themselves to accomodate the entire
node text without clipping. For such and similar cases the event OnMeasureItem is for. It is queried once for each node
and allows to specify the node's future height. If you later want to have a new height applied (e.g. because the node's
text changed) then call InvalidateNode for it and its vsHeightMeasured state is reset causing so the tree to trigger the
OnMeasureItem event again when the node is painted the next time.



See Also
InvalidateNode, vsHeightMeasured

@@TBaseVirtualTree.OnNodeCopied
Summary
Miscellaneous event.

Description
This event is triggered during drag'n drop after a node has been copied to a new location. Sender is the target tree
where the copy operation took place.

@@TBaseVirtualTree.OnNodeCopying
Summary
Miscellaneous event.

Description
This event is triggered when a node is about to be copied to a new location. Use <B>Allowed</B> to allow or deny the
action. <B>Sender</B> is the target tree where the copy operation will take place.

@@TBaseVirtualTree.OnNodeMoved
Summary
Miscellaneous event.

Description
This event is very much like OnNodeCopied but used for moving nodes instead.

@@TBaseVirtualTree.OnNodeMoving
Summary
Miscellaneous event.

Description
This event is very much like OnNodeCopying but used for moving nodes instead.

@@TBaseVirtualTree.OnPaintBackground
Summary
Paint support event.

Description
This event is triggered when the tree has finished its painting and there is an area which is not covered by nodes. For
nodes there are various events to allow background customizaton. For the free area in the tree window there is this
event.

@@TBaseVirtualTree.OnRenderOLEData
Summary
Drag'n drop and clipboard support event.

Description
This event is triggered when the data in a clipboard or drag'n drop operation must be rendered but the built-in data
\object does not know the requested format. This is usually the case when the application (or descentants) have specified
their own formats in OnGetUserClipboardFormats.

@@TBaseVirtualTree.OnResetNode
Summary
Node management event.

Description
For large trees or simply because the content changed it is sometimes necessary to discard a certain node and release all
its children. This can be done with ResetNode which will trigger this event.

See Also
ResetNode

@@TBaseVirtualTree.OnSaveNode
Summary
Streaming support event.

Description
This event is triggered whenever a certain node must be serialized into a stream, e.g. for saving to file or for copying
to another tree/node during a clipboard or drag'n drop operation. Make sure you only store non-transient data into the
stream. Pointers (including long/wide string references) are transient and the application cannot assume to find the data
a pointer references on saving at the same place when the node is loaded (see also OnLoadNode). This is even more
essential for nodes which are moved or copied between different trees in different processes (applications). Storing
strings however is easily done by writing the strings as a whole into the stream.

Note
For exchanging data between different trees and for general stability improvement I strongly recommend that you insert a
kind of identifier as first stream entry when saving a node. This identifier can then be used to determine what data will
follow when loading the node later and does normally not required to be stored in the node data.
See Also
OnLoadNode, LoadFromStream, SaveToStream, AddFromStream, VTTreeStreamVersion, TVTHeader.LoadFromStream,
TVTHeader.SaveToStream

@@TBaseVirtualTree.OnScroll
Summary
Miscellaneous event.

Description
This event is triggered when the tree is scrolled horizontally or vertically. You can use it to synchronize scrolling of
several trees or other controls.

See Also
OffsetXY

@@TBaseVirtualTree.OnStateChange
Summary
Miscellaneous event.

Description
For special effects or in order to increase performance it is sometimes useful to know when the tree changes one of its
\internal states like tsIncrementalSearching or tsOLEDragging. The OnStateChange event is triggered each time such a
change occurs letting so the application take measures for it.

@@TBaseVirtualTree.OnStructureChange
Summary
Miscellaneous event.

Description
This event is triggered when a change in the tree structure is made. That means whenever a node is created or destroyed
\or a node's child list is change (because a child node was moved, copied etc.) then OnStructureChange is executed.

@@TBaseVirtualTree.OnUpdating
Summary
Miscellaneous event.

Description
This event is triggered when the application or the tree call BeginUpdate or EndUpdate and indicate so when a larger
update operation takes place. This can for instance be used to show a hour glass wait cursor.

@@TBaseVirtualTree.RootNode
Summary
Reference to the internal root node which is the anchor of the entire tree node hierarchy.

Description
For anchoring the tree hierarchy an internal tree node is maintained which is mostly just like any other tree node but
has sometimes differently handled. The root node is always expanded and initialized. Its parent member points to the
treeview to which the node belongs to and its PreviousSibling and NextSibling members point to the root node itself to
make it possible to actually recognize this node.

Note
You should not use the root node to iterate through the tree. It is only publicly accessible because it is the parent of
all top level nodes and can be used to test a node whether it is a top level node or not.

@@TBaseVirtualTree.RootNodeCount
Summary
Read or set the number of nodes on the top level.

Description
Usually setting RootNodeCount is all what is needed to initially fill the tree. When one of the top level nodes is
initialized you can set its ivsHasChildren style. This will then cause to ask to initialize the child nodes. Recursively
applied, you can use this principle to create tree nodes on demand (e.g. when their parent is expanded).

@@TBaseVirtualTree.ScrollBarOptions
Summary
Reference to the scroll bar options class.

Description
Like many other aspects in Virtual Treeview also scrollbars can be customized. See the class itself for further
descriptions.

@@TBaseVirtualTree.SearchBuffer
Summary
Current input string for incremental search.

Description
When incremental search is active you can use SearchBuffer to get the input string typed by the user, which created the
last match.

See Also
IncrementalSearch

@@TBaseVirtualTree.Selected
Summary
Property to modify or determine the selection state of a node.

Description
This array property is used to test whether a given node is selected or to switch its selection state. Note that the
selection state has nothing to do with the <LINK TBaseVirtualTree.FocusedNode, focused state>. Only one node can be
focused while any number of nodes can be selected (read: can be marked with the selection flag to paint their caption
differently). Selection is mainly used to mark nodes for clipboard and drag'n drop operations.

@@TBaseVirtualTree.SelectedCount
Summary
Contains the number of selected nodes.

Description
If multiselection is enabled (toMultiSelect) then SelectedCount will contain the actual number of selected nodes. In
\order to change the selection state of a node use Selected or AddToSelection/RemoveFromSelection.

@@TBaseVirtualTree.SelectionBlendFactor
Summary
Read or set the current blend factor for the multi selection rectangle and the node selection rectangle.

Description
For a visually appealing tree some operations use alpha blending. One of these operations is multi selection using the
mouse. Another one is the rectangle drawn around the caption of selected nodes. Both rectangles use the
SelectionBlendFactor to determine how much of the underlying tree image and how much of the rectangles should be seen.
The factor can be in the range of [0..255] where 0 means the rectangle is fully transparent and 255 it is fully opaque.



If you don't like to use blended node selection rectangles then switch them off by removing toUseBlendedSelection from
TVTPaintOptions. For selecting a certain multi selection rectangle style use DrawSelectionMode.



Note
Alpha blending is only enabled when the current processor supports MMX instructions. If MMX is not supported then a
dotted draw selection rectangle and an opaque node selection rectangle is used.
See Also
DrawSelectionMode, TVTPaintOptions

@@TBaseVirtualTree.SelectionCurveRadius
Summary
Read or set the current corner radius for node selection rectangles.

Description
This is a special property to determine the radius of the corners of the selection rectangle for a node caption. Virtual
Treeview supports not only simple rectangular selection marks but also such with rounded corners. This feature, however,
is only available if blended node selection rectangles are disabled.

See Also
SelectionBlendFactor, DrawSelectionMode, TVTPaintOptions

@@TBaseVirtualTree.StateImages
Summary
Reference to the images list which is used for the state images.

Description
Each node can (in each column) have several images. One is the check image which is supplied by internal image lists or a
special external list (see also CustomCheckImages). Another one is the state image and yet another one the
normal/selected image.



See Also
CheckImages, Images

@@TBaseVirtualTree.TextMargin
Summary
Read or set the distance of the node caption to its borders.

Description
TextMargin is used to define a border like area within the content rectangle of a node. This rectangle is the area of the
node less the space used for indentation, images, lines and node margins and usually contains the text of a node. In
\order to support finer adjustment there is another margin, which only applies to the left and right border in the
content rectangle. This is the text margin.



See Also
Margin

@@TBaseVirtualTree.TopNode
Summary
The top node is the node which is currently at the top border of the client area.

Description
This property is a reference to the node which is the first node which is at least partially visible in the client area.

@@TBaseVirtualTree.TotalCount
Summary
\Returns the number of nodes in the tree.

Description
Use this property to get the overall number of nodes currently in the tree. This will validate all nodes in the control
so that also not yet created child nodes are counted.



Note
This property is quite counter productive as it causes the entire tree to be validated when queried. This means that each
node is initialized, including its children and grandchildren etc. creating so a full blown treeview (if not already
done) which might keep much memory allocated (not counted the time necessary to validate all nodes). Therefore I
discourage the use of the property unless it is really necessary.

@@TBaseVirtualTree.TotalInternalDataSize
Summary
Keeps the currently accumulated data size for one node.

Description
Each node in the tree not only supports user data but also an interal area where TVirtualBaseTree descentants can store
their own data per node. This internal data area must be allocated by a tree class, that means it must register its need
for internal data. The internal data size registered by each descendant is accumulated in the TotalInternalDataSize
member and is used to compute the user data offset in the node record.



See Also
<LINK DataHandling.htm, Data handling>

@@TBaseVirtualTree.TreeOptions
Summary
Reference to the tree's options.

Description
The tree options are one of the main switchs to modify a treeview's behavior. Virtual Treeview supports customizing tree
\options by descentants. This allows very fine adjustments for derived tree classes, including the decision which
properties should be published. For more information about the base options see TCustomVirtualTreeOptions and its
descentants.

@@TBaseVirtualTree.TreeStates
Summary
Property which keeps a set of flags which indicate current operation and states of the tree.

Description
Often it is extremly helpful to know what action is currently happening in the tree. TreeStates gives you this
information, be it that the caches are currently validated, a drag operation is in progress, the tree has delayed data on
the clipboard or a large update operation is under work. You can greatly optimize your code with this knowledge.



See Also
OnStateChange

@@TBaseVirtualTree.VerticalAlignment
Summary
Used to set a node's vertical button aligment with regard to the entire node rectangle.

Description
The given value is interpreted differently depending on the value of NodeAlignment. By default the alignment used
relatively with regard to the top bound. In this case a range of 0 through 100 must be used which denotes the relative
pixel amount in percent. The other variants work with absolute pixel values from top or bottom bound.

@@TBaseVirtualTree.VisibleCount
Summary
Number of currently visible nodes.

Description
Visible nodes are those nodes which have the vsVisible flag set in their states.

@@TBaseVirtualTree.VisiblePath
Summary
Property to set or determine a node parent's expand states.

Description
A node has a visible path when all of its parent nodes are expanded. Setting this property to True will expand all parent
nodes of <B>Node</B> if not yet done.



See Also
Visible

@@TBaseVirtualTree.WantTabs
Summary
Read or set whether the tree wants to process tabs on its own.

Description
Usually tab kex strokes advance the input focus from one control to another on a form. For special processing however it
is necessary to let the control decide what to do with the given tabulator character. Virtual Treeview needs this
character mainly for its grid emulation.

@@TBaseVirtualTree.AbsoluteIndex@PVirtualNode
Summary
Reads the overall index of a node.

Description
Indicates the index of the tree node relative to the first tree node in a tree.



Note
Similar to TotalCount also with AbsoluteIndex the entire tree will be validated, with all consequences like high memory
usage etc. And since Virtual Treeview is a highly changing environment there is not much sense to use the absolute index.
You cannot use it in any method or property of the control.

@@TBaseVirtualTree.AddChild@PVirtualNode@Pointer
Summary
Creates and adds a new child node to given node.

Description
The new node will be created as last child of <B>Parent</B> and is returned as result.

Note
Using AddChild is not recommended. The method is merely there for easier migration from TTreeview. The reason is that the
method has to validate the node and does some other processing, which prevents the tree from utilizings its virtual
paradigm. Important advantages will so disappear. If possible you should restructure your design and try to use the right
way: via OnInitNode and OnInitChildren.

See Also
InsertNode, OnInitNode, OnInitChildren

@@TBaseVirtualTree.AddFromStream@TStream@PVirtualNode
Summary
Adds the content from the given stream to the given node.

Description
AddFromStream restores the subtree stored in Stream and adds it to TargetNode. The content of the stream must have been
saved previously with SaveToStream.



See Also
SaveToStream

@@TBaseVirtualTree.AddToSelection@PVirtualNode
Summary
Adds one or more nodes to the current selection.

Description
AddToSelection either takes a single node or an array of nodes and adds them to the current seletion in the tree. In this
process also the vsSelected state of the node is set. <B>NewLength</B> is the amount of nodes to add (necessary to allow <B>NewItems</B>
to be larger than the actual used entries). <B>ForceInsert</B> is true if nodes must be inserted without consideration of
level select constraint or already set selected flags (e.g. when loading from stream).

Note
In the case <B>ForceInsert</B> is true the caller is responsible for making sure the new nodes aren't already in the
selection array!

@@TBaseVirtualTree.AddToSelection@TNodeArray@Integer@Boolean
<COMBINEWITH TBaseVirtualTree.AddToSelection@TNodeArray@Integer@Boolean>

@@TBaseVirtualTree.AdjustPaintCellRect@TVTPaintInfo@TColumnIndex
Summary
Used in descentants to modify the clip rectangle of the current column while painting a certain node.

Description
The rectangle for the given cell (node, column pair in <B>PaintInfo</B>) can be adjusted by descendants to make room for
special drawings, if necessary.

@@TBaseVirtualTree.AdjustPanningCursor@Integer@Integer
Summary
Loads the proper cursor which indicates into which direction scrolling is done.

Description
Wheel mice support a special mode for their wheel, which is used in many applications. By pressing the wheel (which is
also a button) you can start so called <I>wheell panning</I>. In this mode the tree window is smoothly scrolled in the
direction to which the mouse pointer is moved. As soon as you release the wheel button wheel panning is stopped. A second
form of this feature is referred to as <I>wheel scrolling</I>. It is basically the same as wheel panning but is entered
when you release the wheel button before you moved the mouse. In this mode you can move the mouse and do the tree
scrolling without holding the wheel all the time. To stop this mode simple turn the wheel, or click any mouse button.
Also pressing ESC will cause to leave the wheel scrolling mode.



Depending on the direction the tree content is scroll also the mouse cursor must be adjusted to indicate this direction.
AdjustPanningCursor does this.

@@TBaseVirtualTree.AdviseChangeEvent@Boolean@PVirtualNode@TChangeReason
Summary
Used to register a delayed change event.

Description
Often there can be many change events in a row and calling the application for each of them might be too time costly. So
they are by default accumulated until a certain time has elapsed (ChangeDelay) or, if BeginUpdate was called, until
EndUpdate is executed. If <B>StructureChange</B> is False then we have a selection change event (without a specific
reason) otherwise it is a structure change.



There are two possibilities to avoid delayed change events. One is the permanent way by setting ChangeDelay to 0, the
\other one is to enter the synchronous mode by calling BeginSynch.

@@TBaseVirtualTree.AllocateInternalDataArea@Cardinal
Summary
Registration method to allocate tree internal data per node.

Description
This method is used for descentants to specify their need for internal data. Each node contains some extra reserved bytes
between the node's normal members and the user data area. This internal area can be used to cache additional information,
e.g. the string tree keeps here the width of the node's caption in the main column for quick hit tests when doing draw
selection with the mouse.



A tree implementation must call this method only once and before any node is created (except the hidden root node which
is handled accordingly). The result value is the offset from the start of the node to the internal data area of the node
for this tree class. I recommend to implement an access method called InternalData (as shown in TCustomVirtualStringTree)
which does the pointer mathematic.



See Also
<LINK DataHandling.htm, Data handling>, TotalInternalDataSize

@@TBaseVirtualTree.Animate@Cardinal@Cardinal@TVTAnimationCallback@Pointer
Summary
Support method for animated actions in the tree view.

Description
This method is a general purpose helper to do an animation and is used for hint fading, animated node toggling etc. The
method automatically takes care that the animation is done within the specified time interval. For each step in the
animation loop the provided callback is called which gets Data passed as parameter.

@@TBaseVirtualTree.Assign@TPersistent
Summary
Used to copy properties from another Virtual Treeview.

Description
Although this method assignes most tree properties it does not assign the header and the nodes to the new tree. There is
an own method (TVTHeader.Assign) for the header assignment. In order to copy the nodes you must save them to a stream and
restore them in the other control-

@@TBaseVirtualTree.BeginDrag@Boolean@Integer
Summary
Starts an OLE drag'n drop operation.

Description
This method is called within the mouse down handler when DragMode is set to dmAutomatic. Manual start of a drag operation
is not recommended as it confuses the correct mouse down handling which is quite complex in Virtual Treevew. If you
selectively want to allow to start a drag operation then use the OnDragAllowed event which is called when DragMode is
dmManual.

@@TBaseVirtualTree.BeginSynch
Summary
Enters the tree into a special synchronized mode.

Description
Similar to BeginUpdate does BeginSynch provide a mechanism to bring certain events into a common line. That means,
whenever you need to make sure change events are called before a modification in the tree is finished (e.g. when changing
the focus or selection) then use the synchronous mode started with BeginSynch (and stopped with EndSynch).

@@TBaseVirtualTree.BeginUpdate
Summary
Locks the tree view to perform several update operations.

Description
Call this method when a long lasting operation begins which might involve manipulation of many nodes.

@@TBaseVirtualTree.CalculateSelectionRect@Integer@Integer
Summary
Support method for draw selection.

Description
Recalculates old and new selection rectangle given that X, Y are new mouse coordinates. The function returns true if
there was a change since the last call.

@@TBaseVirtualTree.CanAutoScroll
Summary
Determines whether the tree can currently auto scroll its window.

Description
This method was created because the conditions when the tree may automatically scroll its content are quite complex.
Additionally, tree descendants might want to add further limitations. Thus the determination has been put into an own
method which returns true if the tree is allowed to scroll, otherwise False.

@@TBaseVirtualTree.CancelCutOrCopy
Summary
Canceles any pending cut or copy clipboard operation.

Description
This method is used to stop any pending clipboard operation. No data is transfered nor are nodes deleted.

@@TBaseVirtualTree.CancelEditNode
Summary
Cancel the current edit operation, if there is any.

Description
Used to stop the current edit operation.The node editor will get a CancelEdit call so that the node is not changed.

@@TBaseVirtualTree.CanEdit@PVirtualNode@TColumnIndex
Summary
Determines whether a node can be edited or not.

Description
The method is called when the tree is about to start a node edit operation. Returns true if editing is allowed, otherwise
false.

@@TBaseVirtualTree.CanFocus
Summary
Support method to determine whether the tree window can receive the input focus.

Description
The method adds a check for the parent form of the control.

@@TBaseVirtualTree.CanShowDragImage
Summary
Determines whether a drag image should be shown.

Description
This overridable method is used to determine whether a drag image can be shown or not.

@@TBaseVirtualTree.Change@PVirtualNode
Summary
Central method called when a node's selection state changes.

Description
The Change method is called to trigger the change notifcation chain. Depending on the sync and the update states of the
tree as well as the ChangeDelay value either the application is directly notified about the change or a timer is started
to accumulate several change events into one.



See Also
BeginSynch, EndSynch, BeginUpdate, EndUpdate, ChangeDelay

@@TBaseVirtualTree.ChangeScale@Integer@Integer
Summary
Helper method called by the VCL when control resizing is due.

Description
ChangeScale is a method introduced by TControl. In Virtual Treeview it is responsible to change the tree's and the
header's fonts as well as to compute the new default node height.



See Also
TVTHeader.ChangeScale, DefaultNodeHeight

@@TBaseVirtualTree.CheckParentCheckState@PVirtualNode@TCheckState
Summary
Helper method for recursive check state changes.

Description
Checks all siblings of node to determine which check state Node's parent must get.

@@TBaseVirtualTree.Clear
Summary
Clears the tree and removes all nodes.

Description
All pending operations are stopped and the tree is ready to receive new nodes.

@@TBaseVirtualTree.ClearSelection
Summary
Removes all nodes from the current selection.

Description
ClearSelection empties the internal selection cache and resets the vsSelected state from all nodes, which were in this
array.

@@TBaseVirtualTree.ClearTempCache
Summary
Helper method to clear the internal temporary node cache.

Description
The internal node cache is used when more than one node is involved in certain operations (e.g. including a range of
nodes into the current selection).

@@TBaseVirtualTree.ColumnIsEmpty@PVirtualNode@TColumnIndex
Summary
Used to determine if a cell is considered as being empty.

Description
An empty cell might be used for the automatic column spanning feature. Descentants can override this method to modify the
tree's behavior.



See Also
toAutoSpanColumns

@@TBaseVirtualTree.CopyTo@PVirtualNode@TBaseVirtualTree@TVTNodeAttachMode@Boolean
<COMBINE TBaseVirtualTree.CopyTo@PVirtualNode@PVirtualNode@TVTNodeAttachMode@Boolean>

@@TBaseVirtualTree.CopyTo@PVirtualNode@PVirtualNode@TVTNodeAttachMode@Boolean
Summary
Copies <B>Source</B> and all its child nodes to <B>Target</B>.

Description
<B>Mode</B> is used to specify further where to add the new node actually (as sibling of <B>Target</B> or as child of
Target). Result is the newly created node to which source has been copied if <B>ChildrenOnly</B> is False or just
contains <B>Target</B> in the other case. <B>ChildrenOnly</B> determines whether to copy also the source node or only its
child nodes.



The variant taking a tree reference as target can be used to transfer nodes to a different tree, without determining its
root node first. However one can also pass in any virtual tree node as target, as long as it belongs to a tree. The
\owning tree is automatically determined.

@@TBaseVirtualTree.MoveTo@PVirtualNode@TBaseVirtualTree@TVTNodeAttachMode@Boolean
<COMBINE TBaseVirtualTree.MoveTo@PVirtualNode@PVirtualNode@TVTNodeAttachMode@Boolean>

@@TBaseVirtualTree.MoveTo@PVirtualNode@PVirtualNode@TVTNodeAttachMode@Boolean
Summary
Moves <B>Source</B> and all its child nodes to <B>Target</B>.

Description
Moves the given node (and all its children) to <B>Target</B>. <B>Source</B> must belong to the tree instance which calls
this MoveTo method. <B>Mode</B> determines how to connect <B>Source</B> to <B>Target</B>. This method might involve a
change of the tree if <B>Target</B> belongs to a different tree than <B>Source</B>.



The variant taking a tree reference as target can be used to transfer nodes to a different tree, without determining its
root node first. However one can also pass in any virtual tree node as target, as long as it belongs to a tree. The
\owning tree is automatically determined and an optimized path is taken if the operation happens within one tree. In this
case simply the source node is disconnected from the old place and reconnected at the new location.

@@TBaseVirtualTree.CopyToClipBoard
Summary
Copies all currently selected nodes to the clipboard.

Description
CopyToClipboard causes the tree to copy the currently selected nodes to the clipboard. Actually, Virtual Treeview
maintains socalled delayed rendering. This means the participating nodes are marked as being in the current clipboard set
(see vsCutOrCopy in TVirtualNodeStates) and only an IDataObject interface is placed onto the clipboard but no data yet.
This avoids not only possibly huge memory requirements but it also avoids rendering data in a format which is not
necessary. The application which pastes the clipboard content later will get the IDataObject interface and requests the
format it can handle. The actual data is then rendered when the target application calls IDataObject.GetData, which
results in a call to RenderOLEData.

@@TBaseVirtualTree.CutToClipBoard
Summary
Copies the currently selected nodes to the clipboard and removes them once a consumer has taken the data.

Description
Similar to CopyToClipboard only the nodes are deleted after they have been pasted into the target.

@@TBaseVirtualTree.DeleteChildren@PVirtualNode@Boolean
Summary
Removes all child nodes from the given node.

Description
The method works recursively: all grandchildren and their children are removed as well.

@@TBaseVirtualTree.DeleteNode@PVirtualNode@Boolean
Summary
Removes the given node from the tree.

Description
This method deletes the given node. If the node was initialized or had gotten initial data via the AddChild or InsertNode
then the event OnFreeNode is called to allow the application to free any user data attached to a node.

@@TBaseVirtualTree.DeleteSelectedNodes
Summary
Removes all currently selected nodes form the tree.

Description
All nodes in the current selection are affected.

@@TBaseVirtualTree.DoCancelEdit
Summary
Called when the tree should stop editing without accepting changed values.

Description
This method calls the edit link's IEditLink.CancelEdit method and stops the edit mode if this call returns True. If
stopping is allowed then the event OnEditCancelled is triggered and a message is sent to release the edit link
asynchronously.

@@TBaseVirtualTree.DoDragging@TPoint
Summary
\Internal method which handles drag' drop.

Description
This method starts the OLE drag'n drop operation and returns after this operation is finished.

@@TBaseVirtualTree.DoEdit
Summary
Initiates editing of the currently set focused column and edit node.

Description
This method takes care for editor creation and initialization. You can look for tsEditing in TreeStates to know whether
editing is currently active.



See Also
tsEditing, OnCreateEditor, IVTEditLink

@@TBaseVirtualTree.DoEndEdit
Summary
Stops the current edit operation and takes over the new content.

Description
The method also sends a message to the tree window to asynchronously release the edit link which communicates to the
actual editor. The edit link is responsible to propagate any changes made in its node editor to the tree.



Note
TVirtualStringTree overrides this method to tell the application about the new caption by calling OnNewText.

See Also
DoEdit, OnNewText, EditNode

@@TBaseVirtualTree.DoFocusNode@PVirtualNode@Boolean
Summary
\Internal method to set the focused node.

Description
This methods is called by the property setter for the focused node as well as from other places to do the actual change.
It takes the parameter Ask to optionally switch off (Ask = False) triggering the OnFocusChanging event.

@@TBaseVirtualTree.DoGetAnimationType
Summary
Determines the type of animation to be used.

Description
Windows 98 and Windows 2000 introduced two ways of animating hints when they appear: a sliding window and a fading
window. Virtual Treeview implements both animation types and also supports system dependent animations. This allows to
use the animation type enabled in the particular system on which the tree currently runs. Additonally, there is a check
for MMX to do a fallback if fade animation is specified but no MMX available. In this case sliding is used. Starting with
Windows 2000 and Windows ME the hint animation can even be be switched off entirely. Also this case is handled by this
method.



@@TBaseVirtualTree.DoGetNodeWidth@PVirtualNode@TColumnIndex@TCanvas
Summary
Overridable method which always retuns 0.

Description
Descentants override this method to return a value which describes the width of a node. This is the inner width of the
node excluding tree lines etc. So TVirtualStringTree returns the width of the node caption (plus text margin).

@@TBaseVirtualTree.DoGetPopupMenu@PVirtualNode@TColumnIndex@TPoint
Summary
Overridable method which triggers the OnGetPopup event.

Description
This method does an automatic parent traversal in the tree hierarchy to find a matching popup menu.

@@TBaseVirtualTree.DoPaintDropMark@TCanvas@PVirtualNode@TRect
Summary
Overridable method which draws the small line on top of a nodes image depending on the current drop state.

Description
This method draws a simple polyline using Colors.DropMarkColor. Descentant can override this method to customize the
appearance of the drop mark.

@@TBaseVirtualTree.DoPaintNode@TVTPaintInfo
Summary
Overridable method which does nothing.

Description
Descentants override this method to paint the content of the node. For instance string trees draw the node's caption.

@@TBaseVirtualTree.DoPopupMenu@PVirtualNode@TColumnIndex@TPoint
Summary
Overridable method which shows the popup menu for the given node.

Description
<B>Node</B> and <B>Column</B> describe the cell for which the menu should be shown. <B>Position</B> determines the place
(in client coordinates of the tree window) where to show the menu.

@@TBaseVirtualTree.DoScroll@Integer@Integer
Summary
Overridable method which triggers the OnScroll event.

Description
This method is the ideal place if you want to synchronize other controls with the tree. The event is triggered whenever
the tree is scrolled (by the user or programmatically). <B>DeltaX</B> and <B>DeltaY</B> contain the relative values the
position changed about.

@@TBaseVirtualTree.DoSetOffsetXY@TPoint@TScrollUpdateOptions@PRect
Summary
\Internal core routine to set the tree's scroll position.

Description
The method takes the <B>Value</B> structure which contains the new absolute scroll positions, both horizontal and
vertical. <B>Options</B> specifies what should happen in the update process. A combination of the following values is
possible:



    * <COLOR Blue>suoRepaintHeader</COLOR>, If suoUpdateNCArea is also set then invalidate the header to refresh its
      screen image, otherwise it is ignored.
    * <COLOR Blue>suoRepaintScrollbars</COLOR>, If suoUpdateNCArea is also set then repaint both scrollbars after
      updating them, otherwise it is ignored.
    * <COLOR Blue>suoScrollClientArea</COLOR>, Scroll and invalidate the proper part of the client area.
    * <COLOR Blue>suoUpdateNCArea</COLOR>, Update non-client area (scrollbars, header).

@@TBaseVirtualTree.DoTimerScroll
Summary
Callback method which is triggered whenever the scroll timer fires.

Description
This method is called to do an automatic tree scroll when the user selects nodes with the mouse (multiselection only).

@@TBaseVirtualTree.DragDrop@IDataObject@Integer@TPoint@Integer
Summary
Helper method, which is used when a drag operation is finished.

Description
This method is called by the TVTDragManager.Drop and prepares the list of available clipboard formats to be passed to
DoDragDrop.

@@TBaseVirtualTree.DragFinished
Summary
Called when a drag operation is finished (accepted or cancelled).

Description
This method is nternally used ito make up for the swallowed mouse-up messages during drag' drop.

@@TBaseVirtualTree.Dragging
Summary
\Returns true if a drag'n drop operation is in progress.

Description
The method returns true if currently a drag'n drop operation is in progress, which involves this tree view.

@@TBaseVirtualTree.EditNode@PVirtualNode@TColumnIndex
Summary
Starts editing the given node if allowed to.

Description
This method can be used by the application to manually start editiing of a particular node. Column determines hereby in
which column the node should be edited. This parameter determines the target column regardless whether toExtendedFocus is
set in TreeOptions.SelectionOptions or not. The given node must be enabled, otherwise edit start fails.



See Also
DoEdit

@@TBaseVirtualTree.EndEditNode
Summary
Stops node editing if it was started before.

Description
EndEditNode stops node editing and accepts the result (which must be set by the edit link).



See Also
<LINK Editing.htm, Editors and editing>, EditNode, DoEdit

@@TBaseVirtualTree.EndSynch
Summary
Counterpart to BeginSynch.

Description
Counts down the internal synchronous mode counter and ends synchronous mode when this counter reaches zero.



See Also
BeginSynch, BeginUpdate, EndUpdate

@@TBaseVirtualTree.EndUpdate
Summary
Resets the update lock set by BeginUpdate.

Description
This method is the counterpart to BeginUpdate and decreases the internal update count value. If this value reaches 0 then
updates of the tree window will be allowed again. Additionally, some pending operations, which might be started during
the update lock, are finished. This includes tasks like updating the selection list, validating the cache and sorting the
tree if in auto sort mode.

@@TBaseVirtualTree.FindNodeInSelection@PVirtualNode@Integer@Integer@Integer
Summary
Helper method to find the given node in the current selection.

Description
This method does a binary search of the given node in the internal selection array which is sorted by memory references.
The search is limited to the area given by <B>LowBound</B> and <B>HighBound</B>. If the node could be found then true is
returned and <B>Index</B> is set to the found node position.

@@TBaseVirtualTree.FinishCutOrCopy
Summary
Stops any pending cut or copy clipboard operation.

Description
This method is used by the tree (and can be used by the application too) to stop any pending cut or copy clipboard
\operation. If a cut operation is pending then nodes currently marked with the vsCutOrCopy state are deleted.

@@TBaseVirtualTree.FlushClipboard
Summary
Renders all pending clipboard data.

Description
Used to render the data which is currently on the clipboard and finishes so the delayed rendering. This method is useful
if the tree is about to be destroyed but data from this tree is still on the clipboard and should stay there. If this
method is not used then any pending clipboard operation is cancelled on tree destruction (by the tree instance which
currently has data on the clipboard) and the clipboard itself is cleared.

@@TBaseVirtualTree.FullCollapse@PVirtualNode
Summary
Collapses all nodes in the tree.

Description
Call this method to bring all nodes in the tree into a collapsed state. This method is used to reset the vsExpanded state
in all nodes in the tree. Nodes which are not yet initialized are also not expanded by definition and therefore do not
need initialization.



See Also
FullExpand

@@TBaseVirtualTree.FullExpand@PVirtualNode
Summary
Expands all nodes in the tree.

Description
Call this method to bring all nodes in the tree into an expanded state. This method expands every node in the tree and
initializes nodes which are not yet initialized to expand them too if necessary. Since this will validate every node in
the tree it is counterproductive and against the <LINK Paradigm.htm, Virtual Paradigm>.

@@TBaseVirtualTree.GetColumnClass
Summary
\Returns the class to be used to manage columns in the tree.

Description
GetColumnClass is a special purpose method to return a certain class which is used by the tree for the columns.
TVirtualBaseTree always returns TVirtualTreeColumn but descentants can override this method to return own classes.

@@TBaseVirtualTree.GetDisplayRect@PVirtualNode@TColumnIndex@Boolean@Boolean
Summary
\Returns the visible region used by the given node in client coordinates.

Description
If the given node cannot be found (because one of its parents is collapsed or it is invisible) then an empty rectangle is
returned. If <B>TextOnly</B> is true then only the text bounds are returned, that is, the resulting rectangle's left and
right border are updated according to the bidi mode, alignment and text width of the node. If <B>Unclipped</B> is true
(which only makes sense if also <B>TextOnly</B> is true) then the calculated text rectangle is not clipped if the text
does not entirely fit into the text space. This is special handling needed for hints.



If Column is NoColumn then the entire client width is used before determining the node's width otherwise the bounds of
the particular column are used.

Note
<B>Column</B> must be a valid column and is used independent of whether the header is visible or not.

@@TBaseVirtualTree.GetFirst
Summary
Group of node navigation functions.

Description
This group of navigation functions is used to return the first node in the tree or first sub node with various
properties.
<TABLE>
GetFirst                     First node in the tree with initialization.
GetFirstChild                First child node with initialization.
GetFirstCutCopy              First node in cut/copy set (no initialization needed).
GetFirstInitialized          First initialized node in the tree (no initialization needed).
GetFirstNoInit               First node in the tree without initialization.
GetFirstVisible              First visible node in the tree with initialization.
GetFirstVisibleChild         First visible child of a node with initialization.
GetFirstVisibleChildNoInit   First visible child of a node without initialization.
GetFirstVisibleNoInit        First visible node in the tree without initialization.
</TABLE>

@@TBaseVirtualTree.GetFirstChild@PVirtualNode
<COMBINE TBaseVirtualTree.GetFirst>

@@TBaseVirtualTree.GetFirstCutCopy
<COMBINE TBaseVirtualTree.GetFirst>

@@TBaseVirtualTree.GetFirstInitialized
<COMBINE TBaseVirtualTree.GetFirst>

@@TBaseVirtualTree.GetFirstNoInit
<COMBINE TBaseVirtualTree.GetFirst>

@@TBaseVirtualTree.GetFirstSelected
<COMBINE TBaseVirtualTree.GetFirst>

@@TBaseVirtualTree.GetFirstVisible
<COMBINE TBaseVirtualTree.GetFirst>

@@TBaseVirtualTree.GetFirstVisibleChild@PVirtualNode
<COMBINE TBaseVirtualTree.GetFirst>

@@TBaseVirtualTree.GetFirstVisibleChildNoInit@PVirtualNode
<COMBINE TBaseVirtualTree.GetFirst>

@@TBaseVirtualTree.GetFirstVisibleNoInit
<COMBINE TBaseVirtualTree.GetFirst>

@@TBaseVirtualTree.GetHeaderClass
Summary
\Returns the header class to be used by the tree.

Description
As with several other classes in Virtual Treeview (e.g. drag manager, options etc.) also a customized header class is
supported, which allows applications or descendant classes to implement their very own header class with special
behavior. This is a further element to make Virtual Treeview as flexible as possible.

@@TBaseVirtualTree.GetHitTestInfoAt@Integer@Integer@Boolean@THitInfo
Summary
\Returns information about the node at the given position.

Description
This method returns information about the given hit position. If the position is not within the client area then the
\result is either of hiAbove, hiBelow, hiToLeft or hiToRight, depending on the side. If the position is within the client
area but no node is hit (e.g. when the tree is empty) then hiNowhere is returned, otherwise the node is examined and <B>HitInfo</B>
is filled with information about which node is hit by this position, which column is involved and where on the node is
the hit (e.g. the caption, the expand/collapse button or the state image).



The parameter <B>Relative</B> is used to tell the method how to interpret the given coordinates. If this property is true
then <B>X</B> and <B>Y</B> are given in client coordinates of the tree window, otherwise they represent absolute
coordinates of the <LINK TreeImage.htm, virtual tree image>.


@@TBaseVirtualTree.GetLast@PVirtualNode
Summary
Group of node navigation functions.

Description
This group of navigation functions is used to return the last node in the tree or last sub node with various properties.
<TABLE>
GetLast                     Last node in the tree with initialization.
GetLastChild                Last child node with initialization.
GetLastChildNoInit          Last child node without initialiization.
GetLastInitialized          Last initialized node in the tree (no initialization needed).
GetLastNoInit               Last node in the tree without initialization.
GetLastVisible              Last visible node in the tree with initialization.
GetLastVisibleChild         Last visible child of a node with initialization.
GetLastVisibleChildNoInit   Last visible child of a node without initialization.
GetLastVisibleNoInit        Last visible node in the tree without initialization.
</TABLE>

@@TBaseVirtualTree.CountLevelDifference@PVirtualNode@PVirtualNode
Summary
Determines the level difference of two nodes.

Description
This method counts how many indentation levels the given nodes are apart. If both nodes have the same parent then the
difference is 0 otherwise the result is basically GetNodeLevel(Node2) - GetNodeLevel(Node1), but with sign. If the result
is negative then Node2 is less intended than Node1.

@@TBaseVirtualTree.CountVisibleChildren@PVirtualNode
Summary
Determines the number of visible child nodes of the given node.

Description
CountVisibleChildren iterates through all child nodes of <B>Node</B> and counts how many of them have the vsVisible state
set.

@@TBaseVirtualTree.Create@TComponent
Summary
Constructor of the control

Description
The constructor initializes certain properties to their default values.

@@TBaseVirtualTree.CreateParams@TCreateParams
Summary
Prepares the creation of the controls window handle.

Description
CreateParams is overriden to allow to set certain window styles for the control.

@@TBaseVirtualTree.CreateWnd
Summary
Initializes data, which depends on the window handle.

Description
Some properties must be preset first after the window handle was created. CreateWnd is the perfect place for this.

@@TBaseVirtualTree.DefineProperties@TFiler
Summary
Helper method to customize loading and saving persistent tree data.

Description
There were heavy changes in some properties during development of VT. This method helps to make migration easier by
reading old properties manually and put them into the new properties as appropriate. These old properties are never
written again and silently disappear.



Another task of this method is to work around the problem that TCollection is not streamed correctly when using Visual
Form Inheritance (VFI). 

@@TBaseVirtualTree.Destroy
Summary
Destructor of the control.

Description
Frees any allocated data in the tree. All pending operations will be stopped and any remaining node is freed.

@@TBaseVirtualTree.DetermineHiddenChildrenFlag@PVirtualNode
Summary
Determines whether all children of a given node are hidden.

Description
Virtual Treeview supports a feature, which is called <COLOR Blue>node button auto hide</COLOR>. What happens is that when
all children of a node are hidden then the expand button for this node is automatically removed. In order to know about
the visibility state of the child nodes an internal flag is maintained, which allows to quickly decide about the button
display. DetermineHidenChildren is the update method for cases where more than one child node changed.

See Also
vsVisible, toAutoHideButtons

@@TBaseVirtualTree.DetermineHiddenChildrenFlagAllNodes
Summary
Determines whether all children of all nodes are hidden.

Description
As extension to DeterminHiddenChildren this method iteratively determines the hidden children flag for all existing nodes
in the tree. This is only used for large updates. No node will be initialized in this process.

@@TBaseVirtualTree.DetermineHitPositionLTR@THitInfo@Integer@Integer@TAlignment
Summary
Determines the hit position within a node with left-to-right and right-to-left orientation.

Description
This method, together with its counter part DetermineHitPositionRTL, is used in the process of figuring out where the a
given position is located in relation to a node.

@@TBaseVirtualTree.DetermineHitPositionRTL@THitInfo@Integer@Integer@TAlignment
<COMBINE TBaseVirtualTree.DetermineHitPositionLTR@THitInfo@Integer@Integer@TAlignment>

@@TBaseVirtualTree.DoAutoScroll@Integer@Integer
Summary
Enables or disables the auto scroll timer.

Description
This method determines whether the tree needs to be scrolled (the mouse is near the borders) and enables or disables the
\internal scroll timer which triggers the DoTimerScroll method.

@@TBaseVirtualTree.DragCanceled
Summary
Called by the VCL when a drag'n drop operation was canceled by the user.

Description
DragCanceled is used to do some housekeeping in the tree.

@@TBaseVirtualTree.GetLastChild@PVirtualNode
<COMBINE TBaseVirtualTree.GetLast@PVirtualNode>

@@TBaseVirtualTree.GetLastChildNoInit@PVirtualNode
<COMBINE TBaseVirtualTree.GetLast@PVirtualNode>

@@TBaseVirtualTree.GetLastInitialized@PVirtualNode
<COMBINE TBaseVirtualTree.GetLast@PVirtualNode>

@@TBaseVirtualTree.GetLastNoInit@PVirtualNode
<COMBINE TBaseVirtualTree.GetLast@PVirtualNode>

@@TBaseVirtualTree.GetLastVisible@PVirtualNode
<COMBINE TBaseVirtualTree.GetLast@PVirtualNode>

@@TBaseVirtualTree.GetLastVisibleChild@PVirtualNode
<COMBINE TBaseVirtualTree.GetLast@PVirtualNode>

@@TBaseVirtualTree.GetLastVisibleChildNoInit@PVirtualNode
<COMBINE TBaseVirtualTree.GetLast@PVirtualNode>

@@TBaseVirtualTree.GetLastVisibleNoInit@PVirtualNode
<COMBINE TBaseVirtualTree.GetLast@PVirtualNode>

@@TBaseVirtualTree.GetMaxColumnWidth@TColumnIndex
Summary
\Returns the width of the largest node in the given column.

Description
This method is mainly used to determine a minimal width of the given column without having to shorten a node caption.
Since the method has to go through all visible nodes and initialize them to learn about their width it might be time
consuming to call this method and circumvents also the virtual approach of the tree.

@@TBaseVirtualTree.GetMaxRightExtend
Summary
Determines the maximum with of the currently visible part of the tree.

Description
This method is similar to GetMaxColumnWidth, but determines the width of the tree if no columns are used. This method is
used for determining the horizontal scroll range for the columnless case.

@@TBaseVirtualTree.GetNativeClipboardFormats@TFormatEtcArray
Summary
Used to let descendants and the application add their own supported clipboard formats.

Description
GetNativeClipboardFormats returns the supported clipboard formats of the tree in the native CF_* form as used in
IDataObject. This includes all formats which are listed in the ClipboardFormats property as well as any changes made by
the OnGetUserClipboardFormats event if a handler for it is attached.

@@TBaseVirtualTree.GetNext@PVirtualNode
Summary
Group of node navigation functions.

Description
This group of navigation functions is used to return the next node relative to a given node in the tree with various
properties.
<TABLE>
GetNext                       Next node in the tree with initialization.
GetNextCutCopy                Next node in the cut/copy set (no initialization needed).
GetNextInitialized            Next initialized node in the tree (no initialization needed).
GetNextNoInit                 Next node in the tree without initialization.
GetNextSelected               Next selected node (no initialization needed).
GetNextSibling                Next sibling node with initialization.
GetNextVisible                Next visible node in the tree with initialization.
GetNextVisibleNoInit          Next visible node in the tree without initialization.
GetNextVisibleSibling         Next visible sibling node with initialization.
GetNextVisibleSiblingNoInit   Next visible sibling node without initialization.
</TABLE>

@@TBaseVirtualTree.GetNextCutCopy@PVirtualNode
<COMBINE TBaseVirtualTree.GetNext@PVirtualNode>

@@TBaseVirtualTree.GetNextInitialized@PVirtualNode
<COMBINE TBaseVirtualTree.GetNext@PVirtualNode>

@@TBaseVirtualTree.GetNextNoInit@PVirtualNode
<COMBINE TBaseVirtualTree.GetNext@PVirtualNode>

@@TBaseVirtualTree.GetNextSelected@PVirtualNode
<COMBINE TBaseVirtualTree.GetNext@PVirtualNode>

@@TBaseVirtualTree.GetNextSibling@PVirtualNode
<COMBINE TBaseVirtualTree.GetNext@PVirtualNode>

@@TBaseVirtualTree.GetNextVisible@PVirtualNode
<COMBINE TBaseVirtualTree.GetNext@PVirtualNode>

@@TBaseVirtualTree.GetNextVisibleNoInit@PVirtualNode
<COMBINE TBaseVirtualTree.GetNext@PVirtualNode>

@@TBaseVirtualTree.GetNextVisibleSibling@PVirtualNode
<COMBINE TBaseVirtualTree.GetNext@PVirtualNode>

@@TBaseVirtualTree.GetNextVisibleSiblingNoInit@PVirtualNode
<COMBINE TBaseVirtualTree.GetNext@PVirtualNode>

@@TBaseVirtualTree.GetNodeData@PVirtualNode
Summary
\Returns the address of the user data area of the given node.

Description
GetNodeData returns the address of the user data area for <B>Node</B>. It is strongly recommended to use this method
instead directly accessing @Node.Data. Some trees require internal data for their own use which is also stored after
Node.Data and the actual user data (application data) follows then this internal data. GetNodeData takes care of this
situation.

@@TBaseVirtualTree.GetNodeLevel@PVirtualNode
Summary
\Returns the indentation level of the given node.

Description
GetNodeLevel returns the level of <B>Node</B>. This level is determined by the number of parent nodes (excluding the
hidden root node). Top level nodes have the level 0, their direct child nodes have level 1 etc.

@@TBaseVirtualTree.GetOptionsClass
Summary
Customization helper to determine which options class the tree should use.

Description
GetOptionsClass is a special purpose method to return a certain class which is used by the tree for its options.
TVirtualBaseTree always returns TCustomVirtualTreeOptions but descendants can override this method to return own classes.



For ease of use it makes much sense to always use the same name for the tree's options (which is TreeOptions). By using a
customized options class, however, the wrong type is returned by this property. Hence it is meaningful to override
TreeOptions and return the derived options class. To make this work the tree descendant must additionally provide new
access methods for this property. An example can be seen in TVirtualStringTree:


<CODE>
  TVirtualStringTree = <B>class</B>(TCustomVirtualStringTree)
  <B>private</B>
    <B>function</B> GetOptions: TStringTreeOptions;
    <B>procedure</B> SetOptions(<B>const</B> Value: TStringTreeOptions);
  <B>protected</B>
    <B>function</B> GetOptionsClass: TTreeOptionsClass; <B>override</B>;
  <B>public</B>
    <B>property</B> Canvas;
  <B>published</B>
    ...
    <B>property</B> TreeOptions: TStringTreeOptions <B>read</B> GetOptions <B>write</B> SetOptions;
    ...
  <B>end</B>;

  ...

//----------------- TVirtualStringTree ---------------------------------------------------------------------------------

<B>function</B> TVirtualStringTree.GetOptions: TStringTreeOptions;

<B>begin</B>
  \Result := FOptions <B>as</B> TStringTreeOptions;
<B>end</B>;

//----------------------------------------------------------------------------------------------------------------------

<B>procedure</B> TVirtualStringTree.SetOptions(<B>const</B> Value: TStringTreeOptions);

<B>begin</B>
  FOptions.Assign(Value);
<B>end</B>;

//----------------------------------------------------------------------------------------------------------------------

<B>function</B> TVirtualStringTree.GetOptionsClass: TTreeOptionsClass;

<B>begin</B>
  \Result := TStringTreeOptions;
<B>end</B>;

</CODE>

@@TBaseVirtualTree.GetPrevious@PVirtualNode
Summary
Group of node navigation functions.

Description
This group of navigation functions is used to return the previous node relative to a given node in the tree with various
properties.
<TABLE>
GetPrevious                       Previous node in the tree with initialization.
GetPreviousInitialized            Previous initialized node in the tree (no initialization needed).
GetPreviousNoInit                 Previous node in the tree without initialization.
GetPreviousSibling                Previous sibling node with initialization.
GetPreviousVisible                Previous visible node in the tree with initialization.
GetPreviousVisibleNoInit          Previous visible node in the tree without initialization.
GetPreviousVisibleSibling         Previous visible sibling node with initialization.
GetPreviousVisibleSiblingNoInit   Previous visible sibling node without initialization.
</TABLE>

@@TBaseVirtualTree.GetPreviousInitialized@PVirtualNode
<COMBINE TBaseVirtualTree.GetPrevious@PVirtualNode>

@@TBaseVirtualTree.GetPreviousNoInit@PVirtualNode
<COMBINE TBaseVirtualTree.GetPrevious@PVirtualNode>

@@TBaseVirtualTree.GetPreviousSibling@PVirtualNode
<COMBINE TBaseVirtualTree.GetPrevious@PVirtualNode>

@@TBaseVirtualTree.GetPreviousVisible@PVirtualNode
<COMBINE TBaseVirtualTree.GetPrevious@PVirtualNode>

@@TBaseVirtualTree.GetPreviousVisibleNoInit@PVirtualNode
<COMBINE TBaseVirtualTree.GetPrevious@PVirtualNode>

@@TBaseVirtualTree.GetPreviousVisibleSibling@PVirtualNode
<COMBINE TBaseVirtualTree.GetPrevious@PVirtualNode>

@@TBaseVirtualTree.GetPreviousVisibleSiblingNoInit@PVirtualNode
<COMBINE TBaseVirtualTree.GetPrevious@PVirtualNode>

@@TBaseVirtualTree.GetSortedCutCopySet@Boolean
Summary
\Returns a sorted list of nodes, which are marked for s cut or copy clipboard operation.

Description
\Returns a list of nodes which are flagged with vsCutOrCopy, sorted in logical order, that is, as they appear in the
tree. If <B>Resolve</B> is true then nodes which are children of other cut/copy nodes are not put into the new array.
This feature is particularly important when doing drag'n drop as in this case all selected node plus their children need
to be considered. A selected node, which is a child (grand child etc.) of another selected node is then automatically
included and doesn't need to be explicitly mentioned in the returned selection array.

Note
The caller is responsible for freeing the array. Allocation is done here. Usually, though, freeing the array doesn't need
additional attention as it is automatically freed by Delphi when it gets out of scope.

@@TBaseVirtualTree.GetSortedSelection@Boolean
Summary
\Returns a sorted list of all currently selected nodes.

Description
\Returns a list of selected nodes sorted in logical order, that is, as they appear in the tree. If <B>Resolve</B> is true
then nodes which are children of other selected nodes are not put into the new array. This feature is in particuar
important when doing drag'n drop as in this case all selected node plus their children need to be considered. A selected
node which is child (grand child etc.) of another selected node is then automatically included and doesn't need to be
explicitely mentioned in the returned selection array.

Note
The caller is responsible for freeing the array. Allocation is done here. Usually, though, freeing the array doesn't need
additional attention as it is automatically freed by Delphi when it gets out of scope.

@@TBaseVirtualTree.GetTextInfo@PVirtualNode@TColumnIndex@TFont@TRect@WideString
Summary
Helper method for node editors, hints etc.

Description
GetTextInfo is used to define a base access method for node data and the associated font from node editors and for hints.

@@TBaseVirtualTree.GetTreeFromDataObject@IDataObject
Summary
OLE drag'n drop and clipboard support method.

Description
\Returns the owner/sender of the given data object by means of a special clipboard format or nil if the sender is in
another process or no virtual tree at all.

@@TBaseVirtualTree.GetTreeRect
Summary
\Returns the size of the virtual tree image.

Description
GetTreeRect can be used to determine the full size of the <LINK TreeImage.htm, tree image>  as used for painting etc.

@@TBaseVirtualTree.GetVisibleParent@PVirtualNode
Summary
\Returns the first (nearest) parent node, which is visible.

Description
GetVisibleParent returns the first (nearest) parent node of <B>Node</B> which is visible. This method is one of the
seldom cases (if not the only one) where the hidden root node could be returned.

@@TBaseVirtualTree.HasAsParent@PVirtualNode@PVirtualNode
Summary
Determines if the given node has got another node as one of its parents.

Description
Determines whether <B>Node</B> has got <B>PotentialParent</B> as one of its parents.

@@TBaseVirtualTree.HasPopupMenu@PVirtualNode@TColumnIndex@TPoint
Summary
Determines whether there is a pop up menu assigned to the tree.

Description
This overridable method is used to determine whether there is a pop up menu assigned to the tree or can be retrieve via
the OnGetPopupMenu event for a particular node. This is necessary for the tree to know how to deal with various condition
in an mouse button down event.

@@TBaseVirtualTree.InsertNode@PVirtualNode@TVTNodeAttachMode@Pointer
Summary
Inserts a new node and returns it to the caller.

Description
Adds a new node relative to <B>Node</B>. The final position is determined by <B>Mode</B>. <B>UserData</B> can be used to
set the first 4 bytes of the user data area to an initial value, which can be used in OnInitNode and will also cause to
trigger the OnFreeNode event (if \<\> <B>nil</B>) even if the node is not yet "officially" initialized.

InsertNode is a compatibility method and will implicitly validates the given node if the new node is to be added as child
node. This is however against the virtual paradigm and hence I dissuade from its usage.

@@TBaseVirtualTree.InternalData@PVirtualNode
Summary
\Returns the address of the internal data for a tree class.

Description
In TBaseVirtualTreeview this method returns nil but should be overridden in descendants to allow proper access to the
\internal data of <B>Node</B> if the descendant tree has allocated internal data.



See Also
<LINK DataHandling.htm, Data handling>

@@TBaseVirtualTree.InvalidateCache
Summary
Empties the internal node cache and marks it as invalid.

Description
Marks the internal node cache as being invalid. This will cause a cache validation run next time ValidateCache is called.



The internal node cache is used to speed up display in Virtual Treeview. It contains node references with a distance of
CacheThreshold nodes along with their vertical absolute position, which makes it possible to quickly find the position of
a node for display, hit tests and so on.

@@TBaseVirtualTree.InvalidateChildren@PVirtualNode@Boolean
Summary
Invalidates all children of the given node.

Description
Invalidates <B>Node</B> and its immediate children. If <B>Recursive</B> is true then all grandchildren are invalidated as
well. The node itself is initialized if necessary and its child nodes are recreated (and initialized too if <B>Recursive</B>
is true).

@@TBaseVirtualTree.InvalidateColumn@TColumnIndex
Summary
Invalidates the client area part of a column.

Description
Invalidates the client area part of a column.

@@TBaseVirtualTree.InvalidateNode@PVirtualNode
Summary
Invalidates the given node.

Description
InvalidateNode initiates repaint of the given node by calling InvalidateRect with the node's display rectangel and
\returns this rectangle.

@@TBaseVirtualTree.InvalidateToBottom@PVirtualNode
Summary
Invalidates the client area starting with the top position of the given node.

Description
InvalidateToBottom initiates repaint of client area starting at given node. If this node is not visible or not yet
initialized then nothing happens.

@@TBaseVirtualTree.InvertSelection@Boolean
Summary
Inverts the current selection.

Description
InvertSelection inverts the current selection, so nodes, which are selected become unselected and vice versa. If <B>VisibleOnly</B>
is true then only visible nodes are considered.

@@TBaseVirtualTree.IsEditing
Summary
Tells the caller whether the tree is currently in edit mode.

Description
Just a simple shortcut to test the tsEditing state.

@@TBaseVirtualTree.IsMouseSelecting
Summary
Tell the caller whether the tree is currently in draw selection mode.

Description
IsMouseSelecting returns true if draw selection by the user is active or pending.

@@TBaseVirtualTree.IterateSubtree@PVirtualNode@TVTGetNodeProc@Pointer@TVirtualNodeStates@Boolean@Boolean
Summary
Iterator method to go through all nodes of a given sub tree.

Description
IterateSubtree iterates through all children and grandchildren etc. of <B>Node</B> (or the entire tree if <B>Node</B> =
nil) and calls for each node the provided callback method (which must not be empty). <B>Filter</B> determines which nodes
are to be considered (an empty set denotes all nodes). If <B>DoInit</B> is true then nodes which aren't initialized yet
will be initialized.



During execution of the callback the application can set <B>Abort</B> to true. In this case the iteration is stopped and
the last accessed node (the one on which the callback set <B>Abort</B> to true) is returned to the caller. Otherwise (no
abort) nil is returned.

Note
An application should <B>not</B> modify the content of the tree (e.g. delete nodes) during the iteration, otherwise the
\outcome is unpredictable and may result in an access violation.

@@TBaseVirtualTree.LoadFromFile@TFileName
Summary
Loads previously streamed out tree data back in again.

Description
LoadFromFile clears the current content of the tree and loads a new structure from the given file.



See Also
AddFromStream

@@TBaseVirtualTree.LoadFromStream@TStream
<COMBINE TBaseVirtualTree.LoadFromFile@TFileName>

@@TBaseVirtualTree.Paint
Summary
TControl's Paint method used here to display the tree.

Description
Overriden method to paint the tree image. The actual work is however done in PaintTree.

@@TBaseVirtualTree.PaintTree@TCanvas@TRect@TPoint@TVTInternalPaintOptions@TPixelFormat
Summary
Main paint routine for the tree image.

Description
PaintTree is the core paint routine used to draw any part of the tree image to any canvas. It is responsible for
maintaining the paint cycles per node as well as coordinating drawing of the various parts of the tree image. <B>TargetCanvas</B>
is the canvas to which to draw the tree image. This is usually the tree window itself but could well be a bitmap or
printer canvas. <B>Window</B> determines which part of the entire tree image to draw. The full size of the virtual image
is determined by GetTreeRect. <B>Target</B> is the position in <B>TargetCanvas</B> where to draw the tree part specified
by <B>Window</B>. <B>PaintOptions</B> determines what of the tree to draw. For different tasks usually different parts
need to be drawn, with a full image in the window, selected only nodes for a drag image etc.

See Also
<LINK TreeImage.htm, Tree image and tree window>

@@TBaseVirtualTree.PasteFromClipboard
Summary
Inserts the content of the clipboard into the tree.

Description
PasteFromClipboar reads what is currently on the clipboard into the tree (if the format is supported). If the application
wants to have text or special formats to be inserted then it must implement its own code (OLE). Here only the native tree
format is accepted.

@@TBaseVirtualTree.ProcessDrop@IDataObject@PVirtualNode@Integer@TVTNodeAttachMode
Summary
Helper method to ease OLE drag'n drop operations.

Description
ProcessDrop can be used in a OnDragDrop handler to let the tree view handle a drop operation of native tree data. The
method only prepares some variables and calls then the more universal ProcessOLEData method.

@@TBaseVirtualTree.ProcessOLEData@TBaseVirtualTree@IDataObject@PVirtualNode@TVTNodeAttachMode@Boolean
Summary
Takes serialized OLE tree data and reconstructs the former structure.

Description
PrcessOLEData recreates the (sub) tree structure serialized into memory and provided by DataObject. The new nodes are
attached to the passed node or the hidden root node if <B>TargetNode</B> is nil, according to <B>Mode</B>. <B>Optimized</B>
can be set to true if the entire operation happens within the same process (i.e. sender and receiver of the OLE operation
are located in the same process). <B>Optimized</B> = true makes only sense if the operation to carry out is a move hence
it is also the indication of the operation to be done here. <B>Source</B> is the source of the OLE data and only of use
(and usually assigned) when an OLE operation takes place in the same application.



The function returns true on success, i.e. the CF_VIRTUALTREE format is supported by the data object and the structure
could be recreated, otherwise false.

@@TBaseVirtualTree.ReinitChildren@PVirtualNode@Boolean
Summary
Forces all child nodes of Node to be reinitialized.

Description
ReinitChildren forces all child nodes of <B>Node</B> to be reinitialized. If <B>Recursive</B> is true then also the
grandchildren are reinitialized.

@@TBaseVirtualTree.ReinitNode@PVirtualNode@Boolean
Summary
Forces a reinitialization of the given node.

Description
ReinitNode forces <B>Node</B> and all its children (if <B>Recursive</B> is true) to be initialized again without
modifying any data in the nodes nor deleting children (unless the application requests a different amount).

@@TBaseVirtualTree.RemoveFromSelection@PVirtualNode
Summary
Removes the given node from the current selection.

Description
Removes the vsSelected style from <B>Node's</B> states and also removes <B>Node</B> from the internal selection array.

@@TBaseVirtualTree.RenderOLEData@TFormatEtc@TStgMedium@Boolean
Summary
Renders pending OLE data.

Description
RenderOLData is called by TVTDataObject.GetData when a consumer of clipboard data actually requests the data. The base
tree view only renders the native tree format, which is a chunk based stream of node data. The format to be rendered is
specified in FormatEtcIn.cfFormat and is one of the formats which are returned from GetNativeClipboardFormats.



Descendants may override RenderOLEData in order to render other formats like HTML text. In TBaseVirtualTreeview this
method calls the OnRenderOLEData event for all formats, except CF_VIRTUALTREE.

@@TBaseVirtualTree.RepaintNode@PVirtualNode
Summary
Causes the treeview to repaint the given node.

Description
RepaintNode causes an immediate repaint of <B>Node</B> and returns once repainting has finished.

@@TBaseVirtualTree.ResetNode@PVirtualNode
Summary
Resets the given node to uninitialized.

Description
ResetNode deletes all children of <B>Node</B> and marks it as being uninitialized.

@@TBaseVirtualTree.SaveToFile@TFileName
Summary
Saves the entire content of the tree into a file or stream.

Description
Saves the entire content of the tree into a file or stream.

See Also
LoadFromStream, AddFromStream

@@TBaseVirtualTree.SaveToStream@TStream@PVirtualNode
<COMBINE TBaseVirtualTree.SaveToFile@TFileName>

@@TBaseVirtualTree.ScrollIntoView@PVirtualNode@Boolean@Boolean
Summary
Scrolls the tree so that the given node comes in the client area.

Description
ScrollIntoView scrolls the tree so that the given node is in the client area and returns true if the tree really has been
scrolled (e.g. to avoid further updates) else it returns false. If extened focus is enabled then the tree will also
horizontally scrolled if needed. All collapsed parents of the node are expanded, forming so a visible path to <B>Node</B>.

@@TBaseVirtualTree.SelectAll@Boolean
Summary
Selects all nodes in the tree.

Description
SelectAll select all existing nodes in the tree. If <B>VisibleOnly</B> is true then only visible nodes are selected.

@@TBaseVirtualTree.SelectNodes@PVirtualNode@PVirtualNode@Boolean
Summary
Selects a range of nodes.

Description
SelectNodes selects a range of nodes and unselects all other possibly selected nodes which are not in this range if <B>AddOnly</B>
is false. <B>EndNode</B> must be visible while <B>StartNode</B> does not necessarily, as in the case where the last
focused node is the start node but it is a child of a node which has been collapsed previously. In this case the first
visible parent node is used as start node. <B>StartNode</B> can be nil in which case the very first node in the tree is
used.

@@TBaseVirtualTree.Sort@PVirtualNode@TColumnIndex@TSortDirection@Boolean
Summary
Sorts the given node.

Description
Sort sorts the child nodes of <B>Node</B>. The application is queried about how to sort via the OnCompareNodes event. <B>Column</B>
is simply passed to the the compare function so the application can also sort in a particular column. In order to free
the application from taking care about the sort direction the parameter <B>Direction</B> is used. This way the
application can always compare as would the node be sorted in increasing direction , while Sort reorders nodes according
to this flag.

@@TBaseVirtualTree.SortTree@TColumnIndex@TSortDirection@Boolean
Summary
Sorts the entire tree view.

Description
SortTree sorts the entire tree by applying Sort to every node which has got children.

Note
This method initializes all nodes in the tree which may not only take quite a while but is also against the <LINK Paradigm.htm, virtual paradigm>
and therefore usually not recommended.

@@TBaseVirtualTree.ToggleNode@PVirtualNode
Summary
Changes a node's expand state to the opposite state.

Description
Toggle node expands <B>Node</B> if it is collapsed currently and vice versa.

@@TBaseVirtualTree.ToggleSelection@PVirtualNode@PVirtualNode
Summary
Toggles the selection state of a range of nodes.

Description
ToggleSelection switchs the selection state of a range of nodes, so selected nodes become unselected and vice versa. This
method is specifically designed to help selecting ranges with the keyboard and considers therefore the range anchor.

@@TBaseVirtualTree.UnselectNodes@PVirtualNode@PVirtualNode
Summary
Deselects a range of nodes.

Description
UnselectNodes deselects a given range of nodes. <B>EndNode</B> must be visible while <B>StartNode</B> is not required to
be so as in the case where the last focused node is the start node but it is a child of a node which has been collapsed
previously. In this case the first visible parent node is used as start node. <B>StartNode</B> can be nil in which case
the very first node in the tree is used.

@@TBaseVirtualTree.UpdateHorizontalScrollBar@Boolean
<COMBINE TBaseVirtualTree.UpdateScrollBars@Boolean>

@@TBaseVirtualTree.UpdateScrollBars@Boolean
Summary
Applies changes to the horizontal and vertical scrollbars.

Description
UpdateScrollbars (and its counterparts for vertical and horizontal scrollbars) is the core method to set the scrollbar's
properties like range, page size etc.

@@TBaseVirtualTree.UpdateVerticalScrollBar@Boolean
<COMBINE TBaseVirtualTree.UpdateScrollBars@Boolean>

@@TBaseVirtualTree.UseRightToLeftReading
Summary
Helper method for right-to-left layout.

Description
UseRightToLeftReading had to be overriden in order to overcome a limitation introduced by the VCL. The VCL only allows a
window to be in right-to-left reading order if the operating system is prepared to handle this (e.g. an arabic Windows
98). Virtual Treeview however does most of the RTL stuff handle itself, also on non-RTL system.

@@TBaseVirtualTree.ValidateCache
Summary
Initiates the validation of the internal node cache.

Description
If the node cache is marked as being invalid then this method puts the tree into the worker thread's list and awakes then
the thread so that the validation is performed in the background.

See Also
InvalidateCache

@@TBaseVirtualTree.ValidateChildren@PVirtualNode@Boolean
Summary
Validates all children of a given node.

Description
ValidateChildren ensures that the children of the given node (and all their children, if <B>Recursive</B> is true) are
initialized. <B>Node</B> must already be initialized. If <B>nil</B> is passed to the method the hidden root node is used
(which makes only sense if <B>Recursive</B> is true, in which case the entire tree is validated).

@@TBaseVirtualTree.ValidateNode@PVirtualNode@Boolean
Summary
Validates a given node.

Description
ValidateNode ensures that the given node (and all its children, if <B>Recursive</B> is true) are initialized. If <B>Node</B>
is <B>nil</B> then the hidden root node is used (which makes only sense if <B>Recursive</B> is true, in which case the
entire tree is validated).

@@TBaseVirtualTree.ValidateNodeDataSize@Integer
Summary
Helper method for node data size initalization.

Description
ValidateNodeDataSize is called from MakeNewNode if the currently set node data size is -1, which indicates it has not yet
been determined. The method calls the event OnGetNodeDataSize allowing so the application to compute now its data
requirement.

@@TBaseVirtualTree.WndProc@TMessage
Summary
Redirected window procedure to do some special processing.

Description
WndProc has been overriden to allow the header to handle certain messages (which are forwarded by the tree) as well as to
do some other special handling internal to the tree.

@@TBaseVirtualTree.WriteChunks@TStream@PVirtualNode
Summary
Writes the core chunks for the given node to the given stream.

Description
WriteChunks is part of the streaming system in Virtual Treeview and writes the core chunks for <B>Node</B> into <B>Stream.
</B>Descentants can optionally override this method to add other node specific chunks. This streaming is used when the
tree must be saved to disk or a stream used e.g. for clipboard operations.

Note
Keep in mind that this method is also called for the hidden root node. Using this fact in descendants you can create a
kind of "global" chunk set not directly bound to a specific node.

See Also
WriteNode, SaveToStream

@@TBaseVirtualTree.WriteNode@TStream@PVirtualNode
Summary
Writes the cover (envelop) chunk for the given node to the given stream.

Description
WriteNode writes the cover chunk for <B>Node</B> to <B>Stream</B> and initiates writing child nodes and chunks. This
method is part of the streaming system used in Virtual Treeview.



See Also
WriteChunks, WriteToStream

@@TClipboardFormats.Create@TBaseVirtualTree
Summary
Constructor of the class.

Description
Create initializes the class.

@@TCustomStringTreeOptions
Summary
Enhanced options class for string trees.

Description
This class enhances the base class TCustomVirtualTreeOptions by options related to a string tree.

@@TCustomStringTreeOptions.AssignTo@TPersistent
Summary
Used to copy the options class.

Description
You can either call this method directly or use the Assign method of the target class to do the assignment. Implementing
AssignTo instead of Assign allows for future enhancements. TPersistent will automatically call AssignTo if there was no
Assign method.

@@TCustomStringTreeOptions.Create@TBaseVirtualTree
Summary
The constructor of the class.

Description
The constructor initializes the class.

@@TCustomStringTreeOptions.StringOptions
Summary
The new options introduced by the class.

Description
StringOptions provides access to the newly introduced options by which the base class is extended.

@@TCustomVirtualDrawTree
Summary
Simple owner draw descendant of the base tree.

Description
TCustomVirtualDrawTree is a simple TBaseVirtualTree descendant, which publishes the paint method through an event. This
allows an application for self drawn tree views without overriding the base class.

@@TCustomVirtualDrawTree.OnDrawHint
Summary
Triggered when a node hint or tooltip must be drawn.

Description
Use an event handler for OnDrawHint to draw the hint or tooltip for the given node. You must implement this event and
OnGetHintSize to get a hint at all.

@@TCustomVirtualDrawTree.DoDrawHint@TCanvas@PVirtualNode@TRect@TColumnIndex
Summary
Overridable method which triggers OnDrawHint.

Description
You can override DoDrawHint to customize the behavior for this request.

@@TCustomVirtualDrawTree.DoGetHintSize@PVirtualNode@TColumnIndex@TRect
Summary
Overridable method which triggers OnGetHintSize.

Description
You can override OnGetHintSize to customize the behavior for this request.

@@TCustomVirtualDrawTree.DoGetNodeWidth@PVirtualNode@TColumnIndex@TCanvas
Summary
Overridable method which triggers OnGetNodeWidth.

Description
You can override OnGetNodeWidth to customize the behavior for this request.

@@TCustomVirtualDrawTree.DoPaintNode@TVTPaintInfo
Summary
Overridable method which triggers OnPaintNode.

Description
You can override OnPaintNode to customize the behavior for this request.

@@TCustomVirtualDrawTree.OnDrawNode
Summary
Triggered when a node must be drawn.

Description
Use an event handler for OnDrawNode to draw the actual content for the given node.

@@TCustomVirtualDrawTree.OnGetHintSize
Summary
Triggered when a node hint or tooltip is about to show.

Description
Use an event handler for OnGetHintSize to return the size of the tooltip/hint window for the given node. You must
implement this event and OnDrawHint to get a hint at all.

@@TCustomVirtualDrawTree.OnGetNodeWidth
Summary
Triggered when a node is about to be drawn.

Description
Use an event handler for OnGetNodeWidth to return your calculated width for the given node. Since the draw does not know
the width of a node you have to tell it yourself.

@@TCustomVirtualStringTree
Summary
Descendant of TBaseVirtualTree, which is able to manage node captions on its own

Description
TCustomVirtualStringTree enhances the base tree to display and edit node captions. It implements a generic node editor
which can be used as reference to build your own one.

@@TCustomVirtualStringTree.OnGetHint
Summary
Virtual string tree event to query for a custom hint text.

Description
Write an event handler for this event to specify a custom hint for the passed node and column. The TextType will always
be ttNormal. This event will only be fired if HintMode is not hmTooltip. The delay for hints can be set as usual: adjust
the properties HintPause and HintShortPause of the global Application object.

@@TCustomVirtualStringTree.OnGetText
Summary
Virtual string tree event to query for a node's normal or static text.

Description
This is one of the fundamental string tree events which must always be handled. The string tree will fire this event
every time when it needs to know about the text of a specific node and column. This is mainly the case when the node
appears in the visible area of the tree view (in other words it is not scrolled out of view) but also on some other
\occasions, including streaming, drag and drop and calculating the width of the node.



The node text is distinguished between two text types:



    * Normal text: If TextType is ttNormal return the main node caption for the specified column.
    * Static text: All text that you return when TextType is ttStatic will be displayed right beside the normal text (or
      left to it if the column's BidiMode is not bdLeftToRight, i.e. the column has right-to-left layout). Static text is used
      \only for informational purposes; it cannot be selected or dragged and if the column is not wide enough to show all text
      it will not be shortened with an ellipsis (...) as normal text. The string tree will only query for static text if the
      StringOptions (see TreeOptions) include toShowStaticText. This is off by default.



When this event is fired the text parameter will always be initialized with the value of property DefaultText. To handle
the event get your node data and then extract the string for the appropriate column and TextType.

See Also
OnPaintText

Note
Be sure that your event handler only contains absolutely necessary code. This event will be fired very often - easily a
few hundred times for medium sized trees with some columns defined when the tree is repainted completely.
For example it is far too slow to use Locate() on some Dataset, a database query result or table, and then get the text
from some TField. This may only work with in-memory tables or a client dataset. When you initialize your node data do
some caching and use these cached values to display the data.

@@TCustomVirtualStringTree.OnNewText
Summary
Virtual string tree event to pass edited text.

Description
A string tree will fire this event after a node has been edited successfully (not canceled with Escape). The event
handler must store the new text in the node data.



This event will only be used for the default node caption editor. Other custom node editors may or may not use this event
to pass their edited data to the application. Editing for the whole tree is only possible if the MiscOptions (see
TreeOptions) include toEditable. If only certain columns or nodes should be editable write an event handler for
OnEditing.



See Also
OnCreateEditor, OnEdited

@@TCustomVirtualStringTree.OnPaintText
Summary
Event to change text formatting for particular nodes.

Description
Write an event handler for this event to render nodes with different fonts, font sizes, styles or colors. According to
the parameters each column of each node and even normal and static text can be painted in different ways.

Note
The string tree view manages an internal width for each node's main column. This is done because computing this width is
quite costly and the width is needed on several occasions. If you change the font which is used to paint a node's text,
for example to bold face style, its width changes but the tree view does not know this - it still relies on its cached
node width. This may result in cut off selection rectangles among others.
Hence if the width of a node changes after its initialization because it is now formatted differently than before force a
recalculation of the node width by calling InvalidateNode (when the conditions for the changed formatting are met - not
in the event handler for OnPaintText).
See Also
<LINK PaintCycles.htm, Paint cycles and stages>

@@TCustomVirtualStringTree.OnShortenString
Summary
String tree event for custom handling of string abbreviations.

Description
If the text of a node does not fit into its cell (in grid mode) or is too wide for the width of the tree view it is being
abbreviated with an ellipsis (...). By default the ellipsis is added to the end of the node text.

Occasionally you may want to shorten the node text at a different position, for example if the node text is a path string
and not the last folder or filename should be cut off but rather some mid level folders if possible.

In the handler S must be processed (shortened) and returned in Result. If Done is set to true (default value is false)
the tree view takes over the shortening. This is useful if not all nodes or columns need 

@@TCustomVirtualStringTree.AdjustPaintCellRect@TVTPaintInfo@TColumnIndex
Summary
Method which can be used by descentants to adjust the given rectangle during a paint cycle.

Description
For some special behaviour, like the auto span column feature, it is necessary to tell the base treeview which rectangle
is to be considered as the current paint cell when drawing the tree. <B>ClipRect</B> is set to a rectangle which
corresponds to the current node and the current column in the paint cycle.

@@TCustomVirtualStringTree.ContentToHTML@TVSTTextSourceType@WideString
<COMBINE TCustomVirtualStringTree.ContentToClipboard@Word@TVSTTextSourceType>

@@TCustomVirtualStringTree.ContentToRTF@TVSTTextSourceType
<COMBINE TCustomVirtualStringTree.ContentToClipboard@Word@TVSTTextSourceType>

@@TCustomVirtualStringTree.ContentToText@TVSTTextSourceType@Char
<COMBINE TCustomVirtualStringTree.ContentToClipboard@Word@TVSTTextSourceType>

@@TCustomVirtualStringTree.ContentToUnicode@TVSTTextSourceType@WideChar
<COMBINE TCustomVirtualStringTree.ContentToClipboard@Word@TVSTTextSourceType>

@@TCustomVirtualTreeOptions
Summary
Organizes all tree options into subproperties for easier managment.

Description
There are a lot of options available which control certain aspects of Virtual Treeview. Because there might only be at
most 32 members in a published set and also for better overview these options have been splitted into several subsets,
each related to a particular feature group like painting or node selection. With this implementation you can even derive
an own option class and modify which options should be shown in Delphi's object inspector for your class.

@@TCustomVirtualTreeOptions.AnimationOptions
Summary
Options related to animations.

Description
These options can be used to switch certain animation effects in a tree.

@@TCustomVirtualTreeOptions.AutoOptions
Summary
Options related to automatic actions.

Description
These options can be used to switch certain actions in a tree which happen automatically under certain circumstances. 

@@TCustomVirtualTreeOptions.MiscOptions
Summary
Options not related to any other category.

Description
These options can be used to switch miscellanous aspects in a tree.

@@TCustomVirtualTreeOptions.Owner
Summary
Owner tree to which the property class belongs.

Description
Owner tree to which the property class belongs.

@@TCustomVirtualTreeOptions.PaintOptions
Summary
Options related to painting.

Description
These options can be used to switch visual aspects of a tree. 

@@TCustomVirtualTreeOptions.SelectionOptions
Summary
Options related to the way nodes can be selected.

Description
These options can be used to switch the way how nodes can be selected in a tree.

@@TCustomVirtualTreeOptions.AssignTo@TPersistent
Summary
Used to copy this option class to another option collection.

Description
This is the usual method to support streaming or simply copying of this class. To stay open for future enhancements in
form of new descentants not Assign but AssignTo has been used. AssignTo is called by TPersistent if there is no Assign
method.

@@TCustomVirtualTreeOptions.Create@TBaseVirtualTree
Summary
Constructor of the class.

Description
Used to assign default values to all sub lists.

@@TStringEditLink.Create
Summary
Constructor of the class.

Description
The constructor of the edit link also creates an instance of a simple node editor control. It is by default hidden and
first displayed if the tree directs the link to do so.

@@TStringEditLink.Destroy
Summary
Destructor of the class.

Description
Frees the internal editor control.

@@TVirtualTreeColumn
Summary
Represents a column in a Virtual Treeview.

Description
This enhanced collection item, which is organized within the TCollection descentant TVirtualTreeColumns, manages all
aspects of a single column.

@@TVirtualTreeColumns
Summary
Collection class, which holds the columns for the tree.

Description
This class is an enhanced collection which manages general aspects of columns like ordering, traversion, streaming,
painting, dragging etc.

@@TVirtualStringTree
Summary
Descentant of TBaseVirtualTree which is able to manage node captions on its own.

Description
TVirtualStringTree adds no new functionality to TCustomVirtualStringTree but is publicly available version and appears in
the component palette.

@@TBaseVirtualTree.LastClickPos
Summary
Used for retained drag start and wheel mouse scrolling.

Description
This internal positions is made public to allow descendants to modify mainly the right click behavior of the tree
control.

@@TBaseVirtualTree.OnGetCellIsEmpty
Summary
Triggered when the tree control needs to know whether a given column is empty.

Description
Virtual Treeview supports the concept of column spanning where one cell with too much text to fit into its own space can
expand to the right cell neighbors if they are empty. To make this work it is necessary to know if a cell is considered
as being empty, whatever this means to an application. The string tree descendant simply checks the text for the given
cell and calls back its ancestor if there is no text to further refine if the cell must stay as if it contained
something. The ancestor (TBaseVirtualTree) now triggers OnGetCellIsEmpty to let the application decide.


@@TVTColors.DropMarkColor
Summary
Color of the drop mark.

Description
Since the drop metapher has been extended to include dropping <B>on</B> node, <B>above</B> a node or <B>below</B> a node
(e.g. to determine adding as child, previous sibling or next sibling) there must be an indication where the node would
actually be placed when it would be dropped. This indication is the drop mark, whose color can be set via the
DropMarkColor property.

@@TVTDataObject
Summary
Implementation of an IDataObject interface.

Description
This class is used for OLE drag'n drop and clipboard operations. It allows not only to transfer various kinds of data
between trees but also to transfer this data between different processes. Additionally, every OLE aware application (like
Word) can take part in the data transfer. This makes it easy to copy some of the tree's content for documentation
purposes.

@@TVTDataObject.CanonicalIUnknown@IUnknown
Summary
Helper method for setting data in the IDataObject.

Description
In SetData the class can get a circular reference if the client calls GetData then calls SetData with the same StgMedium.
Because the unkForRelease for the IDataObject can be marshalled it is necessary to get pointers that can be correctly
compared. CanonicalIUknown uses COM object identity for this task. An explicit call to the IUnknown::QueryInterface
method, requesting the IUnknown interface, will always return the same pointer. See the IDragSourceHelper article by
Raymond Chen at MSDN.

@@TVTDataObject.Create@TBaseVirtualTree@Boolean
Summary
Constructor of the class.

Description
Create is used only for initialization.

@@TVTDataObject.DAdvise@TFormatEtc@Integer@IAdviseSink@Integer
Summary
Implementation of the IDataObject.DAdvise method.

Description
Advise sinks are used to have an opportunity for clients to get notified if something changes in the data object.
TVTDataObject uses the data advise holder APIs to provide the advise sink service.

@@TVTDataObject.Destroy
Summary
Destructor of the class.

Description
Cleans up the object.

@@TVTDataObject.DUnadvise@Integer
Summary
Implementation of the IDataObject.DUnAdvise method.

Description
DUnadvice reverses the call to DAdvise.

@@TVTDataObject.EnumDAdvise@IEnumStatData
Summary
Implementation of the IDataObject.EnumDAdvise method.

Description
EnumDAdvice does nothing but forwards the call to the internal advise holder class, which the responds accordingly.
That's why we use data advise holders after all.

@@TVTDataObject.EnumFormatEtc@Integer@IEnumFormatEtc
Summary
Implementation of the IDataObject.EnumFormatEtc method.

Description
This method creates a FormatEtc enumerator class which is used to enumerate all data formats supported by the owner tree.

@@TVTDataObject.EqualFormatEtc@TFormatEtc@TFormatEtc
Summary
Compares two TFormatEtc structures.

Description
\Returns true if both records are considered the same. That means if they have at least one common storage format and all
\other entries have the same values.

@@TVTDataObject.FindFormatEtc@TFormatEtc@TFormatEtcArray
Summary
Searchs the given array for a the given format.

Description
\Returns true if the given format is part of the array.

@@TVTDataObject.FindInternalStgMedium@TClipFormat
Summary
\Returns a storage medium for a given clipboard format.

Description
The class keeps an internal list of clipboard format/storage medium relations. For some operations data is set in certain
formats which is later retrieve by locating it using this method.

@@TVTDataObject.GetCanonicalFormatEtc@TFormatEtc@TFormatEtc
Summary
Implementation of the IDataObject.GetCanonicalFormatEtc method.

Description
The implementation of this method simply consists of a result value telling the caller to use the EnumFormatEtc method.

@@TVTDataObject.GetData@TFormatEtc@TStgMedium
Summary
Implementation of the IDataObject.GetData method.

Description
Whenever drag'n drop or clipboard data actually needs to be rendered then this method is called by the OLE subsystem. The
class automatically returns the CF_VTREFERENCE format and any data previously set by the SetData method (e.g. by the
Shell). For any other format the owner tree is asked to render the OLE data.

See Also
RenderOLEData

@@TVTDataObject.GetDataHere@TFormatEtc@TStgMedium
Summary
Implementation of the IDataObject.GetDataHere method.

Description
GetDataHere is an alternative data retrival method to GetData, but the caller provides the storage place where to store
the actual data. Since Virtual Treeview has a very limited spectrum of what it can use this method is not fully
implmented.

@@TVTDataObject.HGlobalClone@THandle
Summary
Helper method for SetData.

Description
This method copies a HGlobal memory block.

@@TVTDataObject.QueryGetData@TFormatEtc
Summary
Implementation of the IDataObject.QueryGetData method.

Description
This method is called by OLE subsystem to determine which data formats are offered by the owner tree. It uses the
\internal clipboard format list to get a list of available and allowed formats. Currently following formats are
supported:



<B>TBaseVirtualTree</B>

    * Virtual Treeview reference and process identifier
    * native serialized tree data



<B>TCustomVirtualStringTree</B>

    * generic Unicode text
    * generic ANSI text
    * HTML formatted text (UTF-8 format)
    * RTF text (UTF-16 format)
    * CSV (comma separated values) but with customizable separators

@@TVTDataObject.RenderInternalOLEData@TFormatEtc@TStgMedium@HResult
Summary
Helper method to return data previously stored by SetData.

Description
For some operations (e.g. shell transfers with IDropTargetHelper interface) data is stored in the class.
RenderInternalOLEData returns this data when queried later.

@@TVTDataObject.SetData@TFormatEtc@TStgMedium@BOOL
Summary
Implementation of the IDataObject.SetData method.

Description
This method is used to add or replace data in the data object.

@@TVTDataObject.StgMediumIncRef@TStgMedium@TStgMedium@Boolean@IDataObject
Summary
Central managing method to copy OLE data.

Description
This method is called when data must be copied from or to the data object. For each supported storage medium a different
(and appropriate) action is taken.


@@AlphaBlend@HDC@HDC@TRect@TPoint@TBlendMode@Integer@Integer
Summary
General purpose procedure to blend one bitmap to another.

Description
This is an optimized alpha blend procedure using MMX instructions to perform as quick as possible. For this procedure to
work properly it is important that both source and target bitmap use the 32 bit color format (pf32Bit for TBitmap). <B>R</B>
describes the source rectangle to work on, while <B>Target</B> is the place (upper left corner) in the target bitmap
where to blend to. Note that source width + X offset must be less or equal to the target width. Similar for the height.



If <B>Mode</B> is bmConstantAlpha then the blend operation uses the given ConstantAlpha value for all pixels.

If <B>Mode</B> is bmPerPixelAlpha then each pixel is blended using its individual alpha value (the alpha value of the
source).

If <B>Mode</B> is bmMasterAlpha then each pixel is blended using its individual alpha value multiplied by ConstantAlpha.

If <B>Mode</B> is bmConstantAlphaAndColor then each destination pixel is blended using ConstantAlpha but also a constant
color which will be obtained from Bias. In this case no offset value is added, otherwise Bias is used as offset.



Blending of a color into target only (bmConstantAlphaAndColor) ignores <B>Source</B> (the DC) and <B>Target</B> (the
position).



Note
This procedure does not check whether MMX instructions are actually available! Call it only if MMX is really usable,
\otherwise a process exception for unknown op codes is thrown.

@@DrawTextW@HDC@PWideChar@Integer@TRect@Cardinal@Boolean
Summary
Paint support procedure.

Description
This procedure implements a subset of Window's DrawText API for Unicode which is not available for Windows 95, 98 and ME.
For a description of the parameters see DrawText in the online help.



Supported flags are currently:

    * DT_LEFT
    * DT_TOP
    * DT_CALCRECT
    * DT_NOCLIP
    * DT_RTLREADING
    * DT_SINGLELINE
    * DT_VCENTER

Differences to the DrawTextW Windows API:

The additional parameter <B>AdjustRight</B> determines whether to adjust the right border of the given rectangle to
accomodate the largest line in the text. It has only a meaning if also DT_CALCRECT is specified.

Note
When running on any NT windows version (Windows NT 4.0, Windows 2000., Windows XP and up) the native windows API is used
instead of this method as it also supports word wrapping properly.

@@TreeFromNode@PVirtualNode
Summary
General purpose routine to get the tree to which a node belongs.

Description
For obvious reasons it makes no sense to store the reference to a tree in each node record, but sometimes there might
arise the need to know to which tree a node belongs. This is not often the case but is necessary e.g. for optimized moves
in drag'n drop or cut'n paste operations.



Each node contains a reference to its parent to allow fast traversal. The hidden root node, however, does not need this
reference because it does not have a node parent. Instead it contains the reference of the tree to which it belongs. To
determine which node is the root node (when you don't know its tree) a special case of sibling reference is used. Since
the root node does neither have a previous nor a next sibling the corresponding pointers are set to the root node, making
the root so pointing to itself. This case will never happen in "normal" nodes, so it is a reliable way to detect the root
node.

@@TVTButtonFillMode
Summary
Determines how the interior of nodes buttons should be drawn.

Description
Usually the little plus and minus buttons have just the color of the treeview but sometimes it looks better to use
another kind of painting. This is particularly important when simulating Windows XP buttons on non-XP systems. The image
below shows how the various modes look like:




<TABLE noborder>
========================
<IMAGE ButtonFillModes>
</TABLE>

@@CFSTR_CSV
Summary
Contains the registration string for certain clipboard formats.

Description
Some of the clipboard formats in the system, like CF_HDROP, are registered by Windows itself. For rich text, html, csv
and other data first the formats must be registered with the clipboard. The identifier returned by the registration code
is used to unregister the format later and to identify the format when transferring data or enumerating the clipboard
formats. The following formats are registered by Virtual Treeview:

    * CVS: comma separated values, a tabular data format.
    * HTML: text data with text formatting and structured like a big table. Unicode is supported as well (UTF-8).
    * RTF: rich text format, similar to HTML, but more complex and also a bit older.
    * RTFNOOBJS: like RTF but without embedded objects (not used by Virtual Treeview).
    * VIRTUALTREEVIEW: serialized treeview data. This is the native tree format and the only one directly accepted by the
      control.
    * VTREFERENCE: a special format to pass on a reference of the sender treeview. If both, sender and receiver, live in
      the same process this reference can be used to directly access the sender treeview, without COM interecption.

@@CFSTR_HTML
<COMBINE CFSTR_CSV>

@@TVTDragImage.DragTo@TPoint@Boolean
Summary
Moves the drag image to a new position, which is determined from the passed point <B>P</B> and the previous mouse
position.

Description
<B>ForceRepaint</B> is true if something on the screen changed and the back image must be refreshed.

@@TVTDragImage.GetDragImageRect
Summary
\Returns the current size and position of the drag image (screen coordinates).

Description
\Returns the current size and position of the drag image (screen coordinates).

@@TVTDragImage.InternalShowDragImage@HDC
Summary
Frequently called helper routine to actually do the blend and put it onto

Description
Frequently called helper routine to actually do the blend and put it onto the screen. Only used if the system does not
support drag images.


@@TVTDragImage.PrepareDrag@TBitmap@TPoint@TPoint@IDataObject
Summary
Creates all necessary structures to do alpha blended dragging using the given image.

Description
<B>ImagePostion</B> and <B>Hotspot</B> are given in screen coordinates. The first determines where to place the drag
image while the second is the initial mouse position. This method also determines whether the system supports drag images
natively. If so then only minimal structures are created.

@@TVTDragImage.WillMove@TPoint
Summary
Add a summary here...

Description
This method determines whether the drag image would "physically" move when DragTo would be called with the same target
point. Always returns false if the system drag image support is available.

@@TVTDragManager.ForceDragLeave
Summary
This method calls the drop target helper's DragLeave method to ensure it removes the drag image from screen.

Description
This method calls the drop target helper's DragLeave method to ensure it removes the drag image from screen.

@@TVTHeader.DragTo@TPoint
Summary
Moves the drag image to a new position, which is determined from the passed point <B>P</B> and the previous mouse
position.

Description
Moves the drag image to a new position, which is determined from the passed point <B>P</B> and the previous mouse
position.

@@TVTHeader.GetColumnsClass
Summary
\Returns the class to be used for the actual column implementation.

Description
Descentants may optionally override this and return their own class.

@@TVTHeader.HandleMessage@TMessage
Summary
General message handler for the header.

Description
The header gets here the opportunity to handle certain messages before they reach the tree. This is important because the
tree needs to handle various non-client area messages for the header as well as some dragging/tracking events. By
returning True the message will not be handled further, otherwise the message is then dispatched to the proper message
handlers.

@@TVTHeader.InHeader@TPoint
Summary
Determines whether the given point (client coordinates!) is within the header rectangle (non-client coordinates).

Description
Determines whether the given point (client coordinates!) is within the header rectangle (non-client coordinates).

@@TVTHeader.Invalidate@TVirtualTreeColumn@Boolean
Summary
Invalidates the entire header or parts of it so they are repainted.

Description
Because the header is in the non-client area of the tree it needs some special handling in order to initiate its
repainting. If <B>ExpandToRight</B> is true then not only the given column but everything to its right will be
invalidated (useful for resizing). This makes only sense when a column is given.

@@TVTHeader.LoadFromStream@TStream
Summary
Restores the state of the header from the given stream.

Description
Restores the state of the header from the given stream.

@@TVTHeader.PrepareDrag@TPoint@TPoint
Summary
Initializes dragging of the header, <B>P</B> is the current mouse postion and <B>Start</B> the initial mouse position.

Description
Initializes dragging of the header, <B>P</B> is the current mouse postion and <B>Start</B> the initial mouse position.

@@TVTHeader.RecalculateHeader
Summary
Initiate a recalculation of the non-client area of the owner tree.

Description
Initiate a recalculation of the non-client area of the owner tree.

@@TVTHeader.RestoreColumns
Summary
Restores all columns to their width which they had before they have been auto fitted.

Description
Restores all columns to their width which they had before they have been auto fitted.

@@TVTHeader.SaveToStream@TStream
Summary
Saves the complete state of the header into the provided stream.

Description
Saves the complete state of the header into the provided stream.

@@TVTHeader.UpdateMainColumn
Summary
Called once the load process of the owner tree is done.

Description
Called once the load process of the owner tree is done.


@@RegisterVTClipboardFormat@Word@TVirtualTreeClass@Cardinal
<COMBINE RegisterVTClipboardFormat@string@TVirtualTreeClass@Cardinal@Integer@PDVTargetDevice@Integer@Integer>

@@RegisterVTClipboardFormat@string@TVirtualTreeClass@Cardinal@Integer@PDVTargetDevice@Integer@Integer
Summary
Methods to register a certain clipboard format for a given tree class.

Description
Registration with the clipboard is done here too and the assigned ID returned by the function. tymed may contain or'ed
TYMED constants which allows to register several storage formats for one clipboard format.


@@CacheThreshold
Summary
Number of nodes a tree must at least have to start caching and at the same time the maximum number of nodes between two
cache entries.

Description
Number of nodes a tree must at least have to start caching and at the same time the maximum number of nodes between two
cache entries.

@@CFSTR_RTF
<COMBINE CFSTR_CSV>

@@CFSTR_RTFNOOBJS
<COMBINE CFSTR_CSV>

@@CFSTR_VIRTUALTREE
<COMBINE CFSTR_CSV>

@@CFSTR_VTREFERENCE
<COMBINE CFSTR_CSV>

@@ShadowSize
Summary
Size in pixels of the hint shadow.

Description
This value has no influence on Win2K and XP systems as those OSes have native shadow support. Set it to 0 if you don't
want shadows on the other systems.


@@IVTEditLink
Summary
Interface which is used for communication between the treeview and a node editor.

Description
Due to the virtual nature of the tree it is necessary to supply a kind of plug in interface for application defined node
editors. TCustomVirtualStringTree is the first class which implements a node editor. This is just a generic editor to
edit a node's caption just like TTreeview does it. Because of the lack of support under Win9x system this editor only can
edit ANSI text. You have to create an own editor to make also Unicode string editing available for node captions.



All node editors must implement this interface to allow the treeview to communicate with the node editor. Node editors
are small components or forms. If a node shall be edited (for instance when the user presses F2) the treeview will fire
the event OnCreateEditor. The application must determine which node editor must be used for the data in the given node
and column. Then it creates and returns an instance of the appropriate node editor.

The life cycle of the node editor object is handled via reference counting. This means that the application must not
destroy the node editor explicitly - this will happen automatically when the node editor is not used anymore.

@@IVTEditLink.BeginEdit
Summary
This function will be called by the virtual tree when the editing starts.

Description
Write code to actually display the node editor here. This might be something like Visible := True or Show. The return
value should be true if editing can start or false otherwise. Before this function is called PrepareEdit and SetBounds
are executed.

@@IVTEditLink.CancelEdit
Summary
This function will be called by the virtual tree when the current editing is about to be cancelled.

Description
Hide the node editor here. This might be something like Visible := False or Hide. The return value should be True if the
editing can be cancelled. Return false if the node editor is in an internal state which does not allow to cancel the
editing right now.



Do not destroy the node editor instance because this will be done implicitly via reference counting.

Note
If the edited tree is changed during this function, i.e. focus change, node deletion and so on, CancelEdit might be
called again by the tree which can lead to access violations. It is therefore advisable to block reentrancy with a
boolean variable. Example:
<CODE>
<B>function</B> TStringEditLink.CancelEdit: Boolean;
<B>begin</B>
  \Result := <B>not</B> FStopping;
  <B>if</B> Result <B>then</B>
  <B>begin</B>
    FStopping := True;
    FEdit.Hide;
    FTree.CancelEditNode;
  <B>end</B>;
<B>end</B>;

</CODE>

@@IVTEditLink.EndEdit
Summary
This function will be called by the virtual tree when the current editing is being finished.

Description
Hide the node editor here. This might be something like Visible := False or Hide. The return value should be true if the
editing can be finished. Return false if the node editor is in an internal state which does not allow to finish the
editing right now - possibly because there is no valid value available at the moment. If the editing can be finished
transmit the edited value to the tree or to the data structure which is displayed in the tree.



Do not destroy the node editor instance because this will be done implicitly via reference counting.

Note
If the edited tree is changed during this function, i.e. focus change, node deletion and so on, EndEdit might be called
again by the tree which can lead to access violations. It is therefore advisable to block reentrancy with a boolean
variable. Example:

<CODE>
<B>function</B> TStringEditLink.EndEdit: Boolean;
<B>begin</B>
  \Result := <B>not</B> FStopping;
  <B>if</B> Result <B>then</B>
  <B>try</B>
    FStopping := True;
    <B>if</B> FEdit.Modified <B>then</B>
      FTree.DoNewText(FNode, FColumn, FEdit.Caption);
    FEdit.Hide;
  <B>except</B>
    FStopping := False;
    <B>raise</B>;
  <B>end</B>;
<B>end</B>;


</CODE>

@@IVTEditLink.GetBounds
Summary
The virtual tree can use this function to get the current bounding rect of the node editor.

Description
The bounding rect of the node editor may change during the editing to reflect the changed edit contents. The tree uses
this function to query the current bounding rect of the editor. VCL components derived from TControl have a BoundsRect
property which can be used as a return value here.

@@IVTEditLink.PrepareEdit@TBaseVirtualTree@PVirtualNode@TColumnIndex
Summary
This function is called by a virtual tree to initialize the node editor.

Description
Use PrepareEdit to initialize the node editor. This includes getting the node content in the specified column which will
be needed later when the editor is shown. BeginEdit may be called anytime after this function returns. If the
initialization fails simply return false (exceptions should be trapped).

@@IVTEditLink.ProcessMessage@TMessage
Summary
This function is used to forward messages being directed to the virtual tree.

Description
Some node editors might need to trap some messages which are directed to the treeview window. This function remedies the
need to subclass the virtual tree via its WindowProc property. If these messages are not needed leave the function body
empty.

@@IVTEditLink.SetBounds@TRect
Summary
The virtual tree calls this function to initialize the bounding rectangle of the node editor.

Description
This function is usually called after PrepareEdit and before BeginEdit in order to place the node editor exactly over the
node which is about to be edited. Use the R parameter to set the bounding rect of the editor. If the treeview is in grid
mode R will be equal to the cell rectangle of the to be edited cell. Otherwise R is the bounding rectangle of the actual
node text.

Note
SetBounds is also a method of TControl. Hence if your node editor is implemented by a descendant of TControl you must use
a method resolution clause to avoid a name clash. The clause can look similar to this:
<CODE>
<B>procedure</B> EditLinkSetBounds(R: TRect); <B>stdcall</B>;
<B>procedure</B> IVTEditLink.SetBounds = EditLinkSetBounds;
</CODE>