File: testtools.inc

package info (click to toggle)
lazarus 0.9.28.2-12
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 93,096 kB
  • ctags: 89,312
  • sloc: pascal: 820,189; xml: 202,194; makefile: 110,323; sh: 2,460; perl: 395; sql: 174; ansic: 133
file content (2887 lines) | stat: -rw-r--r-- 91,495 bytes parent folder | download
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
{%mainunit testallform.pp}
{
 ***************************************************************************
 *                                                                         *
 *   This source is free software; you can redistribute it and/or modify   *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This code is distributed in the hope that it will be useful, but      *
 *   WITHOUT ANY WARRANTY; without even the implied warranty of            *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
 *   General Public License for more details.                              *
 *                                                                         *
 *   A copy of the GNU General Public License is available on the World    *
 *   Wide Web at <http://www.gnu.org/copyleft/gpl.html>. You can also      *
 *   obtain it by writing to the Free Software Foundation,                 *
 *   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.        *
 *                                                                         *
 ***************************************************************************
}

//******************************************************************************
//                              TestTools.inc
//******************************************************************************
Const

Info : Array[0..5] of PChar = ('        Do not exist yet...       ',
                               ' This component is completed !  '+#10#13+' Minor errors could be at presence, '+#10#13+'report them to the Lazarus team.',
                               ' Almost completed, some procedures '+#10#13+' are missing in consideration to '+#10#13+' Delphi5 compatibility and some minor '+#10#13+' errors are at presence',
                               ' Basic code completed, finalization '+#10#13+' and cleanup is necessary. '+#10#13+' Errors are at presence.  ',
                               ' A few procedures are completed, many errors are at presence. ',
                               ' Could crash/freeze your system! It will be created when you push this button. Try it on your own risk!');
FileN : Array[0..8] of String =('tbitbtn','tlistbox','btn_newform','btn_newunit',
                                'tnotebook','tmemo','btn_mouse','tcheckbox','btn_viewunits');
//-----------------------------------------------------------------------------------
//                              CreateTestTools is a procedure
//                              that loads all test components
//                              and procedures
//-----------------------------------------------------------------------------------
procedure TForm1.CreateTestTools;
var
i : Integer;
begin
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++ TApplication Tools +++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
rdbOk               := TRadioButton.Create(Self); //RadioButton OK
   FBoxStyle        := 0;
   With rdbOk do
   begin
     Checked        := True;
     Parent         := BenchForm[1];
     OnClick        := @BoxStyle;
     Top            := 10;
     Left           := 130;
     Height         := 20;
     Width          := 130;
     Tag            := 0;
     Show;
     Caption        := 'OK';
   end;
rdbOkCancel         := TRadioButton.Create(Self); //RadioButton OkCancel
   With rdbOkCancel do
   begin
     Parent         := BenchForm[1];
     OnClick        := @BoxStyle;
     Top            := 30;
     Left           := 130;
     Checked        := False;
     Height         := 20;
     Width          := 130;
     Tag            := 1;
     Show;
     Caption        := 'OK,Cancel';
   end;
rdbAbortRetryIgnore := TRadioButton.Create(Self); //RadioButton AbortRetryIgnore
   With rdbAbortRetryIgnore do
   begin
     Parent         := BenchForm[1];
     OnClick        := @BoxStyle;
     Top            := 50;
     Left           := 130;
     Checked        := False;
     Height         := 20;
     Width          := 130;
     Tag            := 2;
     Show;
     Caption        := 'Abort,Retry,Ignore';
   end;
rdbYesNoCancel      := TRadioButton.Create(Self); //RadioButton YesNoCancel
   With rdbYesNoCancel do
   begin
     Parent         := BenchForm[1];
     OnClick        := @BoxStyle;
     Top            := 70;
     Left           := 130;
     Checked        := False;
     Height         := 20;
     Width          := 130;
     Tag := 2;
     Show;
     Caption        := 'Yes,No,Cancel';
   end;
rdbYesNo            := TRadioButton.Create(Self); //RadioButton YesNo
   With rdbYesNo do
   begin
     Parent         := BenchForm[1];
     OnClick        := @BoxStyle;
     Top            := 90;
     Left           := 130;
     Checked        := False;
     Height         := 20;
     Width          := 130;
     Tag            := 2;
     Show;
     Caption        := 'Yes,No';
   end;
rdbRetryCancel      := TRadioButton.Create(Self); //RadioButton RetryCancel
   With rdbRetryCancel do
   begin
     Parent         := BenchForm[1];
     OnClick        := @BoxStyle;
     Top            := 110;
     Left           := 130;
     Checked        := False;
     Height         := 20;
     Width          := 130;
     Tag            := 2;
     Show;
     Caption        := 'Retry,Cancel';
   end;
btnShowBox          := TBitBtn.Create(Self); //MessageBox show button
   with btnShowBox do
   begin
     OnClick        := @ShowBox;
     Parent         := BenchForm[1];
     Top            := 10;
     Left           := 10;
     Width          := 85;
     Height         := 21;
     Kind           := bkCustom;
     Caption        := 'MessageBox';
     Hint           := 'Show MessageBox style';
     ShowHint       := True;
     Visible        := True;
   end;
lblExeName          := TLabel.Create(Self); //Label showing Application.ExeName
   With lblExeName do
   begin
     Parent         := BenchForm[1];
     Top            := 130;
     Left           := 10;
     Width          := 200;
     Height         := 23;
     Show;
     Caption        := 'ExeName: '+Application.ExeName;
   end;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++ TBevel Tools +++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  chbBevelStyle := TRadioGroup.Create (self);
  with chbBevelStyle do
  begin
     Parent := BenchForm[2];
     OnClick := @BevelSettings;
     Top    := 10;
     Left   := 160;
     Height := 60;
     Width  := 180;
     Items.Add ('lowered');
     Items.Add ('raised');
     Hint := 'Change style (lowered/raised)';
     ShowHint := True;
     ItemIndex := 0;
     Show;
     Caption := 'Bevel Styles';
  End;
  chbBevelShape := TRadioGroup.Create (self);
  with chbBevelShape do
  begin
     Parent := BenchForm[2];
     top    := 80;
     left   := 160;
     Height := 200;
     Width  := 180;
     OnClick := @BevelSettings;
     Items.Add ('bsBox');
     Items.Add ('bsFrame');
     Items.Add ('bsTopLine');
     Items.Add ('bsBottomLine');
     Items.Add ('bsLeftLine');
     Items.Add ('bsRightLine');
     ItemIndex := 0;
     Show;
     Caption := 'Bevel Shapes';
  end;

//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++ TBitBtn Tools ++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
cbbKind       := TComboBox.Create(Self);
   with cbbKind do
   begin
     OnChange := @KindComboChange;
     Parent   := BenchForm[3];
     Top      := 10;
     Left     := 110;
     Width    := 105;
     Height   := 28;
     Items.Add('bkOK');
     Items.Add('bkCancel');
     Items.Add('bkHelp');
     Items.Add('bkClose');
     Items.Add('bkAll');
     Items.Add('bkCustom');
     Show;
   end;
cbbAlign      := TComboBox.Create(Self);
   with cbbAlign do
   begin
     OnChange := @AlignComboChange;
     Parent   := BenchForm[3];
     Top      := 38;
     Left     := 110;
     Width    := 105;
     Height   := 28;
     Items.Add('blGlyphTop');
     Items.Add('blGlyphBottom');
     Items.Add('blGlyphRight');
     Items.Add('blGlyphLeft');
     Show;
   end;
btnGlyph      := TBitBtn.Create(Self);
   with btnGlyph do
   begin
     OnClick  := @LoadGlyph;
     Parent   := BenchForm[3];
     Top      := 70;
     Left     := 110;
     Width    := 45;
     Height   := 25;
     Kind     := bkCustom;
     Caption  := 'Glyph';
     Hint     := 'Pick a Glyph (ONLY .xpm FILES)';
     ShowHint := True;
     Visible  := True;
   end;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++ TButton Tools ++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
btnClrLotto   := TBitBtn.Create(Self); //Reset Lotto
   with btnClrLotto do
   begin
     OnClick  := @LottoClear;
     Parent   := BenchForm[4];
     Top      := 140;  
     Left     := 30;
     Width    := 45;
     Height   := 21;
     Kind     := bkCustom;
     Caption  := 'Again';
     Hint     := 'Clear the Buttons';
     ShowHint := True;
     Visible  := True;
   end;
lblLResult    := TLabel.Create(Self); //Label Result
   With lblLResult do
   begin
     Parent   := BenchForm[4];
     Top      := 3;
     Left     := 30;
     Width    := 400;
     Height   := 23;
     Show;
     Caption  := 'Result: ';
   end;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++ TCanvas Tools ++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
cbbPaintType  := TComboBox.Create(Self); //What to paint
   with cbbPaintType do
   begin
     Parent   := BenchForm[5];
     Top      := 260;
     Left     := 10;
     Width    := 90;
     Height   := 28;
     Items.Add('Rectangle');
     Items.Add('LineTo');
     Show;
   end;
lblPaintWhat  := TLabel.Create(Self); //Label Paint what
   With lblPaintWhat do
   begin
     Parent   := BenchForm[5];
     Top      := 240;
     Left     := 10;
     Width    := 200;
     Height   := 23;
     Show;
     Caption  := 'Paint what';
   end;
cbbBrushStyle := TComboBox.Create(Self); //Canvas.BrushStyle
   with cbbBrushStyle do
   begin
     OnChange := @StyleSelect;
     Parent   := BenchForm[5];
     Top      := 260;
     Left     := 105;
     Width    := 100;
     Height   := 28;
     Items.Add('bsBDiagonal');
     Items.Add('bsClear');
     Items.Add('bsCross');
     Items.Add('bsDiagCross');
     Items.Add('bsFDiagonal');
     Items.Add('bsHorizontal');
     Items.Add('bsVertical');
     Items.Add('bsSolid');
     Show;
   end;

lblBrushStyle := TLabel.Create(Self); //Label Brush style
   With lblBrushStyle do
   begin
     Parent   := BenchForm[5];
     Top      := 240;
     Left     := 105;
     Width    := 200;
     Height   := 23;
     Show;
     Caption  := 'Brush style';
   end;

cbbPenStyle := TComboBox.Create(Self); //Canvas.PenStyle
   with cbbPenStyle do
   begin
     OnChange := @PenStyleSelect;
     Parent   := BenchForm[5];
     Top      := 220;
     Left     := 10;
     Width    := 110;
     Height   := 28;
     Items.Add('psClear');
     Items.Add('psDash');
     Items.Add('psDashDot');
     Items.Add('psDashDotDot');
     Items.Add('psDot');
     Items.Add('psSolid');
     Show;
   end;

lblPenStyle := TLabel.Create(Self); //Label Pen style
   With lblPenStyle do
   begin
     Parent   := BenchForm[5];
     Top      := 200;
     Left     := 10;
     Width    := 200;
     Height   := 23;
     Show;
     Caption  := 'Pen style';
   end;

btnPenColor   := TBitBtn.Create(Self); //PenColor select ColorDialog
   with btnPenColor do
   begin
     OnClick  := @ColorSelect;
     Parent   := BenchForm[5];
     Top      := 263;
     Left     := 210;
     Width    := 45;
     Height   := 21;
     Kind     := bkCustom;
     Caption  := 'Pen';
     Hint     := 'Pen Color';
     ShowHint := True;
     Visible  := True;
   end;

btnBrushColor := TBitBtn.Create(Self); //BrushColor select ColorDialog
   with btnBrushColor do
   begin
     OnClick  := @ColorSelect;
     Parent   := BenchForm[5];
     Top      := 263;
     Left     := 260;
     Width    := 45;
     Height   := 21;
     Kind     := bkCustom;
     Caption  := 'Brush';
     Hint     := 'Brush Color';
     ShowHint := True;
     Visible  := True;
   end;

btnGrad       := TBitBtn.Create(Self); //Gradient Canvas
   with btnGrad do
   begin
     OnClick  := @GradCanvas;
     Parent   := BenchForm[5];
     Top      := 263;
     Left     := 310;
     Width    := 45;
     Height   := 21;
     Kind     := bkCustom;
     Caption  := 'Grad';
     Hint     := 'Gradient Canvas';
     ShowHint := True;
     Visible  := True;
   end;

btnCanvasClear := TBitBtn.Create(Self); //Clear Canvas
   with btnCanvasClear do
   begin
     OnClick   := @ClearCanvas;
     Parent    := BenchForm[5];
     Top       := 5;  
     Left      := 345;
     Width     := 45;
     Height    := 21;
     Kind      := bkCustom;
     Caption   := 'Clear';
     Hint      := 'Clear the Canvas';
     ShowHint  := True;
     Visible   := True;
   end;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++ TCheckBox Tools ++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
lblPick := Tlabel.Create(Self); //Label Pick a number
   With lblPick do
   begin
     Parent := BenchForm[6];
     Top := 3;
     Left := 25;
     Width := 200;
     Height := 20;
     Show;
     Caption := 'Pick a number !';
   end;
lblCount := Tlabel.Create(Self); //Label Count picks
   With lblCount do
   begin
     Parent := BenchForm[6];
     Top := 165;
     Left := 25;
     Width := 200;
     Height := 20;
     Show;
     Caption := 'Counter: '+IntToStr(CHCount);
   end;
btnAgain := TBitBtn.Create(Self);
   with btnAgain do
   begin
     OnClick := @AgainClick;
     Parent := BenchForm[6];
     Top := 3;
     Left:= 150;
     Width := 45;
     Height := 20;
     Kind := bkCustom;
     Caption := 'Again';
     Hint := 'Play one more time !';
     ShowHint := True;
     Visible := True;
   end;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++ TClipboard Tools +++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//             ADD Clipboard CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++ TCListBox Tools ++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//             ADD CListBox CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++ TColorDialog Tool ++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
btnColorSelect := TBitBtn.Create(Self);
   with btnColorSelect do
   begin
     OnClick := @SelectedColor;
     Parent := BenchForm[9];
     Top := 10;
     Left:= 10;
     Width := 45;
     Height := 20;
     Kind := bkCustom;
     Caption := 'Color';
     Hint := 'Color Dialog (Some repaint problem, move the form to se the effect !!)';
     ShowHint := True;
     Visible := True;
   end;
lblColorInt := Tlabel.Create(Self); //Label The Color in Integer;
   With lblColorInt do
   begin
     Parent := BenchForm[9];
     Top := 8;
     Left := 65;
     Width := 200;
     Height := 20;
     Show;
     Caption := 'Integer Color: ';
   end;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++ TComboBox Tools ++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
btnCbbAdd := TButton.Create(Self);
   with btnCbbAdd do
   begin
     OnClick := @AddToCbb;
     Height := 20;
     Width := 55;
     Parent := BenchForm[10];
     Top := 16;
     Left:= 178;
     Cursor := crDefault;
     Enabled := True;
     Hint := 'Add this to ComboBox1';
     ShowHint := True;
     Caption := 'Add >';
     Name := 'btnCbbAdd';
     PopupMenu := PopupMenu1;
     Visible := True;
   end;
edtCbbAdd := TEdit.Create(Self);
   with edtCbbAdd do
   begin
     Parent := BenchForm[10];
     Caption := '';
     Width := 145;
     Height := 20;
     Left := 240;
     Top := 16;
     Show;
   end;
btnCbbRemove := TBitBtn.Create(Self);
   with btnCbbRemove do
   begin
     OnClick := @RemoveCbb;
     Parent := BenchForm[10];
     Top := 45;
     Left:= 178;
     Width := 55;
     Height := 20;
     Caption := 'Remove';
     Visible := True;
   end;
lblRemoved := Tlabel.Create(Self); //Label ComboBox Removed
   With lblRemoved do
   begin
     Parent := BenchForm[10];
     Top := 275;
     Left := 10;
     Width := 200;
     Height := 20;
     Show;
     Caption := ' ';
   end;
lblIndex := Tlabel.Create(Self); //Label ItemIndex
   With lblIndex do
   begin
     Parent := BenchForm[10];
     Top := 255;
     Left := 10;
     Width := 200;
     Height := 20;
     Show;
     Caption := 'ItemIndex: ';
   end;
lblSelLength := Tlabel.Create(Self); //Label ItemIndex
   With lblSelLength do
   begin
     Parent := BenchForm[10];
     Top := 235;
     Left := 10;
     Width := 200;
     Height := 20;
     Show;
     Caption := 'SelLength: ';
   end;
lblSelStart := Tlabel.Create(Self); //Label ItemIndex
   With lblSelStart do
   begin
     Parent := BenchForm[10];
     Top := 215;
     Left := 10;
     Width := 200;
     Height := 20;
     Show;
     Caption := 'SelStart: ';
   end;
lblSelText := Tlabel.Create(Self); //Label ItemIndex
   With lblSelText do
   begin
     Parent := BenchForm[10];
     Top := 195;
     Left := 10;
     Width := 200;
     Height := 20;
     Show;
     Caption := 'SelText: ';
   end;
cbbMoveTo := TComboBox.Create(Self);
   with cbbMoveTo do
   begin
     OnChange := @EventOnChange;
     Parent := BenchForm[10];
     Top := 70;
     Left := 10;
     Width := 160;
     Height := 28;
     Show;
   end;
btnMoveTo := TBitBtn.Create(Self);
   with btnMoveTo do
   begin
     OnClick := @MoveToCbb;
     Parent := BenchForm[10];
     Top := 45;
     Left:= 10;
     Width := 130;
     Height := 20;
     Caption := 'Copy Sel to Combo2';
     Visible := True;
   end;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++ TDirectoryListBox Tools ++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//             ADD DirectoryListBox CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++ TDrawGrid Tools ++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//             ADD DrawGrid CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++ TDriveComboBox Tools +++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//             ADD DriveComboBox CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++ TEdit Tools ++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++ TFileListBox Tools +++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//             ADD FileListBox CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++ TFilterComboBox Tools ++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//             ADD FilterComboBox CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++ TFindDialog Tools ++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//             ADD FindDialog CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++ TFontDialog Tools ++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
btnShowFont          := TBitBtn.Create(Self); //FontDialog show button
   with btnShowFont do
   begin
     OnClick        := @SelectFont;
     Parent         := BenchForm[18];
     Top            := 10;
     Left           := 10;
     Width          := 50;
     Height         := 21;
     Kind           := bkCustom;
     Caption        := 'Select';
     Hint           := 'Select Font';
     ShowHint       := True;
     Visible        := True;
   end;
lblWhatFont          := TLabel.Create(Self); //Label showing Application.ExeName
   With lblWhatFont do
   begin
     Parent         := BenchForm[18];
     Top            := 265;
     Left           := 10;
     Width          := 350;
     Height         := 23;
     Show;
     Caption        := 'Font.Name:';
   end;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++ TForm Tools ++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
lblWidth := Tlabel.Create(Self); //Label Form.Width
   With lblWidth do
   begin
     Parent := BenchForm[19];
     Top := 10;
     Left := 10;
     Width := 200;
     Height := 20;
     Show;
     Caption := 'Width: '+IntToStr(BenchForm[19].Width);
   end; 
lblHeight := Tlabel.Create(Self); //Label Form.Heigt
   With lblHeight do
   begin
     Parent := BenchForm[19];
     Top := 30;
     Left := 10;
     Width := 200;
     Height := 20;
     Show;
     Caption := 'Height: '+IntToStr(BenchForm[19].Height);
   end; 
lblCWidth := Tlabel.Create(Self); //Label Form.Width
   With lblCWidth do
   begin
     Parent := BenchForm[19];
     Top := 50;
     Left := 10;
     Width := 200;
     Height := 20;
     Show;
     Caption := 'ClientWidth: '+IntToStr(BenchForm[19].ClientWidth);
   end; 
lblCHeight := Tlabel.Create(Self); //Label Form.Heigt
   With lblCHeight do
   begin
     Parent := BenchForm[19];
     Top := 70;
     Left := 10;
     Width := 200;
     Height := 20;
     Show;
     Caption := 'ClientHeight: '+IntToStr(BenchForm[19].ClientHeight);
   end;
cbbBorder := TComboBox.Create(Self);
   with cbbBorder do
   begin
     OnChange := @FormBorder;
     Parent := BenchForm[19];
     Top := 260;
     Left := 10;
     Width := 106;
     Height := 28;
     Items.Add('bsNone');
     Items.Add('bsSingle');
     Items.Add('bsDialog');
     Items.Add('bsToolWindow');
     Items.Add('bsSizeable');
     Show;
   end;
cbbPosition := TComboBox.Create(Self);
   with cbbPosition do
   begin
     OnChange := @FormPosition;
     Parent := BenchForm[19];
     Top := 260;
     Left := 126;
     Width := 140;
     Height := 28;
     Items.Add('poOwnerFormCenter');
     Items.Add('poMainFormCenter');
     Items.Add('poDesktopCenter');
     Items.Add('poDefaultSizeOnly');
     Items.Add('poDefaultPosOnly');
     Items.Add('poDefault');
     Items.Add('poDesigned');
     Items.Add('poScreenCenter');
     Show;
   end;
btnKeyDown := TBitBtn.Create(Self); //"keyDown" button
   with btnKeyDown do
   begin
     Parent := BenchForm[19];
     Top := 10;
     Left:= 325;
     Width := 65;
     Height := 21;
     Kind := bkCustom;
     Caption := 'KeyDown';
     Hint := 'For KeyDown to work';
     ShowHint := True;
     Visible := True;
   end;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++ TGroupBox Tools ++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++ TImage Tools +++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//             ADD Image CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++ TIniFile Tools +++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
If IniFile1.ReadString('INFORMATION','Project','NODATA')='NODATA' then
begin
With IniFile1 do
  begin
    WriteString('INFORMATION','Project','Lazarus');
    WriteFloat('INFORMATION','Version',0.5);
    WriteInteger('INFORMATION','Integer',1234567);
    WriteDate('INFORMATION','Today',Now);
    WriteTime('INFORMATION','AppStart',Now);
  end;
end;

edtString := TEdit.Create(Self);
   with edtString do
   begin
     Parent := BenchForm[22];
     Caption := Inifile1.ReadString('INFORMATION','Project','NODATA');
     Width := 150;
     Height := 20;
     Left := 50;
     Top := 10;
     Show;
   end;

lblString           := TLabel.Create(Self);
   With lblString do
   begin
     Parent         := BenchForm[22];
     Top            := 10;
     Left           := 5;
     Width          := 200;
     Height         := 17;
     Show;
     Caption        := 'String';
   end;

edtFloat := TEdit.Create(Self);
   with edtFloat do
   begin
     Parent := BenchForm[22];
     Caption := Inifile1.ReadString('INFORMATION','Version','NODATA');
     Width := 150;
     Height := 20;
     Left := 50;
     Top := 50;
     Show;
   end;

lblFloat           := TLabel.Create(Self);
   With lblFloat do
   begin
     Parent         := BenchForm[22];
     Top            := 50;
     Left           := 5;
     Width          := 200;
     Height         := 17;
     Show;
     Caption        := 'Float';
   end;

edtInteger := TEdit.Create(Self);
   with edtInteger do
   begin
     Parent := BenchForm[22];
     Caption := Inifile1.ReadString('INFORMATION','Integer','NODATA');
     Width := 150;
     Height := 20;
     Left := 50;
     Top := 90;
     Show;
   end;

lblInteger          := TLabel.Create(Self);
   With lblInteger do
   begin
     Parent         := BenchForm[22];
     Top            := 90;
     Left           := 5;
     Width          := 200;
     Height         := 17;
     Show;
     Caption        := 'Integer';
   end;

edtDate := TEdit.Create(Self);
   with edtDate do
   begin
     Parent := BenchForm[22];
     Caption := Inifile1.ReadString('INFORMATION','Today','NODATA');
     Width := 150;
     Height := 20;
     Left := 50;
     Top := 130;
     Show;
   end;

lblDate            := TLabel.Create(Self);
   With lblDate do
   begin
     Parent         := BenchForm[22];
     Top            := 130;
     Left           := 5;
     Width          := 200;
     Height         := 17;
     Show;
     Caption        := 'Date';
   end;

edtTime := TEdit.Create(Self);
   with edtTime do
   begin
     Parent := BenchForm[22];
     Caption := Inifile1.ReadString('INFORMATION','Appstart','NODATA');
     Width := 150;
     Height := 20;
     Left := 50;
     Top := 170;
     Show;
   end;

lblTime            := TLabel.Create(Self);
   With lblTime do
   begin
     Parent         := BenchForm[22];
     Top            := 170;
     Left           := 5;
     Width          := 200;
     Height         := 17;
     Show;
     Caption        := 'Time';
   end;

btnUpdate := TBitBtn.Create(Self); //"Update" button
   with btnUpdate do
   begin
     OnClick := @IniUpdate;
     Parent := BenchForm[22];
     Top := 200;
     Left:= 50;
     Width := 55;
     Height := 21;
     Kind := bkCustom;
     Caption := 'Update';
     Hint := 'Adding your data';
     ShowHint := True;
     Visible := True;
   end;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++ TLabel ++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
cbbAlignment  := TComboBox.Create(Self);
   with cbbAlignment do
   begin
     OnChange := @SelectAlignment;
     Parent   := BenchForm[23];
     Top      := 10;
     Left     := 170;
     Width    := 105;
     Height   := 28;
     Items.Add('taRightJustify');
     Items.Add('taCenter');
     Items.Add('taLeftJustify');
     Show;
   end;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++ TListBox ++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
btnRight := TBitBtn.Create(Self); //Button >>>>>
   with btnRight do
   begin
     OnClick := @ListBoxMove;
     Parent := BenchForm[24];
     Top := 60;
     Left:= 173;
     Width := 50;
     Height := 21;
     Kind := bkCustom;
     Caption := '   >> ';
     Hint := 'Move from ListBox1 to ListBox2';
     ShowHint := True;
     Visible := True;
   end;
btnLeft := TBitBtn.Create(Self); //Button <<<<<
   with btnLeft do
   begin
     OnClick := @ListBoxMove;
     Parent := BenchForm[24];
     Top := 100;
     Left:= 173;
     Width := 50;
     Height := 21;
     Kind := bkCustom;
     Caption := '   << ';
     Hint := 'Move from ListBox2 to ListBox1';
     ShowHint := True;
     Visible := True;
   end;
btnAdd := TBitBtn.Create(Self); //Button Add
   with btnAdd do
   begin
     OnClick := @ListBoxMove;
     Parent := BenchForm[24];
     Top := 10;
     Left:= 173;
     Width := 50;
     Height := 21;
     Kind := bkCustom;
     Caption := '  Add ';
     Hint := '^   Add to the ListBox   ^';
     ShowHint := True;
     Visible := True;
   end;
btnCopyToMem := TBitBtn.Create(Self); //Button Add
   with btnCopyToMem do
   begin
     OnClick := @CopyToMem;
     Parent := BenchForm[24];
     Top := 200;
     Left:= 173;
     Width := 50;
     Height := 21;
     Kind := bkCustom;
     Caption := ' Copy ';
     Hint := 'Copy ListBox1 to Memo';
     ShowHint := True;
     Visible := True;
   end;
btnSaveFile := TBitBtn.Create(Self); //Button Add
   with btnSaveFile do
   begin
     OnClick := @SaveFile;
     Parent := BenchForm[24];
     Top := 162;
     Left:= 173;
     Width := 50;
     Height := 21;
     Kind := bkCustom;
     Caption := ' Save ';
     Hint := 'Save ListBox1 to file ./List.txt';
     ShowHint := True;
     Visible := True;
   end;
memAddTo := TMemo.Create(Self);
   with memAddTo do
   begin
     Parent := BenchForm[24];
     Top := 200;
     Left := 10;
     Width := 150;
     Height := 85;
     ScrollBars	   := ssBoth;
     Lines.Text := ' ';
     Show;
   end;
edtAddLis1 := TEdit.Create(Self);
   with edtAddLis1 do
   begin
     Parent := BenchForm[24];
     Caption := '';
     Width := 150;
     Height := 20;
     Left := 10;
     Top := 10;
     Show;
   end;
edtAddLis2 := TEdit.Create(Self);
   with edtAddLis2 do
   begin
     Parent := BenchForm[24];
     Caption := '';
     Width := 150;
     Height := 20;
     Left := 235;
     Top := 10;
     Show;
   end;

//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++ TMaskEdit +++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//             ADD MaskEdit CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++ TMediaPlayer ++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//             ADD MediaPlayer CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++ TMemo Tools +++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
btnNew := TBitBtn.Create(Self); //Button New
   with btnNew do
   begin
     OnClick := @NewMemo;
     Parent := BenchForm[27];
     Top := 260;
     Left:= 19;
     Width := 50;
     Height := 21;
     Kind := bkCustom;
     Caption := '  New ';
     Hint := 'New Memo document';
     ShowHint := True;
     Visible := True;
   end;
btnSave := TBitBtn.Create(Self); //Button Save
   with btnSave do
   begin
     OnClick := @SaveMemoAs;
     Parent := BenchForm[27];
     Top := 260;
     Left:= 70;
     Width := 50;
     Height := 21;
     Kind := bkCustom;
     Caption := ' Save ';
     Hint := 'Save Memo as...';
     ShowHint := True;
     Visible := True;
   end;
btnOpen := TBitBtn.Create(Self); //Button Open
   with btnOpen do
   begin
     OnClick := @OpenMemo;
     Parent := BenchForm[27];
     Top := 260;
     Left:= 121;
     Width := 50;
     Height := 21;
     Kind := bkCustom;
     Caption := ' Open ';
     Hint := 'Open File...';
     ShowHint := True;
     Visible := True;
   end;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++ TMessageDialog Tools ++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//             ADD MessageDialog CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++ TNoteBook Tools +++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//             ADD NoteBook CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++ TOpenDialog Tools +++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++ TPageControl Tools ++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//             ADD PageControl CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++ TPaintBox Tools +++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   pntCount := 0;
//             ADD PaintBox CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++ TPanel Tools ++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

  rgPanelOutBevel := TRadioGroup.Create (self);
  with rgPanelOutBevel do
  begin
     Parent := Panel2;
     OnClick := @PanelOutBevelClick;
     Top    := 10;
     Left   := 250;
     Height := 100;
     Width  := 100;
     Items.Add ('lowered');
     Items.Add ('raised');
     Items.Add ('none');
     Items.Add ('(!)space');
     Hint := 'Change style (lowered/raised..)';
     ShowHint := True;
     ItemIndex := 1;
     Show;
     Caption := 'Outer-Bevel';
  End;
  rgPanelInBevel := TRadioGroup.Create (self);
  with rgPanelInBevel do
  begin
     Parent := Panel2;
     OnClick := @PanelInBevelClick;
     Top    := 10;
     Left   := 140;
     Height := 100;
     Width  := 100;
     Items.Add ('lowered');
     Items.Add ('raised');
     Items.Add ('none');
     Items.Add ('(!)space');
     Hint := 'Change style (lowered/raised..)';
     ShowHint := True;
     ItemIndex := 2;
     Show;
     Caption := 'Inner-Bevel';
  End;
  rgPanelAlign := TRadioGroup.Create (self);
  with rgPanelAlign do
  begin
     Parent := Panel2;
     OnClick := @PanelAlignClick;
     top    := 10;
     left   := 10;
     Height := 130;
     Width  := 120;
     Items.Add ('alNone');
     Items.Add ('alBottom');
     Items.Add ('alClient');
     Items.Add ('alLeft');
     Items.Add ('alRight');
     Items.Add ('alTop');
     ItemIndex := 0;
     Show;
     Caption := 'Alignment';
  end;
  btPanelNorm := TButton.Create(self);
  with btPanelNorm do
  begin
     Parent := Panel2;
     OnClick:= @PanelNormClick; 
     top    := 10;
     left   := 360;
     Height := 30;
     Width  := 50;
     Show;
     Caption := 'Norm';
  end;


//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++ TPopupMenu Tools ++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//             ADD PopupMenu CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++ TPrintDialog Tools ++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//             ADD PrinDialog CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++ TPrinterSetupDialog Tools +++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//             ADD PrinterSetupDialog CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++ TProgressBar Tools ++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ProgTime := TTimer.Create(Self);
  with ProgTime do
  begin
    OnTimer := @UpdateProgressBar;
    Enabled := False;
    Interval := 50;
    Name := 'ProgTime';
  end;
chbProgEnable := TCheckBox.Create(Self);
  with chbProgEnable do
  begin
     OnClick := @ProgSettings;
     Parent := BenchForm[37];
     Top := 28;
     Left := 220;
     Height := 20;
     Width := 70;
     Caption := 'Run';
     Cursor := crHandPoint;
     Hint := 'Run the ProgressBar';
     ShowHint := True;
     Visible := True;
  End;
chbProgOrient := TCheckBox.Create(Self);
  with chbProgOrient do
  begin
     OnClick := @ProgSettings;
     Parent := BenchForm[37];
     Top := 48;
     Left := 220;
     Height := 20;
     Width := 70;
     Caption := 'Vertical';
     Cursor := crHandPoint;
     Hint := 'Change orientation';
     ShowHint := True;
     Visible := True;
  End;
chbProgDirect := TCheckBox.Create(Self);
  with chbProgDirect do
  begin
     OnClick := @ProgSettings;
     Parent := BenchForm[37];
     Top := 68;
     Left := 220;
     Height := 20;
     Width := 70;
     Caption := 'Direction';
     Cursor := crHandPoint;
     Hint := 'Change direction';
     ShowHint := True;
     Visible := True;
  End;
chbProgText := TCheckBox.Create(Self);
  with chbProgText do
  begin
     OnClick := @ProgSettings;
     Parent := BenchForm[37];
     Top := 88;
     Left := 220;
     Height := 20;
     Width := 70;
     Caption := 'Text';
     Cursor := crHandPoint;
     Hint := 'Show progress text';
     ShowHint := True;
     Visible := True;
  End;
chbSmooth := TCheckBox.Create(Self);
  with chbSmooth do
  begin
     OnClick := @ProgSettings;
     Parent := BenchForm[37];
     Top := 108;
     Left := 220;
     Height := 20;
     Width := 70;
     Caption := 'Smooth';
     Cursor := crHandPoint;
     Hint := 'Show progress NOT smooth';
     ShowHint := True;
     Visible := True;
  End;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++ TRadioButton Tools ++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//             ADD RadioButton CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++ TRadioGroup Tools +++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//             ADD RadioGroup CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++ TReplaceDialog Tools ++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//             ADD ReplaceDialog CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++ TRichEdit Tools +++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//             ADD RichEdit CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++ TSaveDialog Tools +++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//             ADD SaveDialog CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++ TScreen Tools +++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
lblScreenWidth      := TLabel.Create(Self); //Label showing Screen.Width
   With lblScreenWidth do
   begin
     Parent         := BenchForm[43];
     Top            := 10;
     Left           := 10;
     Width          := 200;
     Height         := 23;
     Show;
     Caption        := 'ScreenWidth: '+IntToStr(Screen.Width);
   end;
lblScreenHeight     := TLabel.Create(Self); //Label showing Screen.Height
   With lblScreenHeight do
   begin
     Parent         := BenchForm[43];
     Top            := 35;
     Left           := 10;
     Width          := 200;
     Height         := 23;
     Show;
     Caption        := 'ScreenHeight: '+IntToStr(Screen.Height);
   end;
lblPixels           := TLabel.Create(Self); //Label showing Screen.PixelsPerInch
   With lblPixels do
   begin
     Parent         := BenchForm[43];
     Top            := 60;
     Left           := 10;
     Width          := 200;
     Height         := 23;
     Show;
     Caption        := 'PixelsPerInch: '+IntToStr(Screen.PixelsPerInch);
   end;
lblFormCount        := TLabel.Create(Self); //Label showing Screen.PixelsPerInch
   With lblFormCount do
   begin
     Parent         := BenchForm[43];
     Top            := 85;
     Left           := 10;
     Width          := 200;
     Height         := 23;
     Show;
     Caption        := 'FormCount: '+IntToStr(Screen.FormCount);
   end;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++ TScrollBar Tools ++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//             ADD ScrollBar CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++ TScrollBox Tools ++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//             ADD ScrollBox CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++ TShape Tools ++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//             ADD Shape CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++ TSpeedButton Tools ++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
FLeft := 10;
For i:= 0 to 8 do
begin
  
  Pixmap1:=TPixMap.Create;
  Pixmap1.TransparentColor:=clBtnFace;
  if not LoadResource(FileN[i],Pixmap1) then
  begin
    LoadResource('default',Pixmap1);
  end;

  SpeedB[i]     := TSpeedButton.Create(Self);
  with SpeedB[i] do
  begin
    Parent      := BenchForm[47];
    OnClick     := @EventOnClick;
    OnMouseDown := @EventOnMouseDown;
    OnMouseUp   := @EventOnMouseUp;
    Left        := SpeedButton1.Left + (i * 23);
    Top         := 20;
    if (i > 4) then
    begin
       Flat := true;
       Hint := FileN [i] + '(flat button)';
    end
    else begin
       Flat := false;
       Hint := FileN [i] + '(normal buton)';
    end; 
    Color       := clBtnFace;
    Glyph.Assign(Pixmap1);
    Enabled     := True;
    Visible     := True;
    ShowHint    := true;
  end;
  FreeAndNil(Pixmap1);
end;
    
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++ TSpinButton Tools +++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//             ADD SpinButton CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++ TSpinEdit Tools +++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
lblOnChange         := TLabel.Create(Self); //Label showing Screen.Width
   With lblOnChange do
   begin
     Parent         := BenchForm[49];
     Top            := 50;
     Left           := 10;
     Width          := 200;
     Height         := 23;
     Show;
     Caption        := 'Value: ';//+IntToStr(SpinEdit1.Value);
   end;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++ TStatusBar Tools ++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//             ADD StatusBar CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++ TStringGrid +++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//             ADD StringGrid CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++ TTabbedNoteBook +++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//             ADD TabbedNoteBook CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++ TTabControl +++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//             ADD TabControl CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++ TThread +++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//             ADD Thread CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++ TTimer Tools +++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
lblTimeNow     := TLabel.Create(Self); //Label showing TimeNow
   With lblTimeNow do
   begin
     Parent         := BenchForm[55];
     Top            := 10;
     Left           := 10;
     Width          := 200;
     Height         := 23;
     Show;
     Caption        := 'TimeNow: '+TimeToStr(Now);
   end;
lblHourMinSec       := TLabel.Create(Self); //Label showing Hour Min Sec
   With lblHourMinSec  do
   begin
     Parent         := BenchForm[55];
     Top            := 35;
     Left           := 10;
     Width          := 85;
     Height         := 23;
     Show;
     Caption        := 'Track: 00:00:00';
   end;
lblMSec             := TLabel.Create(Self); //Label showing Milli Seconds
   With lblMSec  do
   begin
     Parent         := BenchForm[55];
     Top            := 35;
     Left           := 96;
     Width          := 20;
     Height         := 23;
     Show;
     Caption        := ':00';
   end;
btnStart            := TBitBtn.Create(Self); //Start Timetrack button
   with btnStart do
   begin
     OnClick        := @TimeTrack;
     Parent         := BenchForm[55];
     Top            := 65;
     Left           := 10;
     Width          := 40;
     Height         := 21;
     Kind           := bkCustom;
     Caption        := 'Start';
     Hint           := 'Start/Stop timetrack';
     ShowHint       := True;
     Visible        := True;
   end;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++ TToggleBox Tools +++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
lblChecked := TLabel.Create(Self);
  with lblChecked do
  begin
    Parent := BenchForm[56];
    Left := 10;
    Top := 275;
    Width := 100;
    Height := 20;
    Caption := 'Checked= ';
    Show;
  end;
lblState := TLabel.Create(Self);
  with lblState do
  begin
    Parent := BenchForm[56];
    Left := 10;
    Top := 255;
    Width := 120;
    Height := 20;
    Caption := 'State= ';
    Show;
  end;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++ TToolBar Tools +++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//             ADD ToolBar CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++ TTrackBar Tools ++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//             ADD TrackBar CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++ TUpDown Tools ++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//             ADD UpDown CompTools HERE !!!!!!!!!
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++ Universal TestTools ++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
AboutForm := TForm.Create(Self);
  With AboutForm do
  begin
    OnClose := @TestFormClose;//+++++ ABOUT +++++++++++++
    Height := 300;            //+++++++++++++++++++++++++
    Width := 420;
    Caption := 'About';
    BorderStyle := bsDialog;
    Left := Screen.Width div 2 - (AboutForm.Width div 2);
    Top := 10;
  end;
//++++++++++++++++++++++++++++++ EVENT SNOOPER +++++++++
EventForm := TForm.Create(Self);
    With EventForm do
    Begin
      Height := 294;
      Width := 255;
      Caption := 'Events';
      BorderStyle := bsDialog;
      Left := 45;
      Top := 100;
      Show;
    end;
lbEvents := TListBox.Create(Self);  // The Event ListBox
  with lbEvents do
  begin
    Parent := EventForm;
    Align := alClient;
    Show;
  end;
//++++++++++++++++++++++++++++++++ About Comps ++++++++++
gbAbout := TGroupBox.Create(Self);
  with gbAbout do
  begin
    Parent := AboutForm;
    Left := 5;
    Top := 5;
    Width := 407;
    Height := 160;
  //Ctl3D := False;
    Caption := ' About this application ';
    Visible := True;
  end;
btnBigOk := TBitBtn.Create(Self); //Button Ok
   with btnBigOk do
   begin
     OnClick := @CloseAbout;
     Parent := AboutForm;
     Top := 172;
     Left:= 5;
     Width :=406;
     Height := 117;
     Kind := bkCustom;
     Caption := '                                             OK';
     Hint := 'Well....ehem... OK !';
     ShowHint := True;
     Visible := True;
   end;
lblAbout := TMemo.Create(Self);
  with lblAbout do
  begin
    Parent := AboutForm;
    Width := 386;
    Height := 80;
    Left := 15;
    Top := 30;
    Caption := 'This program is free software; you can redistribute it and/or modify it'+
               ' under the terms of the GNU General Public License as published '+
               'by the Free Software Foundation; either version 2 of the License, or'+#10#13+
               '(at your option) any later version.';
    ReadOnly := True;
    Visible := True;
    WordWrap := True;
   end;
lblAuthor := TMemo.Create(Self);
  with lblAuthor do
  begin
    Parent := AboutForm;
    Width := 386;
    Height := 20;
    Left := 15;
    Top := 130;
    Caption := 'Key-Pusher: christer.t.johansson@se.abb.com  "Chris"';
    ReadOnly := True;
    Visible := True;
    WordWrap := True;
   end;
END;
//++++++++++++++++++++++++++++++ Create TestTools END +++++++++++++++++++++++++++++++
//***********************************************************************************
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//                              TApplication Procedures
//...................................................................................
procedure TForm1.BoxStyle(Sender : TObject);
Begin
  If Sender=rdbOk then
  begin
    FBoxStyle := 0;
    lbEvents.Items.Add('MessageBox.[OK]');
    Assert(False, 'Trace: MessageBox.[OK]');
  End Else if Sender = rdbOkCancel then
  begin
    FBoxStyle := 1;
    lbEvents.Items.Add('MessageBox.[OK,Cancel]');
    Assert(False, 'Trace: MessageBox.[OK,Cancel]');
  End Else if Sender = rdbAbortRetryIgnore then
  begin
    FBoxStyle := 2;
    lbEvents.Items.Add('MessageBox.[Abort,Retry,Ignore]');
    Assert(False, 'Trace: MessageBox.[Abort,Retry,Ignore]');
  End Else if Sender = rdbYesNoCancel then
  begin
    FBoxStyle := 3;
    lbEvents.Items.Add('MessageBox.[Yes,No,Cancel]');
    Assert(False, 'Trace: MessageBox.[Yes,No,Cancel]');
  End Else if Sender = rdbYesNo then
  begin
    FBoxStyle := 4;
    lbEvents.Items.Add('MessageBox.[Yes,No]');
    Assert(False, 'Trace: MessageBox.[Yes,No]');
  End Else If Sender = rdbRetryCancel then
  begin
    FBoxStyle := 5;
    lbEvents.Items.Add('MessageBox.[Retry,Cancel]');
    Assert(False, 'Trace: MessageBox.[Retry,Cancel]');
  End; 
  EventWatch;
end;
procedure TForm1.ShowBox(Sender : TObject);
begin
  Assert(False, 'Trace: >>>>>> MessageBoxShow');
  Assert(False, 'Trace: ^^^^^^^^^^^^^^^^^^^^^');
  Case Application.MessageBox('     User information.............     ','MessageBox',FBoxStyle) of
    1: lbEvents.Items.Add('MessageBoxClick.<OK>');
    2: lbEvents.Items.Add('MessageBoxClick.<Cancel>');
    3: lbEvents.Items.Add('MessageBoxClick.<Abort>');
    4: lbEvents.Items.Add('MessageBoxClick.<Retry>');
    5: lbEvents.Items.Add('MessageBoxClick.<Ignore>');
    6: lbEvents.Items.Add('MessageBoxClick.<Yes>');
    7: lbEvents.Items.Add('MessageBoxClick.<No>');
  End;
  FFocusControl:=nil;
  EventWatch;
end;
//++++++++++++++++++++++++++++++++++ TBitBtn ++++++++++++++++++++++++++++++++++++++++
procedure TForm1.KindComboChange(Sender : TObject);
begin
  If cbbKind.Text='bkOK' then
  begin
    BitBtn1.Kind := bkOK;
    lbEvents.Items.Add('BitBtn1.Kind:=bkOk');
  end else if cbbKind.Text='bkCancel' then
  begin
    BitBtn1.Kind := bkCancel;
    lbEvents.Items.Add('BitBtn1.Kind:=bkCancel');
  end else if cbbKind.Text='bkHelp' then
  begin
    BitBtn1.Kind := bkHelp;
    lbEvents.Items.Add('BitBtn1.Kind:=bkHelp');
  end else if cbbKind.Text='bkClose' then
  begin
    BitBtn1.Kind := bkClose;
    lbEvents.Items.Add('BitBtn1.Kind:=bkClose');
  end else if cbbKind.Text='bkAll' then
  begin
    BitBtn1.Kind := bkAll;
    lbEvents.Items.Add('BitBtn1.Kind:=bkAll');
  end else if cbbKind.Text='bkCustom' then
  begin
    BitBtn1.Kind := bkCustom;
    lbEvents.Items.Add('BitBtn1.Kind:=bkCustom');
  end;
  EventWatch;
end;
procedure TForm1.AlignComboChange(Sender : TObject);
begin
  If cbbAlign.Text='blGlyphLeft' then
  begin
    BitBtn1.Layout := blGlyphLeft;
    lbEvents.Items.Add('BitBtn1.Layout:=blGlyphLeft');
  end else If cbbAlign.Text='blGlyphTop' then
  begin
    BitBtn1.Layout := blGlyphTop;
    lbEvents.Items.Add('BitBtn1.Layout:=blGlyphTop');
  end else If cbbAlign.Text='blGlyphBottom' then
  begin
    BitBtn1.Layout := blGlyphBottom;
    lbEvents.Items.Add('BitBtn1.Layout:=blGlyphBottom');
  end else If cbbAlign.Text='blGlyphRight' then
  begin
    BitBtn1.Layout := blGlyphRight;
    lbEvents.Items.Add('BitBtn1.Layout:=blGlyphRight');
  end;
  EventWatch;
end;
procedure TForm1.LoadGlyph(Sender : TObject);// This thing don't work
var
FileName : String;
begin
  lbEvents.Items.Add('TBITBTN.OpenDialog');
  EventWatch;
  lbEvents.Items.Add('Select a 16X16 .xpm file');
  EventWatch;

  //OpenDialog1 := TOpenDialog.Create(Self);
  If OpenDialog1.Execute then
    FileName := OpenDialog1.FileName;

  if FileName <> '' then
  begin
    lbEvents.Items.Add(FileName+' selected');
    EventWatch;

    S := TFileStream.Create(UTF8ToSys(FileName), fmOpenRead);
    try
      PixMap1 := TPixMap.Create;
      Pixmap1.TransparentColor := clBtnFace;
      PixMap1.LoadFromStream(S);
    finally
      S.Free;
    end;
    BitBtn1.Glyph.Assign(PixMap1);
    FreeAndNil(PixMap1);
  end;

  lbEvents.Items.Add('<<< WORKS WITH STREAM.PIXMAPS >>>');
  EventWatch;
end;
//++++++++++++++++++++++++++++++++ TButton ++++++++++++++++++++++++++++++++++++++++++
procedure TForm1.Button1Click(Sender : TObject);
var
i : Integer;
begin
  for i := 0 to 15 do
    If Sender=Button1[i] then
    begin
      lbEvents.Items.Add('Button1['+IntToStr(i)+'].Click');
      ButtonTag(i);
    end;

  EventWatch;
end;

procedure TForm1.ButtonTag(Sender : Integer);
begin
  If Button1[Sender].Caption = ' ' then
  begin
    Button1[Sender].Caption := IntToStr(Random(100));
    Button1[Sender].Hint := 'Lotto# '+Button1[Sender].Caption;
    lbEvents.Items.Add('Button1['+IntToStr(Sender)+'].Random '+Button1[Sender].Caption);
    EventWatch;
    lblLResult.Caption := lblLResult.Caption+Button1[Sender].Caption;
    Inc(LCount);
    If LCount<16 then
      lblLResult.Caption := lblLResult.Caption+','
    Else If LCount=16 then
      lblLResult.Caption := lblLResult.Caption+'.'
  End;
end;
procedure TForm1.LottoClear(Sender : TObject);
var
i : Integer;
begin
   For i := 0 to 15 do
   Begin
     Button1[i].Caption := ' ';
     lblLResult.Caption := 'Result: ';
     LCount := 0;
   End;
end;
//++++++++++++++++++++++++++++++++ TCanvas ++++++++++++++++++++++++++++++++++++++++++
procedure TForm1.DrawRect(X1,Y1,X2,Y2 : Integer);
begin
    BenchForm[5].Canvas.Rectangle(X1,Y1,X2,Y2);
end;

procedure TForm1.StyleSelect(Sender : TObject);
begin
  If cbbBrushStyle.Text = 'bsBDiagonal' then
    BenchForm[5].Canvas.Brush.Style := bsBDiagonal
  Else If cbbBrushStyle.Text = 'bsClear' then
    BenchForm[5].Canvas.Brush.Style := bsClear
  Else If cbbBrushStyle.Text = 'bsCross' then
    BenchForm[5].Canvas.Brush.Style := bsCross
  Else If cbbBrushStyle.Text = 'bsDiagCross' then
    BenchForm[5].Canvas.Brush.Style := bsDiagCross
  Else If cbbBrushStyle.Text = 'bsFDiagonal' then
    BenchForm[5].Canvas.Brush.Style := bsFDiagonal
  Else If cbbBrushStyle.Text = 'bsHorizontal' then
    BenchForm[5].Canvas.Brush.Style := bsHorizontal
  Else If cbbBrushStyle.Text = 'bsVertical' then
    BenchForm[5].Canvas.Brush.Style := bsVertical
  Else If cbbBrushStyle.Text = 'bsSolid' then
    BenchForm[5].Canvas.Brush.Style := bsSolid;

    Assert(False, 'Trace:CANVAS.BRUSH.STYLE='+cbbBrushStyle.Text);
end;
procedure TForm1.ClearCanvas(Sender : TObject);
begin
  BenchForm[5].Close;
  BenchForm[5].Show;
end;

procedure TForm1.GradCanvas(Sender : TObject); //Gradient Canvas
var
FColor, i : Integer;
begin
  FColor := clBlack;
  For i := 0 to 300 do
  Begin
    BenchForm[5].Canvas.Pen.Color := FColor;
    BenchForm[5].Canvas.LineTo(400,i);
    BenchForm[5].Canvas.MoveTo(0,i);
    If i > 40 then
      FColor := FColor + 1;
  End;
end;
procedure TForm1.PenStyleSelect(Sender : TObject);
begin
  If cbbPenStyle.Text = 'psClear' then
    BenchForm[5].Canvas.Pen.Style := psClear
  Else If cbbPenStyle.Text = 'psDash' then
    BenchForm[5].Canvas.Pen.Style := psDash
  Else If cbbPenStyle.Text = 'psDashDot' then
    BenchForm[5].Canvas.Pen.Style := psDashDot
  Else If cbbPenStyle.Text = 'psDashDotDot' then
    BenchForm[5].Canvas.Pen.Style := psDashDotDot
  Else If cbbPenStyle.Text = 'psDot' then
    BenchForm[5].Canvas.Pen.Style := psDot
  Else If cbbPenStyle.Text = 'psSolid' then
    BenchForm[5].Canvas.Pen.Style := psSolid;

    Assert(False, 'Trace:CANVAS.PEN.STYLE='+cbbPenStyle.Text);
end;
//++++++++++++++++++++++++++++++++ TCheckBox ++++++++++++++++++++++++++++++++++++++++
procedure TForm1.CheckClick(Sender : TObject);
var
i : Integer;
begin
  For i:= 1 to 35 do
  begin
    If Sender=CheckBox1[i] then
    begin
      lbEvents.Items.Add('CheckBox1['+IntToStr(i)+'].Click');
      EventWatch;
      Assert(False, 'Trace: CheckBox1['+IntToStr(i)+']Clicked');
      If i = RandCh then
      begin
        lblPick.Caption := 'That�s the one !!';
        CheckBox1[i].Hint := 'That�s the one !!';
        lbEvents.Items.Add('VICTORY !!');
        EventWatch;
        Assert(False, 'Trace: VICTORY !!');
      End Else
      begin
        lblPick.Caption := 'Nop, try again !!';
        CheckBox1[i].Hint := 'Already picked';
        lbEvents.Items.Add('NOP !!');
        EventWatch;
        Assert(False, 'Trace: NOP !!');
      end;
      CHCount := CHCount + 1;
      lblCount.Caption := 'Counter: '+IntToStr(CHCount);
    end;
  end;
end;
procedure TForm1.AgainClick(Sender : Tobject);
var
i : Integer;
begin
  RandCH := 0;
  While RandCH < 1 do
    RandCH := Random(35);
  For i := 1 to 35 do
    If CheckBox1[i].Checked = True then
    begin
      CheckBox1[i].Checked:= not CheckBox1[i].Checked;
      CheckBox1[i].Hint := 'Maybe this one';
    end;

  CHCount := 0;
  lblCount.Caption := 'Counter: '+IntToStr(CHCount);
  lblPick.Caption := 'Better luck this time !!';
  lbEvents.Items.Add('Don�t look, but it�s #'+IntToStr(RandCH));
  EventWatch;
end;
//++++++++++++++++++++++++++++++++ TColorDialog +++++++++++++++++++++++++++++++++++++
procedure TForm1.ColorSelect(Sender : TObject);
begin
  If ColorDialog1.Execute then
    If Sender=btnPenColor then
    Begin
      BenchForm[5].Canvas.Pen.Color := ColorDialog1.Color;
      Assert(False, 'Trace: CANVAS.PEN.COLOR='+IntToStr(ColorDialog1.Color));
    End Else If Sender=btnBrushColor then
    Begin
      BenchForm[5].Canvas.Brush.Color := ColorDialog1.Color;
    End Else If Sender=btnColorSelect then
    Begin
      BenchForm[9].Canvas.Brush.Color := ColorDialog1.Color;
      BenchForm[9].Canvas.Pen.Color := ColorDialog1.Color;
      lblColorInt.Caption := 'Integer Color: '+IntToStr(ColorDialog1.Color);
    End; 
  lbEvents.Items.Add('TCOLOR.Selected='+IntToStr(ColorDialog1.Color));
  EventWatch;
End;

procedure TForm1.SelectedColor(Sender : TObject);
begin
  ColorSelect(Sender);
  BenchForm[9].Canvas.Rectangle(10,35,53,70);
End;
//++++++++++++++++++++++++++++++++ TCombpoBox +++++++++++++++++++++++++++++++++++++++
procedure TForm1.AddToCbb(Sender : TObject);
begin
  If edtCbbAdd.Text <> '' then
  begin
    ComboBox1.Items.Add(edtCbbAdd.Text);
    lbEvents.Items.Add('TCOMBOBOX.Items.Add('+edtCbbAdd.Text+')');
    EventWatch;
    Assert(False, 'Trace: TCOMBOBOX.Item.Add('+edtCbbAdd.Text+')');
    lblRemoved.Caption := edtCbbAdd.Text+' Added';
    edtCbbAdd.Text := '';
  end;
end;

procedure TForm1.RemoveCbb(Sender : TObject);
begin
  If ComboBox1.Items.Count>0 then
  Begin
    lblRemoved.Caption := ComboBox1.Items.Strings[ComboBox1.Items.Count-1]+' Removed';
    ComboBox1.Items.Delete(ComboBox1.Items.Count - 1);
  end else
    lblRemoved.Caption := ' ';
end;

procedure TForm1.MoveToCbb(Sender : TObject);
begin
  cbbMoveTo.Items.Add(ComboBox1.SelText);
end;
//++++++++++++++++++++++++++++++++ TFontDialog ++++++++++++++++++++++++++++++++++++++
procedure TForm1.SelectFont(Sender : TObject);
begin
  If FontDialog1.Execute then
  begin
    lblWhatFont.Caption := 'Font.Name: '+FontDialog1.Font.Name;
  end;
end;
//++++++++++++++++++++++++++++++++ TForm ++++++++++++++++++++++++++++++++++++++++++++
procedure TForm1.FormBorder(Sender : TObject);
begin
  If cbbBorder.Text='bsNone' then
    BenchForm[19].BorderStyle := bsNone
  else if cbbBorder.Text='bsSingle' then
    BenchForm[19].BorderStyle := bsSingle
  else if cbbBorder.Text='bsDialog' then
    BenchForm[19].BorderStyle := bsDialog
  else if cbbBorder.Text='bsToolWindow' then
    BenchForm[19].BorderStyle := bsToolWindow
  else if cbbBorder.Text='bsSizeable' then
    BenchForm[19].BorderStyle := bsSizeable;

end;
procedure TForm1.FormPosition(Sender : TObject);
begin
  If cbbPosition.Text='poDesigned' then
    BenchForm[19].Position := poDesigned
  else if cbbPosition.Text='poDefault' then
    BenchForm[19].Position := poDesigned
  else if cbbPosition.Text='poDefaultPosOnly' then
    BenchForm[19].Position := poDefaultPosOnly
  else if cbbPosition.Text='poDefaultSizeOnly' then
    BenchForm[19].Position := poDefaultSizeOnly
  else if cbbPosition.Text='poScreenCenter' then
    BenchForm[19].Position := poScreenCenter
  else if cbbPosition.Text='poDesktopCenter' then
    BenchForm[19].Position := poDesktopCenter
  else if cbbPosition.Text='poMainFormCenter' then
    BenchForm[19].Position := poMainFormCenter
  else if cbbPosition.Text='poOwnerFormCenter' then
    BenchForm[19].Position := poOwnerFormCenter;

end;
//++++++++++++++++++++++++++++++++ TIniFile +++++++++++++++++++++++++++++++++++++++++
procedure TForm1.IniUpdate(Sender : TObject);
begin
  with IniFile1 do
  begin
    WriteString('INFORMATION','Project',edtString.Text);
    WriteFloat('INFORMATION','Version',StrToFloat(edtFloat.Text));
    WriteInteger('INFORMATION','Integer',StrToInt(edtInteger.Text));
    WriteDate('INFORMATION','Today',StrToDate(edtDate.Text));
    WriteTime('INFORMATION','Appstart',StrToTime(edtTime.Text));
  end;
end;
//++++++++++++++++++++++++++++++++ TLalel +++++++++++++++++++++++++++++++++++++++++++
procedure TForm1.SelectAlignment(Sender : TObject);
begin
  If cbbAlignment.Text='taLeftJustify' then
    Label1.Alignment := taLeftJustify
  else if cbbAlignment.Text='taCenter' then
    Label1.Alignment := taCenter
  else if cbbAlignment.Text='taRightJustify' then
    Label1.Alignment := taRightJustify;
end;
//++++++++++++++++++++++++++++++++ TListBox +++++++++++++++++++++++++++++++++++++++++
Function TForm1.AddNotDub(AList: TCustomListBox; nText: String):Boolean;
begin
  Result := AList.Items.IndexOf(nText)<0;
  If Result then
    AList.Items.Add(nText);
end;
procedure TForm1.ListBoxMove(Sender : TObject);
var
nItem : Integer;
begin
  If Sender=btnRight then    //Move from ListBox1 to ListBox2
    For nItem:=ListBox1.Items.Count-1 downto 0 do
      If ListBox1.Selected[nItem] then
        If AddNotDub(ListBox2,ListBox1.Items[nItem]) then  //Check if exists
          ListBox1.Items.Delete(nItem)
        else
          Application.MessageBox('    Do allready exist    ','No',0);
  If Sender=btnLEft then    //Move from ListBox2 to ListBox1
    For nItem:=ListBox2.Items.Count-1 downto 0 do
      If ListBox2.Selected[nItem] then
        If AddNotDub(ListBox1,ListBox2.Items[nItem]) then  //Check if exists
          ListBox2.Items.Delete(nItem)
        else
          Application.MessageBox('    Do allready exist    ','No',0);
  If Sender=btnAdd then     //Add from the Edits
    begin
      If edtAddLis1.Text<>'' then
        If AddNotDub(ListBox1,edtAddLis1.Text) then        //Check if exists
          edtAddLis1.text := ''
        else
          Application.MessageBox('    Do allready exist    ','No',0);
      If edtAddLis2.Text<>'' then
        If AddNotDub(ListBox2,edtAddLis2.Text) then        //Check if exists
          edtAddLis2.text := ''
        else
          Application.MessageBox('    Do allready exist    ','No',0);
    end;
end;
procedure TForm1.CopyToMem(Sender : TObject);
begin
  memAddTo.Lines := ListBox1.Items;
end;

procedure TForm1.SaveFile(Sender : TObject);
begin
  ListBox1.Items.SaveToFile('./List.txt');
end;
//++++++++++++++++++++++++++++++++ TMemo ++++++++++++++++++++++++++++++++++++++++++++
procedure TForm1.NewMemo(Sender : TObject);
begin
  Memo1.Lines.Clear;
end;
procedure TForm1.SaveMemoAs(Sender : TObject);
begin
  SaveDialog1.FileName := 'Untitled.txt';
  SaveDialog1.Filter := 'TextFiles|*.txt';
  If SaveDialog1.Execute then
    Memo1.Lines.SaveToFile(UTF8ToSys(SaveDialog1.FileName));

end;
procedure TForm1.OpenMemo(Sender : TObject);
begin
  OpenDialog1.Filter := 'TextFile|*.txt';
  If OpenDialog1.Execute then
    Memo1.Lines.LoadFromFile(UTF8ToSys(OpenDialog1.FileName));

end;
//++++++++++++++++++++++++++++++++ TProgressBar +++++++++++++++++++++++++++++++++++++
procedure TForm1.UpdateProgressBar(Sender : TObject);
begin
  If ProgressBar1.Position > 99 then 
     ProgressBar1.Position := 0;
  ProgressBar1.Position := ProgressBar1.Position + 1;

end;
procedure TForm1.ProgSettings(Sender : TObject);
begin
  If chbSmooth.State = cbChecked then
     ProgressBar1.Smooth := False
  Else ProgressBar1.Smooth := True;

  If chbProgEnable.State = cbChecked then
     ProgTime.Enabled := True
  Else ProgTime.Enabled := False;

  If chbProgOrient.State = cbChecked then
     ProgressBar1.Orientation := pbVertical
  Else ProgressBar1.Orientation := pbHorizontal;

  If (chbProgOrient.State = cbChecked) and (chbProgDirect.State = cbChecked) then
     ProgressBar1.Orientation := pbTopDown
  Else If (chbProgOrient.State = cbUnchecked) and (chbProgDirect.State = cbChecked) then
     ProgressBar1.Orientation := pbRightToLeft;

  If chbProgText.State = cbChecked then
     ProgressBar1.BarShowText := True
  Else ProgressBar1.BarShowText := False;

end;


//++++++++++++++++++++++++++++++++ TPanel +++++++++++++++++++++++++++++++++++++++++++
procedure TForm1.PanelInBevelClick(Sender: TObject);
begin
  case rgPanelInBevel.ItemIndex of
     0 : Panel1.BevelInner := bvLowered;
     1 : Panel1.BevelInner := bvRaised;
     2 : Panel1.BevelInner := bvNone;
     3 : Panel1.BevelInner := bvNone;
  else
     Panel1.BevelInner := bvNone;
  end;
  Panel1.Show;
end;

procedure TForm1.PanelOutBevelClick(Sender: TObject);
begin
  case rgPanelInBevel.ItemIndex of
     0 : Panel1.BevelOuter := bvLowered;
     1 : Panel1.BevelOuter := bvRaised;
     2 : Panel1.BevelOuter := bvNone;
     3 : Panel1.BevelOuter := bvNone;
  else
     Panel1.BevelOuter := bvNone;
  end;
  Panel1.Show;
end;

procedure TForm1.PanelAlignClick(Sender: TObject);
begin
  case rgPanelAlign.ItemIndex of
     0 : Panel1.Align := alNone;
     1 : Panel1.Align := alBottom;
     2 : Panel1.Align := alClient;
     3 : Panel1.Align := alLeft;
     4 : Panel1.Align := alRight;
     5 : Panel1.Align := alTop;
  else
     Panel1.Align := alNone;
  end;
  Panel1.Show;
end;

procedure TForm1.PanelNormClick(Sender:TObject);
begin
   with Panel1 do
   begin
      Left   := 10;
      Top    := 10;
      Width  := 300;
      Height := 100;
    //Ctl3D  := False;
      Caption := 'Panel1';
      Visible := True;
      Align   := alNone;
      BevelOuter := bvRaised;
      BevelInner := bvNone;
   end;
end;
//++++++++++++++++++++++++++++++++ TBevel +++++++++++++++++++++++++++++++++++++++++++
procedure TForm1.BevelSettings(Sender : TObject);
begin
   case chbBevelShape.ItemIndex of
      0 : Bevel1.Shape := bsBox;
      1 : Bevel1.Shape := bsFrame;
      2 : Bevel1.Shape := bsTopLine;
      3 : Bevel1.Shape := bsBottomLine;
      4 : Bevel1.Shape := bsLeftLine;
      5 : Bevel1.Shape := bsRightLine;
   end;
   if chbBevelStyle.ItemIndex = 0
     then Bevel1.Style := bsLowered
     else Bevel1.Style := bsRaised
end;
//+++++++++++++++++++++++++++++++++ TRadioGroup +++++++++++++++++++++++++++++++++++++
procedure TForm1.RadioGroupClick(Sender : TObject);
begin
  RadioGroup1.Caption := ' Radio '+IntToStr(RadioGroup1.ItemIndex)+' Checked';
end;
//+++++++++++++++++++++++++++++++++ TTimer ++++++++++++++++++++++++++++++++++++++++++
procedure TForm1.Timer1OnTimer(Sender : TObject);
begin
lblTimeNow.Caption := 'TimeNow: '+TimeToStr(Now);
  If FTrack = True then
  begin
    MSec:=MSec+1;
    If MSec>10 then
    begin
       Sec := Sec+1;
       If Sec>59 then
       begin
         Min := Min+1;
         lblHourMinSec.Caption:='Track: 00:0'+IntToStr(Min)+':00';
         Sec := 0;
       end;
       If Sec<10 then
         lblHourMinSec.Caption:='Track: 00:0'+IntToStr(Min)+':0'+IntToStr(Sec)
       else lblHourMinSec.Caption:='Track: 00:0'+IntToStr(Min)+':'+IntToStr(Sec);      
       MSec := 0;
    end;
    If MSec<10 then
      lblMSec.Caption := ':0'+IntToStr(MSec)
    Else lblMSec.Caption := ':'+IntToStr(MSec);
  end;
end;
procedure TForm1.TimeTrack(Sender : TObject);
begin
Hour := 0;
Min  := 0;
Sec  := 0;
MSec := 0;
  If FTrack = false then
  begin
    FTrack := True;
    btnStart.Caption := 'Stop';
  end else
  begin
    FTrack := False;
    btnStart.Caption := 'Start';
    lblHourMinSec.Caption := 'Track: 00:00:00';
  end;
end;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++ Universal Tools ++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
procedure TForm1.ShowTestForm(Sender : TObject);
begin
  AboutForm.Show;
end;
//++++++++++++++++++++++++++++++++++++++++++++++++++ EVENTS ++++++++++++++++++
procedure TForm1.EventFormShow(Sender : TObject);
begin
  EventForm.Show;
  Assert(False, 'Trace: EventFormShow');
end;

procedure TForm1.EventOnMouseDown(Sender : TObject; Button : TMouseButton; Shift : TShiftState; X,Y : Integer);
begin
  lbEvents.Items.Add(Sender.ClassName+'.MouseDown '+IntToStr(X)+','+IntToStr(Y));
  EventWatch;
  Assert(False, 'Trace:'+Sender.ClassName+'.EventOnMouseDown');
  If Sender = BenchForm[5] then
  Begin
    Assert(False, 'Trace: CANVAS.PaintWhat='+cbbPaintType.Text);
    If cbbPaintType.Text = 'LineTo' then
    Begin
      BenchForm[5].Canvas.MoveTo(X,Y);
      lbEvents.Items.Add('TFORM.CANVAS.MoveTo: '+IntToStr(X)+','+IntToStr(Y));
      EventWatch;
    End Else
    Begin
      Start1 := X;
      Start2 := Y;
      lbEvents.Items.Add('TFORM.CANVAS.RectStartPos: '+IntToStr(X)+','+IntToStr(Y));
      EventWatch;
    end;
    FPaint := True;
  End;
end;

procedure TForm1.EventOnMouseUp(Sender : TObject; Button : TMouseButton; Shift : TShiftState; X,Y : Integer);
begin
  lbEvents.Items.Add(Sender.ClassName+'.MouseUp '+IntToStr(X)+','+IntToStr(Y));
  EventWatch;
  Assert(False, 'Trace:'+Sender.ClassName+'.EventOnMouseUp');
//+++++++ TCanvas ++++++++++++++++++++++++
  If Sender = BenchForm[5] then
    FPaint := False;
  If Sender = ComboBox1 then
  Begin
    lblSelLength.Caption := 'SelLength: '+IntToStr(ComboBox1.SelLength);
    lblSelStart.Caption := 'SelStart: '+IntToStr(ComboBox1.SelStart);
    lblSelText.Caption := 'SelText: '+ComboBox1.SelText;
  end;
  If Sender=SpinEdit1 then
    lblOnChange.Caption := 'Value: '+FloatToStr(SpinEdit1.Value);
end;

procedure TForm1.EventOnMouseMove(Sender : TObject; Shift : TShiftState; X,Y : Integer);
begin
  If Sender = BenchForm[5] then
  Begin
     If FPaint = True then
     begin
       If cbbPaintType.Text='LineTo' then
       begin
         BenchForm[5].Canvas.LineTo(X,Y);
         lbEvents.Items.Add('TFORM.CANVAS.LineTo: '+IntToStr(X)+','+IntToStr(Y));
         EventWatch;
       End else
       begin
         DrawRect(Start1,Start2,X,Y);
         lbEvents.Items.Add('TFORM.CANVAS.Rectangle: '+IntToStr(X)+','+IntToStr(Y));
         EventWatch;
       end;
     end;
  End Else
  begin
    lbEvents.Items.Add(Sender.ClassName+'.MouseMove '+IntToStr(X)+','+IntToStr(Y));
    EventWatch;
  end;
end;

procedure TForm1.EventOnMouseEnter(Sender : TObject);
begin
 
end;

procedure TForm1.EventOnMouseLeave(Sender : TObject);
begin

end;

procedure TForm1.EventOnClick(Sender : TObject);
begin
  lbEvents.Items.Add(Sender.ClassName+'.Click');
  EventWatch;
  Assert(False, 'Trace:'+Sender.ClassName+'.EventOnClick');
  If Sender.ClassName='TBUTTON' then
    Button1Click(Sender);
  If Sender.ClassName='TRADIOGROUP' then
    RadioGroupClick(Sender);
  If Sender.ClassName='TCHECKBOX' then
    CheckClick(Sender);
  If Sender=ToggleBox1 then
  Begin
    If ToggleBox1.Checked = true then
      lblChecked.Caption := 'Checked= True'
    Else lblChecked.Caption := 'Checked= False';
    If ToggleBox1.State= cbChecked then
      lblState.Caption := 'State= cbChecked'
    Else lblState.Caption := 'State= cbUnchecked';
  end;
  If Sender.ClassName='TPAINTBOX' then
  begin
     with TPaintBox(Sender).canvas do
     begin
        moveto (0,0);
        inc (pntCount);
        lineto (100, pntCount * 10);
     end;
  end;
end;

procedure TForm1.EventOnDblClick(Sender : TObject);
begin
  lbEvents.Items.Add(Sender.ClassName+'.DoubleClick');
  EventWatch;
  Assert(False, 'Trace: EventOnDblClick');
end;

procedure TForm1.EventOnResize(Sender : TObject);
begin
  lbEvents.Items.Add('TFORM.Width: '+IntToStr(BenchForm[19].Width));
  lbEvents.Items.Add('TFORM.Height: '+IntToStr(BenchForm[19].Height));
  EventWatch;
  Assert(False, 'Trace: EventOnReSize');
  lblWidth.Caption := 'Width: '+IntToStr(BenchForm[19].Width);
  lblWidth.Caption := 'Height: '+IntToStr(BenchForm[19].Height);
end;

procedure TForm1.EventOnShow(Sender : TObject);
var
i : Integer;
begin
  For i:=1 to 59 do
  begin
    If Sender=BenchForm[i] then
    begin
      lbEvents.Items.Add('TESTFORM['+IntToStr(i)+'].EventOnShow '+TimeToStr(Now));
      EventWatch;
      Assert(False, 'Trace:TESTFORM['+IntToStr(i)+'].EventOnShow');
    end;
  end;
end;

procedure TForm1.EventOnChange(Sender : TObject);
begin
  if not (assigned (lbEvents)) then exit;

  lbEvents.Items.Add(Sender.ClassName+'.Change');
  EventWatch;
  Assert(False, 'Trace: EventOnChange');
  If Sender=ComboBox1 then
  begin
    lblIndex.Caption := 'ItemIndex: '+IntToStr(ComboBox1.ItemIndex);
    lbEvents.Items.Add('ComboBox1.ItemIndex='+IntToStr(ComboBox1.ItemIndex));
    EventWatch;
    Assert(False, 'Trace: ComboBox1.ItemIndex='+IntToStr(ComboBox1.ItemIndex));
  end;
  If Sender=TrackBar2 then
  begin
    TrackBar1.PageSize := TrackBar1.PageSize + 1;
  end;
end;

procedure TForm1.EventOnKeyDown(Sender : TObject; var Key : Word; Shift : TShiftState);
begin
  If Sender=Edit1 then
  begin
    lbEvents.Items.Add(Sender.ClassName+'.Text='+Edit1.Text);
    EventWatch;
    //If Edit1.Modified = True then  //To get Edit1.OnChange event
      //EventOnChange(Sender);
  end;

  lbEvents.Items.Add(Sender.ClassName+'.EventKeyDown');
  EventWatch;
  Assert(False, 'Trace:'+Sender.ClassName+'.EventKeyDown '+IntToStr(Key));
end;

procedure TForm1.EventOnKeyUp(Sender : TObject; var Key : Word; Shift : TShiftState);
begin

end;
//+++++++++++++++++++++ Virtual MouseEnter/Leave ++++++++++++++++++++++++++++++++++++
procedure TForm1.ApplicationIdle(Sender: TObject; var Done: Boolean); 
var 
  CurControl: TControl;
  P: TPoint;
begin 
  GetCursorPos(P);  
  CurControl := FindControlAtPosition(P, True);
  if FFocusControl <> CurControl then
    begin  
    if FFocusControl <> nil then  
      VirOnLeave(FFocusControl);  
    FFocusControl := CurControl;  
    if FFocusControl <> nil then  
      VirOnEnter(FFocusControl);  
  end; 
end; 
procedure TForm1.VirOnEnter(Sender: TObject); 
begin 
  lbEvents.Items.Add(Sender.ClassName+'.MouseEnter');
  EventWatch;
  Assert(False, 'Trace:'+Sender.ClassName+'.EventOnEnter');
end; 
procedure TForm1.VirOnLeave(Sender: TObject); 
begin 
  lbEvents.Items.Add(Sender.ClassName+'.MouseLeave');
  EventWatch;
  Assert(False, 'Trace:'+Sender.ClassName+'.EventOnLeave');
end;
//++++++++++++++++++++++ Event Watch ++++++++++++++++++++++++++++++++++++++++++++++++
procedure TForm1.EventWatch;
begin
  If lbEvents.Items.Count>18 then
    lbEvents.Items.Delete(0);
end;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
procedure TForm1.TestFormClose(Sender : TObject; var CloseAction : TCloseAction);
var
i : Integer;
begin
  For i:=1 to 59 do
  begin
    If Sender=BenchForm[i] then
    begin
      lbEvents.Items.Add('TESTFORM['+IntToStr(i)+'].EventOnClose '+TimeToStr(Now));
      EventWatch;
      Assert(False, 'Trace:TESTFORM['+IntToStr(i)+'].EventOnClose');
    End;
  End;

  Form1.Visible := True;
   //Form1.WindowState := wsNormal;
   //Memo1.Parent:=Self;
   Comps1.Enabled := True;
   EventForm.Caption := 'Events';
   //Timer1.Enabled := False;
end;

procedure TForm1.ShowMessage0(Sender : TObject);
begin
  AppliCation.MessageBox(Info[0],'Status Information',0); //For future components
end;

procedure TForm1.ShowMessage1(Sender : TObject);
begin
  If Sender=TAppl then
  begin
    BenchForm[1].Show;
    EventForm.Caption := EventForm.Caption+' TApplication';
    Assert(False, 'Trace: >>> TApplication TEST');
  end;
  If Sender=TBev then
  begin
    BenchForm[2].Show;
    EventForm.Caption := EventForm.Caption+' TBevel';
    Assert(False, 'Trace: >>> TBevel TEST');
  end;
  If Sender=TBit then
  Begin
    BenchForm[3].Show;
    EventForm.Caption := EventForm.Caption+' BitBtn1';
    Assert(False, 'Trace: >>> TBitBtn TEST');
  end;
  If Sender=TBut then
  begin
    BenchForm[4].Show;
    EventForm.Caption := EventForm.Caption+' Button1[0..15]';
    Assert(False, 'Trace: >>> TButton TEST');
  end;
  If Sender=TCan then
  begin
    BenchForm[5].Show;
    EventForm.Caption := EventForm.Caption+' TCanvas';
    Assert(False, 'Trace: >>> TCanvas TEST');
  end;
  If Sender=TChe then
  begin
    BenchForm[6].Show;
    EventForm.Caption := EventForm.Caption+' CheckBox1[1..35]';
    Assert(False, 'Trace: >>> TCheckBox TEST');
  end;
  If Sender=TClip then
  begin
    BenchForm[7].Show;
    EventForm.Caption := EventForm.Caption+' ClipBoard1';
    Assert(False, 'Trace: >>> TClipBoard TEST');
  end;
  If Sender=TCLis then
  begin
    BenchForm[8].Show;
    EventForm.Caption := EventForm.Caption+' CListBox1';
    Assert(False, 'Trace: >>> TCListBox TEST');
  end;
  If Sender=TCol then
  begin
    BenchForm[9].Caption := BenchForm[9].Caption+' ++Move the form to se the Color-Selected <^>';
    BenchForm[9].Show;
    EventForm.Caption := EventForm.Caption+' TColorDialog';
    Assert(False, 'Trace: >>> TColorDialog TEST');
    Assert(False, 'Trace: **********************************');
    Assert(False, 'Trace: ******** MOVE THE FORM TO ********');
    Assert(False, 'Trace: ******** TO SE THE COLOR  ********');
    Assert(False, 'Trace: ******** SELECTED !!!     ********');
    Assert(False, 'Trace: **********************************');
  end;
  If Sender=TCom then
  begin
    BenchForm[10].Show;
    EventForm.Caption := EventForm.Caption+' TComboBox';
    Assert(False, 'Trace: >>> TComboBox TEST');
  end;
  If Sender=TDir then
  begin
    BenchForm[11].Show;
    EventForm.Caption := EventForm.Caption+' TDirectoryListBox';
    Assert(False, 'Trace: >>> TDirectoryListBox TEST');
  end;
  If Sender=TDra then
  begin
    BenchForm[12].Show;
    EventForm.Caption := EventForm.Caption+' TDrawGrid';
    Assert(False, 'Trace: >>> TDrawGrid TEST');
  end;
  If Sender=TDri then
  begin
    BenchForm[13].Show;
    EventForm.Caption := EventForm.Caption+' TDriveComboBox';
    Assert(False, 'Trace: >>> TDriveComboBox TEST');
  end;
  If Sender=TEdi then
  begin
    BenchForm[14].Show;
    EventForm.Caption := EventForm.Caption+' TEdit';
    Assert(False, 'Trace: >>> TEdit TEST');
  end;
  If Sender=TFile then
  begin
    BenchForm[15].Show;
    EventForm.Caption := EventForm.Caption+' TFileListBox';
    Assert(False, 'Trace: >>> TFileListBox TEST');
  end;
  If Sender=TFilt then
  begin
    BenchForm[16].Show;
    EventForm.Caption := EventForm.Caption+' TFilterComboBox';
    Assert(False, 'Trace: >>> TFilterComboBox TEST');
  end;
  If Sender=TFin then
  begin
    BenchForm[17].Show;
    EventForm.Caption := EventForm.Caption+' TFindDialog';
    Assert(False, 'Trace: >>> TFindDialog TEST');
  end;
  If Sender=TFon then
  begin
    BenchForm[18].Show;
    EventForm.Caption := EventForm.Caption+' TFontDialog';
    Assert(False, 'Trace: >>> TFontDialog TEST');
  end;
  If Sender=TFor then
  begin
    BenchForm[19].Show;
    EventForm.Caption := EventForm.Caption+' TForm';
    Assert(False, 'Trace: >>> TForm TEST');
  end;
  If Sender=TGro then
  begin
    BenchForm[20].Show;
    EventForm.Caption := EventForm.Caption+' TGroupBox';
    Assert(False, 'Trace: >>> TGoup TEST');
  end;
  If Sender=TIma then
  begin
    BenchForm[21].Show;
    EventForm.Caption := EventForm.Caption+' TImage';
    Assert(False, 'Trace: >>> TImage TEST');
  end;
  If Sender=TIni then
  begin
    BenchForm[22].Show;
    EventForm.Caption := EventForm.Caption+' TIniFile';
    Assert(False, 'Trace: >>> TIniFile TEST');
  end;
  If Sender=TLab then
  begin
    BenchForm[23].Show;
    EventForm.Caption := EventForm.Caption+' TLabel';
    Assert(False, 'Trace: >>> TLabel TEST');
  end;
  If Sender=TLis then
  begin
    BenchForm[24].Show;
    EventForm.Caption := EventForm.Caption+' TListBox';
    Assert(False, 'Trace: >>> TListBox TEST');
  end;
  If Sender=TMas then
  begin
    BenchForm[25].Show;
    EventForm.Caption := EventForm.Caption+' TMaskEdit';
    Assert(False, 'Trace: >>> TMaskEdit TEST');
  end;
  If Sender=TMed then
  begin
    BenchForm[26].Show;
    EventForm.Caption := EventForm.Caption+' TMediaPlayer';
    Assert(False, 'Trace: >>> TMediaPlayer TEST');
  end;
  If Sender=TMem then
  begin
    Memo1.Parent := BenchForm[27];
    Memo1.Lines.Clear;
    BenchForm[27].Show;
    EventForm.Caption := EventForm.Caption+' TMemo';
    Assert(False, 'Trace: >>> TMemo TEST');
  end;
  If Sender=TMes then
  begin
    BenchForm[28].Show;
    EventForm.Caption := EventForm.Caption+' TMessageDialog';
    Assert(False, 'Trace: >>> TMessageDialog TEST');
  end;
  If Sender=TNot then
  begin
    BenchForm[29].Show;
    EventForm.Caption := EventForm.Caption+' TNoteBook';
    Assert(False, 'Trace: >>> TNoteBook TEST');
  end;
  If Sender=TOpe then
  begin
    BenchForm[30].Show;
    EventForm.Caption := EventForm.Caption+' TOpenDialog';
    Assert(False, 'Trace: >>> TOpenDialog TEST');
  end;
  If Sender=TPag then
  begin
    BenchForm[31].Show;
    EventForm.Caption := EventForm.Caption+' TPageControl';
    Assert(False, 'Trace: >>> TPageControl TEST');
  end;
  If Sender=TPai then
  begin
    BenchForm[32].Show;
    EventForm.Caption := EventForm.Caption+' TPaintBox';
    Assert(False, 'Trace: >>> TPaintBox TEST');
  end;
  if Sender=TPan then
  begin
    BenchForm[33].Show;
    EventForm.Caption := EventForm.Caption+' TPanel';
    Assert(False, 'Trace: >>> TPanel TEST');
  end;
  If Sender=TPop then
  begin
    BenchForm[34].Show;
    EventForm.Caption := EventForm.Caption+' TPopupMenu';
    Assert(False, 'Trace: >>> TPopupMenu TEST');
  end;
  If Sender=TPro then
  begin
    BenchForm[37].Show;
    EventForm.Caption := EventForm.Caption+' TProgressBar';
    Assert(False, 'Trace: >>> TProgressBar TEST');
  end;
  If Sender=TRadB then
  begin
    BenchForm[38].Show;
    EventForm.Caption := EventForm.Caption+' TRadioButton';
    Assert(False, 'Trace: >>> TRadioButton TEST');
  end;
  If Sender=TRadG then
  begin
    BenchForm[39].Show;
    EventForm.Caption := EventForm.Caption+' TRadioGroup';
    Assert(False, 'Trace: >>> TRadioGroup TEST');
  end;
  If Sender=TSav then
  begin
    BenchForm[42].Show;
    EventForm.Caption := EventForm.Caption+' TSaveDialog';
    Assert(False, 'Trace: >>> TSaveDialog TEST');
  end;
  If Sender=TScre then
  begin
    BenchForm[43].Show;
    EventForm.Caption := EventForm.Caption+' TScreen';
    Assert(False, 'Trace: >>> TScreen TEST');
  end;
  If Sender=TScroBa then
  begin
    BenchForm[44].Show;
    EventForm.Caption := EventForm.Caption+' TScrollBar';
    Assert(False, 'Trace: >>> TScrollBar TEST');
  end;
  If Sender=TSha then
  begin
    BenchForm[46].Show;
    //AppliCation.MessageBox(Info[3],'Status Information',0);
    EventForm.Caption := EventForm.Caption+' TShape';
    Assert(False, 'Trace: >>> TShape TEST');
  end;
  If Sender=TSpee then
  begin
    BenchForm[47].Show;
    //AppliCation.MessageBox(Info[3],'Status Information',0);
    EventForm.Caption := EventForm.Caption+' TSpeedButton';
    Assert(False, 'Trace: >>> TSpeedButton TEST');
  end;
  If Sender=TSPinE then
  begin
    BenchForm[49].Show;
    //AppliCation.MessageBox(Info[3],'Status Information',0);
    EventForm.Caption := EventForm.Caption+' TSpinEdit';
    Assert(False, 'Trace: >>> TSpinEdit TEST');
  end;
  If Sender=TStat then
  begin
    BenchForm[50].Show;
    //AppliCation.MessageBox(Info[3],'Status Information',0);
    EventForm.Caption := EventForm.Caption+' TStatusBar';
    Assert(False, 'Trace: >>> TStatusBar TEST');
  end;
  If Sender=TThre then
  begin
    BenchForm[54].Show;
    Timer1.Enabled := True;
    EventForm.Caption := EventForm.Caption+' TThread';
    Assert(False, 'Trace: >>> TThread TEST');
  end;
  If Sender=TTim then
  begin
    BenchForm[55].Show;
    Timer1.Enabled := True;
    EventForm.Caption := EventForm.Caption+' TTimer';
    Assert(False, 'Trace: >>> TTimer TEST');
  end;
  If Sender=TTog then
  begin
    BenchForm[56].Show;
    //AppliCation.MessageBox(Info[2],'Status Information',0);
  end;
  If Sender=TToo then
  begin
    BenchForm[57].Show;
    EventForm.Caption := EventForm.Caption+' TToolBar';
    Assert(False, 'Trace: >>> TToolBar TEST');
  end;
  If Sender=TTrac then
  begin
    BenchForm[58].Show;
    EventForm.Caption := EventForm.Caption+' TTrackBar';
    Assert(False, 'Trace: >>> TTrackBar TEST');
  end;
  //Comps1.Enabled := False;
  Form1.Visible := False;
end;

procedure TForm1.CloseAbout(Sender : TObject);
begin
  AboutForm.Close;
end;

procedure TForm1.Notification(AComponent: TComponent; Operation: TOperation);
begin
  inherited Notification(AComponent, Operation);
  if (AComponent=FFocusControl) and (Operation=opRemove) then
    FFocusControl:=nil;
end;

procedure TForm1.QuitClick(Sender : TObject);
begin
  Close;
end;

Destructor TForm1.Destroy;
begin
  IniFile1.Free;
  inherited Destroy;
end;