1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324 13325 13326 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 13347 13348 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498 13499 13500 13501 13502 13503 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555 13556 13557 13558 13559 13560 13561 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572 13573 13574 13575 13576 13577 13578 13579 13580 13581 13582 13583 13584 13585 13586 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647 13648 13649 13650 13651 13652 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 13980 13981 13982 13983 13984 13985 13986 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042 14043 14044 14045 14046 14047 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089 14090 14091 14092 14093 14094 14095 14096 14097 14098 14099 14100 14101 14102 14103 14104 14105 14106 14107 14108 14109 14110 14111 14112 14113 14114 14115 14116 14117 14118 14119 14120 14121 14122 14123 14124 14125 14126 14127 14128 14129 14130 14131 14132 14133 14134 14135 14136 14137 14138 14139 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177 14178 14179 14180 14181 14182 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192 14193 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 14204 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215 14216 14217 14218 14219 14220 14221 14222 14223 14224 14225 14226 14227 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 14306 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324 14325 14326 14327 14328 14329 14330 14331 14332 14333 14334 14335 14336 14337 14338 14339 14340 14341 14342 14343 14344 14345 14346 14347 14348 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407 14408 14409 14410 14411 14412 14413 14414 14415 14416 14417 14418 14419 14420 14421 14422 14423 14424 14425 14426 14427 14428 14429 14430 14431 14432 14433 14434 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468 14469 14470 14471 14472 14473 14474 14475 14476 14477 14478 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490 14491 14492 14493 14494 14495 14496 14497 14498 14499 14500 14501 14502 14503 14504 14505 14506 14507 14508 14509 14510 14511 14512 14513 14514 14515 14516 14517 14518 14519 14520 14521 14522 14523 14524 14525 14526 14527 14528 14529 14530 14531 14532 14533 14534 14535 14536 14537 14538 14539 14540 14541 14542 14543 14544 14545 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 14557 14558 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572 14573 14574 14575 14576 14577 14578 14579 14580 14581 14582 14583 14584 14585 14586 14587 14588 14589 14590 14591 14592 14593 14594 14595 14596 14597 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687 14688 14689 14690 14691 14692 14693 14694 14695 14696 14697 14698 14699 14700 14701 14702 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715 14716 14717 14718 14719 14720 14721 14722 14723 14724 14725 14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739 14740 14741 14742 14743 14744 14745 14746 14747 14748 14749 14750 14751 14752 14753 14754 14755 14756 14757 14758 14759 14760 14761 14762 14763 14764 14765 14766 14767 14768 14769 14770 14771 14772 14773 14774 14775 14776 14777 14778 14779 14780 14781 14782 14783 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796 14797 14798 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817 14818 14819 14820 14821 14822 14823 14824 14825 14826 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870 14871 14872 14873 14874 14875 14876 14877 14878 14879 14880 14881 14882 14883 14884 14885 14886 14887 14888 14889 14890 14891 14892 14893 14894 14895 14896 14897 14898 14899 14900 14901 14902 14903 14904 14905 14906 14907 14908 14909 14910 14911 14912 14913 14914 14915 14916 14917 14918 14919 14920 14921 14922 14923 14924 14925 14926 14927 14928 14929 14930 14931 14932 14933 14934 14935 14936 14937 14938 14939 14940 14941 14942 14943 14944 14945 14946 14947 14948 14949 14950 14951 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032 15033 15034 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074 15075 15076 15077 15078 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 15098 15099 15100 15101 15102 15103 15104 15105 15106 15107 15108 15109 15110 15111 15112 15113 15114 15115 15116 15117 15118 15119 15120 15121 15122 15123 15124 15125 15126 15127 15128 15129 15130 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142 15143 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155 15156 15157 15158 15159 15160 15161 15162 15163 15164 15165 15166 15167 15168 15169 15170 15171 15172 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222 15223 15224 15225 15226 15227 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268 15269 15270 15271 15272 15273 15274 15275 15276 15277 15278 15279 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 15292 15293 15294 15295 15296 15297 15298 15299 15300 15301 15302 15303 15304 15305 15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317 15318 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332 15333 15334 15335 15336 15337 15338 15339 15340 15341 15342 15343 15344 15345 15346 15347 15348 15349 15350 15351 15352 15353 15354 15355 15356 15357 15358 15359 15360 15361 15362 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385 15386 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400 15401 15402 15403 15404 15405 15406 15407 15408 15409 15410 15411 15412 15413 15414 15415 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425 15426 15427 15428 15429 15430 15431 15432 15433 15434 15435 15436 15437 15438 15439 15440 15441 15442 15443 15444 15445 15446 15447 15448 15449 15450 15451 15452 15453 15454 15455 15456 15457 15458 15459 15460 15461 15462 15463 15464 15465 15466 15467 15468 15469 15470 15471 15472 15473 15474 15475 15476 15477 15478 15479 15480 15481 15482 15483 15484 15485 15486 15487 15488 15489 15490 15491 15492 15493 15494 15495 15496 15497 15498 15499 15500 15501 15502 15503 15504 15505 15506 15507 15508 15509 15510 15511 15512 15513 15514 15515 15516 15517 15518 15519 15520 15521 15522 15523 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554 15555 15556 15557 15558 15559 15560 15561 15562 15563 15564 15565 15566 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578 15579 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597 15598 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625 15626 15627 15628 15629 15630 15631 15632 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650 15651 15652 15653 15654 15655 15656 15657 15658 15659 15660 15661 15662 15663 15664 15665 15666 15667 15668 15669 15670 15671 15672 15673 15674 15675 15676 15677 15678 15679 15680 15681 15682 15683 15684 15685 15686 15687 15688 15689 15690 15691 15692 15693 15694 15695 15696 15697 15698 15699 15700 15701 15702 15703 15704 15705 15706 15707 15708 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721 15722 15723 15724 15725 15726 15727 15728 15729 15730 15731 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 15748 15749 15750 15751 15752 15753 15754 15755 15756 15757 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785 15786 15787 15788 15789 15790 15791 15792 15793 15794 15795 15796 15797 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 15848 15849 15850 15851 15852 15853 15854 15855 15856 15857 15858 15859 15860 15861 15862 15863 15864 15865 15866 15867 15868 15869 15870 15871 15872 15873 15874 15875 15876 15877 15878 15879 15880 15881 15882 15883 15884 15885 15886 15887 15888 15889 15890 15891 15892 15893 15894 15895 15896 15897 15898 15899 15900 15901 15902 15903 15904 15905 15906 15907 15908 15909 15910 15911 15912 15913 15914 15915 15916 15917 15918 15919 15920 15921 15922 15923 15924 15925 15926 15927 15928 15929 15930 15931 15932 15933 15934 15935 15936 15937 15938 15939 15940 15941 15942 15943 15944 15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968 15969 15970 15971 15972 15973 15974 15975 15976 15977 15978 15979 15980 15981 15982 15983 15984 15985 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995 15996 15997 15998 15999 16000 16001 16002 16003 16004 16005 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021 16022 16023 16024 16025 16026 16027 16028 16029 16030 16031 16032 16033 16034 16035 16036 16037 16038 16039 16040 16041 16042 16043 16044 16045 16046 16047 16048 16049 16050 16051 16052 16053 16054 16055 16056 16057 16058 16059 16060 16061 16062 16063 16064 16065 16066 16067 16068 16069 16070 16071 16072 16073 16074 16075 16076 16077 16078 16079 16080 16081 16082 16083 16084 16085 16086 16087 16088 16089 16090 16091 16092 16093 16094 16095 16096 16097 16098 16099 16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145 16146 16147 16148 16149 16150 16151 16152 16153 16154 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165 16166 16167 16168 16169 16170 16171 16172 16173 16174 16175 16176 16177 16178 16179 16180 16181 16182 16183 16184 16185 16186 16187 16188 16189 16190 16191 16192 16193 16194 16195 16196 16197 16198 16199 16200 16201 16202 16203 16204 16205 16206 16207 16208 16209 16210 16211 16212 16213 16214 16215 16216 16217 16218 16219 16220 16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232 16233 16234 16235 16236 16237 16238 16239 16240 16241 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266 16267 16268 16269 16270 16271 16272 16273 16274 16275 16276 16277 16278 16279 16280 16281 16282 16283 16284 16285 16286 16287 16288 16289 16290 16291 16292 16293 16294 16295 16296 16297 16298 16299 16300 16301 16302 16303 16304 16305 16306 16307 16308 16309 16310 16311 16312 16313 16314 16315 16316 16317 16318 16319 16320 16321 16322 16323 16324 16325 16326 16327 16328 16329 16330 16331 16332 16333 16334 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349 16350 16351 16352 16353 16354 16355 16356 16357 16358 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387 16388 16389 16390 16391 16392 16393 16394 16395 16396 16397 16398 16399 16400 16401 16402 16403 16404 16405 16406 16407 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418 16419 16420 16421 16422 16423 16424 16425 16426 16427 16428 16429 16430 16431 16432 16433 16434 16435 16436 16437 16438 16439 16440 16441 16442 16443 16444 16445 16446 16447 16448 16449 16450 16451 16452 16453 16454 16455 16456 16457 16458 16459 16460 16461 16462 16463 16464 16465 16466 16467 16468 16469 16470 16471 16472 16473 16474 16475 16476 16477 16478 16479 16480 16481 16482 16483 16484 16485 16486 16487 16488 16489 16490 16491 16492 16493 16494 16495 16496 16497 16498 16499 16500 16501 16502 16503 16504 16505 16506 16507 16508 16509 16510 16511 16512 16513 16514 16515 16516 16517 16518 16519 16520 16521 16522 16523 16524 16525 16526 16527 16528 16529 16530 16531 16532 16533 16534 16535 16536 16537 16538 16539 16540 16541 16542 16543 16544 16545 16546 16547 16548 16549 16550 16551 16552 16553 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 16565 16566 16567 16568 16569 16570 16571 16572 16573 16574 16575 16576 16577 16578 16579 16580 16581 16582 16583 16584 16585 16586 16587 16588 16589 16590 16591 16592 16593 16594 16595 16596 16597 16598 16599 16600 16601 16602 16603 16604 16605 16606 16607 16608 16609 16610 16611 16612 16613 16614 16615 16616 16617 16618 16619 16620 16621 16622 16623 16624 16625 16626 16627 16628 16629 16630 16631 16632 16633 16634 16635 16636 16637 16638 16639 16640 16641 16642 16643 16644 16645 16646 16647 16648 16649 16650 16651 16652 16653 16654 16655 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669 16670 16671 16672 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 16683 16684 16685 16686 16687 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737 16738 16739 16740 16741 16742 16743 16744 16745 16746 16747 16748 16749 16750 16751 16752 16753 16754 16755 16756 16757 16758 16759 16760 16761 16762 16763 16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 16775 16776 16777 16778 16779 16780 16781 16782 16783 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793 16794 16795 16796 16797 16798 16799 16800 16801 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852 16853 16854 16855 16856 16857 16858 16859 16860 16861 16862 16863 16864 16865 16866 16867 16868 16869 16870 16871 16872 16873 16874 16875 16876 16877 16878 16879 16880 16881 16882 16883 16884 16885 16886 16887 16888 16889 16890 16891 16892 16893 16894 16895 16896 16897 16898 16899 16900 16901 16902 16903 16904 16905 16906 16907 16908 16909 16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092 17093 17094 17095 17096 17097 17098 17099 17100 17101 17102 17103 17104 17105 17106 17107 17108 17109 17110 17111 17112 17113 17114 17115 17116 17117 17118 17119 17120 17121 17122 17123 17124 17125 17126 17127 17128 17129 17130 17131 17132 17133 17134 17135 17136 17137 17138 17139 17140 17141 17142 17143 17144 17145 17146 17147 17148 17149 17150 17151 17152 17153 17154 17155 17156 17157 17158 17159 17160 17161 17162 17163 17164 17165 17166 17167 17168 17169 17170 17171 17172 17173 17174 17175 17176 17177 17178 17179 17180 17181 17182 17183 17184 17185 17186 17187 17188 17189 17190 17191 17192 17193 17194 17195 17196 17197 17198 17199 17200 17201 17202 17203 17204 17205 17206 17207 17208 17209 17210 17211 17212 17213 17214 17215 17216 17217 17218 17219 17220 17221 17222 17223 17224 17225 17226 17227 17228 17229 17230 17231 17232 17233 17234 17235 17236 17237 17238 17239 17240 17241 17242 17243 17244 17245 17246 17247 17248 17249 17250 17251 17252 17253 17254 17255 17256 17257 17258 17259 17260 17261 17262 17263 17264 17265 17266 17267 17268 17269 17270 17271 17272 17273 17274 17275 17276 17277 17278 17279 17280 17281 17282 17283 17284 17285 17286 17287 17288 17289 17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497 17498 17499 17500 17501 17502 17503 17504 17505 17506 17507 17508 17509 17510 17511 17512 17513 17514 17515 17516 17517 17518 17519 17520 17521 17522 17523 17524 17525 17526 17527 17528 17529 17530 17531 17532 17533 17534 17535 17536 17537 17538 17539 17540 17541 17542 17543 17544 17545 17546 17547 17548 17549 17550 17551 17552 17553 17554 17555 17556 17557 17558 17559 17560 17561 17562 17563 17564 17565 17566 17567 17568 17569 17570 17571 17572 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588 17589 17590 17591 17592 17593 17594 17595 17596 17597 17598 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 17609 17610 17611 17612 17613 17614 17615 17616 17617 17618 17619 17620 17621 17622 17623 17624 17625 17626 17627 17628 17629 17630 17631 17632 17633 17634 17635 17636 17637 17638 17639 17640 17641 17642 17643 17644 17645 17646 17647 17648 17649 17650 17651 17652 17653 17654 17655 17656 17657 17658 17659 17660 17661 17662 17663 17664 17665 17666 17667 17668 17669 17670 17671 17672 17673 17674 17675 17676 17677 17678 17679 17680 17681 17682 17683 17684 17685 17686 17687 17688 17689 17690 17691 17692 17693 17694 17695 17696 17697 17698 17699 17700 17701 17702 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712 17713 17714 17715 17716 17717 17718 17719 17720 17721 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 17736 17737 17738 17739 17740 17741 17742 17743 17744 17745 17746 17747 17748 17749 17750 17751 17752 17753 17754 17755 17756 17757 17758 17759 17760 17761 17762 17763 17764 17765 17766 17767 17768 17769 17770 17771 17772 17773 17774 17775 17776 17777 17778 17779 17780 17781 17782 17783 17784 17785 17786 17787 17788 17789 17790 17791 17792 17793 17794 17795 17796 17797 17798 17799 17800 17801 17802 17803 17804 17805 17806 17807 17808 17809 17810 17811 17812 17813 17814 17815 17816 17817 17818 17819 17820 17821 17822 17823 17824 17825 17826 17827 17828 17829 17830 17831 17832 17833 17834 17835 17836 17837 17838 17839 17840 17841 17842 17843 17844 17845 17846 17847 17848 17849 17850 17851 17852 17853 17854 17855 17856 17857 17858 17859 17860 17861 17862 17863 17864 17865 17866 17867 17868 17869 17870 17871 17872 17873 17874 17875 17876 17877 17878 17879 17880 17881 17882 17883 17884 17885 17886 17887 17888 17889 17890 17891 17892 17893 17894 17895 17896 17897 17898 17899 17900 17901 17902 17903 17904 17905 17906 17907 17908 17909 17910 17911 17912 17913 17914 17915 17916 17917 17918 17919 17920 17921 17922 17923 17924 17925 17926 17927 17928 17929 17930 17931 17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 17950 17951 17952 17953 17954 17955 17956 17957 17958 17959 17960 17961 17962 17963 17964 17965 17966 17967 17968 17969 17970 17971 17972 17973 17974 17975 17976 17977 17978 17979 17980 17981 17982 17983 17984 17985 17986 17987 17988 17989 17990 17991 17992 17993 17994 17995 17996 17997 17998 17999 18000 18001 18002 18003 18004 18005 18006 18007 18008 18009 18010 18011 18012 18013 18014 18015 18016 18017 18018 18019 18020 18021 18022 18023 18024 18025 18026 18027 18028 18029 18030 18031 18032 18033 18034 18035 18036 18037 18038 18039 18040 18041 18042 18043 18044 18045 18046 18047 18048 18049 18050 18051 18052 18053 18054 18055 18056 18057 18058 18059 18060 18061 18062 18063 18064 18065 18066 18067 18068 18069 18070 18071 18072 18073 18074 18075 18076 18077 18078 18079 18080 18081 18082 18083 18084 18085 18086 18087 18088 18089 18090 18091 18092 18093 18094 18095 18096 18097 18098 18099 18100 18101 18102 18103 18104 18105 18106 18107 18108 18109 18110 18111 18112 18113 18114 18115 18116 18117 18118 18119 18120 18121 18122 18123 18124 18125 18126 18127 18128 18129 18130 18131 18132 18133 18134 18135 18136 18137 18138 18139 18140 18141 18142 18143 18144 18145 18146 18147 18148 18149 18150 18151 18152 18153 18154 18155 18156 18157 18158 18159 18160 18161 18162 18163 18164 18165 18166 18167 18168 18169 18170 18171 18172 18173 18174 18175 18176 18177 18178 18179 18180 18181 18182 18183 18184 18185 18186 18187 18188 18189 18190 18191 18192 18193 18194 18195 18196 18197 18198 18199 18200 18201 18202 18203 18204 18205 18206 18207 18208 18209 18210 18211 18212 18213 18214 18215 18216 18217 18218 18219 18220 18221 18222 18223 18224 18225 18226 18227 18228 18229 18230 18231 18232 18233 18234 18235 18236 18237 18238 18239 18240 18241 18242 18243 18244 18245 18246 18247 18248 18249 18250 18251 18252 18253 18254 18255 18256 18257 18258 18259 18260 18261 18262 18263 18264 18265 18266 18267 18268 18269 18270 18271 18272 18273 18274 18275 18276 18277 18278 18279 18280 18281 18282 18283 18284 18285 18286 18287 18288 18289 18290 18291 18292 18293 18294 18295 18296 18297 18298 18299 18300 18301 18302 18303 18304 18305 18306 18307 18308 18309 18310 18311 18312 18313 18314 18315 18316 18317 18318 18319 18320 18321 18322 18323 18324 18325 18326 18327 18328 18329 18330 18331 18332 18333 18334 18335 18336 18337 18338 18339 18340 18341 18342 18343 18344 18345 18346 18347 18348 18349 18350 18351 18352 18353 18354 18355 18356 18357 18358 18359 18360 18361 18362 18363 18364 18365 18366 18367 18368 18369 18370 18371 18372 18373 18374 18375 18376 18377 18378 18379 18380 18381 18382 18383 18384 18385 18386 18387 18388 18389 18390 18391 18392 18393 18394 18395 18396 18397 18398 18399 18400 18401 18402 18403 18404 18405 18406 18407 18408 18409 18410 18411 18412 18413 18414 18415 18416 18417 18418 18419 18420 18421 18422 18423 18424 18425 18426 18427 18428 18429 18430 18431 18432 18433 18434 18435 18436 18437 18438 18439 18440 18441 18442 18443 18444 18445 18446 18447 18448 18449 18450 18451 18452 18453 18454 18455 18456 18457 18458 18459 18460 18461 18462 18463 18464 18465 18466 18467 18468 18469 18470 18471 18472 18473 18474 18475 18476 18477 18478 18479 18480 18481 18482 18483 18484 18485 18486 18487 18488 18489 18490 18491 18492 18493 18494 18495 18496 18497 18498 18499 18500 18501 18502 18503 18504 18505 18506 18507 18508 18509 18510 18511 18512 18513 18514 18515 18516 18517 18518 18519 18520 18521 18522 18523 18524 18525 18526 18527 18528 18529 18530 18531 18532 18533 18534 18535 18536 18537 18538 18539 18540 18541 18542 18543 18544 18545 18546 18547 18548 18549 18550 18551 18552 18553 18554 18555 18556 18557 18558 18559 18560 18561 18562 18563 18564 18565 18566 18567 18568 18569 18570 18571 18572 18573 18574 18575 18576 18577 18578 18579 18580 18581 18582 18583 18584 18585 18586 18587 18588 18589 18590 18591 18592 18593 18594 18595 18596 18597 18598 18599 18600 18601 18602 18603 18604 18605 18606 18607 18608 18609 18610 18611 18612 18613 18614 18615 18616 18617 18618 18619 18620 18621 18622 18623 18624 18625 18626 18627 18628 18629 18630 18631 18632 18633 18634 18635 18636 18637 18638 18639 18640 18641 18642 18643 18644 18645 18646 18647 18648 18649 18650 18651 18652 18653 18654 18655 18656 18657 18658 18659 18660 18661 18662 18663 18664 18665 18666 18667 18668 18669 18670 18671 18672 18673 18674 18675 18676 18677 18678 18679 18680 18681 18682 18683 18684 18685 18686 18687 18688 18689 18690 18691 18692 18693 18694 18695 18696 18697 18698 18699 18700 18701 18702 18703 18704 18705 18706 18707 18708 18709 18710 18711 18712 18713 18714 18715 18716 18717 18718 18719 18720 18721 18722 18723 18724 18725 18726 18727 18728 18729 18730 18731 18732 18733 18734 18735 18736 18737 18738 18739 18740 18741 18742 18743 18744 18745 18746 18747 18748 18749 18750 18751 18752 18753 18754 18755 18756 18757 18758 18759 18760 18761 18762 18763 18764 18765 18766 18767 18768 18769 18770 18771 18772 18773 18774 18775 18776 18777 18778 18779 18780 18781 18782 18783 18784 18785 18786 18787 18788 18789 18790 18791 18792 18793 18794 18795 18796 18797 18798 18799 18800 18801 18802 18803 18804 18805 18806 18807 18808 18809 18810 18811 18812 18813 18814 18815 18816 18817 18818 18819 18820 18821 18822 18823 18824 18825 18826 18827 18828 18829 18830 18831 18832 18833 18834 18835 18836 18837 18838 18839 18840 18841 18842 18843 18844 18845 18846 18847 18848 18849 18850 18851 18852 18853 18854 18855 18856 18857 18858 18859 18860 18861 18862 18863 18864 18865 18866 18867 18868 18869 18870 18871 18872 18873 18874 18875 18876 18877 18878 18879 18880 18881 18882 18883 18884 18885 18886 18887 18888 18889 18890 18891 18892 18893 18894 18895 18896 18897 18898 18899 18900 18901 18902 18903 18904 18905 18906 18907 18908 18909 18910 18911 18912 18913 18914 18915 18916 18917 18918 18919 18920 18921 18922 18923 18924 18925 18926 18927 18928 18929 18930 18931 18932 18933 18934 18935 18936 18937 18938 18939 18940 18941 18942 18943 18944 18945 18946 18947 18948 18949 18950 18951 18952 18953 18954 18955 18956 18957 18958 18959 18960 18961 18962 18963 18964 18965 18966 18967 18968 18969 18970 18971 18972 18973 18974 18975 18976 18977 18978 18979 18980 18981 18982 18983 18984 18985 18986 18987 18988 18989 18990 18991 18992 18993 18994 18995 18996 18997 18998 18999 19000 19001 19002 19003 19004 19005 19006 19007 19008 19009 19010 19011 19012 19013 19014 19015 19016 19017 19018 19019 19020 19021 19022 19023 19024 19025 19026 19027 19028 19029 19030 19031 19032 19033 19034 19035 19036 19037 19038 19039 19040 19041 19042 19043 19044 19045 19046 19047 19048 19049 19050 19051 19052 19053 19054 19055 19056 19057 19058 19059 19060 19061 19062 19063 19064 19065 19066 19067 19068 19069 19070 19071 19072 19073 19074 19075 19076 19077 19078 19079 19080 19081 19082 19083 19084 19085 19086 19087 19088 19089 19090 19091 19092 19093 19094 19095 19096 19097 19098 19099 19100 19101 19102 19103 19104 19105 19106 19107 19108 19109 19110 19111 19112 19113 19114 19115 19116 19117 19118 19119 19120 19121 19122 19123 19124 19125 19126 19127 19128 19129 19130 19131 19132 19133 19134 19135 19136 19137 19138 19139 19140 19141 19142 19143 19144 19145 19146 19147 19148 19149 19150 19151 19152 19153 19154 19155 19156 19157 19158 19159 19160 19161 19162 19163 19164 19165 19166 19167 19168 19169 19170 19171 19172 19173 19174 19175 19176 19177 19178 19179 19180 19181 19182 19183 19184 19185 19186 19187 19188 19189 19190 19191 19192 19193 19194 19195 19196 19197 19198 19199 19200 19201 19202 19203 19204 19205 19206 19207 19208 19209 19210 19211 19212 19213 19214 19215 19216 19217 19218 19219 19220 19221 19222 19223 19224 19225 19226 19227 19228 19229 19230 19231 19232 19233 19234 19235 19236 19237 19238 19239 19240 19241 19242 19243 19244 19245 19246 19247 19248 19249 19250 19251 19252 19253 19254 19255 19256 19257 19258 19259 19260 19261 19262 19263 19264 19265 19266 19267 19268 19269 19270 19271 19272 19273 19274 19275 19276 19277 19278 19279 19280 19281 19282 19283 19284 19285 19286 19287 19288 19289 19290 19291 19292 19293 19294 19295 19296 19297 19298 19299 19300 19301 19302 19303 19304 19305 19306 19307 19308 19309 19310 19311 19312 19313 19314 19315 19316 19317 19318 19319 19320 19321 19322 19323 19324 19325 19326 19327 19328 19329 19330 19331 19332 19333 19334 19335 19336 19337 19338 19339 19340 19341 19342 19343 19344 19345 19346 19347 19348 19349 19350 19351 19352 19353 19354 19355 19356 19357 19358 19359 19360 19361 19362 19363 19364 19365 19366 19367 19368 19369 19370 19371 19372 19373 19374 19375 19376 19377 19378 19379 19380 19381 19382 19383 19384 19385 19386 19387 19388 19389 19390 19391 19392 19393 19394 19395 19396 19397 19398 19399 19400 19401 19402 19403 19404 19405 19406 19407 19408 19409 19410 19411 19412 19413 19414 19415 19416 19417 19418 19419 19420 19421 19422 19423 19424 19425 19426 19427 19428 19429 19430 19431 19432 19433 19434 19435 19436 19437 19438 19439 19440 19441 19442 19443 19444 19445 19446 19447 19448 19449 19450 19451 19452 19453 19454 19455 19456 19457 19458 19459 19460 19461 19462 19463 19464 19465 19466 19467 19468 19469 19470 19471 19472 19473 19474 19475 19476 19477 19478 19479 19480 19481 19482 19483 19484 19485 19486 19487 19488 19489 19490 19491 19492 19493 19494 19495 19496 19497 19498 19499 19500 19501 19502 19503 19504 19505 19506 19507 19508 19509 19510 19511 19512 19513 19514 19515 19516 19517 19518 19519 19520 19521 19522 19523 19524 19525 19526 19527 19528 19529 19530 19531 19532 19533 19534 19535 19536 19537 19538 19539 19540 19541 19542 19543 19544 19545 19546 19547 19548 19549 19550 19551 19552 19553 19554 19555 19556 19557 19558 19559 19560 19561 19562 19563 19564 19565 19566 19567 19568 19569 19570 19571 19572 19573 19574 19575 19576 19577 19578 19579 19580 19581 19582 19583 19584 19585 19586 19587 19588 19589 19590 19591 19592 19593 19594 19595 19596 19597 19598 19599 19600 19601 19602 19603 19604 19605 19606 19607 19608 19609 19610 19611 19612 19613 19614 19615 19616 19617 19618 19619 19620 19621 19622 19623 19624 19625 19626 19627 19628 19629 19630 19631 19632 19633 19634 19635 19636 19637 19638 19639 19640 19641 19642 19643 19644 19645 19646 19647 19648 19649 19650 19651 19652 19653 19654 19655 19656 19657 19658 19659 19660 19661 19662 19663 19664 19665 19666 19667 19668 19669 19670 19671 19672 19673 19674 19675 19676 19677 19678 19679 19680 19681 19682 19683 19684 19685 19686 19687 19688 19689 19690 19691 19692 19693 19694 19695 19696 19697 19698 19699 19700 19701 19702 19703 19704 19705 19706 19707 19708 19709 19710 19711 19712 19713 19714 19715 19716 19717 19718 19719 19720 19721 19722 19723 19724 19725 19726 19727 19728 19729 19730 19731 19732 19733 19734 19735 19736 19737 19738 19739 19740 19741 19742 19743 19744 19745 19746 19747 19748 19749 19750 19751 19752 19753 19754 19755 19756 19757 19758 19759 19760 19761 19762 19763 19764 19765 19766 19767 19768 19769 19770 19771 19772 19773 19774 19775 19776 19777 19778 19779 19780 19781 19782 19783 19784 19785 19786 19787 19788 19789 19790 19791 19792 19793 19794 19795 19796 19797 19798 19799 19800 19801 19802 19803 19804 19805 19806 19807 19808 19809 19810 19811 19812 19813 19814 19815 19816 19817 19818 19819 19820 19821 19822 19823 19824 19825 19826 19827 19828 19829 19830 19831 19832 19833 19834 19835 19836 19837 19838 19839 19840 19841 19842 19843 19844 19845 19846 19847 19848 19849 19850 19851 19852 19853 19854 19855 19856 19857 19858 19859 19860 19861 19862 19863 19864 19865 19866 19867 19868 19869 19870 19871 19872 19873 19874 19875 19876 19877 19878 19879 19880 19881 19882 19883 19884 19885 19886 19887 19888 19889 19890 19891 19892 19893 19894 19895 19896 19897 19898 19899 19900 19901 19902 19903 19904 19905 19906 19907 19908 19909 19910 19911 19912 19913 19914 19915 19916 19917 19918 19919 19920 19921 19922 19923 19924 19925 19926 19927 19928 19929 19930 19931 19932 19933 19934 19935 19936 19937 19938 19939 19940 19941 19942 19943 19944 19945 19946 19947 19948 19949 19950 19951 19952 19953 19954 19955 19956 19957 19958 19959 19960 19961 19962 19963 19964 19965 19966 19967 19968 19969 19970 19971 19972 19973 19974 19975 19976 19977 19978 19979 19980 19981 19982 19983 19984 19985 19986 19987 19988 19989 19990 19991 19992 19993 19994 19995 19996 19997 19998 19999 20000 20001 20002 20003 20004 20005 20006 20007 20008 20009 20010 20011 20012 20013 20014 20015 20016 20017 20018 20019 20020 20021 20022 20023 20024 20025 20026 20027 20028 20029 20030 20031 20032 20033 20034 20035 20036 20037 20038 20039 20040 20041 20042 20043 20044 20045 20046 20047 20048 20049 20050 20051 20052 20053 20054 20055 20056 20057 20058 20059 20060 20061 20062 20063 20064 20065 20066 20067 20068 20069 20070 20071 20072 20073 20074 20075 20076 20077 20078 20079 20080 20081 20082 20083 20084 20085 20086 20087 20088 20089 20090 20091 20092 20093 20094 20095 20096 20097 20098 20099 20100 20101 20102 20103 20104 20105 20106 20107 20108 20109 20110 20111 20112 20113 20114 20115 20116 20117 20118 20119 20120 20121 20122 20123 20124 20125 20126 20127 20128 20129 20130 20131 20132 20133 20134 20135 20136 20137 20138 20139 20140 20141 20142 20143 20144 20145 20146 20147 20148 20149 20150 20151 20152 20153 20154 20155 20156 20157 20158 20159 20160 20161 20162 20163 20164 20165 20166 20167 20168 20169 20170 20171 20172 20173 20174 20175 20176 20177 20178 20179 20180 20181 20182 20183 20184 20185 20186 20187 20188 20189 20190 20191 20192 20193 20194 20195 20196 20197 20198 20199 20200 20201 20202 20203 20204 20205 20206 20207 20208 20209 20210 20211 20212 20213 20214 20215 20216 20217 20218 20219 20220 20221 20222 20223 20224 20225 20226 20227 20228 20229 20230 20231 20232 20233 20234 20235 20236 20237 20238 20239 20240 20241 20242 20243 20244 20245 20246 20247 20248 20249 20250 20251 20252 20253 20254 20255 20256 20257 20258 20259 20260 20261 20262 20263 20264 20265 20266 20267 20268 20269 20270 20271 20272 20273 20274 20275 20276 20277 20278 20279 20280 20281 20282 20283 20284 20285 20286 20287 20288 20289 20290 20291 20292 20293 20294 20295 20296 20297 20298 20299 20300 20301 20302 20303 20304 20305 20306 20307 20308 20309 20310 20311 20312 20313 20314 20315 20316 20317 20318 20319 20320 20321 20322 20323 20324 20325 20326 20327 20328 20329 20330 20331 20332 20333 20334 20335 20336 20337 20338 20339 20340 20341 20342 20343 20344 20345 20346 20347 20348 20349 20350 20351 20352 20353 20354 20355 20356 20357 20358 20359 20360 20361 20362 20363 20364 20365 20366 20367 20368 20369 20370 20371 20372 20373 20374 20375 20376 20377 20378 20379 20380 20381 20382 20383 20384 20385 20386 20387 20388 20389 20390 20391 20392 20393 20394 20395 20396 20397 20398 20399 20400 20401 20402 20403 20404 20405 20406 20407 20408 20409 20410 20411 20412 20413 20414 20415 20416 20417 20418 20419 20420 20421 20422 20423 20424 20425 20426 20427 20428 20429 20430 20431 20432 20433 20434 20435 20436 20437 20438 20439 20440 20441 20442 20443 20444 20445 20446 20447 20448 20449 20450 20451 20452 20453 20454 20455 20456 20457 20458 20459 20460 20461 20462 20463 20464 20465 20466 20467 20468 20469 20470 20471 20472 20473 20474 20475 20476 20477 20478 20479 20480 20481 20482 20483 20484 20485 20486 20487 20488 20489 20490 20491 20492 20493 20494 20495 20496 20497 20498 20499 20500 20501 20502 20503 20504 20505 20506 20507 20508 20509 20510 20511 20512 20513 20514 20515 20516 20517 20518 20519 20520 20521 20522 20523 20524 20525 20526 20527 20528 20529 20530 20531 20532 20533 20534 20535 20536 20537 20538 20539 20540 20541 20542 20543 20544 20545 20546 20547 20548 20549 20550 20551 20552 20553 20554 20555 20556 20557 20558 20559 20560 20561 20562 20563 20564 20565 20566 20567 20568 20569 20570 20571 20572 20573 20574 20575 20576 20577 20578 20579 20580 20581 20582 20583 20584 20585 20586 20587 20588 20589 20590 20591 20592 20593 20594 20595 20596 20597 20598 20599 20600 20601 20602 20603 20604 20605 20606 20607 20608 20609 20610 20611 20612 20613 20614 20615 20616 20617 20618 20619 20620 20621 20622 20623 20624 20625 20626 20627 20628 20629 20630 20631 20632 20633 20634 20635 20636 20637 20638 20639 20640 20641 20642 20643 20644 20645 20646 20647 20648 20649 20650 20651 20652 20653 20654 20655 20656 20657 20658 20659 20660 20661 20662 20663 20664 20665 20666 20667 20668 20669 20670 20671 20672 20673 20674 20675 20676 20677 20678 20679 20680 20681 20682 20683 20684 20685 20686 20687 20688 20689 20690 20691 20692 20693 20694 20695 20696 20697 20698 20699 20700 20701 20702 20703 20704 20705 20706 20707 20708 20709 20710 20711 20712 20713 20714 20715 20716 20717 20718 20719 20720 20721 20722 20723 20724 20725 20726 20727 20728 20729 20730 20731 20732 20733 20734 20735 20736 20737 20738 20739 20740 20741 20742 20743 20744 20745 20746 20747 20748 20749 20750 20751 20752 20753 20754 20755 20756 20757 20758 20759 20760 20761 20762 20763 20764 20765 20766 20767 20768 20769 20770 20771 20772 20773 20774 20775 20776 20777 20778 20779 20780 20781 20782 20783 20784 20785 20786 20787 20788 20789 20790 20791 20792 20793 20794 20795 20796 20797 20798 20799 20800 20801 20802 20803 20804 20805 20806 20807 20808 20809 20810 20811 20812 20813 20814 20815 20816 20817 20818 20819 20820 20821 20822 20823 20824 20825 20826 20827 20828 20829 20830 20831 20832 20833 20834 20835 20836 20837 20838 20839 20840 20841 20842 20843 20844 20845 20846 20847 20848 20849 20850 20851 20852 20853 20854 20855 20856 20857 20858 20859 20860 20861 20862 20863 20864 20865 20866 20867 20868 20869 20870 20871 20872 20873 20874 20875 20876 20877 20878 20879 20880 20881 20882 20883 20884 20885 20886 20887 20888 20889 20890 20891 20892 20893 20894 20895 20896 20897 20898 20899 20900 20901 20902 20903 20904 20905 20906 20907 20908 20909 20910 20911 20912 20913 20914 20915 20916 20917 20918 20919 20920 20921 20922 20923 20924 20925 20926 20927 20928 20929 20930 20931 20932 20933 20934 20935 20936 20937 20938 20939 20940 20941 20942 20943 20944 20945 20946 20947 20948 20949 20950 20951 20952 20953 20954 20955 20956 20957 20958 20959 20960 20961 20962 20963 20964 20965 20966 20967 20968 20969 20970 20971 20972 20973 20974 20975 20976 20977 20978 20979 20980 20981 20982 20983 20984 20985 20986 20987 20988 20989 20990 20991 20992 20993 20994 20995 20996 20997 20998 20999 21000 21001 21002 21003 21004 21005 21006 21007 21008 21009 21010 21011 21012 21013 21014 21015 21016 21017 21018 21019 21020 21021 21022 21023 21024 21025 21026 21027 21028 21029 21030 21031 21032 21033 21034 21035 21036 21037 21038 21039 21040 21041 21042 21043 21044 21045 21046 21047 21048 21049 21050 21051 21052 21053 21054 21055 21056 21057 21058 21059 21060 21061 21062 21063 21064 21065 21066 21067 21068 21069 21070 21071 21072 21073 21074 21075 21076 21077 21078 21079 21080 21081 21082 21083 21084 21085 21086 21087 21088 21089 21090 21091 21092 21093 21094 21095 21096 21097 21098 21099 21100 21101 21102 21103 21104 21105 21106 21107 21108 21109 21110 21111 21112 21113 21114 21115 21116 21117 21118 21119 21120 21121 21122 21123 21124 21125 21126 21127 21128 21129 21130 21131 21132 21133 21134 21135 21136 21137 21138 21139 21140 21141 21142 21143 21144 21145 21146 21147 21148 21149 21150 21151 21152 21153 21154 21155 21156 21157 21158 21159 21160 21161 21162 21163 21164 21165 21166 21167 21168 21169 21170 21171 21172 21173 21174 21175 21176 21177 21178 21179 21180 21181 21182 21183 21184 21185 21186 21187 21188 21189 21190 21191 21192 21193 21194 21195 21196 21197 21198 21199 21200 21201 21202 21203 21204 21205 21206 21207 21208 21209 21210 21211 21212 21213 21214 21215 21216 21217 21218 21219 21220 21221 21222 21223 21224 21225 21226 21227 21228 21229 21230 21231 21232 21233 21234 21235 21236 21237 21238 21239 21240 21241 21242 21243 21244 21245 21246 21247 21248 21249 21250 21251 21252 21253 21254 21255 21256 21257 21258 21259 21260 21261 21262 21263 21264 21265 21266 21267 21268 21269 21270 21271 21272 21273 21274 21275 21276 21277 21278 21279 21280 21281 21282 21283 21284 21285 21286 21287 21288 21289 21290 21291 21292 21293 21294 21295 21296 21297 21298 21299 21300 21301 21302 21303 21304 21305 21306 21307 21308 21309 21310 21311 21312 21313 21314 21315 21316 21317 21318 21319 21320 21321 21322 21323 21324 21325 21326 21327 21328 21329 21330 21331 21332 21333 21334 21335 21336 21337 21338 21339 21340 21341 21342 21343 21344 21345 21346 21347 21348 21349 21350 21351 21352 21353 21354 21355 21356 21357 21358 21359 21360 21361 21362 21363 21364 21365 21366 21367 21368 21369 21370 21371 21372 21373 21374 21375 21376 21377 21378 21379 21380 21381 21382 21383 21384 21385 21386 21387 21388 21389 21390 21391 21392 21393 21394 21395 21396 21397 21398 21399 21400 21401 21402 21403 21404 21405 21406 21407 21408 21409 21410 21411 21412 21413 21414 21415 21416 21417 21418 21419 21420 21421 21422 21423 21424 21425 21426 21427 21428 21429 21430 21431 21432 21433 21434 21435 21436 21437 21438 21439 21440 21441 21442 21443 21444 21445 21446 21447 21448 21449 21450 21451 21452 21453 21454 21455 21456 21457 21458 21459 21460 21461 21462 21463 21464 21465 21466 21467 21468 21469 21470 21471 21472 21473 21474 21475 21476 21477 21478 21479 21480 21481 21482 21483 21484 21485 21486 21487 21488 21489 21490 21491 21492 21493 21494 21495 21496 21497 21498 21499 21500 21501 21502 21503 21504 21505 21506 21507 21508 21509 21510 21511 21512 21513 21514 21515 21516 21517 21518 21519 21520 21521 21522 21523 21524 21525 21526 21527 21528 21529 21530 21531 21532 21533 21534 21535 21536 21537 21538 21539 21540 21541 21542 21543 21544 21545 21546 21547 21548 21549 21550 21551 21552 21553 21554 21555 21556 21557 21558 21559 21560 21561 21562 21563 21564 21565 21566 21567 21568 21569 21570 21571 21572 21573 21574 21575 21576 21577 21578 21579 21580 21581 21582 21583 21584 21585 21586 21587 21588 21589 21590 21591 21592 21593 21594 21595 21596 21597 21598 21599 21600 21601 21602 21603 21604 21605 21606 21607 21608 21609 21610 21611 21612 21613 21614 21615 21616 21617 21618 21619 21620 21621 21622 21623 21624 21625 21626 21627 21628 21629 21630 21631 21632 21633 21634 21635 21636 21637 21638 21639 21640 21641 21642 21643 21644 21645 21646 21647 21648 21649 21650 21651 21652 21653 21654 21655 21656 21657 21658 21659 21660 21661 21662 21663 21664 21665 21666 21667 21668 21669 21670 21671 21672 21673 21674 21675 21676 21677 21678 21679 21680 21681 21682 21683 21684 21685 21686 21687 21688 21689 21690 21691 21692 21693 21694 21695 21696 21697 21698 21699 21700 21701 21702 21703 21704 21705 21706 21707 21708 21709 21710 21711 21712 21713 21714 21715 21716 21717 21718 21719 21720 21721 21722 21723 21724 21725 21726 21727 21728 21729 21730 21731 21732 21733 21734 21735 21736 21737 21738 21739 21740 21741 21742 21743 21744 21745 21746 21747 21748 21749 21750 21751 21752 21753 21754 21755 21756 21757 21758 21759 21760 21761 21762 21763 21764 21765 21766 21767 21768 21769 21770 21771 21772 21773 21774 21775 21776 21777 21778 21779 21780 21781 21782 21783 21784 21785 21786 21787 21788 21789 21790 21791 21792 21793 21794 21795 21796 21797 21798 21799 21800 21801 21802 21803 21804 21805 21806 21807 21808 21809 21810 21811 21812 21813 21814 21815 21816 21817 21818 21819 21820 21821 21822 21823 21824 21825 21826 21827 21828 21829 21830 21831 21832 21833 21834 21835 21836 21837 21838 21839 21840 21841 21842 21843 21844 21845 21846 21847 21848 21849 21850 21851 21852 21853 21854 21855 21856 21857 21858 21859 21860 21861 21862 21863 21864 21865 21866 21867 21868 21869 21870 21871 21872 21873 21874 21875 21876 21877 21878 21879 21880 21881 21882 21883 21884 21885 21886 21887 21888 21889 21890 21891 21892 21893 21894 21895 21896 21897 21898 21899 21900 21901 21902 21903 21904 21905 21906 21907 21908 21909 21910 21911 21912 21913 21914 21915 21916 21917 21918 21919 21920 21921 21922 21923 21924 21925 21926 21927 21928 21929 21930 21931 21932 21933 21934 21935 21936 21937 21938 21939 21940 21941 21942 21943 21944 21945 21946 21947 21948 21949 21950 21951 21952 21953 21954 21955 21956 21957 21958 21959 21960 21961 21962 21963 21964 21965 21966 21967 21968 21969 21970 21971 21972 21973 21974 21975 21976 21977 21978 21979 21980 21981 21982 21983 21984 21985 21986 21987 21988 21989 21990 21991 21992 21993 21994 21995 21996 21997 21998 21999 22000 22001 22002 22003 22004 22005 22006 22007 22008 22009 22010 22011 22012 22013 22014 22015 22016 22017 22018 22019 22020 22021 22022 22023 22024 22025 22026 22027 22028 22029 22030 22031 22032 22033 22034 22035 22036 22037 22038 22039 22040 22041 22042 22043 22044 22045 22046 22047 22048 22049 22050 22051 22052 22053 22054 22055 22056 22057 22058 22059 22060 22061 22062 22063 22064 22065 22066 22067 22068 22069 22070 22071 22072 22073 22074 22075 22076 22077 22078 22079 22080 22081 22082 22083 22084 22085 22086 22087 22088 22089 22090 22091 22092 22093 22094 22095 22096 22097 22098 22099 22100 22101 22102 22103 22104 22105 22106 22107 22108 22109 22110 22111 22112 22113 22114 22115 22116 22117 22118 22119 22120 22121 22122 22123 22124 22125 22126 22127 22128 22129 22130 22131 22132 22133 22134 22135 22136 22137 22138 22139 22140 22141 22142 22143 22144 22145 22146 22147 22148 22149 22150 22151 22152 22153 22154 22155 22156 22157 22158 22159 22160 22161 22162 22163 22164 22165 22166 22167 22168 22169 22170 22171 22172 22173 22174 22175 22176 22177 22178 22179 22180 22181 22182 22183 22184 22185 22186 22187 22188 22189 22190 22191 22192 22193 22194 22195 22196 22197 22198 22199 22200 22201 22202 22203 22204 22205 22206 22207 22208 22209 22210 22211 22212 22213 22214 22215 22216 22217 22218 22219 22220 22221 22222 22223 22224 22225 22226 22227 22228 22229 22230 22231 22232 22233 22234 22235 22236 22237 22238 22239 22240 22241 22242 22243 22244 22245 22246 22247 22248 22249 22250 22251 22252 22253 22254 22255 22256 22257 22258 22259 22260 22261 22262 22263 22264 22265 22266 22267 22268 22269 22270 22271 22272 22273 22274 22275 22276 22277 22278 22279 22280 22281 22282 22283 22284 22285 22286 22287 22288 22289 22290 22291 22292 22293 22294 22295 22296 22297 22298 22299 22300 22301 22302 22303 22304 22305 22306 22307 22308 22309 22310 22311 22312 22313 22314 22315 22316 22317 22318 22319 22320 22321 22322 22323 22324 22325 22326 22327 22328 22329 22330 22331 22332 22333 22334 22335 22336 22337 22338 22339 22340 22341 22342 22343 22344 22345 22346 22347 22348 22349 22350 22351 22352 22353 22354 22355 22356 22357 22358 22359 22360 22361 22362 22363 22364 22365 22366 22367 22368 22369 22370 22371 22372 22373 22374 22375 22376 22377 22378 22379 22380 22381 22382 22383 22384 22385 22386 22387 22388 22389 22390 22391 22392 22393 22394 22395 22396 22397 22398 22399 22400 22401 22402 22403 22404 22405 22406 22407 22408 22409 22410 22411 22412 22413 22414 22415 22416 22417 22418 22419 22420 22421 22422 22423 22424 22425 22426 22427 22428 22429 22430 22431 22432 22433 22434 22435 22436 22437 22438 22439 22440 22441 22442 22443 22444 22445 22446 22447 22448 22449 22450 22451 22452 22453 22454 22455 22456 22457 22458 22459 22460 22461 22462 22463 22464 22465 22466 22467 22468 22469 22470 22471 22472 22473 22474 22475 22476 22477 22478 22479 22480 22481 22482 22483 22484 22485 22486 22487 22488 22489 22490 22491 22492 22493 22494 22495 22496 22497 22498 22499 22500 22501 22502 22503 22504 22505 22506 22507 22508 22509 22510 22511 22512 22513 22514 22515 22516 22517 22518 22519 22520 22521 22522 22523 22524 22525 22526 22527 22528 22529 22530 22531 22532 22533 22534 22535 22536 22537 22538 22539 22540 22541 22542 22543 22544 22545 22546 22547 22548 22549 22550 22551 22552 22553 22554 22555 22556 22557 22558 22559 22560 22561 22562 22563 22564 22565 22566 22567 22568 22569 22570 22571 22572 22573 22574 22575 22576 22577 22578 22579 22580 22581 22582 22583 22584 22585 22586 22587 22588 22589 22590 22591 22592 22593 22594 22595 22596 22597 22598 22599 22600 22601 22602 22603 22604 22605 22606 22607 22608 22609 22610 22611 22612 22613 22614 22615 22616 22617 22618 22619 22620 22621 22622 22623 22624 22625 22626 22627 22628 22629 22630 22631 22632 22633 22634 22635 22636 22637 22638 22639 22640 22641 22642 22643 22644 22645 22646 22647 22648 22649 22650 22651 22652 22653 22654 22655 22656 22657 22658 22659 22660 22661 22662 22663 22664 22665 22666 22667 22668 22669 22670 22671 22672 22673 22674 22675 22676 22677 22678 22679 22680 22681 22682 22683 22684 22685 22686 22687 22688 22689 22690 22691 22692 22693 22694 22695 22696 22697 22698 22699 22700 22701 22702 22703 22704 22705 22706 22707 22708 22709 22710 22711 22712 22713 22714 22715 22716 22717 22718 22719 22720 22721 22722 22723 22724 22725 22726 22727 22728 22729 22730 22731 22732 22733 22734 22735 22736 22737 22738 22739 22740 22741 22742 22743 22744 22745 22746 22747 22748 22749 22750 22751 22752 22753 22754 22755 22756 22757 22758 22759 22760 22761 22762 22763 22764 22765 22766 22767 22768 22769 22770 22771 22772 22773 22774 22775 22776 22777 22778 22779 22780 22781 22782 22783 22784 22785 22786 22787 22788 22789 22790 22791 22792 22793 22794 22795 22796 22797 22798 22799 22800 22801 22802 22803 22804 22805 22806 22807 22808 22809 22810 22811 22812 22813 22814 22815 22816 22817 22818 22819 22820 22821 22822 22823 22824 22825 22826 22827 22828 22829 22830 22831 22832 22833 22834 22835 22836 22837 22838 22839 22840 22841 22842 22843 22844 22845 22846 22847 22848 22849 22850 22851 22852 22853 22854 22855 22856 22857 22858 22859 22860 22861 22862 22863 22864 22865 22866 22867 22868 22869 22870 22871 22872 22873 22874 22875 22876 22877 22878 22879 22880 22881 22882 22883 22884 22885 22886 22887 22888 22889 22890 22891 22892 22893 22894 22895 22896 22897 22898 22899 22900 22901 22902 22903 22904 22905 22906 22907 22908 22909 22910 22911 22912 22913 22914 22915 22916 22917 22918 22919 22920 22921 22922 22923 22924 22925 22926 22927 22928 22929 22930 22931 22932 22933 22934 22935 22936 22937 22938 22939 22940 22941 22942 22943 22944 22945 22946 22947 22948 22949 22950 22951 22952 22953 22954 22955 22956 22957 22958 22959 22960 22961 22962 22963 22964 22965 22966 22967 22968 22969 22970 22971 22972 22973 22974 22975 22976 22977 22978 22979 22980 22981 22982 22983 22984 22985 22986 22987 22988 22989 22990 22991 22992 22993 22994 22995 22996 22997 22998 22999 23000 23001 23002 23003 23004 23005 23006 23007 23008 23009 23010 23011 23012 23013 23014 23015 23016 23017 23018 23019 23020 23021 23022 23023 23024 23025 23026 23027 23028 23029 23030 23031 23032 23033 23034 23035 23036 23037 23038 23039 23040 23041 23042 23043 23044 23045 23046 23047 23048 23049 23050 23051 23052 23053 23054 23055 23056 23057 23058 23059 23060 23061 23062 23063 23064 23065 23066 23067 23068 23069 23070 23071 23072 23073 23074 23075 23076 23077 23078 23079 23080 23081 23082 23083 23084 23085 23086 23087 23088 23089 23090 23091 23092 23093 23094 23095 23096 23097 23098 23099 23100 23101 23102 23103 23104 23105 23106 23107 23108 23109 23110 23111 23112 23113 23114 23115 23116 23117 23118 23119 23120 23121 23122 23123 23124 23125 23126 23127 23128 23129 23130 23131 23132 23133 23134 23135 23136 23137 23138 23139 23140 23141 23142 23143 23144 23145 23146 23147 23148 23149 23150 23151 23152 23153 23154 23155 23156 23157 23158 23159 23160 23161 23162 23163 23164 23165 23166 23167 23168 23169 23170 23171 23172 23173 23174 23175 23176 23177 23178 23179 23180 23181 23182 23183 23184 23185 23186 23187 23188 23189 23190 23191 23192 23193 23194 23195 23196 23197 23198 23199 23200 23201 23202 23203 23204 23205 23206 23207 23208 23209 23210 23211 23212 23213 23214 23215 23216 23217 23218 23219 23220 23221 23222 23223 23224 23225 23226 23227 23228 23229 23230 23231 23232 23233 23234 23235 23236 23237 23238 23239 23240 23241 23242 23243 23244 23245 23246 23247 23248 23249 23250 23251 23252 23253 23254 23255 23256 23257 23258 23259 23260 23261 23262 23263 23264 23265 23266 23267 23268 23269 23270 23271 23272 23273 23274 23275 23276 23277 23278 23279 23280 23281 23282 23283 23284 23285 23286 23287 23288 23289 23290 23291 23292 23293 23294 23295 23296 23297 23298 23299 23300 23301 23302 23303 23304 23305 23306 23307 23308 23309 23310 23311 23312 23313 23314 23315 23316 23317 23318 23319 23320 23321 23322 23323 23324 23325 23326 23327 23328 23329 23330 23331 23332 23333 23334 23335 23336 23337 23338 23339 23340 23341 23342 23343 23344 23345 23346 23347 23348 23349 23350 23351 23352 23353 23354 23355 23356 23357 23358 23359 23360 23361 23362 23363 23364 23365 23366 23367 23368 23369 23370 23371 23372 23373 23374 23375 23376 23377 23378 23379 23380 23381 23382 23383 23384 23385 23386 23387 23388 23389 23390 23391 23392 23393 23394 23395 23396 23397 23398 23399 23400 23401 23402 23403 23404 23405 23406 23407 23408 23409 23410 23411 23412 23413 23414 23415 23416 23417 23418 23419 23420 23421 23422 23423 23424 23425 23426 23427 23428 23429 23430 23431 23432 23433 23434 23435 23436 23437 23438 23439 23440 23441 23442 23443 23444 23445 23446 23447 23448 23449 23450 23451 23452 23453 23454 23455 23456 23457 23458 23459 23460 23461 23462 23463 23464 23465 23466 23467 23468 23469 23470 23471 23472 23473 23474 23475 23476 23477 23478 23479 23480 23481 23482 23483 23484 23485 23486 23487 23488 23489 23490 23491 23492 23493 23494 23495 23496 23497 23498 23499 23500 23501 23502 23503 23504 23505 23506 23507 23508 23509 23510 23511 23512 23513 23514 23515 23516 23517 23518 23519 23520 23521 23522 23523 23524 23525 23526 23527 23528 23529 23530 23531 23532 23533 23534 23535 23536 23537 23538 23539 23540 23541 23542 23543 23544 23545 23546 23547 23548 23549 23550 23551 23552 23553 23554 23555 23556 23557 23558 23559 23560 23561 23562 23563 23564 23565 23566 23567 23568 23569 23570 23571 23572 23573 23574 23575 23576 23577 23578 23579 23580 23581 23582 23583 23584 23585 23586 23587 23588 23589 23590 23591 23592 23593 23594 23595 23596 23597 23598 23599 23600 23601 23602 23603 23604 23605 23606 23607 23608 23609 23610 23611 23612 23613 23614 23615 23616 23617 23618 23619 23620 23621 23622 23623 23624 23625 23626 23627 23628 23629 23630 23631 23632 23633 23634 23635 23636 23637 23638 23639 23640 23641 23642 23643 23644 23645 23646 23647 23648 23649 23650 23651 23652 23653 23654 23655 23656 23657 23658 23659 23660 23661 23662 23663 23664 23665 23666 23667 23668 23669 23670 23671 23672 23673 23674 23675 23676 23677 23678 23679 23680 23681 23682 23683 23684 23685 23686 23687 23688 23689 23690 23691 23692 23693 23694 23695 23696 23697 23698 23699 23700 23701 23702 23703 23704 23705 23706 23707 23708 23709 23710 23711 23712 23713 23714 23715 23716 23717 23718 23719 23720 23721 23722 23723 23724 23725 23726 23727 23728 23729 23730 23731 23732 23733 23734 23735 23736 23737 23738 23739 23740 23741 23742 23743 23744 23745 23746 23747 23748 23749 23750 23751 23752 23753 23754 23755 23756 23757 23758 23759 23760 23761 23762 23763 23764 23765 23766 23767 23768 23769 23770 23771 23772 23773 23774 23775 23776 23777 23778 23779 23780 23781 23782 23783 23784 23785 23786 23787 23788 23789 23790 23791 23792 23793 23794 23795 23796 23797 23798 23799 23800 23801 23802 23803 23804 23805 23806 23807 23808 23809 23810 23811 23812 23813 23814 23815 23816 23817 23818 23819 23820 23821 23822 23823 23824 23825 23826 23827 23828 23829 23830 23831 23832 23833 23834 23835 23836 23837 23838 23839 23840 23841 23842 23843 23844 23845 23846 23847 23848 23849 23850 23851 23852 23853 23854 23855 23856 23857 23858 23859 23860 23861 23862 23863 23864 23865 23866 23867 23868 23869 23870 23871 23872 23873 23874 23875 23876 23877 23878 23879 23880 23881 23882 23883 23884 23885 23886 23887 23888 23889 23890 23891 23892 23893 23894 23895 23896 23897 23898 23899 23900 23901 23902 23903 23904 23905 23906 23907 23908 23909 23910 23911 23912 23913 23914 23915 23916 23917 23918 23919 23920 23921 23922 23923 23924 23925 23926 23927 23928 23929 23930 23931 23932 23933 23934 23935 23936 23937 23938 23939 23940 23941 23942 23943 23944 23945 23946 23947 23948 23949 23950 23951 23952 23953 23954 23955 23956 23957 23958 23959 23960 23961 23962 23963 23964 23965 23966 23967 23968 23969 23970 23971 23972 23973 23974 23975 23976 23977 23978 23979 23980 23981 23982 23983 23984 23985 23986 23987 23988 23989 23990 23991 23992 23993 23994 23995 23996 23997 23998 23999 24000 24001 24002 24003 24004 24005 24006 24007 24008 24009 24010 24011 24012 24013 24014 24015 24016 24017 24018 24019 24020 24021 24022 24023 24024 24025 24026 24027 24028 24029 24030 24031 24032 24033 24034 24035 24036 24037 24038 24039 24040 24041 24042 24043 24044 24045 24046 24047 24048 24049 24050 24051 24052 24053 24054 24055 24056 24057 24058 24059 24060 24061 24062 24063 24064 24065 24066 24067 24068 24069 24070 24071 24072 24073 24074 24075 24076 24077 24078 24079 24080 24081 24082 24083 24084 24085 24086 24087 24088 24089 24090 24091 24092 24093 24094 24095 24096 24097 24098 24099 24100 24101 24102 24103 24104 24105 24106 24107 24108 24109 24110 24111 24112 24113 24114 24115 24116 24117 24118 24119 24120 24121 24122 24123 24124 24125 24126 24127 24128 24129 24130 24131 24132 24133 24134 24135 24136 24137 24138 24139 24140 24141 24142 24143 24144 24145 24146 24147 24148 24149 24150 24151 24152 24153 24154 24155 24156 24157 24158 24159 24160 24161 24162 24163 24164 24165 24166 24167 24168 24169 24170 24171 24172 24173 24174 24175 24176 24177 24178 24179 24180 24181 24182 24183 24184 24185 24186 24187 24188 24189 24190 24191 24192 24193 24194 24195 24196 24197 24198 24199 24200 24201 24202 24203 24204 24205 24206 24207 24208 24209 24210 24211 24212 24213 24214 24215 24216 24217 24218 24219 24220 24221 24222 24223 24224 24225 24226 24227 24228 24229 24230 24231 24232 24233 24234 24235 24236 24237 24238 24239 24240 24241 24242 24243 24244 24245 24246 24247 24248 24249 24250 24251 24252 24253 24254 24255 24256 24257 24258 24259 24260 24261 24262 24263 24264 24265 24266 24267 24268 24269 24270 24271 24272 24273 24274 24275 24276 24277 24278 24279 24280 24281 24282 24283 24284 24285 24286 24287 24288 24289 24290 24291 24292 24293 24294 24295 24296 24297 24298 24299 24300 24301 24302 24303 24304 24305 24306 24307 24308 24309 24310 24311 24312 24313 24314 24315 24316 24317 24318 24319 24320 24321 24322 24323 24324 24325 24326 24327 24328 24329 24330 24331 24332 24333 24334 24335 24336 24337 24338 24339 24340 24341 24342 24343 24344 24345 24346 24347 24348 24349 24350 24351 24352 24353 24354 24355 24356 24357 24358 24359 24360 24361 24362 24363 24364 24365 24366 24367 24368 24369 24370 24371 24372 24373 24374 24375 24376 24377 24378 24379 24380 24381 24382 24383 24384 24385 24386 24387 24388 24389 24390 24391 24392 24393 24394 24395 24396 24397 24398 24399 24400 24401 24402 24403 24404 24405 24406 24407 24408 24409 24410 24411 24412 24413 24414 24415 24416 24417 24418 24419 24420 24421 24422 24423 24424 24425 24426 24427 24428 24429 24430 24431 24432 24433 24434 24435 24436 24437 24438 24439 24440 24441 24442 24443 24444 24445 24446 24447 24448 24449 24450 24451 24452 24453 24454 24455 24456 24457 24458 24459 24460 24461 24462 24463 24464 24465 24466 24467 24468 24469 24470 24471 24472 24473 24474 24475 24476 24477 24478 24479 24480 24481 24482 24483 24484 24485 24486 24487 24488 24489 24490 24491 24492 24493 24494 24495 24496 24497 24498 24499 24500 24501 24502 24503 24504 24505 24506 24507 24508 24509 24510 24511 24512 24513 24514 24515 24516 24517 24518 24519 24520 24521 24522 24523 24524 24525 24526 24527 24528 24529 24530 24531 24532 24533 24534 24535 24536 24537 24538 24539 24540 24541 24542 24543 24544 24545 24546 24547 24548 24549 24550 24551 24552 24553 24554 24555 24556 24557 24558 24559 24560 24561 24562 24563 24564 24565 24566 24567 24568 24569 24570 24571 24572 24573 24574 24575 24576 24577 24578 24579 24580 24581 24582 24583 24584 24585 24586 24587 24588 24589 24590 24591 24592 24593 24594 24595 24596 24597 24598 24599 24600 24601 24602 24603 24604 24605 24606 24607 24608 24609 24610 24611 24612 24613 24614 24615 24616 24617 24618 24619 24620 24621 24622 24623 24624 24625 24626 24627 24628 24629 24630 24631 24632 24633 24634 24635 24636 24637 24638 24639 24640 24641 24642 24643 24644 24645 24646 24647 24648 24649 24650 24651 24652 24653 24654 24655 24656 24657 24658 24659 24660 24661 24662 24663 24664 24665 24666 24667 24668 24669 24670 24671 24672 24673 24674 24675 24676 24677 24678 24679 24680 24681 24682 24683 24684 24685 24686 24687 24688 24689 24690 24691 24692 24693 24694 24695 24696 24697 24698 24699 24700 24701 24702 24703 24704 24705 24706 24707 24708 24709 24710 24711 24712 24713 24714 24715 24716 24717 24718 24719 24720 24721 24722 24723 24724 24725 24726 24727 24728 24729 24730 24731 24732 24733 24734 24735 24736 24737 24738 24739 24740 24741 24742 24743 24744 24745 24746 24747 24748 24749 24750 24751 24752 24753 24754 24755 24756 24757 24758 24759 24760 24761 24762 24763 24764 24765 24766 24767 24768 24769 24770 24771 24772 24773 24774 24775 24776 24777 24778 24779 24780 24781 24782 24783 24784 24785 24786 24787 24788 24789 24790 24791 24792 24793 24794 24795 24796 24797 24798 24799 24800 24801 24802 24803 24804 24805 24806 24807 24808 24809 24810 24811 24812 24813 24814 24815 24816 24817 24818 24819 24820 24821 24822 24823 24824 24825 24826 24827 24828 24829 24830 24831 24832 24833 24834 24835 24836 24837 24838 24839 24840 24841 24842 24843 24844 24845 24846 24847 24848 24849 24850 24851 24852 24853 24854 24855 24856 24857 24858 24859 24860 24861 24862 24863 24864 24865 24866 24867 24868 24869 24870 24871 24872 24873 24874 24875 24876 24877 24878 24879 24880 24881 24882 24883 24884 24885 24886 24887 24888 24889 24890 24891 24892 24893 24894 24895 24896 24897 24898 24899 24900 24901 24902 24903 24904 24905 24906 24907 24908 24909 24910 24911 24912 24913 24914 24915 24916 24917 24918 24919 24920 24921 24922 24923 24924 24925 24926 24927 24928 24929 24930 24931 24932 24933 24934 24935 24936 24937 24938 24939 24940 24941 24942 24943 24944 24945 24946 24947 24948 24949 24950 24951 24952 24953 24954 24955 24956 24957 24958 24959 24960 24961 24962 24963 24964 24965 24966 24967 24968 24969 24970 24971 24972 24973 24974 24975 24976 24977 24978 24979 24980 24981 24982 24983 24984 24985 24986 24987 24988 24989 24990 24991 24992 24993 24994 24995 24996 24997 24998 24999 25000 25001 25002 25003 25004 25005 25006 25007 25008 25009 25010 25011 25012 25013 25014 25015 25016 25017 25018 25019 25020 25021 25022 25023 25024 25025 25026 25027 25028 25029 25030 25031 25032 25033 25034 25035 25036 25037 25038 25039 25040 25041 25042 25043 25044 25045 25046 25047 25048 25049 25050 25051 25052 25053 25054 25055 25056 25057 25058 25059 25060 25061 25062 25063 25064 25065 25066 25067 25068 25069 25070 25071 25072 25073 25074 25075 25076 25077 25078 25079 25080 25081 25082 25083 25084 25085 25086 25087 25088 25089 25090 25091 25092 25093 25094 25095 25096 25097 25098 25099 25100 25101 25102 25103 25104 25105 25106 25107 25108 25109 25110 25111 25112 25113 25114 25115 25116 25117 25118 25119 25120 25121 25122 25123 25124 25125 25126 25127 25128 25129 25130 25131 25132 25133 25134 25135 25136 25137 25138 25139 25140 25141 25142 25143 25144 25145 25146 25147 25148 25149 25150 25151 25152 25153 25154 25155 25156 25157 25158 25159 25160 25161 25162 25163 25164 25165 25166 25167 25168 25169 25170 25171 25172 25173 25174 25175 25176 25177 25178 25179 25180 25181 25182 25183 25184 25185 25186 25187 25188 25189 25190 25191 25192 25193 25194 25195 25196 25197 25198 25199 25200 25201 25202 25203 25204 25205 25206 25207 25208 25209 25210 25211 25212 25213 25214 25215 25216 25217 25218 25219 25220 25221 25222 25223 25224 25225 25226 25227 25228 25229 25230 25231 25232 25233 25234 25235 25236 25237 25238 25239 25240 25241 25242 25243 25244 25245 25246 25247 25248 25249 25250 25251 25252 25253 25254 25255 25256 25257 25258 25259 25260 25261 25262 25263 25264 25265 25266 25267 25268 25269 25270 25271 25272 25273 25274 25275 25276 25277 25278 25279 25280 25281 25282 25283 25284 25285 25286 25287 25288 25289 25290 25291 25292 25293 25294 25295 25296 25297 25298 25299 25300 25301 25302 25303 25304 25305 25306 25307 25308 25309 25310 25311 25312 25313 25314 25315 25316 25317 25318 25319 25320 25321 25322 25323 25324 25325 25326 25327 25328 25329 25330 25331 25332 25333 25334 25335 25336 25337 25338 25339 25340 25341 25342 25343 25344 25345 25346 25347 25348 25349 25350 25351 25352 25353 25354 25355 25356 25357 25358 25359 25360 25361 25362 25363 25364 25365 25366 25367 25368 25369 25370 25371 25372 25373 25374 25375 25376 25377 25378 25379 25380 25381 25382 25383 25384 25385 25386 25387 25388 25389 25390 25391 25392 25393 25394 25395 25396 25397 25398 25399 25400 25401 25402 25403 25404 25405 25406 25407 25408 25409 25410 25411 25412 25413 25414 25415 25416 25417 25418 25419 25420 25421 25422 25423 25424 25425 25426 25427 25428 25429 25430 25431 25432 25433 25434 25435 25436 25437 25438 25439 25440 25441 25442 25443 25444 25445 25446 25447 25448 25449 25450 25451 25452 25453 25454 25455 25456 25457 25458 25459 25460 25461 25462 25463 25464 25465 25466 25467 25468 25469 25470 25471 25472 25473 25474 25475 25476 25477 25478 25479 25480 25481 25482 25483 25484 25485 25486 25487 25488 25489 25490 25491 25492 25493 25494 25495 25496 25497 25498 25499 25500 25501 25502 25503 25504 25505 25506 25507 25508 25509 25510 25511 25512 25513 25514 25515 25516 25517 25518 25519 25520 25521 25522 25523 25524 25525 25526 25527 25528 25529 25530 25531 25532 25533 25534 25535 25536 25537 25538 25539 25540 25541 25542 25543 25544 25545 25546 25547 25548 25549 25550 25551 25552 25553 25554 25555 25556 25557 25558 25559 25560 25561 25562 25563 25564 25565 25566 25567 25568 25569 25570 25571 25572 25573 25574 25575 25576 25577 25578 25579 25580 25581 25582 25583 25584 25585 25586 25587 25588 25589 25590 25591 25592 25593 25594 25595 25596 25597 25598 25599 25600 25601 25602 25603 25604 25605 25606 25607 25608 25609 25610 25611 25612 25613 25614 25615 25616 25617 25618 25619 25620 25621 25622 25623 25624 25625 25626 25627 25628 25629 25630 25631 25632 25633 25634 25635 25636 25637 25638 25639 25640 25641 25642 25643 25644 25645 25646 25647 25648 25649 25650 25651 25652 25653 25654 25655 25656 25657 25658 25659 25660 25661 25662 25663 25664 25665 25666 25667 25668 25669 25670 25671 25672 25673 25674 25675 25676 25677 25678 25679 25680 25681 25682 25683 25684 25685 25686 25687 25688 25689 25690 25691 25692 25693 25694 25695 25696 25697 25698 25699 25700 25701 25702 25703 25704 25705 25706 25707 25708 25709 25710 25711 25712 25713 25714 25715 25716 25717 25718 25719 25720 25721 25722 25723 25724 25725 25726 25727 25728 25729 25730 25731 25732 25733 25734 25735 25736 25737 25738 25739 25740 25741 25742 25743 25744 25745 25746 25747 25748 25749 25750 25751 25752 25753 25754 25755 25756 25757 25758 25759 25760 25761 25762 25763 25764 25765 25766 25767 25768 25769 25770 25771 25772 25773 25774 25775 25776 25777 25778 25779 25780 25781 25782 25783 25784 25785 25786 25787 25788 25789 25790 25791 25792 25793 25794 25795 25796 25797 25798 25799 25800 25801 25802 25803 25804 25805 25806 25807 25808 25809 25810 25811 25812 25813 25814 25815 25816 25817 25818 25819 25820 25821 25822 25823 25824 25825 25826 25827 25828 25829 25830 25831 25832 25833 25834 25835 25836 25837 25838 25839 25840 25841 25842 25843 25844 25845 25846 25847 25848 25849 25850 25851 25852 25853 25854 25855 25856 25857 25858 25859 25860 25861 25862 25863 25864 25865 25866 25867 25868 25869 25870 25871 25872 25873 25874 25875 25876 25877 25878 25879 25880 25881 25882 25883 25884 25885 25886 25887 25888 25889 25890 25891 25892 25893 25894 25895 25896 25897 25898 25899 25900 25901 25902 25903 25904 25905 25906 25907 25908 25909 25910 25911 25912 25913 25914 25915 25916 25917 25918 25919 25920 25921 25922 25923 25924 25925 25926 25927 25928 25929 25930 25931 25932 25933 25934 25935 25936 25937 25938 25939 25940 25941 25942 25943 25944 25945 25946 25947 25948 25949 25950 25951 25952 25953 25954 25955 25956 25957 25958 25959 25960 25961 25962 25963 25964 25965 25966 25967 25968 25969 25970 25971 25972 25973 25974 25975 25976 25977 25978 25979 25980 25981 25982 25983 25984 25985 25986 25987 25988 25989 25990 25991 25992 25993 25994 25995 25996 25997 25998 25999 26000 26001 26002 26003 26004 26005 26006 26007 26008 26009 26010 26011 26012 26013 26014 26015 26016 26017 26018 26019 26020 26021 26022 26023 26024 26025 26026 26027 26028 26029 26030 26031 26032 26033 26034 26035 26036 26037 26038 26039 26040 26041 26042 26043 26044 26045 26046 26047 26048 26049 26050 26051 26052 26053 26054 26055 26056 26057 26058 26059 26060 26061 26062 26063 26064 26065 26066 26067 26068 26069 26070 26071 26072 26073 26074 26075 26076 26077 26078 26079 26080 26081 26082 26083 26084 26085 26086 26087 26088 26089 26090 26091 26092 26093 26094 26095 26096 26097 26098 26099 26100 26101 26102 26103 26104 26105 26106 26107 26108 26109 26110 26111 26112 26113 26114 26115 26116 26117 26118 26119 26120 26121 26122 26123 26124 26125 26126 26127 26128 26129 26130 26131 26132 26133 26134 26135 26136 26137 26138 26139 26140 26141 26142 26143 26144 26145 26146 26147 26148 26149 26150 26151 26152 26153 26154 26155 26156 26157 26158 26159 26160 26161 26162 26163 26164 26165 26166 26167 26168 26169 26170 26171 26172 26173 26174 26175 26176 26177 26178 26179 26180 26181 26182 26183 26184 26185 26186 26187 26188 26189 26190 26191 26192 26193 26194 26195 26196 26197 26198 26199 26200 26201 26202 26203 26204 26205 26206 26207 26208 26209 26210 26211 26212 26213 26214 26215 26216 26217 26218 26219 26220 26221 26222 26223 26224 26225 26226 26227 26228 26229 26230 26231 26232 26233 26234 26235 26236 26237 26238 26239 26240 26241 26242 26243 26244 26245 26246 26247 26248
|
<?xml version="1.0" encoding="UTF-8"?>
<!--
Documentation for LCL (Lazarus Component Library) and LazUtils (Lazarus
Utilities) are published under the Creative Commons Attribution-ShareAlike 4.0
International public license.
https://creativecommons.org/licenses/by-sa/4.0/legalcode.txt
https://gitlab.com/freepascal.org/lazarus/lazarus/-/blob/main/docs/cc-by-sa-4-0.txt
Copyright (c) 1997-2025, by the Lazarus Development Team.
-->
<fpdoc-descriptions>
<package name="lcl">
<!--
====================================================================
Grids
====================================================================
-->
<module name="Grids">
<short>
Classes for displaying tabular data as a series of rows and columns.
</short>
<descr>
<p>
<file>grids.pas</file> contains classes, types, constants, variables, and
routines used to implement grid controls for the Lazarus Component Library
(<b>LCL</b>). Classes include:
</p>
<ul>
<li>TVirtualGrid</li>
<li>TCustomGrid</li>
<li>TDrawGrid</li>
<li>TStringGrid</li>
</ul>
<p>
Original author: Jesus Reyes Aguilar (jesusrmx@yahoo.com.mx) [2002]
</p>
</descr>
<element name="Classes"/>
<element name="SysUtils"/>
<element name="Types"/>
<element name="TypInfo"/>
<element name="Math"/>
<element name="FPCanvas"/>
<element name="HtmlDefs"/>
<element name="StrUtils"/>
<element name="LCLStrConsts"/>
<element name="LCLType"/>
<element name="LCLIntf"/>
<element name="Controls"/>
<element name="Graphics"/>
<element name="Forms"/>
<element name="LMessages"/>
<element name="StdCtrls"/>
<element name="LResources"/>
<element name="MaskEdit"/>
<element name="Buttons"/>
<element name="Clipbrd"/>
<element name="Themes"/>
<element name="ImgList"/>
<element name="LazFileUtils"/>
<element name="DynamicArray"/>
<element name="Maps"/>
<element name="LazUTF8"/>
<element name="Laz2_XMLCfg"/>
<element name="LazLoggerBase"/>
<element name="LazUtilities"/>
<element name="LCSVUtils"/>
<element name="IntegerList"/>
<element name="Messages"/>
<element name="imm"/>
<element name="extcrls"/>
<element name="GRIDFILEVERSION">
<short>Current revision level for the <file>grids.pas</file> file.</short>
<descr>
<dl>
<dt>1</dt>
<dd>Initial revision</dd>
<dt>2</dt>
<dd>Introduced goSmoothScroll grid option</dd>
<dt>3</dt>
<dd>Introduced Col/Row FixedAttr and NormalAttr</dd>
</dl>
</descr>
<seealso/>
</element>
<element name="GM_SETVALUE">
<short>Lazarus message for setting the value in a grid edit control.</short>
</element>
<element name="GM_GETVALUE">
<short>Lazarus message for getting the value in a grid edit control.</short>
</element>
<element name="GM_SETGRID">
<short>Lazarus message for setting the grid for an edit control.</short>
</element>
<element name="GM_SETBOUNDS">
<short>Lazarus message for setting the bounds for a grid edit control.</short>
</element>
<element name="GM_SELECTALL">
<short>
Lazarus message for selecting the content in a grid edit control.
</short>
</element>
<element name="GM_SETMASK">
<short>
Lazarus message for setting the edit mask used in a grid edit control.
</short>
</element>
<element name="GM_SETPOS">
<short>
Lazarus message for setting the position of a grid edit control.
</short>
</element>
<element name="GM_READY">
<short>
Lazarus message sent when the grid can display its editing controls.
</short>
</element>
<element name="GM_GETGRID">
<short>Lazarus message used to get the grid for an editing control.</short>
</element>
<element name="EO_AUTOSIZE">
<short>Represents the auto-size editor option in a grid message.</short>
<descr/>
<seealso/>
</element>
<element name="EO_HOOKKEYDOWN">
<short>Represents the hook key down editor option in a grid message.</short>
<descr/>
<seealso/>
</element>
<element name="EO_HOOKKEYPRESS">
<short>Represents the hook key press editor option in a grid message.</short>
<descr/>
<seealso/>
</element>
<element name="EO_HOOKKEYUP">
<short>Represents the hook key up editor option in a grid message.</short>
<descr/>
<seealso/>
</element>
<element name="EO_SELECTALL">
<short>
Represents the select all content editor option in a grid message.
</short>
<descr/>
<seealso/>
</element>
<element name="EO_IMPLEMENTED">
<short>Represents the implemented editor option in a grid message.</short>
<descr/>
<seealso/>
</element>
<element name="DEFCOLWIDTH">
<short>Default width for columns in a grid control.</short>
<descr>
<p>
<var>DEFCOLWIDTH</var> is a constant used as the default width for columns in
a grid control. The value for the constant is <b>64</b> (pixels). DEFCOLWIDTH
is used when getting the value for the <var>DefColWidth</var> in
<var>TCustomGrid</var>.
</p>
</descr>
<seealso>
<link id="TCustomGrid.DefaultColWidth"/>
</seealso>
</element>
<element name="DEFBUTTONWIDTH">
<short>Default width for edit control buttons in a grid.</short>
<descr>
<p>
<var>DEFBUTTONWIDTH</var> is a constant that contains the default width for
the button displayed in a grid cell editor. The value for the constant is
<b>25</b> (pixels). DEFBUTTONWIDTH is used when setting the bounds for
<var>TButtonCellEditor</var> controls.
</p>
</descr>
<seealso>
<link id="TButtonCellEditor"/>
</seealso>
</element>
<element name="DEFIMAGEPADDING">
<short>Default padding used for title images displayed in a grid.</short>
<descr>
<p>
<var>DEFIMAGEPADDING</var> is a constant which contains the padding added to
images displayed in the fixed title area for grid controls. The value for the
constant is <b>2</b> (pixels). DEFIMAGEPADDING is used in methods like
<var>TCustomGrid.DrawColumnTitleImage</var> and
<var>TCustomStringGrid.AutoAdjustColumn</var>.
</p>
</descr>
<seealso>
<link id="TCustomGrid.DrawColumnTitleImage"/>
<link id="TCustomStringGrid.AutoAdjustColumn"/>
</seealso>
</element>
<element name="DEFMINSIZE">
<short>Default value used as the minimum grid column size.</short>
<descr/>
<seealso>
<link id="TGridColumn.GetDefaultMinSize"/>
</seealso>
</element>
<element name="DEFMAXSIZE">
<short>Default value used as the maximum grid column size.</short>
<descr/>
<seealso>
<link id="TGridColumn.GetDefaultMaxSize"/>
</seealso>
</element>
<element name="DEFSIZEPRIORITY">
<short>Default value for SizePriority property in a grid column.</short>
<descr/>
<seealso>
<link id="TGridColumn.GetDefaultSizePriority"/>
</seealso>
</element>
<element name="EGridException">
<short>Exception raised when an error has occurred in a Grid class.</short>
<descr>
<p>
Used mainly when a row or a column position is invalid for a grid control.
</p>
</descr>
<seealso>
</seealso>
</element>
<element name="TGridOption">
<short>Represents grid option values available for grid controls.</short>
<descr>
<p>
<var>TGridOption</var> is an enumerated type with values that represent grid
options available in LCL grid controls. Values from TGridOption are stored in
a <var>TGridOptions</var> set type to indicate that the grid feature or
behavior is enabled.
</p>
<p>
Values from TGridOption are stored in the <var>DefaultGridOptions</var>
constant which defines the default set of options for LCL grid controls.
</p>
</descr>
<seealso>
<link id="TGridOptions"/>
<link id="TGridOptions2"/>
<link id="TGridOption2"/>
<link id="DefaultGridOptions"/>
<link id="TCustomGrid.Options"/>
<link id="TCustomGrid.Options2"/>
</seealso>
</element>
<element name="TGridOption.goFixedVertLine">
<short>Shows vertical lines around fixed cells.</short>
</element>
<element name="TGridOption.goFixedHorzLine">
<short>Shows horizontal lines around fixed cells.</short>
</element>
<element name="TGridOption.goVertLine">
<short>Show vertical lines.</short>
</element>
<element name="TGridOption.goHorzLine">
<short>Show horizontal lines.</short>
</element>
<element name="TGridOption.goRangeSelect">
<short>Enables range selection for grid cells.</short>
</element>
<element name="TGridOption.goDrawFocusSelected">
<short>
Enables drawing using the SelectedColor for selected cell(s) and FocusColor
for the focus rectangle (or rubber band).
</short>
</element>
<element name="TGridOption.goRowSizing">
<short>Allow user to change row height.</short>
</element>
<element name="TGridOption.goColSizing">
<short>Allow user to change column width.</short>
</element>
<element name="TGridOption.goRowMoving">
<short>Enables moving the position of an entire row in a grid.</short>
</element>
<element name="TGridOption.goColMoving">
<short>
Enables moving the position of an entire column in a grid.
</short>
</element>
<element name="TGridOption.goEditing">
<short>Allows editing in grid cells.</short>
<seealso/>
</element>
<element name="TGridOption.goAutoAddRows">
<short>
Automatically add new rows. Does not add rows if the last cell is empty and
<var>goAutoAddRowsSkipContentCheck</var> is not set.
</short>
<seealso/>
</element>
<element name="TGridOption.goTabs">
<short>
Controls Tab key behavior in the grid. When enabled, the <b>Tab</b> key
changes the active cell within the grid. When omitted, the <b>Tab</b> key
changes to the next active control.
</short>
</element>
<element name="TGridOption.goRowSelect">
<short>Select the whole row instead of only one cell.</short>
</element>
<element name="TGridOption.goAlwaysShowEditor">
<short>
Always shows the cell editor. If not set, the user has to enter edit mode by
data characters for the cell, or by pressing the <b>F2</b> key.
</short>
</element>
<element name="TGridOption.goThumbTracking">
<short>
Enables tracking of the thumb position in grid scroll bars.
</short>
</element>
<element name="TGridOption.goColSpanning">
<short>Enable cell extent calculations.</short>
</element>
<element name="TGridOption.goRelaxedRowSelect">
<short>User can see focused cell on goRowSelect.</short>
</element>
<element name="TGridOption.goDblClickAutoSize">
<short>
Enables using double click on a column border (on headers) to resize a column.
</short>
</element>
<element name="TGridOption.goSmoothScroll">
<short>Enables smooth scrolling mode. Default is pixel scroll.</short>
</element>
<element name="TGridOption.goFixedRowNumbering">
<short>
Causes row numbers to be displayed in the first column in FixedCols.
The displayed row numbers starts with 1. The row number is displayed when no
text has been directly assigned to the fixed cell.
</short>
</element>
<element name="TGridOption.goScrollKeepVisible">
<short>Keeps focused cell visible while scrolling.</short>
</element>
<element name="TGridOption.goHeaderHotTracking">
<short>Header cells change look when mouse is over them.</short>
</element>
<element name="TGridOption.goHeaderPushedLook">
<short>Header cells looks pushed when clicked.</short>
</element>
<element name="TGridOption.goSelectionActive">
<short>Setting a grid selection also moves the cell cursor.</short>
</element>
<element name="TGridOption.goFixedColSizing">
<short>Enables resizing of fixed columns.</short>
</element>
<element name="TGridOption.goDontScrollPartCell">
<short>
When enabled, selecting a partially visible cell will not scroll the grid
content.
</short>
</element>
<element name="TGridOption.goCellHints">
<short>
Show individual cell hints. Requires the <link
id="TControl.ShowHint">ShowHint</link> property to be set to <var>True</var>.
If set, the <link id="TControl.Hint">Hint</link> will be ignored. Instead the
<link id="TCustomGrid.OnGetCellHint">OnGetCellHint</link> event will be
called for each cell.
</short>
</element>
<element name="TGridOption.goTruncCellHints">
<short>
Truncates cell hints when they are longer than the cell content.
</short>
<descr/>
<seealso/>
</element>
<element name="TGridOption.goCellEllipsis">
<short>
Shows an Ellipsis (...) at the end of truncated cell hints.
</short>
<descr/>
<seealso/>
</element>
<element name="TGridOption.goAutoAddRowsSkipContentCheck">
<short>
Adds a row if last row is empty. <var>goAutoAddRows</var> must also be set.
Otherwise this option does not take effect.
</short>
</element>
<element name="TGridOption.goRowHighlight">
<short>Highlights the current Row in a grid control.</short>
<descr/>
<seealso/>
</element>
<element name="TGridOptions">
<short>Set type used to store enabled grid options.</short>
<descr>
<p>
<var>TGridOptions</var> is a set type used to store values from the
<var>TGridOption</var> enumeration. The features or behaviors in TGridOption
are enabled when their enumeration values are included in the set.
TGridOptions is the type used for the <var>TCustomGrid.Options</var> property.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Options"/>
</seealso>
</element>
<element name="TGridOption2">
<short>
Represents grid options introduced in Version 2 (or higher) of grid controls.
</short>
<descr>
<p>
<var>TGridOption2</var> is the type used to implement the Options2 property
in TCustomGrid and descendent classes.
</p>
</descr>
<version>
Modified in version 3.0 to include goEditorParentColor and goEditorParentFont
options.
</version>
<version>
Modified in version 4.0 to include the goCopyWithoutTrailingLinebreak options.
</version>
<seealso>
<link id="TCustomGrid.Options2"/>
</seealso>
</element>
<element name="TGridOption2.goScrollToLastCol">
<short>
Allows scrolling to last column (so that last column can be leftcol).
</short>
</element>
<element name="TGridOption2.goScrollToLastRow">
<short>
Allows scrolling to last row (so the last row can also be TopRow).
</short>
</element>
<element name="TGridOption2.goEditorParentColor">
<short>
Sets the color in a cell editor to the color for the parent control.
</short>
</element>
<element name="TGridOption2.goEditorParentFont">
<short>
Sets the font in a cell editor to the font for the parent control.
</short>
</element>
<element name="TGridOption2.goCopyWithoutTrailingLinebreak">
<short>
Copies cell(s) to the clipboard without trailing linebreak sequence.
</short>
</element>
<element name="TGridOptions2">
<short>
Set type used to store enabled grid options from the TGridOption2 enumeration.
</short>
<descr>
<p>
<var>TGridOptions2</var> is the type used to implement the Options2 property
in <var>TCustomGrid</var>. The features represented by the values in the set
are enabled in a grid control when present.
</p>
<p>
See TGridOption2 for the available enumeration values and their meanings.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Options2"/>
<link id="TGridOption2"/>
</seealso>
</element>
<element name="TGridSaveOptions">
<short>
Represents the save options available for LCL grid controls.
</short>
<descr>
<p>
TGridSaveOptions is an enumerated type with values for the save options that
can be enabled for the TCustomGrid control and its descendants.
</p>
<p>
TGridSaveOptions values are stored in the TSaveOptions set type, and used to
implement the SaveOptions property in TCustomGrid. When a value is present in
the set, it indicates that the option is enabled, and causes the affected
properties to be stored in the SaveContent method for the grid control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.SaveOptions"/>
<link id="TCustomGrid.SaveContent"/>
<link id="TSaveOptions"/>
</seealso>
</element>
<element name="TGridSaveOptions.soDesign">
<short>
Enables saving grid structure (col / row count and Options).
</short>
</element>
<element name="TGridSaveOptions.soAttributes">
<short>Enables saving grid attributes (Font, Brush, TextStyle).</short>
</element>
<element name="TGridSaveOptions.soContent">
<short>Enables saving Grid content (Text in TStringGrid).</short>
</element>
<element name="TGridSaveOptions.soPosition">
<short>Enables saving the Grid cursor and selection position.</short>
</element>
<element name="TSaveOptions">
<short>Set type used to store TGridSaveOptions values.</short>
<descr>
<p>
TSaveOptions is a set type used to store zero or more values from the
TGridSaveOptions enumeration.
</p>
<p>
When a TGridSaveOptions value is present in the set, it indicates that the
option is enabled. This in turn causes the affected properties to be stored
in the SaveContent method for the grid control.
</p>
<p>
TSaveOptions is the type used to implement the SaveOptions property in
TCustomGrid.
</p>
</descr>
<seealso>
<link id="TGridSaveOptions"/>
<link id="TCustomGrid.SaveOptions"/>
<link id="TCustomGrid.SaveContent"/>
</seealso>
</element>
<element name="TGridDrawState">
<short>Enumeration with Grid draw state values.</short>
<descr>
<p>
<var>TGridDrawState</var> is an enumeration with values that represent grid
drawing states for a grid control. Values in TGridDrawState indicate the
display attributes applied to a row, a column, or an individual cell in a
grid control.
</p>
<p>
TGridDrawState arguments are passed to event handlers and methods in
<var>TCustomGrid</var>.
</p>
</descr>
<seealso>
<link id="TOnDrawCell"/>
<link id="TOnPrepareCanvasEvent"/>
<link id="TCustomGrid.DrawCell"/>
<link id="TCustomGrid.DrawCellGrid"/>
<link id="TCustomGrid.DrawCellText"/>
<link id="TCustomGrid.DrawButtonCell"/>
<link id="TCustomGrid.DrawColumnText"/>
<link id="TCustomGrid.DrawTextInCell"/>
<link id="TCustomGrid.DrawThemedCell"/>
</seealso>
</element>
<element name="TGridDrawState.gdSelected">
<short>Drawn in its Selected state.</short>
</element>
<element name="TGridDrawState.gdFocused">
<short>Drawn in its Focused state.</short>
</element>
<element name="TGridDrawState.gdFixed">
<short>Drawn using the Fixed cell colors.</short>
</element>
<element name="TGridDrawState.gdHot">
<short>Drawn using the Hot or hovered display attributes.</short>
</element>
<element name="TGridDrawState.gdPushed">
<short>Drawn in a Pushed state.</short>
</element>
<element name="TGridDrawState.gdRowHighlight">
<short>Drawn using the row highlighting color.</short>
</element>
<element name="TGridState">
<short>Enumerated type with grid state values.</short>
<descr>
<p>
<var>TGridState</var> is an enumerated type with values that reflect the
state in a grid control. TGridState values represent actions performed using
a grid control, rather than the display state for rows, columns, and/or cells.
</p>
<p>
TCustomGrid maintains an internal TGridState member used to track the state
for the grid control. Methods in TCustomGrid cause the value in the member to
be read or updated to reflect the request and/or completion of an action in
the grid control.
</p>
<p>
Use the TCustomGrid.Options and TCustomGrid.Options2 properties to determine
if specific features or behaviors are enabled for a grid control.
</p>
</descr>
<seealso>
<link id="TCustomGrid"/>
<link id="TCustomGrid.Options"/>
<link id="TCustomGrid.Options2"/>
</seealso>
</element>
<element name="TGridState.gsNormal">
<short>
Normal state for the grid when navigation or editing can be performed.
</short>
</element>
<element name="TGridState.gsSelecting">
<short>
Grid is selecting a row, column, or cell after keyboard or mouse activity.
</short>
</element>
<element name="TGridState.gsRowSizing">
<short>Grid is resizing a row.</short>
</element>
<element name="TGridState.gsColSizing">
<short>Grid is resizing a column.</short>
</element>
<element name="TGridState.gsRowMoving">
<short>Grid is moving or dragging a row.</short>
</element>
<element name="TGridState.gsColMoving">
<short>Grid is moving or dragging a column.</short>
</element>
<element name="TGridState.gsHeaderClicking">
<short>A fixed header cell has been clicked in the Grid.</short>
</element>
<element name="TGridState.gsButtonColumnClicking">
<short>A button in a column has been clicked.</short>
</element>
<element name="TGridZone">
<short>
Enumerated type with values which represent the zones or areas on a grid
control.
</short>
<descr>
<p>
<var>TGridZone</var> is an enumeration type with values representing zones in
a grid control which are monitored to determine activity and subsequent
changes in the control state.
</p>
<p>
Values from TGridZone are stored in the TGridZoneSet type, and used to
implement properties in TCustomGrid like:
</p>
<ul>
<li>HeaderHotZones</li>
<li>HeaderPushZones</li>
</ul>
<p>
The type is also passed as an argument to the Clean method in
TCustomStringGrid.
</p>
</descr>
<seealso>
<link id="TGridZoneSet"/>
<link id="TCustomGrid.HeaderHotZones"/>
<link id="TCustomGrid.HeaderPushZones"/>
<link id="TCustomStringGrid.Clean"/>
</seealso>
</element>
<element name="TGridZone.gzNormal">
<short>
Area normally used for cell data (not fixed row or column headers).
</short>
</element>
<element name="TGridZone.gzFixedCols">
<short>Area used for fixed column headers </short>
</element>
<element name="TGridZone.gzFixedRows">
<short>Area used for fixed row headers </short>
</element>
<element name="TGridZone.gzFixedCells">
<short>
Area for fixed cells (where both the column and the row are fixed).
</short>
</element>
<element name="TGridZone.gzInvalid">
<short>Area not valid for grid cells.</short>
</element>
<element name="TGridZoneSet">
<short>Set type used to store TGridZone enumeration values.</short>
<descr>
<p>
<var>TGridZoneSet</var> is a set type used to store zero or more values from
the <var>TGridZone</var> enumeration.
</p>
<p>
TGridZoneSet is the type used to implement properties in TCustomGrid like:
</p>
<ul>
<li>HeaderHotZones</li>
<li>HeaderPushZones</li>
</ul>
<p>
It is also passed as an argument to the Clean method in TCustomStringGrid to
indicate the area where the operation is applied.
</p>
</descr>
<seealso>
<link id="TGridZone"/>
<link id="TCustomGrid.HeaderHotZones"/>
<link id="TCustomGrid.HeaderPushZones"/>
<link id="TCustomStringGrid.Clean"/>
</seealso>
</element>
<element name="TAutoAdvance">
<short>
Enumerated type with values controlling grid auto advance behavior.
</short>
<descr>
<p>
<var>TAutoAdvance</var> is an enumerated type with values that represent the
auto advance behaviors available in a grid control. TAutoAdvance is the type
used to represent the <var>AutoAdvance</var> and <var>TabAdvance</var>
properties in <var>TCustomGrid</var>.
</p>
</descr>
<seealso>
<link id="TCustomGrid.AutoAdvance"/>
<link id="TCustomGrid.TabAdvance"/>
<link id="TCustomGrid.MoveNextSelectable"/>
<link id="TCustomGrid.MouseDown"/>
<link id="TCustomGrid.KeyDown"/>
</seealso>
</element>
<element name="TAutoAdvance.aaNone">
<short>Auto advance is not enabled.</short>
</element>
<element name="TAutoAdvance.aaDown">
<short>Advances down to the next row in the grid.</short>
</element>
<element name="TAutoAdvance.aaRight">
<short>Advances to the right (next cell) in the grid.</short>
</element>
<element name="TAutoAdvance.aaLeft">
<short>Advances to the left (previous cell) in the grid.</short>
</element>
<element name="TAutoAdvance.aaRightDown">
<short>Advances to the right and then to the next row.</short>
</element>
<element name="TAutoAdvance.aaLeftDown">
<short>Advances to the left and then to the next row.</short>
</element>
<element name="TAutoAdvance.aaRightUp">
<short>Advances to the right and then to the previous row.</short>
</element>
<element name="TAutoAdvance.aaLeftUp">
<short>Advances to the left and then to the previous row.</short>
</element>
<element name="TRangeSelectMode">
<short>
Enumerated type with the Range selection mode used in a grid control.
</short>
<descr>
<p>
<var>TRangeSelectMode</var> is the type used to implement the
<var>RangeSelectMode</var> property in <var>TCustomGrid</var>.
</p>
</descr>
<seealso>
<link id="TCustomGrid.RangeSelectMode"/>
</seealso>
</element>
<element name="TRangeSelectMode.rsmSingle">
<short>Allows range selection for a single range in a grid.</short>
</element>
<element name="TRangeSelectMode.rsmMulti">
<short>Allows range selection for multiple ranges in a grid.</short>
</element>
<element name="TItemType">
<short>
Not used in the current LCL implementation.
</short>
<descr>
<p>
Not used in the current LCL implementation.
</p>
</descr>
<seealso/>
</element>
<element name="TItemType.itNormal"/>
<element name="TItemType.itCell"/>
<element name="TItemType.itColumn"/>
<element name="TItemType.itRow"/>
<element name="TItemType.itFixed"/>
<element name="TItemType.itFixedColumn"/>
<element name="TItemType.itFixedRow"/>
<element name="TItemType.itSelected"/>
<element name="TColumnButtonStyle">
<short>
Enumeration with cell editor types available in a grid control.
</short>
<descr>
<p>
<var>TColumnButtonStyle</var> is an enumerated type with values that
represent the different cell editor types available in a grid control.
TColumnButtonStyle is the type used for the
<var>TGridColumn.ButtonStyle</var> property, and passed as an argument when
an editor is requested for a column definition. It is also used when the
<var>TCustomGrid.GetDefaultEditor</var> method is called to get the default
cell editor for a given column.
</p>
</descr>
<seealso>
<link id="TGridColumn.ButtonStyle"/>
<link id="TCustomGrid.GetDefaultEditor"/>
</seealso>
</element>
<element name="TColumnButtonStyle.cbsAuto">
<short>
Button style is automatically determined by the grid control. Results in a
TStringCellEditor being used for the cell.
</short>
</element>
<element name="TColumnButtonStyle.cbsEllipsis">
<short>
Button style with an Ellipsis (<b>...</b>) is displayed as the cell editor.
Results in a TCompositeCellEditor being used for the cell.
</short>
</element>
<element name="TColumnButtonStyle.cbsNone">
<short>Indicates no editor is required for a cell.</short>
</element>
<element name="TColumnButtonStyle.cbsPickList">
<short>
Indicates a Pick List is used in the grid column. Results in a
TPickListCellEditor being used for the cell.
</short>
</element>
<element name="TColumnButtonStyle.cbsCheckboxColumn">
<short>
Indicates a check box is displayed as the editor for the grid column.
</short>
</element>
<element name="TColumnButtonStyle.cbsButton">
<short>
Indicates a cell editor with a Button is used in the grid column. Causes a
TButtonCellEditor to be created.
</short>
</element>
<element name="TColumnButtonStyle.cbsButtonColumn">
<short>
Indicates a button, centered in the cell, is used in the grid column.
</short>
</element>
<element name="TTitleStyle">
<short>
Enumeration with values that control the display style for fixed title cells.
</short>
<descr>
<p>
<var>TTitleStyle</var> is an enumerated type with values that determine the
drawing style used for fixed title cells in a grid. TTitleStyle is the type
used to implement the <var>TCustomGrid.TitleStyle</var> property, and used in
the implementation of the <var>TCustomGrid.DrawCellGrid</var> method.
</p>
</descr>
<seealso>
<link id="TCustomGrid.TitleStyle"/>
<link id="TCustomGrid.DrawCellGrid"/>
</seealso>
</element>
<element name="TTitleStyle.tsLazarus">
<short>Titles are displayed using the Lazarus drawing style.</short>
</element>
<element name="TTitleStyle.tsStandard">
<short>
Titles are displayed using the standard drawing style (higher contrast).
</short>
</element>
<element name="TTitleStyle.tsNative">
<short>
Titles are displayed using the drawing style Native to the OS or platform.
</short>
</element>
<element name="TGridFlagsOption">
<short>Represents state flags used in a grid control.</short>
<descr>
<p>
<var>TGridFlagsOption</var> is an enumerated type with values which reflect
temporal state changes in a grid control. Values from TGridFlagsOption are
stored at run-time in the <var>TGridFlags</var> set type used for the
<var>TCustomGrid.GridFlags</var> property.
</p>
</descr>
<seealso>
<link id="TCustomGrid.GridFlags"/>
<link id="TGridFlags"/>
</seealso>
</element>
<element name="TGridFlagsOption.gfEditorUpdateLock">
<short>Indicates a cell is locked during a cell editor update.</short>
</element>
<element name="TGridFlagsOption.gfNeedsSelectActive">
<short>
Indicates a selection needs to be active prior to mouse down or move actions.
</short>
</element>
<element name="TGridFlagsOption.gfEditorTab">
<short>
Indicates a Tab key can be applied to focus the next cell in the grid.
</short>
</element>
<element name="TGridFlagsOption.gfRevEditorTab">
<short>
Indicates if Shift+Tab can be used to select the previous cell in the grid.
</short>
</element>
<element name="TGridFlagsOption.gfVisualChange">
<short>
Indicates visible changes to row or column sizes can be applied to the grid.
</short>
</element>
<element name="TGridFlagsOption.gfColumnsLocked">
<short>
Indicates columns in the grid are locked and cannot be reordered.
</short>
</element>
<element name="TGridFlagsOption.gfEditingDone">
<short>Indicates editing using a cell editor has been completed.</short>
</element>
<element name="TGridFlagsOption.gfSizingStarted">
<short>Indicates a row or column sizing action is in effect.</short>
</element>
<element name="TGridFlagsOption.gfPainting">
<short>Indicates the grid is being redrawn.</short>
</element>
<element name="TGridFlagsOption.gfUpdatingSize">
<short>Indicates the grid is updating its size.</short>
</element>
<element name="TGridFlagsOption.gfClientRectChange">
<short>Indicates the client rectangle for the grid has changed.</short>
</element>
<element name="TGridFlagsOption.gfAutoEditPending">
<short>
Indicates a cell editor is being prepared for a newly selected cell in the
grid.
</short>
</element>
<element name="TGridFlagsOption.gfUpdatingScrollbar">
<short>
Indicates the visibility of scroll bar(s) has been changed for a grid.
</short>
</element>
<element name="TGridFlags">
<short>Set type used to store TGridFlagsOption enumeration values.</short>
<descr>
<p>
<var>TGridFlags</var> is a set type used to store <var>TGridFlagsOption</var>
enumeration values. TGridFlags is the type used to implement the
<var>TCustomGrid.GridFlags</var> property.
</p>
</descr>
<seealso>
<link id="TGridFlagsOption"/>
<link id="TCustomGrid.GridFlags"/>
</seealso>
</element>
<element name="TSortOrder">
<short>Enumerated type with sort orders supported in a grid control.</short>
<descr>
<p>
<var>TSortOrder</var> is an enumerated type with values for the sort orders
supported in a grid control. TSortOrder is the type used to implement the
<var>TCustomGrid.SortOrder</var> property.
</p>
</descr>
<seealso>
<link id="TCustomGrid.SortOrder"/>
</seealso>
</element>
<element name="TSortOrder.soAscending">
<short>Rows are sorted such that the column is in ascending order.</short>
</element>
<element name="TSortOrder.soDescending">
<short>Rows are sorted such that the column is in descending order.</short>
</element>
<element name="TPrefixOption">
<short>
Indicates how accelerator keys in column titles are handled for a grid
control.
</short>
<descr>
<p>
<var>TPrefixOption</var> is the type used to implement the
<var>PrefixOption</var> property in <var>TGridColumnTitle</var>.
</p>
</descr>
<seealso>
<link id="TGridColumnTitle.PrefixOption"/>
</seealso>
</element>
<element name="TPrefixOption.poNone">
<short>Accelerator keys are ignored in the grid column.</short>
</element>
<element name="TPrefixOption.poHeaderClick">
<short>
Accelerator keys emulate a mouse click on the column title.
</short>
</element>
<element name="TMouseWheelOption">
<short>
Enumerated type with values that control mouse wheel operation in a grid
control.
</short>
<descr>
<p>
<var>TMouseWheelOption</var> is the type used to implement the
<var>MouseWheelOption</var> property in <var>TCustomGrid</var>.
</p>
</descr>
<seealso>
<link id="TCustomGrid.MouseWheelOption"/>
</seealso>
</element>
<element name="TMouseWheelOption.mwCursor">
<short>Causes the mouse wheel to move the cursor on the screen.</short>
</element>
<element name="TMouseWheelOption.mwGrid">
<short>Causes the mouse wheel to scroll the content in the grid.</short>
</element>
<element name="TCellHintPriority">
<short>Represents the cell hint display priorities.</short>
<descr>
<p>
A grid control can display three types of hint: the default hint (in the Hint
property), individual cell hints (using the OnCellHint event), and hints for
truncated cells. TCellHintPriority determines how the hint text is determined
when multiple hint text values are available for display.
</p>
<p>
TCellHintPriority is the type used to implement the
<var>CellHintPriority</var> property in <var>TCustomGrid</var>.
</p>
</descr>
<seealso>
<link id="TCustomGrid.CellHintPriority"/>
</seealso>
</element>
<element name="TCellHintPriority.chpAll">
<short>
Uses all hints (control and cell hints) including short and long display text
values.
</short>
</element>
<element name="TCellHintPriority.chpAllNoDefault">
<short>
Uses all hints except the default hint for the grid control.
</short>
</element>
<element name="TCellHintPriority.chpTruncOnly">
<short>Uses the truncated cell hint text.</short>
</element>
<element name="TCellProcessType">
<short>Identifies the action performed for cell content.</short>
<descr>
<p>
<var>TCellProcessType</var> is an enumerated type with values that identify
the action performed for the content in a grid cell. Values in the
enumeration indicate whether cell content is copied or pasted in event
handlers. TCellProcessType arguments are passed to the
<var>TCustomStringGrid.OnCellProcess</var> event handler.
</p>
</descr>
<seealso>
<link id="TCellProcessEvent"/>
<link id="TCustomStringGrid.OnCellProcess"/>
</seealso>
</element>
<element name="TCellProcessType.cpCopy">
<short>Copies the content in a grid cell.</short>
</element>
<element name="TCellProcessType.cpPaste">
<short>Pastes content into the grid cell.</short>
</element>
<element name="soAll">
<short>All save options available for grid controls.</short>
<descr>
<p>
<var>soAll</var> is a <var>TSaveOptions</var> constant with the set
representing all of the TGridSaveOptions values available for a LCL grid
control.
</p>
</descr>
<seealso>
<link id="TGridSaveOptions"/>
</seealso>
</element>
<element name="DefaultGridOptions">
<short>
Set with the default grid options enabled for instances of the grid control.
</short>
<descr>
<p>
<var>DefaultGridOptions</var> is used as the default value for the
<var>Options</var> property in <var>TCustomGrid</var>.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Options"/>
</seealso>
</element>
<element name="DefaultGridOptions2">
<short>
Default grid options enabled for version 2 of the grid control.
</short>
<descr>
<p>
<var>DefaultGridOptions2</var> is used as the default value for the
<var>Options2</var> property in <var>TCustomGrid</var>.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Options2"/>
</seealso>
</element>
<element name="constRubberSpace">
<short>Default spacing around rubber band rectangles.</short>
<descr/>
<seealso/>
</element>
<element name="constCellPadding">
<short>Default padding for the content in grid cells.</short>
<descr>
<p>
Cell padding is the amount of space added around cell values and hints drawn
for a grid control. The value represents the number of pixels added to the
boundaries at the default display density (96 PPI). The value may be scaled
and stored in the <var>varCellPadding</var> variable when a new instance of a
grid control is created. varCellPadding contains the padding value actually
applied to the values and hints in the control.
</p>
</descr>
<seealso>
<link id="varCellPadding"/>
<link id="TCustomGrid.Create"/>
<link id="TCustomGrid.ShowCellHintWindow"/>
<link id="TCustomGrid.DrawCellText"/>
<link id="TCustomGrid.DrawGridCheckboxBitmaps"/>
<link id="TCustomStringGrid.AutoAdjustColumn"/>
</seealso>
</element>
<element name="constColRowBorderTolerance">
<short>
Minimum proximity to row or column borders for resizing operations.
</short>
<descr/>
<seealso/>
</element>
<element name="varRubberSpace">
<short>
Default padding for the rubber banding rectangle in grid cells.
</short>
<descr/>
<seealso/>
</element>
<element name="varCellpadding">
<short>Default padding for the content in grid cells.</short>
<descr>
<p>
Cell padding is the amount of space added around cell values and hints drawn
for a grid control. The value represents the number of pixels added to the
boundaries at the default display density (96 PPI). The value may be scaled
and stored in the <var>varCellPadding</var> variable when a new instance of a
grid control is created. varCellPadding contains the padding value actually
applied to the values and hints in the control.
</p>
</descr>
<seealso>
<link id="varCellPadding"/>
<link id="TCustomGrid.Create"/>
<link id="TCustomGrid.ShowCellHintWindow"/>
<link id="TCustomGrid.DrawCellText"/>
<link id="TCustomGrid.DrawGridCheckboxBitmaps"/>
<link id="TCustomStringGrid.AutoAdjustColumn"/>
</seealso>
</element>
<element name="varColRowBorderTolerance">
<short>Proximity threshold for a mouse click near a column boundary.</short>
<descr>
<p>
Used during grid column resizing when fixed column sizing has been enabled.
</p>
</descr>
<seealso/>
</element>
<element name="PCellProps">
<short>Pointer to a TCellProps type.</short>
<descr/>
<seealso/>
</element>
<element name="TCellProps">
<short>Contains attributes, data, and text for grid cells.</short>
<descr/>
<seealso/>
</element>
<element name="TCellProps.Attr">
<short>Attributes for a grid cell.</short>
<descr/>
<seealso/>
</element>
<element name="TCellProps.Data">
<short>Data for a grid cell.</short>
<descr/>
<seealso/>
</element>
<element name="TCellProps.Text">
<short>Display text for a grid cell.</short>
<descr/>
<seealso/>
</element>
<element name="PColRowProps">
<short>Pointer to a TColRowProps type.</short>
<descr/>
<seealso/>
</element>
<element name="TColRowProps">
<short>
Contains the size and display attributes for a column or row in a grid.
</short>
<descr/>
<seealso/>
</element>
<element name="TColRowProps.Size">
<short>Not used in the current implementation.</short>
<descr/>
<seealso/>
</element>
<element name="TColRowProps.FixedAttr">
<short>Not used in the current implementation.</short>
<descr/>
<seealso/>
</element>
<element name="TColRowProps.NormalAttr">
<short>Not used in the current implementation.</short>
<descr/>
<seealso/>
</element>
<element name="PGridMessage">
<short>Pointer to a TGridMessage type.</short>
<descr/>
<seealso/>
</element>
<element name="TGridMessage">
<short>Contains a LCL message and its auxiliary values.</short>
<descr>
<p>
<var>TGridMessage</var> is a record type with members representing an LCL
message passed to cell editors in a string grid. It is passed as an argument
to <var>TStringCellEditor</var> methods (msg_SetMask, msg_GetGrid, et. al.)
which handle and apply a specific LCL message.
</p>
</descr>
<seealso/>
</element>
<element name="TGridMessage.LclMsg">
<short>The LCL message value.</short>
</element>
<element name="TGridMessage.Grid">
<short>Grid for the LCL message.</short>
</element>
<element name="TGridMessage.Col">
<short>Grid column for the LCL message.</short>
</element>
<element name="TGridMessage.Row">
<short>Grid row for the LCL message.</short>
</element>
<element name="TGridMessage.Value">
<short>Cell value for the LCL message.</short>
</element>
<element name="TGridMessage.CellRect">
<short>Rectangle coordinates for the LCL message.</short>
</element>
<element name="TGridMessage.Options">
<short>Options for the LCL message.</short>
</element>
<element name="TStringCellEditor">
<short>Implements the default editor for cells in TCustomGrid.</short>
<descr>
<p>
<var>TStringCellEditor</var> is a <var>TCustomMaskEdit</var> descendant that
implements the default editor for cells in <var>TCustomGrid</var>.
TStringCellEditor contains internal members used to reference its Grid
control, and to access the row and column numbers for the underlying grid
cell. TStringCellEditor also implements methods needed for LCL message
passing using <var>TGridMessage</var>. An event handler is also published to
perform actions needed when editing has been completed in the cell editor.
</p>
</descr>
<seealso>
<link id="TCustomGrid"/>
<link id="TGridMessage"/>
<link id="#lcl.maskedit.TCustomMaskEdit">TCustomMaskEdit</link>
</seealso>
</element>
<element name="TStringCellEditor.FGrid"/>
<element name="TStringCellEditor.FCol"/>
<element name="TStringCellEditor.FRow"/>
<element name="TStringCellEditor.WndProc">
<short>
Implements the message processing loop for the cell editor control.
</short>
<descr>
<p>
<var>WndProc</var> is an overridden method in <var>TStringCellEditor</var>
which implements the message processing loop for the cell editor control.
</p>
<p>
WndProc ensures that the column for the cell in the grid control is not
marked as read-only when handling cut (LM_CUT), paste (LM_PASTE), and clear
(LM_CLEAR) messages in TheMessage argument. No actions are performed in the
method when the EditorIsReadOnly method in the associated grid control
returns <b>True</b>.
</p>
<p>
If the grid control has not been assigned, or TheMessage contains a different
message identifier, the inherited method in TCustomEdit is called to handle
the specified message.
</p>
</descr>
<seealso>
<link id="TStringCellEditor.msg_GetGrid"/>
<link id="#lcl.grids.TCustomGrid.EditorIsReadOnly">TCustomGrid.EditorIsReadOnly</link>
<link id="#lcl.stdctrls.TCustomEdit.WndProc">TCustomEdit.WndProc</link>
</seealso>
</element>
<element name="TStringCellEditor.WndProc.TheMessage">
<short>LCL message handled in the method.</short>
</element>
<element name="TStringCellEditor.Change">
<short>
Performs actions needed when the value in the cell editor has been changed.
</short>
<descr>
<p>
<var>Change</var> is an overridden method in <var>TStringCellEditor</var>
used to perform actions needed to apply the new value in the cell editor to
the associated grid control.
</p>
<p>
Change calls the inherited method on entry to perform a change notification
message for the control, and to signal any assigned OnChange event handler(s)
in the component hierarchy. Please note that the OnChange event is suppressed
when the initial value for cell editor is assigned; the handler is signalled
when the value has been modified using the cell editor control.
</p>
<p>
If the associated grid control has been assigned, and the cell editor is
Visible, the EditorTextChanged method in the grid control is called to apply
the value in Text to the current cell in the grid.
</p>
</descr>
<seealso>
<link id="TCustomGrid.EditorTextChanged"/>
<link id="#lcl.maskedit.TCustomMaskEdit.Change">TCustomMaskEdit.Change</link>
<link id="#lcl.stdctrls.TCustomEdit.OnChange">TCustomEdit.OnChange</link>
<link id="#lcl.controls.TControl.Visible">TControl.Visible</link>
</seealso>
</element>
<element name="TStringCellEditor.KeyDown">
<short>
Handles a key down event for the control.
</short>
<descr>
<p>
KeyDown is an overridden method in TStringCellEditor which handles a key down
event for the cell editor. It calls the inherited method on entry to handle
the virtual key codes normally supported in the TCustomMaskEdit control. It
extends the inherited method to provide support for the following keys:
</p>
<dl>
<dt>F2</dt>
<dd>
Allows the grid control to handle the key. If editing is not enabled for the
control, the current text selection in the editor is cleared. When editing is
enabled and FastEditing is <b>True</b>, SelectAll is called select all of the
content in Text.
</dd>
<dt>Delete, Backspace</dt>
<dd>
Discards the value in key when the grid control or the column is marked as
read-only. Otherwise, the key is forwarded to the EditorKeyDown method in the
grid control.
</dd>
<dt>Cursor Up, Cursor Down</dt>
<dd>
Forwards the key to the KeyDown method in the grid control.
</dd>
<dt>Cursor Left, Cursor Right</dt>
<dd>
Handles cell navigation for the grid control, and caret position changes for
the cell editor. Uses SelStart to determine the position for the selected
text in the editor. Forwards the key to the grid control or its Editor
control as needed for the current selection.
</dd>
<dt>Escape</dt>
<dd>
Allows the grid control to handle the key. When not handled, the unedited
value is restored to the cell and the EditorHide method for the grid is
called to hide the editor control.
</dd>
</dl>
<p>
Other unhandled key codes are forwarded to the EditKeyDown method for the
grid control.
</p>
</descr>
<seealso>
<link id="#lcl.maskedit.TCustomMaskEdit.KeyDown">TCustomMaskEdit.KeyDown</link>
</seealso>
</element>
<element name="TStringCellEditor.KeyDown.Key">
<short>Key code handled in the method.</short>
</element>
<element name="TStringCellEditor.KeyDown.Shift">
<short>Shift, Ctrl, or Alt modifier the key code.</short>
</element>
<element name="TStringCellEditor.msg_SetMask">
<short>
Handles the message used to set the EditMask for the cell editor.
</short>
<descr/>
<seealso/>
</element>
<element name="TStringCellEditor.msg_SetMask.Msg">
<short>Grid message for the control.</short>
</element>
<element name="TStringCellEditor.msg_SetValue">
<short>
Handles the message used to set the Text and caret position in the cell
editor.
</short>
<descr/>
<seealso/>
</element>
<element name="TStringCellEditor.msg_SetValue.Msg">
<short>Grid message for the control.</short>
</element>
<element name="TStringCellEditor.msg_GetValue">
<short>
Handles the message used to store the coordinates and text for the cell to
the specified grid message.
</short>
<descr/>
<seealso/>
</element>
<element name="TStringCellEditor.msg_GetValue.Msg">
<short>Grid message for the control.</short>
</element>
<element name="TStringCellEditor.msg_SetGrid">
<short>
Handles the message used to store the associated grid and options for the
cell editor.
</short>
<descr/>
<seealso/>
</element>
<element name="TStringCellEditor.msg_SetGrid.Msg">
<short>Grid message for the control.</short>
</element>
<element name="TStringCellEditor.msg_SelectAll">
<short>
Calls the SelectAll method when the GM_SELCTALL message is received.
</short>
<descr/>
<seealso/>
</element>
<element name="TStringCellEditor.msg_SelectAll.Msg">
<short>Grid message for the control.</short>
</element>
<element name="TStringCellEditor.msg_SetPos">
<short>
Stores the column and row numbers from the specified message to the cell
editor.
</short>
</element>
<element name="TStringCellEditor.msg_SetPos.Msg">
<short>Grid message for the control.</short>
</element>
<element name="TStringCellEditor.msg_GetGrid">
<short>
Stores the associated grid control and its options to the specified message.
</short>
<descr/>
<seealso/>
</element>
<element name="TStringCellEditor.msg_GetGrid.Msg">
<short>Grid message for the control.</short>
</element>
<element name="TStringCellEditor.Create">
<short>Constructor for the class instance.</short>
<descr>
<p>
<var>Create</var> is the overridden constructor for the class instance.
Create calls the inherited constructor using the value in <var>AOwner</var>
as an argument. Create sets the value in the <var>AutoSize</var> property to
<b>False</b>.
</p>
</descr>
<seealso>
<link id="#lcl.stdctrls.TCustomEdit.AutoSize">TCustomEdit.AutoSize</link>
</seealso>
</element>
<element name="TStringCellEditor.Create.AOwner">
<short>Owner of the class instance.</short>
</element>
<element name="TStringCellEditor.EditingDone">
<short>
Performs actions needed when the cell editor has finished editing the value
in a cell.
</short>
<descr>
<p>
<var>EditingDone</var> is an overridden procedure used to perform actions
required when the cell editor has finished editing the value in a cell.
EditingDone calls the inherited method, and calls the EditingDone method in
the attached Grid control (when assigned) for the cell editor.
</p>
</descr>
<seealso>
<link id="TCustomGrid.EditingDone"/>
</seealso>
</element>
<element name="TStringCellEditor.EditText" link="#lcl.maskedit.TCustomMaskEdit.EditText"/>
<element name="TStringCellEditor.OnEditingDone" link="#lcl.controls.TControl.OnEditingDone"/>
<element name="TButtonCellEditor">
<short>The editor used for button-style cells in a grid.</short>
<descr>
<p>
<var>TButtonCellEditor</var> is a <var>TButton</var> descendant which
implements a grid cell editor which uses a button to activate the editor
control. TButtonCellEditor maintains internal member variables for the
TCustomGrid hosting the editor control. The row and column numbers for the
underlying cell in editor control are available in the <var>Row</var> and
<var>Col</var> properties. TButtonCellEditor includes methods used to perform
LCL message passing using a <var>TGridMessage</var> message type.
</p>
</descr>
<seealso>
<link id="TCustomGrid"/>
<link id="TGridMessage"/>
<link id="TButtonCellEditor.Col"/>
<link id="TButtonCellEditor.Row"/>
</seealso>
</element>
<element name="TButtonCellEditor.FGrid"/>
<element name="TButtonCellEditor.FCol"/>
<element name="TButtonCellEditor.FRow"/>
<element name="TButtonCellEditor.msg_SetGrid">
<short>
Handles the message which stores the associated grid and options used in the
cell editor.
</short>
<descr/>
<seealso/>
</element>
<element name="TButtonCellEditor.msg_SetGrid.Msg">
<short>Grid message for the cell editor.</short>
</element>
<element name="TButtonCellEditor.msg_SetBounds">
<short>
Handles the message which sets the bounds for the cell rectangle in the cell
editor.
</short>
<descr>
<p>
Adjusts the rectangle for the "rubber band" displayed around the cell, and
ensures that space is reserved for the button displayed for the editor
control.
</p>
</descr>
</element>
<element name="TButtonCellEditor.msg_SetBounds.Msg">
<short>Grid message for the cell editor.</short>
</element>
<element name="TButtonCellEditor.msg_SetPos">
<short>
Handles the message used to save the column and row number to the cell editor
control.
</short>
<descr/>
<seealso/>
</element>
<element name="TButtonCellEditor.msg_SetPos.Msg">
<short>Grid message for the cell editor.</short>
</element>
<element name="TButtonCellEditor.msg_Ready">
<short>
Handles the message which sets the width for the editor when it is ready to
edit in the cell.
</short>
</element>
<element name="TButtonCellEditor.msg_Ready.Msg">
<short>LCL message for the grid control.</short>
</element>
<element name="TButtonCellEditor.msg_GetGrid">
<short>
Handles the message used to get the grid control and options for the cell
editor.
</short>
</element>
<element name="TButtonCellEditor.msg_GetGrid.Msg">
<short>LCL message for the grid control.</short>
</element>
<element name="TButtonCellEditor.Col">
<short>Column number for the cell editor.</short>
<descr>
<p>
<var>Col</var> is a public read-only <var>Integer</var> property which
contains the column number for the cell hosting the editor control.
</p>
<p>
Use <var>Row</var> to access the row number for the cell hosting the editor
control.
</p>
</descr>
<seealso>
<link id="TButtonCellEditor.Row"/>
</seealso>
</element>
<element name="TButtonCellEditor.Row">
<short>Row number for the cell editor.</short>
<descr>
<p>
<var>Row</var> is a public read-only <var>Integer</var> property which
contains the row number for the cell hosting the editor control.
</p>
<p>
Use <var>Col</var> to access the column number for the cell hosting the
editor control.
</p>
</descr>
<seealso>
<link id="TButtonCellEditor.Col"/>
</seealso>
</element>
<element name="TPickListCellEditor">
<short>Implements a cell editor control which displays a pick list.</short>
<descr>
<p>
<var>TPickListCellEditor</var> is a <var>TCustomComboBox</var> descendant
which implements a cell editor control that displays a pick list.
TPickListCellEditor provides overridden methods to alter the behavior of the
TCustomComboBox ancestor.
</p>
<p>
TPickListCellEditor has an internal member used to store the
<var>TCustomGrid</var> for the cell editor. In addition, the <var>Row</var>
and <var>Column</var> numbers for the underlying cell are stored in internal
members. TPickListCellEditor provides methods needed to implement LCL message
passing using the TGridMessage message type.
</p>
</descr>
<seealso>
<link id="TGridMessage"/>
</seealso>
</element>
<element name="TPickListCellEditor.FGrid"/>
<element name="TPickListCellEditor.FCol"/>
<element name="TPickListCellEditor.FRow"/>
<element name="TPickListCellEditor.WndProc">
<short>
Implements the message processing loop for the cell editor.
</short>
<descr>
<p>
<var>WndProc</var> is an overridden method in <var>TPickListCellEditor</var>.
It ensures that an LM_KILLFOCUS message in TheMessage is ignored when the
cell editor temporarily looses focus during an update to the control.
</p>
<p>
WndProc calls the inherited method prior to exit to respond to other window,
mouse, and keyboard messages.
</p>
</descr>
<seealso>
<link id="#lcl.lmessages.TLMessage">TLMessage</link>
<link id="#lcl.controls.TWinControl.WndProc">TWinControl.WndProc</link>
</seealso>
</element>
<element name="TPickListCellEditor.WndProc.TheMessage">
<short>
LCL message examined and handled in the method.
</short>
</element>
<element name="TPickListCellEditor.KeyDown">
<short>
Handles a key down message for the cell editor.
</short>
<descr>
<p>
<var>KeyDown</var> is an overridden method in <var>TPickListCellEditor</var>.
It extends the inherited method to ensure that specific key codes are applied
to the grid or the editor control as needed.
</p>
<p>
KeyDown calls the inherited method on entry to handle Tab, Return, and Escape
key code in the manner needed for the TCustomComboBox ancestor. It adds
support for the following keys:
</p>
<dl>
<dt>F2</dt>
<dd>
Clears the selection length and moves the caret position to the end of the
Text in the cell editor.
</dd>
<dt>Return</dt>
<dd>
Calls the EditorkeyDown method for the grid control, discards the key code,
and closes the drop down in the editor control when it is expanded.
</dd>
<dt>Delete</dt>
<dd>
Discards the key code if the grid control or the editor cannot be modified.
</dd>
<dt>Cursor Up, Cursor Down</dt>
<dd>
Calls the KeyDown method for the grid control if the drop down is not
expanded for the cell editor.
</dd>
<dt>Cursor Left, Cursor Right</dt>
<dd>
Handles cell navigation for the grid control, and caret position changes for
the cell editor. Uses SelStart to determine the position for the selected
text in the editor. Forwards the key to the grid control or its Editor
control as needed for the current selection.
</dd>
<dt>Home, End</dt>
<dd>Ignored in the key down handler.</dd>
<dt>Escape</dt>
<dd>
Allows the grid control to handle the key. When not handled, the unedited
value is restored to the cell and the EditorHide method for the grid is
called to hide the editor control.
</dd>
</dl>
<p>
Other unhandled key codes are forwarded to the EditKeyDown method for the
grid control.
</p>
</descr>
<seealso>
<link id="#lcl.stdctrls.TCustomComboBox.KeyDown">TCustomComboBox.KeyDown</link>
</seealso>
</element>
<element name="TPickListCellEditor.KeyDown.Key">
<short>Key code for the key down event.</short>
</element>
<element name="TPickListCellEditor.KeyDown.Shift">
<short>Shift, Alt, or Ctrl modifier for the key down event.</short>
</element>
<element name="TPickListCellEditor.DropDown" link="#lcl.stdctrls.TCustomComboBox.DropDown"/>
<element name="TPickListCellEditor.CloseUp" link="#lcl.stdctrls.TCustomComboBox.CloseUp"/>
<element name="TPickListCellEditor.Select">
<short>
Applies a value selected from the pick list to the grid and signals its
OnPickListSelect event handler.
</short>
<descr>
<p>
<var>Select</var> is an overridden method in <var>TPickListCellEditor</var>
used to apply the value selected from the drop-down list in the editor to a
cell in the grid.
</p>
<p>
When the associated grid for the cell editor has been assigned, its
EditorTextChanged method is called to apply the Text in the editor to the
cell. The PickListItemSelected in the grid control is called to signal the
OnPickListSelect event handler (when assigned).
</p>
<p>
Select calls the inherited method prior to exit to signal the OnSelect event
handler in the ancestor control (TCustomComboBox).
</p>
</descr>
<seealso>
<link id="TCustomGrid.EditorTextChanged"/>
<link id="TCustomGrid.PickListItemSelected"/>
<link id="#lcl.stdctrls.TCustomComboBox.Text">TCustomComboBox.Text</link>
<link id="#lcl.stdctrls.TCustomComboBox.Select">TCustomComboBox.Select</link>
<link id="#lcl.stdctrls.TCustomComboBox.OnSelect">TCustomComboBox.OnSelect</link>
</seealso>
</element>
<element name="TPickListCellEditor.Change">
<short>
Notifies the Grid control when the value for the cell editor has been changed.
</short>
<descr>
<p>
<var>Change</var> is an overridden method used to perform actions needed when
the value for the control has been changed. In
<var>TPickListCellEditor</var>, it ensures that the grid control is notified
when the value in the cell editor has been changed.
</p>
<p>
Changed calls the inherited method to signal the <var>OnChange</var> event
handler (when assigned).
</p>
</descr>
<seealso>
<link id="TPickListCellEditor.OnEditingDone"/>
<link id="#lcl.stdctrls.TCustomComboBox.Change">TCustomComboBox.Change</link>
</seealso>
</element>
<element name="TPickListCellEditor.msg_GetValue">
<short>
Handles the message used to store the coordinates and text for the cell to
the specified grid message.
</short>
<descr/>
<seealso>
<link id="#lcl.stdctrls.TCustomComboBox.Text">TCustomComboBox.Text</link>
</seealso>
</element>
<element name="TPickListCellEditor.msg_GetValue.Msg">
<short>LCL message for the grid control.</short>
</element>
<element name="TPickListCellEditor.msg_SetGrid">
<short>
Handles the message used to store the associated grid and options for the
cell editor.
</short>
<descr/>
<seealso/>
</element>
<element name="TPickListCellEditor.msg_SetGrid.Msg">
<short>LCL message for the grid control.</short>
</element>
<element name="TPickListCellEditor.msg_SetValue">
<short>
Handles the message used to set the Text and caret position in the cell
editor.
</short>
<descr/>
<seealso/>
</element>
<element name="TPickListCellEditor.msg_SetValue.Msg">
<short>LCL message for the grid control.</short>
</element>
<element name="TPickListCellEditor.msg_SetPos">
<short>
Stores the column and row numbers from the specified message to the cell
editor.
</short>
<descr/>
<seealso/>
</element>
<element name="TPickListCellEditor.msg_SetPos.Msg">
<short>LCL message for the grid control.</short>
</element>
<element name="TPickListCellEditor.msg_GetGrid">
<short>
Stores the associated grid control and its options to the specified message.
</short>
<descr/>
<seealso/>
</element>
<element name="TPickListCellEditor.msg_GetGrid.Msg">
<short>LCL message for the grid control.</short>
</element>
<element name="TPickListCellEditor.EditingDone">
<short>
Performs actions needed to synchronize the grid and the editor when editing
has been completed in the cell editor.
</short>
<descr>
<p>
<var>EditingDone</var> is an overridden method in
<var>TPickListCellEditor</var>. It calls the inherited method on entry to
signal the OnEditingDone event handler (when assigned). The EditingDone
method in the associated grid control is called when the editor control is
not already visible.
</p>
</descr>
<seealso>
<link id="TPickListCellEditor.OnEditingDone"/>
<link id="TCustomGrid.EditingDone"/>
<link id="TCustomGrid.EditorShowing"/>
<link id="#lcl.controls.TControl.EditingDone">TControl.EditingDone</link>
<link id="#lcl.controls.TControl.OnEditingDone">TControl.OnEditingDone</link>
</seealso>
</element>
<element name="TPickListCellEditor.BorderStyle" link="#lcl.controls.TWinControl.BorderStyle"/>
<element name="TPickListCellEditor.OnEditingDone" link="#lcl.controls.TControl.OnEditingDone"/>
<element name="TEditorItem">
<short>
Represents one of the editors used in a TCompositeCellEditor instance.
</short>
<descr>
<p>
<var>TEditorItem</var> is a record type used to maintain information about an
editor control used a TCompositeCellEditor instance. Members in the record
identify the editor control, its alignment, and a flag which indicates if the
editor control is active.
</p>
<p>
TEditorItem instances are allocated when the AddEditor method in
TCompositeCellEditor is called.
</p>
</descr>
<seealso>
<link id="TCompositeCellEditor.AddEditor"/>
</seealso>
</element>
<element name="TEditorItem.Editor">
<short>The <var>Editor</var> to be used for this item.</short>
</element>
<element name="TEditorItem.Align">
<short>
Alignment for the editor relative to the other controls in the composite
editor.
</short>
</element>
<element name="TEditorItem.ActiveControl">
<short>
<b>True</b> if Editor is the active control for a composite cell editor.
</short>
</element>
<element name="TCompositeCellEditor">
<short>
Implements a composite cell editor with combines one or more of the
predefined cell editors types.
</short>
<descr>
<p>
<var>TCompositeCellEditor</var> is a <var>TCustomControl</var> descendant
which implements a cell editor composed of one or more of the cell editor
types, such as:
</p>
<ul>
<li>TStringCellEditor</li>
<li>TButtonCellEditor</li>
</ul>
<p>
Editor controls of a specific type can be added to the class instance using
the AddEditor method.
</p>
<p>
Use MaxLength to set the maximum number of characters allowed in the editor
control derived from TCustomEdit in the composite editor.
</p>
<p>
Use ActiveControl to access the editor which is the focused control for the
composite cell editor.
</p>
<p>
TCompositeCellEditor is the type used to implement the string cell editor in
TCustomGrid / TGrid which includes a button to signal the OnEditButtonClick
event for the grid control.
</p>
</descr>
<seealso>
<link id="TCompositeCellEditor.MaxLength"/>
<link id="TCompositeCellEditor.ActiveControl"/>
<link id="TCompositeCellEditor.AddEditor"/>
<link id="TCustomGrid.OnEditButtonClick"/>
<link id="TStringCellEditor"/>
<link id="TButtonCellEditor"/>
<link id="#lcl.controls.TCustomControl">TCustomControl</link>
</seealso>
</element>
<element name="TCompositeCellEditor.DoUTF8KeyPress">
<short>
Performs actions to handle a key press events for a UTF-8-encoded character.
</short>
<descr>
<p>
<var>DoUTF8KeyPress</var> is an overridden method in
<var>TCompositeCellEditor</var>. It calls the inherited method on entry to
allow the key press to be previewed in Parent forms, or handled by the design
surface at design-time. If the value in UTF8Key is not handled in the
ancestor, the character is sent to (and optionally handled by) the
ActiveControl in the composite cell editor.
</p>
<p>
The return value is <b>True</b> if the character in UTF8Key is handled in the
method.
</p>
</descr>
<seealso>
<link id="TCompositeCellEditor.ActiveControl"/>
<link id="#lcl.controls.TWinControl.DoUTF8KeyPress">TWinControl.DoUTF8KeyPress</link>
<link id="#lcl.forms.TCustomForm.KeyPreview">TCustomForm.KeyPreview</link>
</seealso>
</element>
<element name="TCompositeCellEditor.DoUTF8KeyPress.Result">
<short><b>True</b> if the key press is handled in the message.</short>
</element>
<element name="TCompositeCellEditor.DoUTF8KeyPress.UTF8Key">
<short>
UTF-8-encoded character value examined in the method.
</short>
</element>
<element name="TCompositeCellEditor.msg_GetValue">
<short>
Handles the message used to store the coordinates and text for the cell
editor to the specified grid message.
</short>
<descr>
<p>
The message is dispatched to each of the editor controls in the composite
editor until one of them reports a modified value.
</p>
</descr>
<seealso/>
</element>
<element name="TCompositeCellEditor.msg_GetValue.Msg">
<short>Grid message updated in the method.</short>
</element>
<element name="TCompositeCellEditor.msg_SetGrid">
<short>
Handles the message used to store the associated grid and options for the
cell editor.
</short>
<descr>
<p>
The message is dispatched to each of the editor controls in the composite
editor.
</p>
</descr>
<seealso/>
</element>
<element name="TCompositeCellEditor.msg_SetGrid.Msg">
<short>Grid message examined in the method.</short>
</element>
<element name="TCompositeCellEditor.msg_SetValue">
<short>
Handles the message used to set the Text and caret position in the composite
cell editor.
</short>
<descr>
<p>
Dispatches the message to each of the editor controls in the composite cell
editor.
</p>
</descr>
<seealso/>
</element>
<element name="TCompositeCellEditor.msg_SetValue.Msg">
<short>Grid message processed in the method.</short>
</element>
<element name="TCompositeCellEditor.msg_SetBounds">
<short>
Handles the message which sets the bounds for the cell rectangle in the cell
editor.
</short>
<descr>
<p>
Dispatches the message to each of the editor controls in the composite cell
editor.
</p>
</descr>
<seealso/>
</element>
<element name="TCompositeCellEditor.msg_SetBounds.Msg">
<short>Grid message examined in the method.</short>
</element>
<element name="TCompositeCellEditor.msg_SetMask">
<short>
Handles the message used to set the EditMask for the cell editor.
</short>
<descr>
<p>
Dispatches the message to each of the editor controls in the composite editor.
</p>
</descr>
<seealso/>
</element>
<element name="TCompositeCellEditor.msg_SetMask.Msg">
<short>Grid message examined in the method.</short>
</element>
<element name="TCompositeCellEditor.msg_SelectAll">
<short>
Calls the SelectAll method when the GM_SELCTALL message is received.
</short>
<descr>
<p>
Dispatches the message to each of the editor controls in the composite editor.
</p>
</descr>
<seealso/>
</element>
<element name="TCompositeCellEditor.msg_SelectAll.Msg">
<short>Grid message examined in the method.</short>
</element>
<element name="TCompositeCellEditor.CMControlChange">
<short>
Handles the CM_CONTROLCHANGE control message for the composite editor.
</short>
<descr>
<p>
Sets the align property to alNone in the control at the address in Message
when it is not the active control.
</p>
</descr>
<seealso/>
</element>
<element name="TCompositeCellEditor.CMControlChange.Message">
<short>Control message with the values examined in the method.</short>
</element>
<element name="TCompositeCellEditor.msg_SetPos">
<short>
Stores the column and row numbers from the specified message to the cell
editor.
</short>
<descr>
<p>
Dispatches the message to each of the editor controls for the composite cell
editor.
</p>
</descr>
<seealso/>
</element>
<element name="TCompositeCellEditor.msg_SetPos.Msg">
<short>Grid message handled in the method.</short>
</element>
<element name="TCompositeCellEditor.msg_GetGrid">
<short>
Handles the message used to store the grid control and editor options in the
specified grid message.
</short>
<descr/>
<seealso/>
</element>
<element name="TCompositeCellEditor.msg_GetGrid.Msg">
<short>Grid message handled in the method.</short>
</element>
<element name="TCompositeCellEditor.GetActiveControl">
<short>
Gets the value for the ActiveControl property.
</short>
<descr>
<p>
Gets the TWinControl-derived editor marked as the active control for the
composite cell editor.
</p>
</descr>
<seealso/>
</element>
<element name="TCompositeCellEditor.GetActiveControl.Result">
<short>Value for the ActiveControl property</short>
</element>
<element name="TCompositeCellEditor.VisibleChanging">
<short>
Hides or displays editor controls when the value for the Visible property is
changed.
</short>
<descr>
<p>
Calls the inherited method on entry to signal assigned OnVisibleChanging event
handlers in the control or form hierarchy. Updates the Visible property in
each of the editor controls to match the property value in the
TCompositeCellEditor instance. When displaying the editor controls, their
Parent property is also updated to use the TCompositeCellEditor instance.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TControl.VisibleChanging">TControl.VisibleChanging</link>
</seealso>
</element>
<element name="TCompositeCellEditor.SendChar">
<short>
Sends the specified character to the active control and returns an integer
status result.
</short>
<descr>
<p>
Gets the active editor control, and sends the specified character to its
widgetset class instance when the handle has been allocated. The return value
is <b>1</b> if the character was sent to the widgetset class. The return
value is <b>0</b> if the active control could not be determined, or its
handle is not available.
</p>
</descr>
</element>
<element name="TCompositeCellEditor.SendChar.AChar">
<short>UTF-8-encoded character applied in the method.</short>
</element>
<element name="TCompositeCellEditor.SetColor">
<short>Sets the value for the Color property.</short>
<descr>
<p>
Overridden in TCompositeCellEditor to ensure that the new color value is also
applied to the ActiveControl (when assigned) in the composite editor.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TControl.Color">TControl.Color</link>
</seealso>
</element>
<element name="TCompositeCellEditor.SetColor.Value">
<short>New value for the Color property.</short>
</element>
<element name="TCompositeCellEditor.WndProc">
<short>Implements message processing for the composite cell editor.</short>
<descr>
<p>
<var>WndProc</var> is an overridden method in
<var>TCompositeCellEditor</var>. It ensures that a LM_CHAR message in
TheMessage is handled for the control. The character argument in the message
is passed to the active control using the SendChar method.
</p>
<p>
No additional actions are performed in the method if the character is handled
by one of the editor controls in the composite editor. If the character is
not handled, or the message has a message constant other than LM_CHAR, the
inherited method (in TWinControl) is called.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TControl.WndProc">#lcl.controls.TControl.WndProc</link>
</seealso>
</element>
<element name="TCompositeCellEditor.WndProc.TheMessage">
<short>LCL message handled for the control.</short>
</element>
<element name="TCompositeCellEditor.Destroy">
<short>Destructor for the class instance.</short>
<descr>
<p>
Frees the internal list of <var>TEditorItem</var> instances, and calls the
inherited destructor.
</p>
</descr>
<seealso>
<link id="TCompositeCellEditor.AddEditor"/>
<link id="TEditorItem"/>
</seealso>
</element>
<element name="TCompositeCellEditor.CustomAlignPosition">
<short>Sets the position for the editor in the composite control.</short>
<descr>
<p>
<var>CustomAlignPosition</var> is an overridden method in
<var>TCompositeCellEditor</var> used to position and align the specified
control in the composite editor. Currently there is only one aligned control
in the composite editor; no provisions are made for calling
CustomAlignInsertBefore() or sharing space with other editors in the control.
</p>
<p>
The variable arguments are updated in the method to reflect the new position
and size for the specified control, including:
</p>
<ul>
<li>ANewLeft</li>
<li>ANewTop</li>
<li>ANewWidth</li>
<li>ANewHeight</li>
</ul>
<p>
CustomAlignPosition does <b>not</b> call the inherited method.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TWinControl.CustomAlignPosition">TWinControl.CustomAlignPosition</link>
</seealso>
</element>
<element name="TCompositeCellEditor.CustomAlignPosition.AControl">
<short>Editor control positioned and aligned in the method.</short>
</element>
<element name="TCompositeCellEditor.CustomAlignPosition.ANewLeft">
<short>New coordinate value derived in the method.</short>
</element>
<element name="TCompositeCellEditor.CustomAlignPosition.ANewTop">
<short>New coordinate value derived in the method.</short>
</element>
<element name="TCompositeCellEditor.CustomAlignPosition.ANewWidth">
<short>New size value derived in the method.</short>
</element>
<element name="TCompositeCellEditor.CustomAlignPosition.ANewHeight">
<short>New size value derived in the method.</short>
</element>
<element name="TCompositeCellEditor.CustomAlignPosition.AlignRect">
<short>
Rectangle where the control is aligned. Not updated in the method.
</short>
</element>
<element name="TCompositeCellEditor.CustomAlignPosition.AlignInfo">
<short>Not used in the current implementation.</short>
</element>
<element name="TCompositeCellEditor.AddEditor">
<short>
Adds the specified control to the composite cell editor using the given
alignment and active state.
</short>
<descr>
<p>
<var>AddEditor</var> increases the capacity for the internal array of
TEditorItem instances used in the control. It stores the parameter values to
the Editor, Align, and ActiveControl members in the new TEditorItem instance.
</p>
</descr>
<seealso>
<link id="TEditorItem"/>
</seealso>
</element>
<element name="TCompositeCellEditor.AddEditor.AEditor">
<short>Editor control added to the composite cell editor.</short>
</element>
<element name="TCompositeCellEditor.AddEditor.AAlign">
<short>Alignment for the control relative to other editors.</short>
</element>
<element name="TCompositeCellEditor.AddEditor.ActiveCtrl">
<short>
<b>True</b> if AEditor is the active control for the composite cell editor.
</short>
</element>
<element name="TCompositeCellEditor.SetFocus">
<short>
Focuses the active control for the composite editor when it is Visible.
</short>
<descr/>
<seealso>
<link id="#lcl.controls.TWinControl.SetFocus">TWinControl.SetFocus</link>
<link id="#lcl.controls.TControl.Visible">TControl.Visible</link>
</seealso>
</element>
<element name="TCompositeCellEditor.Focused">
<short>
Indicates if the composite cell editor and one of its editor controls are
focused.
</short>
<descr/>
<seealso/>
</element>
<element name="TCompositeCellEditor.Focused.Result">
<short>
<b>True</b> when the control and one of its editors are focused.
</short>
</element>
<element name="TCompositeCellEditor.MaxLength">
<short>Maximum length for the value in the composite editor control.</short>
<descr>
<p>
The property value contains the maximum length from the
<var>TCustomEdit</var> control in <var>ActiveControl</var>. Changing the
value for the property causes the <var>MaxLength</var> property in the
TCustomEdit control to be updated.
</p>
</descr>
<seealso/>
</element>
<element name="TCompositeCellEditor.ActiveControl">
<short>
Contains the active editor control for the composite cell editor.
</short>
<descr>
<p>
<var>ActiveControl</var> is a read-only <var>TWinControl</var> property which
contains the active editor control for the composite cell editor. The
property value is retrieved from the internal list of TEditorItem instances
added to the composite editor using the AddEditor method.
</p>
<p>
Each of the TEditorItem instances is visited until an editor with its
ActiveControl property set to <b>True</b> is found. The return value contains
the control found in the internal list, or <b>Nil</b> if none of the editor
controls are the active editor in the composite cell editor.
</p>
<p>
ActiveControl is used in the implementations for properties and methods in
the class, like:
</p>
<ul>
<li>Focused</li>
<li>MaxLenth</li>
<li>SetColor</li>
<li>SetFocus</li>
<li>SendChar</li>
<li>AddEditor</li>
</ul>
</descr>
<seealso>
<link id="TCompositeCellEditor.MaxLength"/>
<link id="TCompositeCellEditor.SetFocus"/>
<link id="TCompositeCellEditor.SendChar"/>
<link id="TCompositeCellEditor.SetColor"/>
<link id="TCompositeCellEditor.AddEditor"/>
<link id="TEditorItem"/>
</seealso>
</element>
<element name="TOnDrawCell">
<short>
Defines the event handler signalled to draw a cell on a grid control.
</short>
<descr>
<p>
<var>TOnDrawCell</var> is the type used to implement the OnDrawCell event
handler in TCustomGrid.
</p>
</descr>
<seealso>
<link id="TCustomGrid.OnDrawCell"/>
</seealso>
</element>
<element name="TOnDrawCell.Sender">
<short>Grid control for the event notification.</short>
</element>
<element name="TOnDrawCell.aCol">
<short>Column number to draw in the event handler.</short>
</element>
<element name="TOnDrawCell.aRow">
<short>Row number to draw in the event handler.</short>
</element>
<element name="TOnDrawCell.aRect">
<short>Rectangle to draw in the event handler.</short>
</element>
<element name="TOnDrawCell.aState">
<short>Grid drawing state used in the event handler.</short>
</element>
<element name="TOnSelectCellEvent">
<short>
Specifies the event handler signalled when a cell is selected in a grid
control.
</short>
<descr>
<p>
<var>TOnSelectCellEvent</var> specifies the event handler signalled when a
cell is selected in a custom-drawn grid control. TOnSelectCellEvent is the
type used to implement the OnSelectCell in TCustomDrawGrid.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.OnSelectCell"/>
</seealso>
</element>
<element name="TOnSelectCellEvent.Sender">
<short>Control for the event notification.</short>
</element>
<element name="TOnSelectCellEvent.aCol">
<short>Column number for the selection notification.</short>
</element>
<element name="TOnSelectCellEvent.aRow">
<short>Row number for the selection notification.</short>
</element>
<element name="TOnSelectCellEvent.CanSelect">
<short>Set to <b>True</b> if the specified cell can be selected.</short>
</element>
<element name="TOnSelectEvent">
<short>
Specifies an event handler signalled for a selection in a grid control.
</short>
<descr>
<p>
<var>TOnSelectEvent</var> specifies an event handler signalled when a
selection is made in a grid control. TOnSelectEvent is the type used to
implement event handler properties in TCustomGrid, including:
</p>
<ul>
<li>OnAfterSelection</li>
<li>OnBeforeSelection</li>
<li>OnButtonClick</li>
<li>OnSelection</li>
</ul>
<p>
Applications must implement an object procedure using the signature for the
event handler to respond to the event notification.
</p>
</descr>
<seealso>
<link id="TCustomGrid.OnAfterSelection"/>
<link id="TCustomGrid.OnBeforeSelection"/>
<link id="TCustomGrid.OnButtonClick"/>
<link id="TCustomGrid.OnSelection"/>
</seealso>
</element>
<element name="TOnSelectEvent.Sender">
<short>Control generating the event notification.</short>
</element>
<element name="TOnSelectEvent.aCol">
<short>Column number for the selection.</short>
</element>
<element name="TOnSelectEvent.aRow">
<short>Row number for the selection.</short>
</element>
<element name="TGridOperationEvent">
<short>
Defines the event handler signalled when rows or columns are added, deleted
or moved in a grid.
</short>
<descr>
<p>
<var>TGridOperationEvent</var> specifies an event handler signalled when rows
or columns are added, deleted or moved in a custom-drawn grid control.
TGridOperationEvent is the type used to implement event handler properties in
<var>TCustomDrawGrid</var>, including:
</p>
<ul>
<li>OnColRowDeleted</li>
<li>OnColRowExchanged</li>
<li>OnColRowInserted/</li>
<li>OnColRowMoved</li>
</ul>
<p>
Applications must implement an object procedure using the signature for the
event handler to respond to the event notification.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.OnColRowDeleted"/>
<link id="TCustomDrawGrid.OnColRowExchanged"/>
<link id="TCustomDrawGrid.OnColRowInserted"/>
<link id="TCustomDrawGrid.OnColRowMoved"/>
</seealso>
</element>
<element name="TGridOperationEvent.Sender">
<short>Control for the event notification.</short>
</element>
<element name="TGridOperationEvent.IsColumn">
<short>
<b>True</b> when the notification is for a column and not a row.
</short>
</element>
<element name="TGridOperationEvent.sIndex">
<short>Starting index position for the row or column.</short>
</element>
<element name="TGridOperationEvent.tIndex">
<short>Final index position for the row or column.</short>
</element>
<element name="THdrEvent">
<short>
Specifies an event handler signalled when an event occurs in a fixed header
cell.
</short>
<descr>
<p>
<var>THdrEvent</var> specifies an event handler signalled when an event
occurs in a column header. Arguments passed to the event handler indicate
whether the action occurred for a column or a row header, and the index
position for the row or column.
</p>
<p>
<var>THdrEvent</var> is the type used to implement the
<var>OnHeaderClick</var> and <var>OnHeaderSized</var> properties in
<var>TCustomDrawGrid</var>. Applications must implement an object procedure
using the event signature to respond to the event notification.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.OnHeaderClick"/>
<link id="TCustomDrawGrid.OnHeaderSized"/>
</seealso>
</element>
<element name="THdrEvent.Sender">
<short>Control generating the event notification.</short>
</element>
<element name="THdrEvent.IsColumn">
<short>
<b>True</b> if the event applies to a column header; <b>False</b> when a row
header is affected.
</short>
</element>
<element name="THdrEvent.Index">
<short>Index position for the row or column in the event notification.</short>
</element>
<element name="TOnCompareCells">
<short>
Specifies an event handler signalled to compare cell values.
</short>
<descr>
<p>
<var>TOnCompareCells</var> specifies an event handler signalled to compare
the cells at the coordinates in <var>ACol</var>, <var>ARow</var>,
<var>BCol</var>, and <var>BRow</var>. ACol and ARow are the column and row
numbers for the first value in the comparison. BCol and BRow are the column
and row number for the second value in the comparison.
</p>
<p>
<var>Result</var> is a variable <var>Integer</var> argument used to return
the relative sort order for the compared values. The event handler must
perform the actions needed to compare the cell values, and set the value in
Result accordingly. <var>Result</var> should contain the following values:
</p>
<dl>
<dt>-1</dt>
<dd>The cell value at ACol, ARow occurs before the value at BCol, BRow</dd>
<dt>0</dt>
<dd>The compared cells contain the same values</dd>
<dt>1</dt>
<dd>The cell value at ACol, ARow occurs after the cell value at BCol,
BRow</dd>
</dl>
<p>
TOnCompareCells is the type used to implement the <var>OnCompareCells</var>
in <var>TCustomGrid</var>.
</p>
</descr>
<seealso>
<link id="TCustomGrid.OnCompareCells"/>
</seealso>
</element>
<element name="TOnCompareCells.Result">
<short>Relative sort order for the compared values.</short>
</element>
<element name="TOnCompareCells.Sender">
<short>Control generating the event notification.</short>
</element>
<element name="TOnCompareCells.ACol">
<short>Column number for the first compared cell value.</short>
</element>
<element name="TOnCompareCells.ARow">
<short>Row number for the first compared cell value.</short>
</element>
<element name="TOnCompareCells.Bcol">
<short>Column number for the second compared cell value.</short>
</element>
<element name="TOnCompareCells.BRow">
<short>Row number for the second compared cell value.</short>
</element>
<element name="TSelectEditorEvent">
<short>
Specifies an event handler signalled to get an editor control for the
specified cell.
</short>
<descr>
<p>
<var>TSelectEditorEvent</var> specifies an event handler signalled to get an
editor control for the cell at the coordinates in <var>ACol</var> and
<var>ARow</var>.
</p>
<p>
<var>Editor</var> is the <var>TWinControl</var> or descendent class instance
to use as the cell editor for the given cell.
</p>
<p>
TSelectEditorEvent is the type used to implement the
<var>OnSelectEditor</var> in <var>TCustomGrid</var>. Applications must
implement an object procedure using the event signature to respond to the
event notification.
</p>
</descr>
<seealso>
<link id="TCustomGrid.OnSelectEditor"/>
</seealso>
</element>
<element name="TSelectEditorEvent.Sender">
<short>Control generating the event notification.</short>
</element>
<element name="TSelectEditorEvent.aCol">
<short>Column number for the cell editor.</short>
</element>
<element name="TSelectEditorEvent.aRow">
<short>Row number for the cell editor.</short>
</element>
<element name="TSelectEditorEvent.Editor">
<short>Editor control to use for the specified cell.</short>
</element>
<element name="TOnPrepareCanvasEvent">
<short>
Specifies an event handler signalled when preparing the canvas for a grid
control.
</short>
<descr>
<p>
<var>TOnPrepareCanvasEvent</var> specifies an event handler signalled when
the canvas for a grid control is prepared for rendering.
TOnPrepareCanvasEvent allows the canvas for the grid control to be configured
prior to rendering cell data.
</p>
<p>
<var>Sender</var> is the grid control triggering the event notification.
</p>
<p>
<var>ACol</var> and <var>ARow</var> are the column and row numbers
(respectively) for the grid cell in the event notification.
</p>
<p>
<var>AState</var> contains the grid drawing state for the cell data.
</p>
<p>
TOnPrepareCanvasEvent is the type used to implement the
<var>OnPrepareCanvas</var> in <var>TCustomGrid</var>. Applications must
implement an object procedure using the event signature to respond to the
event notification.
</p>
</descr>
<seealso>
<link id="TCustomGrid.OnPrepareCanvas"/>
<link id="TCustomGrid.PrepareCanvas"/>
<link id="TCustomGrid.DoPrepareCanvas"/>
<link id="TCustomGrid.DrawCell"/>
<link id="TCustomGrid.ShowCellHintWindow"/>
</seealso>
</element>
<element name="TOnPrepareCanvasEvent.Sender">
<short>Grid control for the event notification.</short>
</element>
<element name="TOnPrepareCanvasEvent.aCol">
<short>Column number for the cell in the event notification.</short>
</element>
<element name="TOnPrepareCanvasEvent.aRow">
<short>Row number for the cell in the event notification.</short>
</element>
<element name="TOnPrepareCanvasEvent.aState">
<short>Grid drawing state for the cell in the event notification.</short>
</element>
<element name="TUserCheckBoxBitmapEvent">
<short>
Specifies an event handler signalled to get the user-supplied bitmap for a
check box cell.
</short>
<descr>
<p>
<var>TUserCheckBoxBitmapEvent</var> is the type used for the
<var>OnUserCheckboxBitmap</var> property in <var>TCustomGrid</var>.
</p>
</descr>
<seealso>
<link id="TCustomGrid.OnUserCheckboxBitmap"/>
</seealso>
</element>
<element name="TUserCheckBoxBitmapEvent.Sender">
<short>Object (TCustomGrid) for the event notification.</short>
</element>
<element name="TUserCheckBoxBitmapEvent.aCol">
<short>Column number for the cell with the check box.</short>
</element>
<element name="TUserCheckBoxBitmapEvent.aRow">
<short>Row number for the cell with the check box.</short>
</element>
<element name="TUserCheckBoxBitmapEvent.CheckedState">
<short>Checked state for the check box.</short>
</element>
<element name="TUserCheckBoxBitmapEvent.ABitmap">
<short>Bitmap image with the state needed for the check box cell.</short>
</element>
<element name="TUserCheckBoxImageEvent">
<short>
Specifies the event handler used to get the image drawn for a check box
column.
</short>
<descr>
<p>
<var>TUserCheckBoxImageEvent</var> specifies an event handler signalled to
get the image drawn for a grid cell which displays a Checkbox.
</p>
<p>
<var>Sender</var> is the grid control generating the event notification.
</p>
<p>
<var>ACol</var> and <var>ARow</var> are the column and row numbers
(respectively) for the cell where the check box is drawn.
</p>
<p>
<var>CheckedState</var> indicates whether the check box is drawn using the
Checked state.
</p>
<p>
<var>ImageList</var> contains the images used for the Unchecked and Checked
states.
</p>
<p>
<var>ImageIndex</var> indicates the image in ImageList used for the drawing
operation.
</p>
<p>
TUserCheckBoxImageEvent is the type used to implement the
<var>OnUserCheckboxImage</var> in <var>TCustomGrid</var>. Applications must
implement an object procedure using the event signature to respond to the
event notification.
</p>
</descr>
<seealso>
<link id="TCustomGrid.OnUserCheckboxImage"/>
<link id="TCustomGrid.GetImageForCheckBox"/>
</seealso>
</element>
<element name="TUserCheckBoxImageEvent.Sender">
<short>Grid generating the event notification.</short>
</element>
<element name="TUserCheckBoxImageEvent.aCol">
<short>Column number for the cell.</short>
</element>
<element name="TUserCheckBoxImageEvent.aRow">
<short>Row number for the cell.</short>
</element>
<element name="TUserCheckBoxImageEvent.CheckedState">
<short>State for the check box.</short>
</element>
<element name="TUserCheckBoxImageEvent.ImageList">
<short>Image list with unchecked and checked images.</short>
</element>
<element name="TUserCheckBoxImageEvent.ImageIndex">
<short>
Position of the image in ImageList to use for the check box cell.
</short>
</element>
<element name="TValidateEntryEvent">
<short>
Specifies the event handler used to validate the content in a grid cell.
</short>
<descr>
<p>
<var>TValidateEntryEvent</var> specifies an event handler used to validate
the content in a grid cell. TValidateEntryEvent is the type used to implement
the <var>OnValidateEntry</var> in <var>TCustomGrid</var>. Applications must
implement an object procedure using the event signature to respond to the
event notification.
</p>
</descr>
<seealso>
<link id="TCustomGrid.OnValidateEntry"/>
<link id="TCustomGrid.ValidateEntry"/>
<link id="TCustomGrid.EditorDoGetValue"/>
<link id="TCustomStringGrid.SelectionSetText"/>
</seealso>
</element>
<element name="TValidateEntryEvent.Sender">
<short>Grid generating the event notification.</short>
</element>
<element name="TValidateEntryEvent.aCol">
<short>Column number for the cell.</short>
</element>
<element name="TValidateEntryEvent.aRow">
<short>Row number for the cell.</short>
</element>
<element name="TValidateEntryEvent.OldValue">
<short>Value checked in the event handler.</short>
</element>
<element name="TValidateEntryEvent.NewValue">
<short>Value returned from the event handler.</short>
</element>
<element name="TToggledCheckboxEvent">
<short>
Specifies an event handler signalled when the value in a check box cell is
changed.
</short>
<descr>
<p>
<var>TToggledCheckboxEvent</var> specifies an event handler signalled when
the value in CheckBox-style cell is changed in a grid. Arguments passed to
the event handler identify the grid control for the event notification, the
row and column numbers for the altered cell, and the state for a check box
cell editor.
</p>
<p>
<var>TToggledCheckboxEvent</var> is the type used to implement the
<var>OnCheckboxToggled</var> in <var>TCustomGrid</var> and descendent
classes. Applications must implement an object procedure using the signature
for the event handler to respond to the event notification.
</p>
</descr>
<seealso>
<link id="TCustomGrid.OnCheckboxToggled"/>
<link id="TCustomDrawGrid.ToggleCheckbox"/>
</seealso>
</element>
<element name="TToggledCheckboxEvent.Sender">
<short>Grid control for the event notification.</short>
</element>
<element name="TToggledCheckboxEvent.aCol">
<short>Column number for the altered cell.</short>
</element>
<element name="TToggledCheckboxEvent.aRow">
<short>Row number for the altered cell.</short>
</element>
<element name="TToggledCheckboxEvent.aState">
<short>State for the check box in the associated cell editor.</short>
</element>
<element name="THeaderSizingEvent">
<short>
Specifies an event handler signalled when a fixed cell header in a grid is
resized.
</short>
<descr>
<p>
<var>THeaderSizingEvent</var> specifies an event handler signalled when a
fixed cell header in a grid is resized. Arguments passed to the event handler
identify the grid control for the event, and information the row or column
affected by the operation.
</p>
<p>
THeaderSizingEvent is the type used to implement the
<var>OnHeaderSizing</var> property in TCustomDrawGrid. Applications must
implement an object procedure using the signature for the event to allow
responding to the event notification.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.OnHeaderSizing"/>
</seealso>
</element>
<element name="THeaderSizingEvent.Sender">
<short>Grid control for the event notification.</short>
</element>
<element name="THeaderSizingEvent.IsColumn">
<short>
<b>True</b> when the affected cell is a column header; <b>False</b> when it
is a row header.
</short>
</element>
<element name="THeaderSizingEvent.aIndex">
<short>Position of the row or column in the grid control.</short>
</element>
<element name="THeaderSizingEvent.aSize">
<short>Size (in pixels) for the resized cell.</short>
</element>
<element name="TCellProcessEvent">
<short>
Specifies an event handler used to process the value in a grid cell.
</short>
<descr>
<p>
<var>TCellProcessEvent</var> specifies an event handler used to process the
value in a grid cell in <var>TCustomStringGrid</var>. Arguments to the event
handler identify the grid generating the event notification, the row and
column numbers for the affected cell, and the value for the cell after
processing. The <var>processType</var> argument specifies whether
<var>aValue</var> is copied from or pasted to the cell.
</p>
<p>
TCellProcessEvent is the type used to implement the <var>OnCellProcess</var>
in <var>TCustomStringGrid</var>. Applications must implement an object
procedure using the signature for the event handler to respond to the event
notification.
</p>
</descr>
<seealso>
<link id="TCustomStringGrid.OnCellProcess"/>
</seealso>
</element>
<element name="TCellProcessEvent.Sender">
<short>Grid control generating the event notification.</short>
</element>
<element name="TCellProcessEvent.aCol">
<short>Column number for the cell in the event notification.</short>
</element>
<element name="TCellProcessEvent.aRow">
<short>Row number for the cell in the event notification.</short>
</element>
<element name="TCellProcessEvent.processType">
<short>Process to perform on the cell value.</short>
</element>
<element name="TCellProcessEvent.aValue">
<short>Value for the cell after processing has been applied.</short>
</element>
<element name="TGetCellHintEvent">
<short>Event used to get cell hints.</short>
<descr>
<p>
<var>TGetCellHintEvent</var> is an object procedure type used to get a hint
for a string grid cell. TGetCellHintEvent is the type used for the <link
id="TCustomGrid.OnGetCellHint">OnGetCellHint</link> property in
<var>TCustomGrid</var>.
</p>
<p>
Arguments passed to the procedure can be used to determine the content in
HintText displayed as the cell hint.
</p>
</descr>
<seealso>
<link id="TCustomGrid.OnGetCellHint"/>
</seealso>
</element>
<element name="TGetCellHintEvent.Sender">
<short>The grid for the notification.</short>
</element>
<element name="TGetCellHintEvent.ACol">
<short>Column index for the notification.</short>
</element>
<element name="TGetCellHintEvent.ARow">
<short>Row index for the notification.</short>
</element>
<element name="TGetCellHintEvent.HintText">
<short>Text displayed as hint for the cell.</short>
</element>
<element name="TSaveColumnEvent">
<short>
Specifies an event handler used to load/save the configuration for a grid
column.
</short>
<descr>
<p>
<var>TSaveColumnEvent</var> is the type used to implement the
<var>OnLoadColumn</var> and <var>OnSaveColumn</var> properties in
<var>TCustomGrid</var>.
</p>
</descr>
<seealso>
<link id="TCustomGrid.OnLoadColumn"/>
<link id="TCustomGrid.OnSaveColumn"/>
</seealso>
</element>
<element name="TSaveColumnEvent.Sender">
<short>Grid for the event notification.</short>
</element>
<element name="TSaveColumnEvent.aColumn">
<short>Column object for the event notification.</short>
</element>
<element name="TSaveColumnEvent.aColIndex">
<short>Index of the column in the grid.</short>
</element>
<element name="TSaveColumnEvent.aCfg">
<short>XML configuration file for the column information.</short>
</element>
<element name="TSaveColumnEvent.aVersion">
<short>Grid version for the event.</short>
</element>
<element name="TSaveColumnEvent.aPath">
<short>Path expression in the configuration file the column.</short>
</element>
<element name="TVirtualGrid">
<short>
Implements a grid with metadata where rows and columns are stored as Pointer
arrays.
</short>
<descr>
<p>
<var>TVirtualGrid</var> is a class used to represent a grid where the rows
and columns containing grid metadata are stored as arrays of Pointers. Data
stored in the grid includes the Size for data in a cell, and pointers to
attributes for fixed and normal cell display.
</p>
<p>
TVirtualGrid is the type used for an internal member in TCustomDrawGrid.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid"/>
</seealso>
</element>
<element name="TVirtualGrid.FColCount"/>
<element name="TVirtualGrid.FRowCount"/>
<element name="TVirtualGrid.FCellArr"/>
<element name="TVirtualGrid.FColArr"/>
<element name="TVirtualGrid.FRowArr"/>
<element name="TVirtualGrid.GetCells">
<short>Gets the value for the indexed Celda property.</short>
<descr/>
<seealso>
<link id="TVirtualGrid.Celda"/>
</seealso>
</element>
<element name="TVirtualGrid.GetCells.Result">
<short>Value for the property.</short>
</element>
<element name="TVirtualGrid.GetCells.Col">
<short>Column number for the cell value.</short>
</element>
<element name="TVirtualGrid.GetCells.Row">
<short>Row number for the cell value.</short>
</element>
<element name="TVirtualGrid.GetRows">
<short>Gets the value for the indexed Rows property.</short>
<descr/>
<seealso>
<link id="TVirtualGrid.Rows"/>
</seealso>
</element>
<element name="TVirtualGrid.GetRows.Result">
<short>Value for the property.</short>
</element>
<element name="TVirtualGrid.GetRows.Row">
<short>Row number for the property value.</short>
</element>
<element name="TVirtualGrid.GetCols">
<short>Gets the value for the indexed Cols property.</short>
<descr/>
<seealso>
<link id="TVirtualGrid.Cols"/>
</seealso>
</element>
<element name="TVirtualGrid.GetCols.Result">
<short>Value for the property.</short>
</element>
<element name="TVirtualGrid.GetCols.Col">
<short>Column number for the property value.</short>
</element>
<element name="TVirtualGrid.SetCells">
<short>Sets the value for the indexed Celda property.</short>
<descr/>
<seealso>
<link id="TVirtualGrid.Celda"/>
</seealso>
</element>
<element name="TVirtualGrid.SetCells.Col">
<short>Column number for the cell value.</short>
</element>
<element name="TVirtualGrid.SetCells.Row">
<short>Row number for the cell value.</short>
</element>
<element name="TVirtualGrid.SetCells.AValue">
<short>Pointer to the properties for the cell.</short>
</element>
<element name="TVirtualGrid.SetRows">
<short>Sets the value for the indexed Rows property.</short>
<descr/>
<seealso>
<link id="TVirtualGrid.Rows"/>
</seealso>
</element>
<element name="TVirtualGrid.SetRows.Row">
<short>Row number for the property value.</short>
</element>
<element name="TVirtualGrid.SetRows.AValue">
<short>Pointer to the properties for the row.</short>
</element>
<element name="TVirtualGrid.SetColCount">
<short>Sets the value for the ColCount property.</short>
<descr/>
<seealso>
<link id="TVirtualGrid.ColCount"/>
</seealso>
</element>
<element name="TVirtualGrid.SetColCount.AValue">
<short>New value for the property.</short>
</element>
<element name="TVirtualGrid.SetRowCount">
<short>Sets the value for the RowCount property.</short>
<descr/>
<seealso>
<link id="TVirtualGrid.RowCount"/>
</seealso>
</element>
<element name="TVirtualGrid.SetRowCount.AValue">
<short>New value for the property.</short>
</element>
<element name="TVirtualGrid.SetCols">
<short>Sets the value for the indexed Cols property.</short>
<descr/>
<seealso>
<link id="TVirtualGrid.Cols"/>
</seealso>
</element>
<element name="TVirtualGrid.SetCols.Col">
<short>Column number for the properties stored in the method.</short>
</element>
<element name="TVirtualGrid.SetCols.AValue">
<short>New value for the property.</short>
</element>
<element name="TVirtualGrid.doDestroyItem">
<short>Destroys an Item at the given Row and Column location.</short>
<descr>
<p>
Performs actions needed to free the Item at the specified column and row
numbers.
</p>
<p>
<var>Item</var> is a <var>Pointer</var> to the column/row properties for the
cell at the coordinates in <var>Col</var> and <var>Row</var>. No actions are
performed in the method when Item is unassigned (contains <b>Nil</b>).
</p>
<p>
<var>Sender</var> contains the object instance for the column, row, or cell
affected in the method. Calls the <var>DisposeColRow</var> method when Sender
is for a column or row array. Calls <var>DisposeCell</var> when Sender
contains a pointer to another object class.
</p>
<p>
The value in Item is set to <b>Nil</b> prior to exiting from the method.
</p>
<p>
doDestroyItem is the default handler assigned to the <var>OnDestroyItem</var>
event handler for the cell, column and row arrays used in the virtual grid.
</p>
</descr>
<seealso/>
</element>
<element name="TVirtualGrid.doDestroyItem.Sender">
<short>Column, row, or cell properties affected in the method.</short>
</element>
<element name="TVirtualGrid.doDestroyItem.Col">
<short>Column number freed in the method.</short>
</element>
<element name="TVirtualGrid.doDestroyItem.Row">
<short>Row number freed in the method.</short>
</element>
<element name="TVirtualGrid.doDestroyItem.Item">
<short>
Pointer to the column, row, or cell properties freed in the method.
</short>
</element>
<element name="TVirtualGrid.doNewItem">
<short>Creates a new item at the location specified by Col and Row.</short>
<descr>
<p>
This method implements the handler routine assigned to the OnNewItem event
handler in the internal class used to maintain row or column values.
</p>
</descr>
<seealso>
<link id="TVirtualGrid.Create"/>
<link id="#lazutils.dynamicarray.TPointerPointerArray.OnNewItem">TPointerPointerArray.OnNewItem</link>
<link id="#lazutils.dynamicarray.TOnNotifyItem">TOnNotifyItem</link>
</seealso>
</element>
<element name="TVirtualGrid.doNewItem.Sender">
<short>
Class instance where the new item is created.
</short>
</element>
<element name="TVirtualGrid.doNewItem.Col">
<short>
Ordinal column number where the new item is created.
</short>
</element>
<element name="TVirtualGrid.doNewItem.Row">
<short>
Ordinal row number where the new item is created.
</short>
</element>
<element name="TVirtualGrid.doNewItem.Item">
<short>
Pointer to the item data created in the handler routine.
</short>
</element>
<element name="TVirtualGrid.DeleteColRow">
<short>Removes a column or a row in the grid.</short>
<descr/>
<seealso/>
</element>
<element name="TVirtualGrid.DeleteColRow.IsColumn">
<short>
<b>True</b> if a column is affected in the method. <b>False</b> if a row is
affected.
</short>
</element>
<element name="TVirtualGrid.DeleteColRow.Index">
<short>
Ordinal position for the column or row deleted in the method.
</short>
</element>
<element name="TVirtualGrid.MoveColRow">
<short>
Moves a column or a row using the specified index positions.
</short>
<descr/>
<seealso/>
</element>
<element name="TVirtualGrid.MoveColRow.IsColumn">
<short>
<b>True</b> if a column is affected in the method. <b>False</b> if a row is
affected.
</short>
</element>
<element name="TVirtualGrid.MoveColRow.FromIndex">
<short>
Ordinal position for the column or row relocated in the method.
</short>
</element>
<element name="TVirtualGrid.MoveColRow.ToIndex">
<short>
New ordinal position for the specified column or row.
</short>
</element>
<element name="TVirtualGrid.ExchangeColRow">
<short>
Exchanges values for the current column or row with those at the specified
position.
</short>
<descr/>
<seealso/>
</element>
<element name="TVirtualGrid.ExchangeColRow.IsColumn">
<short>
<b>True</b> if columns are affected in the method. <b>False</b> if rows are
affected.
</short>
</element>
<element name="TVirtualGrid.ExchangeColRow.Index">
<short>
Ordinal position for a column or row swapped in the method.
</short>
</element>
<element name="TVirtualGrid.ExchangeColRow.WithIndex">
<short>
Ordinal position for the other column or row swapped in the method.
</short>
</element>
<element name="TVirtualGrid.DisposeCell">
<short>Disposes of the resources and the pointer for the given cell.</short>
<descr/>
<seealso/>
</element>
<element name="TVirtualGrid.DisposeCell.P">
<short>
Pointer to the cell properties freed in the method.
</short>
</element>
<element name="TVirtualGrid.DisposeColRow">
<short>Disposes of the specified row or column, and frees its pointer.</short>
<descr/>
<seealso/>
</element>
<element name="TVirtualGrid.DisposeColRow.p">
<short>
Pointer to the column or row properties freed in the method.
</short>
</element>
<element name="TVirtualGrid.IsColumnIndexValid">
<short>
Indicates if the specified ordinal column number is valid for the grid.
</short>
<descr/>
</element>
<element name="TVirtualGrid.IsColumnIndexValid.Result">
<short><b>True</b> if the index is valid for the grid.</short>
</element>
<element name="TVirtualGrid.IsColumnIndexValid.AIndex">
<short>Ordinal column number examined in the method.</short>
</element>
<element name="TVirtualGrid.IsRowIndexValid">
<short>
Indicates if the specified ordinal row number is valid for the grid.
</short>
<descr/>
<seealso/>
</element>
<element name="TVirtualGrid.IsRowIndexValid.Result">
<short><b>True</b> if the index is valid for the grid.</short>
</element>
<element name="TVirtualGrid.IsRowIndexValid.AIndex">
<short>Ordinal row number examined in the method.</short>
</element>
<element name="TVirtualGrid.Create">
<short>Constructor for the class instance.</short>
<descr>
<p>
<var>Create</var> is the overridden constructor for the class instance, and
calls the inherited method on entry.
</p>
<p>
Create allocates TPointerPointerArray resources needed for the column, row,
and cell arrays used in the class instance. OnDestroyItem and OnNewItem event
handlers in the array classes are set to the <var>doDestroyItem</var> and
<var>doNewItem</var> methods in the class instance.
</p>
<p>
Creates sets the default values for the <var>RowCount</var> and
<var>ColCount</var> properties to 4 (for both).
</p>
</descr>
<seealso>
<link id="#rtl.system.TObject.Create">TObject.Create</link>
</seealso>
</element>
<element name="TVirtualGrid.Destroy">
<short>Destructor for the class instance.</short>
<descr>
<p>
<var>Destroy</var> is the overridden destructor for the class instance.
Destroy calls <var>Clear</var> to free content in the internal cell, column,
and row arrays used in the class instance. Resource allocated to the cell,
row, and column arrays are freed. The row and column counts for the virtual
grid are reset to 0 (zero).
</p>
<p>
Destroy calls the inherited destructor prior to exiting from the method.
</p>
</descr>
<seealso>
<link id="#rtl.system.TObject.Destroy">TObject.Destroy</link>
</seealso>
</element>
<element name="TVirtualGrid.Clear">
<short>Clears the content in the virtual grid.</short>
<descr>
<p>
<var>Clear</var> is a method used to remove the content in the virtual grid.
Clear ensures that values in the cell, column, and row arrays used in the
class instance are cleared. Values in the <var>ColCount</var> and
<var>RowCount</var> properties are reset to <b>0</b> (<b>zero</b>).
</p>
</descr>
<seealso/>
</element>
<element name="TVirtualGrid.GetDefaultCell">
<short>Gets the default values for a new cell added to the grid.</short>
<descr>
<p>
<var>GetDefaultCell</var> is a <var>PCellProps</var> function used to get the
default values for a new cell added to the grid. GetDefaultCell calls New to
allocate resources for the PCellProps instance in the return value. Nil
values are explicitly assigned to the <var>Text</var> and <var>Attr</var>
members in the new instance.
</p>
<p>
GetDefaultCell is called when a value is assigned to a cell in the
<var>Celda</var> property and its PCellProps instance has not already been
allocated.
</p>
</descr>
<seealso/>
</element>
<element name="TVirtualGrid.GetDefaultCell.Result">
<short>
Pointer to the cell properties with the default values for a cell.
</short>
</element>
<element name="TVirtualGrid.GetDefaultColRow">
<short>
Gets a pointer to the default values used in the column and row properties
when added to the instance.
</short>
<descr>
<p>
Used in the implementation of the doNewItem method called when a new column
or row is added to the virtual grid.
</p>
</descr>
<seealso>
<link id="TVirtualGrid.doNewItem"/>
<link id="PColRowProps"/>
</seealso>
</element>
<element name="TVirtualGrid.GetDefaultColRow.Result">
<short>Pointer to the PColRowProps allocated in the method.</short>
</element>
<element name="TVirtualGrid.ColCount">
<short>Number of columns defined for the grid.</short>
<descr>
<p>
<var>ColCount</var> is an <var>Integer</var> property which indicates the
number of columns defined for the grid. When a new value for the property is
specified, the internal arrays used for column and cell properties are
resized to the length in the property value.
</p>
</descr>
<seealso>
<link id="TPointerPointerArray"/>
</seealso>
</element>
<element name="TVirtualGrid.RowCount">
<short>Number of rows defined for the grid.</short>
<descr>
<p>
<var>RowCount</var> is an <var>Integer</var> property which contains the
number of rows defined for the grid. When setting a new value for the
property, the internal arrays used for rows and cells are resized to the
length in the new property value.
</p>
</descr>
<seealso/>
</element>
<element name="TVirtualGrid.Celda">
<short>
Provides indexed access to cell properties by their column and row numbers.
</short>
<descr>
<var>Celda</var> is an indexed <var>PCellProps</var> property which provides
access to the data, attributes, and text for a given cell. Values are
accessed by their column and row numbers. Setting a new value for the indexed
property causes an existing cell to be freed from the internal cell array
(when assigned) by calling <var>DisposeCell</var>.
</descr>
<seealso>
<link id="TVirtualGrid.DisposeCell"/>
<link id="PCellProps"/>
</seealso>
</element>
<element name="TVirtualGrid.Celda.Col">
<short>Column number for the cell.</short>
</element>
<element name="TVirtualGrid.Celda.Row">
<short>Row number for the cell.</short>
</element>
<element name="TVirtualGrid.Cols">
<short>
Provides indexed access to column properties by their ordinal column number.
</short>
<descr/>
<seealso/>
</element>
<element name="TVirtualGrid.Cols.Col">
<short>Column number to access in the grid.</short>
</element>
<element name="TVirtualGrid.Rows">
<short>
Provides indexed access to row properties by their ordinal row number.
</short>
<descr/>
<seealso/>
</element>
<element name="TVirtualGrid.Rows.Row">
<short>Row number to access in the grid.</short>
</element>
<element name="TVirtualGrid.InsertColRow">
<short>
Inserts either a column or a row at the specified index position.
</short>
<descr/>
<seealso/>
</element>
<element name="TVirtualGrid.InsertColRow.IsColumn">
<short>
<b>True</b> to insert a column at the given position, <b>False</b> for a row.
</short>
</element>
<element name="TVirtualGrid.InsertColRow.Index">
<short>Position where the column or row is inserted.</short>
</element>
<element name="TGridColumnTitle">
<short>
Provides properties and methods need to represent a column title in a grid.
</short>
<descr>
<p>
<var>TGridColumnTitle</var> is <var>TPersistent</var> descendant used to
represent properties and methods for the title for a column in a grid. Use
the published properties in the class to access the layout and display
attributes for the column title, including:
</p>
<ul>
<li>Alignment</li>
<li>Color</li>
<li>Font</li>
<li>ImageIndex</li>
<li>ImageLayout</li>
<li>Layout</li>
<li>MultiLine</li>
<li>PrefixOption</li>
</ul>
<p>
Use the <var>Caption</var> to read or write the text displayed as the title
for a grid column.
</p>
<p>
Use the <var>Column</var> to read the column reference (assigned in the
constructor for the class instance) to which the column title is attached.
</p>
<p>
<var>TGridColumnTitle</var> is the type used to implement the
<var>TGridColumn.Title</var> property.
</p>
</descr>
<seealso>
<link id="TGridColumn.Title"/>
<link id="TGridColumnTitle.Caption"/>
<link id="TGridColumnTitle.Column"/>
<link id="TGridColumnTitle.Alignment"/>
<link id="TGridColumnTitle.Color"/>
<link id="TGridColumnTitle.Font"/>
<link id="TGridColumnTitle.ImageIndex"/>
<link id="TGridColumnTitle.ImageLayout"/>
<link id="TGridColumnTitle.Layout"/>
<link id="TGridColumnTitle.MultiLine"/>
<link id="TGridColumnTitle.PrefixOption"/>
</seealso>
</element>
<element name="TGridColumnTitle.FColumn"/>
<element name="TGridColumnTitle.FCaption"/>
<element name="TGridColumnTitle.FColor"/>
<element name="TGridColumnTitle.FAlignment"/>
<element name="TGridColumnTitle.FFont"/>
<element name="TGridColumnTitle.FIsDefaultTitleFont"/>
<element name="TGridColumnTitle.FLayout"/>
<element name="TGridColumnTitle.FontChanged">
<short>Updates the column for when font for the title has changed.</short>
<descr/>
<seealso/>
</element>
<element name="TGridColumnTitle.FontChanged.Sender">
<short>Class generating the notification.</short>
</element>
<element name="TGridColumnTitle.GetAlignment">
<short>Gets the value for the Alignment property.</short>
<descr/>
<seealso>
<link id="TGridColumnTitle.Alignment"/>
</seealso>
</element>
<element name="TGridColumnTitle.GetAlignment.Result">
<short>Value for the property.</short>
</element>
<element name="TGridColumnTitle.GetCaption">
<short>Gets the value for the Caption property.</short>
<descr/>
<seealso/>
</element>
<element name="TGridColumnTitle.GetCaption.Result">
<short>Value for the property.</short>
</element>
<element name="TGridColumnTitle.GetColor">
<short>Gets the value for the Color property.</short>
<descr/>
<seealso/>
</element>
<element name="TGridColumnTitle.GetColor.Result">
<short>Value for the property.</short>
</element>
<element name="TGridColumnTitle.GetFont">
<short>Gets the value for the Font property.</short>
<descr/>
<seealso/>
</element>
<element name="TGridColumnTitle.GetFont.Result">
<short>Value for the property.</short>
</element>
<element name="TGridColumnTitle.GetLayout">
<short>Gets the value for the Layout property.</short>
<descr/>
<seealso/>
</element>
<element name="TGridColumnTitle.GetLayout.Result">
<short>Value for the property.</short>
</element>
<element name="TGridColumnTitle.IsAlignmentStored">
<short>Indicates if the Alignment is stored when saving the component.</short>
<descr>
<p>
<var>IsAlignmentStored</var> indicates if the Alignment is used for the
component. <var>IsAlignmentStored</var> contains <b>True</b> when the
Alignment has been assigned (is not <b>Nil</b>) for the class instance.
</p>
<p>
It is used in the TCustomGrid.SaveColumns method. It is also used as the
storage specifier for the Alignment as used in LCL component streaming.
</p>
</descr>
<seealso>
<link id="TGridColumnTitle.Alignment"/>
<link id="TCustomGrid.SaveToFile"/>
<link id="TCustomGrid.SaveToStream"/>
</seealso>
</element>
<element name="TGridColumnTitle.IsAlignmentStored.Result">
<short><b>True</b> if Alignment is available for the column title.</short>
</element>
<element name="TGridColumnTitle.IsCaptionStored">
<short>Indicates if the Caption is available in the component.</short>
<descr/>
<seealso>
<link id="TGridColumnTitle.Caption"/>
<link id="TCustomGrid.SaveToFile"/>
<link id="TCustomGrid.SaveToStream"/>
</seealso>
</element>
<element name="TGridColumnTitle.IsCaptionStored.Result">
<short><b>True</b> when Caption is available for the column title.</short>
</element>
<element name="TGridColumnTitle.IsColorStored">
<short>Indicates if the Color is assigned for the column title.</short>
<descr/>
<seealso>
<link id="TGridColumnTitle.Color"/>
<link id="TCustomGrid.SaveToFile"/>
<link id="TCustomGrid.SaveToStream"/>
</seealso>
</element>
<element name="TGridColumnTitle.IsColorStored.Result">
<short><b>True</b> when Color has been assigned </short>
</element>
<element name="TGridColumnTitle.IsFontStored">
<short>Indicates if the Font has been assigned for the column title.</short>
<descr/>
<seealso>
<link id="TGridColumnTitle.Font"/>
<link id="TCustomGrid.SaveToFile"/>
<link id="TCustomGrid.SaveToStream"/>
</seealso>
</element>
<element name="TGridColumnTitle.IsFontStored.Result">
<short><b>True</b> when Font has been assigned in the column title.</short>
</element>
<element name="TGridColumnTitle.IsLayoutStored">
<short>Indicates if the Layout has been assigned in the column title.</short>
<descr/>
<seealso>
<link id="TGridColumnTitle.Layout"/>
<link id="TCustomGrid.SaveToFile"/>
<link id="TCustomGrid.SaveToStream"/>
</seealso>
</element>
<element name="TGridColumnTitle.IsLayoutStored.Result">
<short>
<b>True</b> when the Layout has been assigned in the column title.
</short>
</element>
<element name="TGridColumnTitle.SetAlignment">
<short>Sets the value in the Alignment property.</short>
<descr/>
<seealso>
<link id="TGridColumnTitle.Alignment"/>
</seealso>
</element>
<element name="TGridColumnTitle.SetAlignment.AValue">
<short>New value for the property.</short>
</element>
<element name="TGridColumnTitle.SetColor">
<short>Sets the value in the Color property.</short>
<descr/>
<seealso>
<link id="TGridColumnTitle.Color"/>
</seealso>
</element>
<element name="TGridColumnTitle.SetColor.AValue">
<short>New value for the property.</short>
</element>
<element name="TGridColumnTitle.SetFont">
<short>Sets the value in the Font property.</short>
<descr/>
<seealso>
<link id="TGridColumnTitle.Font"/>
</seealso>
</element>
<element name="TGridColumnTitle.SetFont.AValue">
<short>New value for the property.</short>
</element>
<element name="TGridColumnTitle.SetLayout">
<short>Sets the value in the Layout property.</short>
<descr/>
<seealso>
<link id="TGridColumnTitle.Layout"/>
</seealso>
</element>
<element name="TGridColumnTitle.SetLayout.AValue">
<short>New value for the property.</short>
</element>
<element name="TGridColumnTitle.IsDefaultFont">
<short>Indicates if the Font contains a default value.</short>
<descr>
<p>
<var>IsDefaultFont</var> is a read-only <var>Boolean</var> that indicates if
the <var>Font</var> contains a default value. The value in
<var>IsDefaultFont</var> is set to <b>False</b> when a new value is assigned
to the <var>Font</var> property.
</p>
</descr>
<seealso>
<link id="TGridColumnTitle.Font"/>
<link id="TGridColumnTitle.IsDefault"/>
<link id="TGridColumnTitle.IsFontStored"/>
<link id="TGridColumn.IsDefaultTitleFont"/>
<link id="TGridColumn.Title"/>
</seealso>
</element>
<element name="TGridColumnTitle.GetDefaultCaption">
<short>Returns the default caption for the column title.</short>
<descr/>
<seealso/>
</element>
<element name="TGridColumnTitle.GetDefaultCaption.Result">
<short>Default value for the Caption property.</short>
</element>
<element name="TGridColumnTitle.GetDefaultAlignment">
<short>Returns the default alignment for the column title.</short>
<descr/>
<seealso/>
</element>
<element name="TGridColumnTitle.GetDefaultAlignment.Result">
<short>Default value for the Alignment property.</short>
</element>
<element name="TGridColumnTitle.GetDefaultColor">
<short>Returns the default color for the column title.</short>
<descr/>
<seealso/>
</element>
<element name="TGridColumnTitle.GetDefaultColor.Result">
<short>Default value for the Color property.</short>
</element>
<element name="TGridColumnTitle.GetDefaultLayout">
<short>Returns the default layout for the column title.</short>
<descr/>
<seealso/>
</element>
<element name="TGridColumnTitle.GetDefaultLayout.Result">
<short>Default value for the Layout property.</short>
</element>
<element name="TGridColumnTitle.GetOwner">
<short>
Gets the persistent object which owns the class instance.
</short>
<descr/>
<seealso>
<link id="#rtl.classes.TPersistent">TPersistent</link>
</seealso>
</element>
<element name="TGridColumnTitle.GetOwner.Result">
<short>Persistent object which owns the class instance.</short>
</element>
<element name="TGridColumnTitle.SetCaption">
<short>Specifies the caption used for the column title.</short>
<descr/>
<seealso/>
</element>
<element name="TGridColumnTitle.SetCaption.AValue">
<short>New value for the property.</short>
</element>
<element name="TGridColumnTitle.DefineProperties">
<short>
Specifies which properties in the persistent object are used during LCL
component streaming.
</short>
<descr>
<p>
<var>DefineProperties</var> is an overridden method used to define the
properties which are included during LCL component streaming. The TFiler
instance in Filer is used to set the read and write procedures for specific
properties. In TGridColumnTitle, the Caption is written when it has an
explicit non-default value. This implements the storage specifier declared
for the property.
</p>
</descr>
<seealso/>
</element>
<element name="TGridColumnTitle.DefineProperties.Filer">
<short>
TFiler instance used to read and write the class during LCL streaming.
</short>
</element>
<element name="TGridColumnTitle.Create">
<short>Constructor for the class instance.</short>
<descr>
<p>
<var>Create</var> is the virtual constructor for the class instance. Create
calls the inherited constructor, allocates resources, and sets the default
values for members in the class instance.
</p>
<p>
Create calls the <var>FillTitleDefaultFont</var> method to get the default
value used in the <var>Font</var> property. It can contain either the font
for titles in the Grid instance or the font for the Column definition;
preference is given to the value in the Grid.
</p>
<p>
Create assigns the <var>FontChanged</var> method as the <var>OnChange</var>
event handler for the <var>Font</var> property.
</p>
<p>
<var>TheColumn</var> contains contains the <var>TGridColumn</var> instance
where the column title is used.
</p>
</descr>
<seealso>
<link id="#rtl.System.TObject.Create">TObject.Create</link>
</seealso>
</element>
<element name="TGridColumnTitle.Create.TheColumn">
<short>Column class instance where the column title is used.</short>
</element>
<element name="TGridColumnTitle.Destroy">
<short>Destructor for the class instance.</short>
<descr>
<p>
<var>Destroy</var> is the overridden destructor for
<var>TGridColumnTitle</var>. It frees resource allocated for properties like
Font, Alignment, Color, Caption, and Layout. It calls the inherited
destructor prior to exiting from the method.
</p>
</descr>
<seealso>
<link id="#rtl.classes.TPersistent.Destroy">TPersistent.Destroy</link>
</seealso>
</element>
<element name="TGridColumnTitle.Assign">
<short>
Copies property value from the specified persistent object into the current
class instance.
</short>
<descr>
<p>
<var>Assign</var> is an overridden method used to implement object
persistence for the class. When <var>Source</var> is a
<var>TGridColumnTitle</var> instance, the values from the following
properties are copied:
</p>
<ul>
<li>Alignment</li>
<li>Layout</li>
<li>Caption</li>
<li>Color</li>
<li>Font</li>
<li>ImageIndex</li>
</ul>
<p>
If Source is not derived from TGridColumnTitle, the inherited method is
called using Source as an argument.
</p>
</descr>
<seealso>
<link id="#rtl.Classes.TPersistent">TPersistent</link>
</seealso>
</element>
<element name="TGridColumnTitle.Assign.Source">
<short>Persistent object with property values copied in the method.</short>
</element>
<element name="TGridColumnTitle.FillTitleDefaultFont">
<short>Stores the default font used for the column title.</short>
<descr>
<p>
When <var>Grid</var> has been assigned, the <var>TitleFont</var> property
from the Grid is used in the <var>Font</var> property. Otherwise, the Font
from the <var>Column</var> is used. <var>IsDefaultFont</var> is set to
<b>True</b> in the method.
</p>
</descr>
<seealso>
<link id="TGridColumnTitle.Column"/>
<link id="TGridColumnTitle.Font"/>
<link id="TGridColumn.Grid"/>
<link id="TGridColumn.Font"/>
<link id="TCustomGrid.TitleFont"/>
</seealso>
</element>
<element name="TGridColumnTitle.FixDesignFontsPPI">
<short>Corrects the design-time PPI for the column title.</short>
<descr>
<p>
<var>FixDesignFontsPPI</var> is a procedure used to correct the design-time
Pixels Per Inch setting for the component. Pixels Per Inch for Fonts is not
saved in LFM files, and the design-time setting may differ from the run-time
setting on a target machine. This adversely affects font scaling.
</p>
<p>
FixDesignFontsPPI calls the DoFixDesignFontPPI method in the Grid control for
the column to adjust the font PPI to the value specified in ADesignTimePPI.
</p>
</descr>
<seealso>
<link id="TGridColumnTitle.Font"/>
<link id="TGridColumn.Grid"/>
<link id="#lcl.controls.TControl.DoFixDesignFontPPI">TControl.DoFixDesignFontPPI</link>
</seealso>
</element>
<element name="TGridColumnTitle.FixDesignFontsPPI.ADesignTime">
<short>Design-time display density applied in the method.</short>
</element>
<element name="TGridColumnTitle.ScaleFontsPPI">
<short>
Scales font sizes in the class instance to the specified display density.
</short>
<descr>
<p>
<var>ScaleFontsPPI</var> is an overridden procedure used to scale the size
for the fonts in the Grid and Title properties to the specified display
density (PPI) (Pixels Per Inch).
</p>
<p>
AToPPI contains the value assigned to the fonts used when a non-zero value is
specified.
</p>
<p>
If AToPPI is omitted, the scaling factor in AProportion is used to adjust the
existing PPI setting in the fonts by the indicated factor.
</p>
<p>
ScaleFontsPPI is called when the AutoAdjustLayout method is used to apply a
layout policy to a control.
</p>
</descr>
<seealso/>
</element>
<element name="TGridColumnTitle.ScaleFontsPPI.AToPPI">
<short>Explicit Pixels per Inch setting for the fonts.</short>
</element>
<element name="TGridColumnTitle.ScaleFontsPPI.AProportion">
<short>
Scaling factor applied to the existing PPI setting for the fonts.
</short>
</element>
<element name="TGridColumnTitle.IsDefault">
<short>
Returns <b>True</b> if the column title uses the default property values.
</short>
<descr>
<p>
<var>IsDefault</var> is a <var>Boolean</var> function used to determine if
the column title uses the default values assigned when the class instance was
created. The return value is <b>True</b> when <b>all</b> of the following
conditions are met:
</p>
<ul>
<li>Alignment is Nil (unassigned).</li>
<li>Caption is Nil (unassigned).</li>
<li>Color is Nil (unassigned).</li>
<li>Layout is Nil (unassigned).</li>
<li>ImageIndex is 0 (zero).</li>
<li>ImageLayout is blGlyphRight.</li>
<li>IsDefaultFont returns <b>True</b>.</li>
</ul>
<p>
IsDefault is when the columns for the parent grid are streamed using the LCL
component streaming mechanism. Columns which contain default values
(including the title) are not written during component streaming.
</p>
</descr>
<seealso>
<link id="TGridColumn.IsDefault"/>
<link id="TGridColumn.Title"/>
<link id="TGridColumns"/>
<link id="TCustomGrid.Columns"/>
</seealso>
</element>
<element name="TGridColumnTitle.IsDefault.Result">
<short>
<b>True</b> if the column title uses the default property values.
</short>
</element>
<element name="TGridColumnTitle.Column">
<short>The TGridColumn instance where the title is used.</short>
<descr>
<p>
Column is a read-only TGridColumn property with the grid column where the
class instance is used as the Title property. Its value is assigned in Create
using the argument passed to the constructor.
</p>
<p>
Column allows access to properties and methods in the grid column owner,
including the Grid where the column is defined. It is used in methods like:
FontChanged, FillTitleDefaultFont, FixDesignFontsPPI, and ScaleFontsPPI. It
is also used when properties are changed which affect the column definition,
including: Alignment, Color, Font, ImageIndex, ImageLayout, Layout, MultiLine, and
PrefixOption.
</p>
</descr>
<seealso>
<link id="TGridColumnTitle.Alignment"/>
<link id="TGridColumnTitle.Color"/>
<link id="TGridColumnTitle.Font"/>
<link id="TGridColumnTitle.ImageIndex"/>
<link id="TGridColumnTitle.ImageLayout"/>
<link id="TGridColumnTitle.Layout"/>
<link id="TGridColumnTitle.MultiLine"/>
<link id="TGridColumnTitle.PrefixOption"/>
<link id="TGridColumn.Title"/>
<link id="TGridColumn.Grid"/>
</seealso>
</element>
<element name="TGridColumnTitle.Alignment">
<short>
Horizontal alignment for the text in the column title.
</short>
<descr>
<p>
<var>Alignment</var> is a <var>TAlignment</var> property which controls the
horizontal alignment for the text in the Caption property. The default
alignment is taLeftJustify, as returned from GetDefaultAlignment, and causes
the title to be displayed aligned to the left edge of the column.
</p>
<p>
Changing the value for the property causes the ColumnChanged method in Column
to be called to update the collection item and reset its WidthChanged
property.
</p>
<p>
Use Layout to control the vertical alignment for the text displayed in the
column title.
</p>
<p>
Use ImageLayout to control the position for the glyph image displayed in the
fixed header cell for the column title.
</p>
</descr>
<seealso>
<link id="TGridColumnTitle.Caption"/>
<link id="TGridColumnTitle.GetDefaultAlignment"/>
<link id="TGridColumnTitle.ImageLayout"/>
<link id="TGridColumnTitle.Layout"/>
<link id="TGridColumn.ColumnChanged"/>
<link id="TGridColumn.WidthChanged"/>
<link id="#rtl.classes.TAlignment">TAlignment</link>
</seealso>
</element>
<element name="TGridColumnTitle.Caption">
<short>
Text displayed as the title for the grid column.
</short>
<descr>
<p>
<var>Caption</var> is a <var>TCaption</var> property which contains the text
displayed as the title for a grid column in a fixed cell header. If an
explicit value has not been assigned to Caption, the value from
GetDefaultCaption is used as the property value ('Title').
</p>
<p>
Changing the value for the property causes the ColumnChanged method in Column
to be called. This updates the collection item in the Grid where the Column
is defined, and resets the value in the WidthChanged property for the Column.
</p>
<p>
Use Font to control the typeface and display attributes for the text.
</p>
<p>
Use Alignment to control the horizontal alignment for the text within the
cell header.
</p>
<p>
Use Layout to control the vertical alignment for the text within the cell
header.
</p>
<p>
Use MultiLine to indicate whether the text can be word-wrapped when it is
longer than the display width for the column.
</p>
<p>
Use ImageIndex to specify the glyph displayed for in the cell header for the
column.
</p>
</descr>
<seealso>
<link id="TGridColumnTitle.Alignment"/>
<link id="TGridColumnTitle.Font"/>
<link id="TGridColumnTitle.Color"/>
<link id="TGridColumnTitle.ImageIndex"/>
<link id="TGridColumnTitle.Layout"/>
<link id="TGridColumnTitle.MultiLine"/>
</seealso>
</element>
<element name="TGridColumnTitle.Color">
<short>
The background color for the column title.
</short>
<descr>
<p>
<var>Color</var> is a <var>TColor</var> property which contains the color
used to paint the background for the column header where the title is
displayed. If an explicit value has not been assigned, the value from
GetDefaultColor is used in the property, and contains the FixedColor for the
grid where the Column is defined.
</p>
<p>
Changing the value for the property causes the ColumnChanged method in Column
to be called. This causes the collection item to be updated in the grid
control, and the WidthChanged property in Column is reset.
</p>
<p>
Use the Color property in Font to control the color for the text displayed in
the fixed header cell.
</p>
</descr>
<seealso>
<link id="TGridColumnTitle.Font"/>
<link id="TGridColumnTitle.GetDefaultColor"/>
<link id="TGridColumn.ColumnChanged"/>
<link id="TGridColumn.WidthChanged"/>
<link id="TCustomGrid.FixedColor"/>
<link id="#lcl.graphics.TFont.Color">TFont.Color</link>
</seealso>
</element>
<element name="TGridColumnTitle.Font">
<short>
Contains the typeface and text attributes for the Caption displayed in the
column title.
</short>
<descr>
<p>
<var>Font</var> is a <var>TFont</var> property which contains the name for
the typeface and its attributes which are applied to the text displayed in
the column title. The default value for the property is assigned in the
Create constructor, and uses the value determined by the FillDefaultFont
method in the Column. It contains the TitleFont for the grid control (when assigned) or the
Column (by default).
</p>
<p>
Use Alignment to control the horizontal alignment for the text displayed in
the column title; this overrides the attributes assigned to Font.
</p>
<p>
Use Layout to control the vertical alignment for the text displayed in the
column title; this overrides the attributes assigned to Font.
</p>
</descr>
<seealso>
<link id="TGridColumnTitle.Column"/>
<link id="TGridColumnTitle.Create"/>
<link id="TGridColumnTitle.Caption"/>
<link id="TGridColumnTitle.Alignment"/>
<link id="TGridColumnTitle.Layout"/>
<link id="TGridColumn.FillDefaultFont"/>
<link id="TGridColumn.Font"/>
<link id="TCustomGrid.TitleFont"/>
<link id="#lcl.graphics.TFont">TFont</link>
</seealso>
</element>
<element name="TGridColumnTitle.ImageIndex">
<short>
Ordinal position for the image displayed in the fixed header for the column title.
</short>
<descr>
<p>
<var>ImageIndex</var> is a <var>TImageIndex</var> property which contains the
ordinal position for the image displayed in the column title. It indicates
the position in the TitleImageList property on a grid control where the image
is stored. The default value for the property is -1 and indicates that an
explicit value has not been assigned, or that an image is not used in the
fixed header for the column.
</p>
<p>
Changing the value for the property causes the ColumnChanged method in Column
to be called. This updates the collection item in the grid control where the
column is defined, and resets the value in the WidthChanged property in
Column.
</p>
<p>
Use ImageLayout to control the position for the image relative to the caption
text displayed in the column header.
</p>
</descr>
<seealso>
<link id="TGridColumnTitle.Column"/>
<link id="TGridColumnTitle.ImageLayout"/>
<link id="TGridColumn.Grid"/>
<link id="TGridColumn.ColumnChanged"/>
<link id="TGridColumn.WidthChanged"/>
<link id="TCustomGrid.TitleImageList"/>
<link id="#lcl.imglist.TImageIndex">TImageIndex</link>
</seealso>
</element>
<element name="TGridColumnTitle.ImageLayout">
<short>
The layout used for any image in the column title.
</short>
<descr>
<p>
<var>ImageLayout</var> is a <var>TButtonLayout</var> property which controls
the placement of the title image relative to the text displayed in the column
header. The default value for the property is <var>blGlyphRight</var>, and
causes the image to be aligned to the right of the Caption displayed in the
column title.
</p>
<p>
See <link id="#lcl.buttons.TButtonLayout">TButtonLayout</link> for the values
allowed in the property and their meanings.
</p>
<p>
Changing the value for the property causes the ColumnChanged method in Column
to be called. This updates the collection item in the grid control where the
column is defined, and resets the value in the WidthChanged property in
Column.
</p>
<p>
Use Alignment and Layout to control the placement of the Caption text in the
column title.
</p>
</descr>
<seealso>
<link id="TGridColumnTitle.Alignment"/>
<link id="TGridColumnTitle.Caption"/>
<link id="TGridColumnTitle.Column"/>
<link id="TGridColumnTitle.Layout"/>
<link id="TGridColumn.ColumnChanged"/>
<link id="TGridColumn.WidthChanged"/>
<link id="#lcl.buttons.TButtonLayout">TButtonLayout</link>
</seealso>
</element>
<element name="TGridColumnTitle.Layout">
<short>
Vertical alignment for the Caption text displayed in the column title.
</short>
<descr>
<p>
<var>Layout</var> is a <var>TTextLayout</var> property which indicates the
vertical alignment for the caption text within the fixed header for the
column. See <link id="#lcl.graphics.TTextLayout">TTextLayout</link> for the
values allowed in the property and their meanings.
</p>
<p>
If an explicit value has not been assigned to the property, the value from
the GetDefaultLayout method (tlCenter) is used as the property value.
</p>
<p>
Changing the value for the property causes the ColumnChanged method in Column
to be called. This updates the collection item in the grid control where the
column is defined, and resets the value in the WidthChanged property in
Column.
</p>
<p>
Use Alignment to control the horizontal alignment for the Caption text
displayed in the column title.
</p>
<p>
Use MultiLine to control text wrapping when Caption is longer than the
display width for the Column.
</p>
<p>
Use ImageLayout to control the placement of an image relative to the Caption
in the column title.
</p>
</descr>
<seealso>
<link id="TGridColumnTitle.Caption"/>
<link id="TGridColumnTitle.GetDefaultLayout"/>
<link id="TGridColumnTitle.ImageLayout"/>
<link id="TGridColumnTitle.MultiLine"/>
<link id="#lcl.graphics.TTextLayout">TTextLayout</link>
</seealso>
</element>
<element name="TGridColumnTitle.MultiLine">
<short>
Indicates whether the column title can be displayed as multiple lines.
</short>
<descr>
<p>
<var>MultiLine</var> is a <var>Boolean</var> that indicates if the column
title can be displayed as multiple lines. The default value for the property
is <b>False</b>. Changing the value in MultiLine cause the
<var>ColumnChanged</var> method for the <var>TGridColumn</var> class instance
to be called.
</p>
</descr>
<seealso>
<link id="TGridColumn.ColumnChanged"/>
</seealso>
</element>
<element name="TGridColumnTitle.PrefixOption">
<short>
Indicates if accelerator keys are used in the column title.
</short>
<descr>
<p>
<var>PrefixOption</var> is a <var>TPrefixOption</var> that indicates if
accelerator keys are recognized and displayed in the column title. The
default value for the property is <var>poNone</var>, and indicates
Accelerator keys are ignored for the column title. Changing the value in
<var>PrefixOption</var> causes the <var>ColumnChanged</var> method for the
<var>TGridColumn</var> class instance to be called.
</p>
</descr>
<seealso>
<link id="TGridColumn.ColumnChanged"/>
<link id="TPrefixOption"/>
</seealso>
</element>
<element name="TGridColumn">
<short>
Implements a column definition used for tabular data in TCustomGrid.
</short>
<descr>
<p>
<var>TGridColumn</var> is a <var>TCollectionItem</var> descendant which
implements a column definition for grid controls. TGridColumn contains
properties which control the appearance, layout, and editing behavior used
for a column in <var>TCustomGrid</var> and descendent classes. For instance:
</p>
<ul>
<li>Alignment</li>
<li>ButtonStyle</li>
<li>Color</li>
<li>DropDownRows</li>
<li>Font</li>
<li>Layout</li>
<li>MinSize</li>
<li>MaxSize</li>
<li>PickList</li>
<li>ReadOnly</li>
<li>Width</li>
<li>Visible</li>
<li>ValueChecked</li>
<li>ValueUnchecked</li>
</ul>
<p>
The column has an associated <var>TGridColumnTitle</var> class instance in
<var>Title</var> that defines the fixed cell header displayed for the column.
As a convenience, the column includes a reference to the
<var>TCustomGrid</var> which uses the column definition.
</p>
<p>
Instances of <var>TGridColumn</var> are created by and stored in the
<var>TGridColumns</var> collection class. Use the methods in
<var>TGridColumns</var> to create, access, and maintain the items in the
collection.
</p>
</descr>
<seealso>
<link id="TGridColumns"/>
<link id="TCustomGrid.Columns"/>
<link id="TGridColumnTitle"/>
</seealso>
</element>
<element name="TGridColumn.FButtonStyle"/>
<element name="TGridColumn.FDropDownRows"/>
<element name="TGridColumn.FTitle"/>
<element name="TGridColumn.FWidthChanged"/>
<element name="TGridColumn.FAlignment"/>
<element name="TGridColumn.FColor"/>
<element name="TGridColumn.FLayout"/>
<element name="TGridColumn.FVisible"/>
<element name="TGridColumn.FReadOnly"/>
<element name="TGridColumn.FWidth"/>
<element name="TGridColumn.FFont"/>
<element name="TGridColumn.FIsDefaultFont"/>
<element name="TGridColumn.FPickList"/>
<element name="TGridColumn.FMinSize"/>
<element name="TGridColumn.FMaxSize"/>
<element name="TGridColumn.FSizePriority"/>
<element name="TGridColumn.FontChanged">
<short>
Performs actions needed when the Font has been changed for the grid column.
</short>
<descr>
<p>
<var>FontChanged</var> is a procedure used to perform actions needed when the
<var>Font</var> for the grid column has been changed. For
<var>TGridColumn</var>, it sets the value in <var>IsDefaultFont</var> to
<b>False</b> and calls the <var>ColumnChanged</var> method.
</p>
</descr>
<seealso>
<link id="TGridColumn.IsDefaultFont"/>
<link id="TGridColumn.ColumnChanged"/>
</seealso>
</element>
<element name="TGridColumn.FontChanged.Sender">
<short>Class instance generating the notification.</short>
</element>
<element name="TGridColumn.GetAlignment">
<short>Gets the value for the Alignment property.</short>
<descr/>
<seealso>
<link id="TGridColumn.Alignment"/>
</seealso>
</element>
<element name="TGridColumn.GetAlignment.Result">
<short>Value for the property.</short>
</element>
<element name="TGridColumn.GetColor">
<short>Gets the value for the Color property.</short>
<descr/>
<seealso>
<link id="TGridColumn.Color"/>
</seealso>
</element>
<element name="TGridColumn.GetColor.Result">
<short>Value for the property.</short>
</element>
<element name="TGridColumn.GetExpanded">
<short>Gets the value for the Expanded property.</short>
<descr>
<p>
Always returns <b>True</b> in the current implementation.
</p>
</descr>
<seealso/>
</element>
<element name="TGridColumn.GetExpanded.Result">
<short>Value for the property.</short>
</element>
<element name="TGridColumn.GetFont">
<short>Gets the value for the Font property.</short>
<descr/>
<seealso>
<link id="TGridColumn.Font"/>
</seealso>
</element>
<element name="TGridColumn.GetFont.Result">
<short>Value for the property.</short>
</element>
<element name="TGridColumn.GetGrid">
<short>Gets the value for the Grid property.</short>
<descr/>
<seealso>
<link id="TGridColumn.Grid"/>
</seealso>
</element>
<element name="TGridColumn.GetGrid.Result">
<short>Value for the property.</short>
</element>
<element name="TGridColumn.GetLayout">
<short>Gets the value for the Layout property.</short>
<descr/>
<seealso>
<link id="TGridColumn.Layout"/>
</seealso>
</element>
<element name="TGridColumn.GetLayout.Result">
<short>Value for the property.</short>
</element>
<element name="TGridColumn.GetMaxSize">
<short>Gets the value for the MaxSize property.</short>
<descr/>
<seealso>
<link id="TGridColumn.MaxSize"/>
</seealso>
</element>
<element name="TGridColumn.GetMaxSize.Result">
<short>Value for the property.</short>
</element>
<element name="TGridColumn.GetMinSize">
<short>Gets the value for the MinSize property.</short>
<descr/>
<seealso>
<link id="TGridColumn.MinSize"/>
</seealso>
</element>
<element name="TGridColumn.GetMinSize.Result">
<short>Value for the property.</short>
</element>
<element name="TGridColumn.GetSizePriority">
<short>Gets the value for the SizePriority property.</short>
<descr/>
<seealso>
<link id="TGridColumn.SizePriority"/>
</seealso>
</element>
<element name="TGridColumn.GetSizePriority.Result">
<short>Value for the property.</short>
</element>
<element name="TGridColumn.GetPickList">
<short>Gets the list of strings in the picklist.</short>
<descr/>
<seealso>
<link id="TGridColumn.PickList"/>
</seealso>
</element>
<element name="TGridColumn.GetPickList.Result">
<short>Value for the property.</short>
</element>
<element name="TGridColumn.GetReadOnly">
<short>Gets the value for the ReadOnly property.</short>
<descr/>
<seealso>
<link id="TGridColumn.ReadOnly"/>
</seealso>
</element>
<element name="TGridColumn.GetReadOnly.Result">
<short>Value for the property.</short>
</element>
<element name="TGridColumn.GetVisible">
<short>Gets the value for the Visible property.</short>
<descr/>
<seealso>
<link id="TGridColumn.Visible"/>
</seealso>
</element>
<element name="TGridColumn.GetVisible.Result">
<short>Value for the property.</short>
</element>
<element name="TGridColumn.GetWidth">
<short>Gets the value for the Width property.</short>
<descr/>
<seealso>
<link id="TGridColumn.Width"/>
</seealso>
</element>
<element name="TGridColumn.GetWidth.Result">
<short>Value for the property.</short>
</element>
<element name="TGridColumn.IsAlignmentStored">
<short>Indicates if the Alignment is used for the class instance.</short>
<descr/>
<seealso>
<link id="TGridColumn.Alignment"/>
</seealso>
</element>
<element name="TGridColumn.IsAlignmentStored.Result">
<short>
<b>True</b> when Alignment has been assigned in the class instance.
</short>
</element>
<element name="TGridColumn.IsColorStored">
<short>Indicates if the Color is used in the class instance.</short>
<descr/>
<seealso>
<link id="TGridColumn.Color"/>
</seealso>
</element>
<element name="TGridColumn.IsColorStored.Result">
<short><b>True</b> when Color has been assigned in the class instance.</short>
</element>
<element name="TGridColumn.IsFontStored">
<short>Indicates if the Font has been assigned for the column.</short>
<descr/>
<seealso/>
</element>
<element name="TGridColumn.IsFontStored.Result">
<short><b>True</b> when Font has a value other than the default font.</short>
</element>
<element name="TGridColumn.IsLayoutStored">
<short>Implements the storage specifier for the ImageLayout property.</short>
<descr/>
<seealso>
<link id="TGridColumn.ImageLayout"/>
</seealso>
</element>
<element name="TGridColumn.IsLayoutStored.Result">
<short>
<b>True</b> when the property member contains a value other than Nil.
</short>
</element>
<element name="TGridColumn.IsMinSizeStored">
<short>Implements the storage specifier for the MinSize property.</short>
<descr/>
<seealso>
<link id="TGridColumn.MinSize"/>
</seealso>
</element>
<element name="TGridColumn.IsMinSizeStored.Result">
<short>
<b>True</b> when the property member contains a value other than Nil.
</short>
</element>
<element name="TGridColumn.IsMaxSizeStored">
<short>Implements the storage specifier for the MaxSize property.</short>
<descr/>
<seealso>
<link id="TGridColumn.MaxSize"/>
</seealso>
</element>
<element name="TGridColumn.IsMaxSizeStored.Result">
<short>
<b>True</b> when the property member contains a value other than Nil.
</short>
</element>
<element name="TGridColumn.IsReadOnlyStored">
<short>Implements the storage specifier for the ReadOnly property.</short>
<descr/>
<seealso>
<link id="TGridColumn.ReadOnly"/>
</seealso>
</element>
<element name="TGridColumn.IsReadOnlyStored.Result">
<short>
<b>True</b> when the property member contains a value other than Nil.
</short>
</element>
<element name="TGridColumn.IsSizePriorityStored">
<short>Implements the storage specifier for the SizePriority property.</short>
<descr/>
<seealso>
<link id="TGridColumn.SizePriority"/>
</seealso>
</element>
<element name="TGridColumn.IsSizePriorityStored.Result">
<short>
<b>True</b> when the property member contains a value other than Nil.
</short>
</element>
<element name="TGridColumn.IsVisibleStored">
<short>Implements the storage specifier for the Visible property.</short>
<descr/>
<seealso>
<link id="TGridColumn.Visible"/>
</seealso>
</element>
<element name="TGridColumn.IsVisibleStored.Result">
<short><b>True</b> when the property member contains <b>True</b>.</short>
</element>
<element name="TGridColumn.IsWidthStored">
<short>Implements the storage specifier for the Width property.</short>
<descr/>
<seealso>
<link id="TGridColumn.Width"/>
</seealso>
</element>
<element name="TGridColumn.IsWidthStored.Result">
<short>
<b>True</b> when the property member contains a value other than Nil.
</short>
</element>
<element name="TGridColumn.SetAlignment">
<short>Sets the value in the Alignment property.</short>
<descr/>
<seealso>
<link id="TGridColumn.Alignment"/>
</seealso>
</element>
<element name="TGridColumn.SetAlignment.AValue">
<short>New value for the property.</short>
</element>
<element name="TGridColumn.SetButtonStyle">
<short>Sets the value in the ButtonStyle property.</short>
<descr/>
<seealso>
<link id="TGridColumn.ButtonStyle"/>
</seealso>
</element>
<element name="TGridColumn.SetButtonStyle.AValue">
<short>New value for the property.</short>
</element>
<element name="TGridColumn.SetColor">
<short>Sets the value in the Color property.</short>
<descr/>
<seealso>
<link id="TGridColumn.Color"/>
</seealso>
</element>
<element name="TGridColumn.SetColor.AValue">
<short>New value for the property.</short>
</element>
<element name="TGridColumn.SetExpanded">
<short>Sets the value in the Expanded property.</short>
<descr/>
<seealso>
<link id="TGridColumn.Expanded"/>
</seealso>
</element>
<element name="TGridColumn.SetExpanded.AValue">
<short>New value for the property.</short>
</element>
<element name="TGridColumn.SetFont">
<short>Sets the value in the Font property.</short>
<descr/>
<seealso>
<link id="TGridColumn.Font"/>
</seealso>
</element>
<element name="TGridColumn.SetFont.AValue">
<short>New value for the property.</short>
</element>
<element name="TGridColumn.SetLayout">
<short>Sets the value in the Layout property.</short>
<descr/>
<seealso>
<link id="TGridColumn.Layout"/>
</seealso>
</element>
<element name="TGridColumn.SetLayout.AValue">
<short>New value for the property.</short>
</element>
<element name="TGridColumn.SetMaxSize">
<short>Sets the value in the MaxSize property.</short>
<descr/>
<seealso>
<link id="TGridColumn.MaxSize"/>
</seealso>
</element>
<element name="TGridColumn.SetMaxSize.AValue">
<short>New value for the property.</short>
</element>
<element name="TGridColumn.SetMinSize">
<short>Sets the value for the MinSize property.</short>
<descr/>
<seealso>
<link id="TGridColumn.MinSize"/>
</seealso>
</element>
<element name="TGridColumn.SetMinSize.Avalue">
<short>New value for the property.</short>
</element>
<element name="TGridColumn.SetPickList">
<short>Sets the value for the PickList property.</short>
<descr/>
<seealso>
<link id="TGridColumn.PickList"/>
</seealso>
</element>
<element name="TGridColumn.SetPickList.AValue">
<short>New value for the property.</short>
</element>
<element name="TGridColumn.SetReadOnly">
<short>Sets the value for the ReadOnly property.</short>
<descr/>
<seealso>
<link id="TGridColumn.ReadOnly"/>
</seealso>
</element>
<element name="TGridColumn.SetReadOnly.AValue">
<short>New value for the property.</short>
</element>
<element name="TGridColumn.SetSizePriority">
<short>Sets the value for the SizePriority property.</short>
<descr/>
<seealso>
<link id="TGridColumn.SizePriority"/>
</seealso>
</element>
<element name="TGridColumn.SetSizePriority.AValue">
<short>New value for the property.</short>
</element>
<element name="TGridColumn.SetTitle">
<short>Sets the value for the Title property.</short>
<descr/>
<seealso>
<link id="TGridColumn.Title"/>
</seealso>
</element>
<element name="TGridColumn.SetTitle.AValue">
<short>New value for the property.</short>
</element>
<element name="TGridColumn.SetVisible">
<short>Sets the value for the Visible property.</short>
<descr/>
<seealso>
<link id="TGridColumn.Visible"/>
</seealso>
</element>
<element name="TGridColumn.SetVisible.AValue">
<short>New value for the property.</short>
</element>
<element name="TGridColumn.SetWidth">
<short>Sets the value for the Width property.</short>
<descr/>
<seealso>
<link id="TGridColumn.Width"/>
</seealso>
</element>
<element name="TGridColumn.SetWidth.AValue">
<short>New value for the property.</short>
</element>
<element name="TGridColumn.Assign">
<short>
Copies property values from the specified persistent object to the current
class instance.
</short>
<descr>
<p>
<var>Assign</var> is an overridden method in <var>TGridColumn</var>. It
implements the object persistence mechanism from the FPC RTL. Assign copies
property value from the persistent object in <var>Source</var> into the
current class instance.
</p>
<p>
When Source is derived from <var>TGridColumn</var>, the following properties
are copied in the method:
</p>
<ul>
<li>Alignment</li>
<li>ButtonStyle</li>
<li>Color</li>
<li>DropDownRows</li>
<li>Font</li>
<li>Layout</li>
<li>MinSize</li>
<li>MaxSize</li>
<li>PickList</li>
<li>ReadOnly</li>
<li>SizePriority</li>
<li>Title</li>
<li>Width</li>
<li>Visible</li>
</ul>
<p>
If Source is not derived from TGridColumn, the inherited Assign method is
called.
</p>
</descr>
<seealso>
<link id="#rtl.classes.TPersistent.Assign">TPersistent.Assign</link>
</seealso>
</element>
<element name="TGridColumn.Assign.Source">
<short>Persistent object with properties copied in the method.</short>
</element>
<element name="TGridColumn.GetDisplayName" link="#rtl.Classes.TCollectionItem.GetDisplayName"/>
<element name="TGridColumn.GetDisplayName.Result"/>
<element name="TGridColumn.GetDefaultAlignment">
<short>Gets the default value for the Alignment property.</short>
<descr>
<p>
<var>GetDefaultAlignment</var> is a <var>TAlignment</var> function used to
get the default value for the <var>Alignment</var> property in the grid
column.
</p>
<p>
GetDefaultAlignment uses the value in <var>ButtonStyle</var> to determine the
alignment needed for the grid column instance. When ButtonStyle contains
<var>cbsCheckboxColumn</var> or <var>cbsButtonColumn</var>, the alignment is
set to <var>taCenter</var>. Otherwise, the alignment is set to
<var>taLeftJustify</var>.
</p>
<p>
GetDefaultAlignment is called when reading the value for the Alignment
property, and the value in the property member has not been assigned
(contains <b>Nil</b>). It is also called when setting a new value in
Alignment, and determines whether the property member needs to be
re-allocated for the modified value.
</p>
</descr>
<seealso>
<link id="TGridColumn.Alignment"/>
<link id="TGridColumn.ButtonStyle"/>
</seealso>
</element>
<element name="TGridColumn.GetDefaultAlignment.Result">
<short>
TAlignment instance with the default alignment for the grid column.
</short>
</element>
<element name="TGridColumn.GetDefaultColor">
<short>Gets the default value for the Color property.</short>
<descr>
<p>
<var>GetDefaultColor</var> is a <var>TColor</var> function used to get the
default value for the <var>Color</var> property in the grid column. The
return value is set to the Color property in <var>Grid</var>, when it has
been assigned. When Grid contains <b>Nil</b>, the value <var>clWindow</var>
is used as the return value.
</p>
<p>
GetDefaultColor is called when reading the value for the Color property, and
the property has not been assigned. It is also called when setting a new
value in Color, and determines whether the property member is re-allocated
for the new value.
</p>
</descr>
<seealso>
<link id="TGridColumn.Color"/>
<link id="TGridColumn.Grid"/>
</seealso>
</element>
<element name="TGridColumn.GetDefaultColor.Result">
<short>Default value for the Color property in the grid column.</short>
</element>
<element name="TGridColumn.GetDefaultLayout">
<short>Default layout used for text in the grid column.</short>
<descr>
<p>
<var>GetDefaultLayout</var> is a <var>TTextLayout</var> function used to get
the default value for the <var>Layout</var> property in the grid column. The
return value is always <var>tlCenter</var> in <var>TGridColumn</var>.
</p>
<p>
GetDefaultLayout is called when reading the value for the Layout property,
and an explicit value has not been assigned for the property. It is also
called when setting a new value in Layout, and determines whether the
property member is re-allocated for the new value.
</p>
</descr>
<seealso>
<link id="TGridColumn.Layout"/>
</seealso>
</element>
<element name="TGridColumn.GetDefaultLayout.Result">
<short>Default value for the Layout property.</short>
</element>
<element name="TGridColumn.GetDefaultMaxSize">
<short>Gets the default value for the MaxSize property.</short>
<descr>
<p>
The return value is always <b>200</b> (pixels) in <var>TGridColumn</var>.
</p>
<p>
<var>GetDefaultMaxSize</var> is called when reading or writing the value for
the <var>MaxSize</var> property if an explicit value has not already been
assigned for the member.
</p>
</descr>
<seealso>
<link id="TGridColumn.MaxSize"/>
</seealso>
</element>
<element name="TGridColumn.GetDefaultMaxSize.Result">
<short>Default value for the MaxSize property.</short>
</element>
<element name="TGridColumn.GetDefaultMinSize">
<short>Gets the default value for the MinSize property.</short>
<descr/>
<seealso>
<link id="TGridColumn.MinSize"/>
</seealso>
</element>
<element name="TGridColumn.GetDefaultMinSize.Result">
<short>Default value for the MinSize property.</short>
</element>
<element name="TGridColumn.GetDefaultReadOnly">
<short>Gets the default value for the ReadOnly property.</short>
<descr/>
<seealso>
<link id="TGridColumn.ReadOnly"/>
</seealso>
</element>
<element name="TGridColumn.GetDefaultReadOnly.Result">
<short>Default value for the ReadOnly property.</short>
</element>
<element name="TGridColumn.GetDefaultSizePriority">
<short>Gets the default value for the SizePriority property.</short>
<descr/>
<seealso>
<link id="TGridColumn.SizePriority"/>
</seealso>
</element>
<element name="TGridColumn.GetDefaultSizePriority.Result">
<short>Default value for the SizePriority property.</short>
</element>
<element name="TGridColumn.GetDefaultVisible">
<short>Gets the default value for the Visible property.</short>
<descr/>
<seealso>
<link id="TGridColumn.Visible"/>
</seealso>
</element>
<element name="TGridColumn.GetDefaultVisible.Result">
<short>Default value for the Visible property.</short>
</element>
<element name="TGridColumn.GetDefaultValueChecked">
<short>Gets the default value for a checked cell in the grid column.</short>
<descr/>
<seealso/>
</element>
<element name="TGridColumn.GetDefaultValueChecked.Result">
<short>Default value for a checked cell in the grid column.</short>
</element>
<element name="TGridColumn.GetDefaultValueUnchecked">
<short>Gets the default value for an unchecked cell in the column.</short>
</element>
<element name="TGridColumn.GetDefaultValueUnchecked.Result">
<short>Default value used for an unchecked cell in the grid column.</short>
</element>
<element name="TGridColumn.GetDefaultWidth">
<short>Gets the default value for the Width property.</short>
<descr/>
<seealso>
<link id="TGridColumn.Width"/>
</seealso>
</element>
<element name="TGridColumn.GetDefaultWidth.Result">
<short>Default value for the Width property.</short>
</element>
<element name="TGridColumn.ColumnChanged">
<short>Performs actions needed when a column in the grid is changed.</short>
<descr>
<p>
Calls <var>Changed</var> to update the current column instance in the
<var>Columns</var> collection. The internal flag used to track changes to the
column width is reset after updating the collection item.
</p>
</descr>
<seealso/>
</element>
<element name="TGridColumn.AllColumnsChange">
<short>
Method used to indicate that all columns in the collection have been changed.
</short>
<descr/>
<seealso/>
</element>
<element name="TGridColumn.CreateTitle">
<short>Creates a column title used for the grid column.</short>
<descr/>
<seealso/>
</element>
<element name="TGridColumn.CreateTitle.Result">
<short>TGridColumnTitle instance created in the method.</short>
</element>
<element name="TGridColumn.SetIndex">
<short>Sets the value for the Index property.</short>
<descr>
<p>
<var>SetIndex</var> is an overridden method in <var>TGridColumn</var> used to
set the value for the inherited <var>Index</var> property. When the property
value is changed, and <var>Grid</var> is assigned, columns in the grid
control are re-ordered to reflect their new value for the column (when
needed). The inherited method is called to apply the new property value prior
to exiting from the method.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Columns"/>
<link id="TCustomGrid.GridColumnFromColumnIndex"/>
<link id="TCustomGrid.DoOPMoveColRow"/>
<link id="#rtl.classes.TCollectionItem.Index">TCollectionItem.Index</link>
</seealso>
</element>
<element name="TGridColumn.SetIndex.Value">
<short>New value for the Index property.</short>
</element>
<element name="TGridColumn.IsDefaultFont">
<short>Indicates if the default font is in use for the grid column.</short>
<descr/>
<seealso/>
</element>
<element name="TGridColumn.Create">
<short>Constructor for the class instance.</short>
<descr>
<p>
<var>Create</var> is the constructor for <var>TGridColumn</var>. Create calls
the inherited <var>Create</var> method using <var>ACollection</var> as the
owner for the collection item.
</p>
<p>
Create allocates resources needed for members in the class instance, and sets
the default values for properties such as: <var>Title</var>, <var>Font</var>,
<var>IsDefaultFont</var>, <var>ButtonStyle</var> and <var>DropDownRows</var>.
</p>
</descr>
<seealso>
<link id="TGridColumn.Title"/>
<link id="TGridColumn.Font"/>
<link id="TGridColumn.IsDefaultFont"/>
<link id="TGridColumn.ButtonStyle"/>
<link id="TGridColumn.DropDownRows"/>
<link id="#rtl.classes.TCollectionItem.Create">TCollectionItem.Create</link>
</seealso>
</element>
<element name="TGridColumn.Create.ACollection">
<short>Collection which owns the collection item.</short>
</element>
<element name="TGridColumn.Destroy">
<short>Destructor for the class instance.</short>
<descr>
<p>
<var>Destroy</var> is the overridden destructor for the class instance.
Destroy ensures that resources allocated for members in the class instance
are freed (when needed), including:
</p>
<ul>
<li>Alignment</li>
<li>Color</li>
<li>Visible</li>
<li>ReadOnly</li>
<li>Width</li>
<li>Layout</li>
<li>MaxSize</li>
<li>SizePriority</li>
<li>MinSize</li>
<li>ValueChecked</li>
<li>ValueUnchecked</li>
<li>PickList</li>
<li>Font</li>
<li>Title</li>
</ul>
<p>
Destroy calls the inherited destructor prior to exiting from the method.
</p>
</descr>
<seealso>
<link id="#rtl.classes.TCollectionItem.Destroy">TCollectionItem.Destroy</link>
</seealso>
</element>
<element name="TGridColumn.FillDefaultFont">
<short>Sets the Font to the value used in the grid control.</short>
<descr>
<p>
When <var>Grid</var> has been assigned, its Font is used in the column
instance. The TFont value is assigned to the Font property, and IsDefaultFont
is set to <b>True</b>.
</p>
<p>
FillDefaultFont is called from the FontChanged method in TGridColumns.
</p>
</descr>
<seealso>
<link id="TGridColumn.Grid"/>
<link id="TGridColumn.Font"/>
<link id="TGridColumn.IsDefaultFont"/>
<link id="TGridColumns.FontChanged"/>
<link id="TCustomGrid"/>
</seealso>
</element>
<element name="TGridColumn.FixDesignFontsPPI">
<short>Corrects the design-time PPI for the column title.</short>
<descr>
<p>
<var>FixDesignFontsPPI</var> is a procedure used to correct the design-time
Pixels Per Inch setting for the component. Pixels Per Inch for Fonts is not
saved in LFM files, and the design-time setting may differ from the run-time
setting on a target machine. This adversely affects font scaling.
</p>
<p>
FixDesignFontsPPI calls the DoFixDesignFontPPI method in the Grid control to
adjust the font PPI to the value specified in ADesignTimePPI.
</p>
</descr>
<seealso>
<link id="TGridColumn.Font"/>
<link id="TGridColumn.Grid"/>
<link id="#lcl.controls.TControl.DoFixDesignFontPPI">TControl.DoFixDesignFontPPI</link>
</seealso>
</element>
<element name="TGridColumn.FixDesignFontsPPI.ADesignTime">
<short>Design-time display density applied in the method.</short>
</element>
<element name="TGridColumn.ScaleFontsPPI">
<short>
Scales the fonts for the column to a specified display density using a
scaling factor.
</short>
<descr>
<p>
<var>ScaleFontsPPI</var> is a method used to scale the height for fonts used
to display the data and title in the grid column. It implements the method
introduced in TControl, and applies the operation to the fonts used in the
TGridColumn instance. It is called from the ScaleFontsPPI method in
TCustomGrid when Columns have been defined for the grid control.
</p>
<p>
ScaleFontsPPI calls the DoScaleFontPPI method in Grid to adjust the
control font using the arguments in AToPPI and AProportion.
</p>
<p>
AToPPI contains the pixels per inch value assigned to the fonts used when a
non-zero value is specified. If AToPPI is omitted (0), the scaling factor in
AProportion is used to scale the existing PixelsPerInch setting in the fonts
by the factor in AProportion.
</p>
<p>
The ScaleFontsPPI method in Title is called to adjust the font used in the
fixed title displayed for the column. It uses the same logic applied to the
control Font.
</p>
<p>
ScaleFontsPPI is called when the AutoAdjustLayout method is used to apply a
layout policy to a control.
</p>
</descr>
<seealso>
<link id="TGridColumn.Grid"/>
<link id="TGridColumn.Font"/>
<link id="TGridColumn.Title"/>
<link id="TGridColumnTitle.ScaleFontsPPI"/>
<link id="TDrawGrid.Font"/>
<link id="TStringGrid.Font"/>
<link id="TCustomGrid.TitleFont"/>
<link id="TCustomGrid.ScaleFontsPPI"/>
<link id="#lcl.controls.TControl.ScaleFontsPPI">TControl.ScaleFontsPPI</link>
</seealso>
</element>
<element name="TGridColumn.ScaleFontsPPI.AToPPI">
<short>
Target pixels per inch for the fonts in the grid column.
</short>
</element>
<element name="TGridColumn.ScaleFontsPPI.AProportion">
<short>
Scaling factor applied to pixels per inch when aToPPI is 0.
</short>
</element>
<element name="TGridColumn.IsDefault">
<short>
Indicates if default layout settings are used for the grid column.
</short>
<descr>
<p>
<var>IsDefault</var> is a <var>Boolean</var> function used to determine if
the grid column uses default values in properties used to layout and
configure the class instance. The return value is <b>True</b> when all of the
following conditions are met:
</p>
<ul>
<li>Alignment is unassigned (<b>Nil</b>).</li>
<li>Color is unassigned (<b>Nil</b>).</li>
<li>ReadOnly is unassigned (<b>Nil</b>).</li>
<li>Width is unassigned (<b>Nil</b>).</li>
<li>Layout is unassigned (<b>Nil</b>).</li>
<li>MaxSize is unassigned (<b>Nil</b>).</li>
<li>MinSize is unassigned (<b>Nil</b>).</li>
<li>SizePriority is unassigned (<b>Nil</b>).</li>
<li>IsDefaultFont returns <b>True</b>.</li>
<li>Title uses default settings.</li>
</ul>
<p>
IsDefault is used during LCL component streaming to determine whether items
in the Columns collection need to be included in the resource stream when the
private WriteColumns method is called.
</p>
</descr>
<seealso>
<link id="TGridColumns.IsDefault"/>
<link id="TCustomGrid.Columns"/>
</seealso>
</element>
<element name="TGridColumn.IsDefault.Result">
<short>
<b>True</b> if the column uses its default settings.
</short>
</element>
<element name="TGridColumn.Grid">
<short>
The grid control to which this column belongs.
</short>
<descr>
<p>
<var>Grid</var> is a read-only <var>TCustomGrid</var> property with the grid
control where the column instance is stored. Grid allows the column definition
to access properties, methods, and events found in the TCustomGrid control
where the column is used.
</p>
<p>
The property value contains the Collection (TGridColumns) for the item, and is
passed as an argument to constructor for the class instance. The property
value is <b>Nil</b> if the collection is not descended from TGridColumns.
</p>
<p>
Example uses can be found in methods like SetIndex, GetWidth, GetDefaultWidth,
GetDefaultColor, FillDefaultFont and ScaleFontsPPI.
</p>
</descr>
<seealso>
<link id="TCustomGrid"/>
<link id="TCustomGrid.Columns"/>
<link id="TGridColumns"/>
<link id="#rtl.classes.TCollectionItem.Collection">TCollectionItem.Collection</link>
</seealso>
</element>
<element name="TGridColumn.DefaultWidth">
<short>
Default width for the column, or -1 when not assigned.
</short>
<descr>
<p>
<var>DefaultWidth</var> is a read-only <var>Integer</var> property with the
default width used for the column. The property value is read from the
<var>DefaultColWidth</var> property in the Grid control (when assigned). If
it is not assigned, the property value is -1.
</p>
</descr>
<seealso>
<link id="TGridColumn.Width"/>
</seealso>
</element>
<element name="TGridColumn.StoredWidth">
<short>
Contains the explicit, non-default value assigned to the Width property.
</short>
<descr>
<p>
<var>StoredWidth</var> is a read-only <var>Integer</var> property with an
explicit value assigned to the <var>Width</var> property for the column. If
an explicit value has not been assigned in Width, the property value is -1.
</p>
</descr>
<seealso>
<link id="TGridColumn.Width"/>
</seealso>
</element>
<element name="TGridColumn.WidthChanged">
<short>
<b>True</b> when the width for the column has been changed.
</short>
<descr>
<p>
Set to <b>True</b> when an explicit value is assigned to the Width property.
Its value is set to <b>False</b> when the modified column is stored in the
Columns collection in the Grid control.
</p>
</descr>
<seealso>
<link id="TGridColumn.ColumnChanged"/>
<link id="TGridColumn.Width"/>
<link id="TGridColumn.DefaultWidth"/>
<link id="TGridColumn.StoredWidth"/>
<link id="TGridColumn.Grid"/>
<link id="TGridColumns"/>
<link id="TCustomGrid.Columns"/>
</seealso>
</element>
<element name="TGridColumn.Alignment">
<short>
Indicates the alignment for values displayed in the column: left or right
aligned, or centered.
</short>
<descr>
<p>
<var>Alignment</var> is a <var>TAlignment</var> property which indicates how
data displayed in the column is aligned. If Alignment has not been assigned,
the value from GetDefaultAlignment is used in the property. Changing the
value for the property causes the ColumnChanged method to be called to update
the collection item and reset the value in WidthChanged to <b>False</b>.
</p>
<p>
Alignment is used when the Grid control prepares its Canvas to draw data
cells in the column.
</p>
</descr>
<seealso>
<link id="TGridColumn.ColumnChanged"/>
<link id="TGridColumn.WidthChanged"/>
<link id="TGridColumn.Grid"/>
<link id="TGridColumns.Items"/>
<link id="TCustomGrid.PrepareCanvas"/>
<link id="TCustomGrid.DrawCellText"/>
<link id="#rtl.classes.TCollectionItem">TCollectionItem</link>
<link id="#rtl.classes.TAlignment">TAlignment</link>
</seealso>
</element>
<element name="TGridColumn.ButtonStyle">
<short>
The style used for a button displayed for cells in the column.
</short>
<descr>
<p>
<var>ButtonStyle</var> is a <var>TColumnButtonStyle</var> property which
indicates the button style used for cell editors displayed in the column. The
default value is cbsAuto, and causes String-based editors with an Ellipsis
button to be selected.
</p>
<p>
See <link id="TColumnButtonStyle"/> for other values allowed used in the
property, and their usage.
</p>
<p>
Changing the value for the property causes the ColumnChanged method to be
called to update the collection item and reset the value in WidthChanged to
<b>False</b>.
</p>
<p>
ButtonStyle is used when the GetDefaultEditor or EditorByStyle methods in
Grid are called.
</p>
</descr>
<seealso>
<link id="TGridColumn.ColumnChanged"/>
<link id="TGridColumn.WidthChanged"/>
<link id="TGridColumn.Grid"/>
<link id="TGridColumns.Items"/>
<link id="TCustomGrid.EditorByStyle"/>
<link id="TCustomGrid.GetDefaultEditor"/>
<link id="TColumnButtonStyle"/>
<link id="TCompositeCellEditor"/>
<link id="#rtl.classes.TCollectionItem">TCollectionItem</link>
</seealso>
</element>
<element name="TGridColumn.Color">
<short>
Color for the background on the column.
</short>
<descr>
<p>
<var>Color</var> is a <var>TColor</var> property with the background color
used when values in the grid column are drawn. If an explicit value has not
been assigned for the property, the value from GetDefaultColor is used as the
property value.
</p>
<p>
Changing the value for the property causes the ColumnChanged method to be
called to update the collection item in its collection.
</p>
<p>
Use the Font.Color property to set the color for text drawn in the column.
</p>
<p>
Use Title.Color and Title.Font color properties to set the colors for fixed
cells drawn as grid column headers.
</p>
</descr>
<seealso>
<link id="TGridColumn.Font"/>
<link id="TGridColumn.Title"/>
<link id="TGridColumnTitle.Color"/>
<link id="TGridColumnTitle.Font"/>
<link id="#rtl.classes.TCollectionItem">TCollectionItem</link>
<link id="#lcl.graphics.TFont.Color">TFont.Color</link>
</seealso>
</element>
<element name="TGridColumn.DropDownRows">
<short>
The number of rows displayed in the drop-down list for a cell editor in the
column.
</short>
<descr>
<p>
<var>DropDownRows</var> is a <var>Longint</var> property with the number of
rows displayed in the drop-down list for the cell editor in the column. The
default value is 7.
</p>
<p>
DropDownRows is assigned to the cell editor retrieved in the GetDefaultEditor
method in the Grid control. It is relevant when the ButtonStyle for the
column is set or resolved to cbsPicklist in the EditorByStyle method for the
Grid control.
</p>
</descr>
<seealso>
<link id="TGridColumn.ButtonStyle"/>
<link id="TCustomGrid.GetDefaultEditor"/>
<link id="TCustomGrid.EditorByStyle"/>
<link id="TColumnButtonStyle"/>
<link id="TPickListCellEditor"/>
<link id="#lcl.stdctrls.TCustomComboBox.DropDownCount">TCustomComboBox.DropDownCount</link>
</seealso>
</element>
<element name="TGridColumn.Expanded">
<short>
Indicates if the drop-down list in the column cell editor is displayed in an
expanded state.
</short>
<descr>
<p>
<var>Expanded</var> is a <var>Boolean</var> property which indicates if the
drop-down list for the column cell editor is displayed in an expanded state.
The default value for the property is <b>True</b>. A value assigned to the
property is ignored; write access is not enabled for the property value.
</p>
</descr>
<seealso>
<link id="TGridColumn.ButtonStyle"/>
<link id="TGridColumn.DropDownRows"/>
<link id="TColumnButtonStyle"/>
<link id="TPickListCellEditor"/>
</seealso>
</element>
<element name="TGridColumn.Font">
<short>
The font used for text displayed in the column.
</short>
<descr>
<p>
<var>Font</var> is a <var>TFont</var> property which contains the typeface name and display attributes used to display text for cells in the grid column.
By default, Font contains the same value assigned to the Grid control and
loaded in the FillDefaultFont method. It is applied to the Canvas for the
Grid and used in its DrawCellText method.
</p>
<p>
Changing the value for the property causes IsDefaultFont to be set to
<b>False</b>. The ColumnChanged method is called to update the collection
item in the Columns collection for the Grid. The value in WidthChanged is
also reset to <b>False</b>.
</p>
<p>
Use the Font property in Title to set attributes for text displayed in the
fixed header cells for the column.
</p>
</descr>
<seealso>
<link id="TGridColumn.Title"/>
<link id="TGridColumn.Grid"/>
<link id="TGridColumn.ColumnChanged"/>
<link id="TGridColumn.WidthChanged"/>
<link id="TGridColumnTitle.Font"/>
<link id="TCustomGrid.Columns"/>
<link id="TCustomGrid.PrepareCanvas"/>
<link id="TCustomGrid.DrawCellText"/>
<link id="#lcl.controls.TControl.Font">TControl.Font</link>
<link id="#lcl.graphics.TFont">TFont</link>
</seealso>
</element>
<element name="TGridColumn.Layout">
<short>
The layout (vertical alignment) for text displayed in the column.
</short>
<descr>
<p>
If Layout has not been assigned, the default value for the property is
tlCenter. This causes text for the column to be vertically aligned to the
center of the non-fixed cells for the column.
</p>
<p>
Use the Alignment property to set the horizontal alignment for text displayed
in the non-fixed cells for the column.
</p>
<p>
Use the Layout and Alignment properties in Title to control text displayed in
the fixed header for the column.
</p>
</descr>
<seealso>
<link id="TGridColumn.Alignment"/>
<link id="TGridColumn.Title"/>
<link id="TGridColumnTitle.Alignment"/>
<link id="TGridColumnTitle.Layout"/>
<link id="#lcl.graphics.TTextLayout">TTextLayout</link>
</seealso>
</element>
<element name="TGridColumn.MinSize">
<short>
The minimum size for the column in pixels.
</short>
<descr>
<p>
<var>MinSize</var> and <var>MaxSize</var> are used to determine the smallest
and largest sizes for the column when it is resized horizontally. This can
occur when the border on the column header is dragged on the Grid control
(requires column resizing to be enabled in the Options for the Grid). It can
also occur when the AutoFillColumns property in the Grid is enabled and
SizePriority is set to a non-zero value.
</p>
<p>
If MinSize has not been assigned, GetDefaultMinSize is called to get the value
for the property. Assigning a new value for the property causes ColumnChanged
to be called to notify the column collection when the collection item is
updated. WidthChanged is set to <b>False</b> when the collection has been
notified of the updated value.
</p>
<remark>
Please note that MinSize and MaxSize are not enforced during manual column
resizing (when enabled) if all of its columns have SizePriority set to 0. The
last column will still be automatically sized to fill the available space, but
the minimum and maximum widths for the column are not applied.
</remark>
<p>
Use Width to set the default size of the column in pixels.
</p>
</descr>
<seealso>
<link id="TGridColumn.MaxSize"/>
<link id="TGridColumn.Width"/>
<link id="TGridColumn.SizePriority"/>
<link id="TGridColumn.WidthChanged"/>
<link id="TGridColumn.ColumnChanged"/>
<link id="TCustomGrid.Columns"/>
<link id="TCustomGrid.AutoFillColumns"/>
<link id="TCustomGrid.Options"/>
</seealso>
</element>
<element name="TGridColumn.MaxSize">
<short>
The maximum size for the column in pixels.
</short>
<descr>
<p>
<var>MinSize</var> and <var>MaxSize</var> are used to determine the smallest
and largest sizes for the column when it is resized horizontally. This can
occur when the border on the column header is dragged on the Grid control
(requires column resizing to be enabled in the Options for the Grid). It can
also occur when the AutoFillColumns property in the Grid is enabled and
SizePriority is set to a non-zero value.
</p>
<p>
If MaxSize has not been assigned, GetDefaultMaxSize is called to get the value
for the property. Assigning a new value for the property causes ColumnChanged
to be called to notify the column collection when the collection item is
updated. WidthChanged is set to <b>False</b> when the collection has been
notified of the updated value.
</p>
<remark>
Please note that MinSize and MaxSize are not enforced during manual column
resizing (when enabled) if all of its columns have SizePriority set to 0. The
last column will still be automatically sized to fill the available space, but
the minimum and maximum widths for the column are not applied.
</remark>
<p>
Use Width to set the default size of the column in pixels.
</p>
</descr>
<seealso>
<link id="TGridColumn.MinSize"/>
<link id="TGridColumn.Width"/>
<link id="TGridColumn.SizePriority"/>
<link id="TGridColumn.WidthChanged"/>
<link id="TGridColumn.ColumnChanged"/>
<link id="TCustomGrid.Columns"/>
<link id="TCustomGrid.AutoFillColumns"/>
<link id="TCustomGrid.Options"/>
</seealso>
</element>
<element name="TGridColumn.PickList">
<short>
The list with the values that can be selected for a cell in the column using a
drop-down list.
</short>
<descr>
<p>
<var>PickList</var> is a <var>TStrings</var> property which contains the list
of values that can be selected for a cell in the grid column. It is used when
the ButtonStyle property is set to cbsPicklist to enable a combo-box-style
cell editor for the column. The values in PickList are assigned as the items
in the drop-down list for the editor.
</p>
<p>
Use DropDownRows to control the number of lines displayed in the drop-down
list when the cell editor is activated.
</p>
<remark>
Note that the Expanded property always contains True; write access is not
enabled for the property.
</remark>
</descr>
<seealso>
<link id="TGridColumn.ButtonStyle"/>
<link id="TGridColumn.DropDownRows"/>
<link id="TGridColumn.Expanded"/>
<link id="TCustomGrid.EditorByStyle"/>
<link id="TPickListCellEditor"/>
</seealso>
</element>
<element name="TGridColumn.ReadOnly">
<short>
<b>True</b> if the values in the column cannot be changed at run-time using
the cell editor.
</short>
<descr/>
<seealso>
<link id="TGridColumn.ColumnChanged"/>
<link id="TCustomGrid.Columns"/>
<link id="TCustomGrid.EditingAllowed"/>
<link id="TGridColumns.Enabled"/>
</seealso>
</element>
<element name="TGridColumn.SizePriority">
<short>
The auto-sizing priority for the column.
</short>
<descr>
<p>
<b>0</b> indicates that the column is not one of the auto-sized columns in
the Grid control. A non-zero value causes the column width to be adjusted
when AutoFillColumns is enabled in the Grid control. If all of the columns
in a grid control have SizePriority set 0, the last column <b>is</b> resized
when AutoFillColumns is enabled.
</p>
<p>
Use MinWidth and MaxWidth to set the smallest and largest sizes for the column
when the column is resized - either manually (by dragging the header border)
or when AutoFillColumns is enabled in the Grid control.
</p>
<p>
Use Width to set the default size for the column in pixels.
</p>
</descr>
<seealso>
<link id="TGridColumn.MinSize"/>
<link id="TGridColumn.MaxSize"/>
<link id="TGridColumn.Width"/>
<link id="TGridColumn.Grid"/>
<link id="TCustomGrid.Columns"/>
<link id="TCustomGrid.AutoFillColumns"/>
</seealso>
</element>
<element name="TGridColumn.Tag">
<short>Contains a Pointer to an Integer type.</short>
<descr>
<p>
<var>Tag</var> is a <var>PtrInt</var> property which contains a pointer to an
numeric integer value. It does not have any predefined usage in TGridColumn.
</p>
</descr>
<seealso/>
</element>
<element name="TGridColumn.Title">
<short>
Contains the attributes for the title in the fixed header for the column.
</short>
<descr>
<p>
<var>Title</var> is a <var>TGridColumnTitle</var> property which contains
attributes for the fixed header on the column. It includes settings that
control the appearance and functionality for the fixed header.
</p>
<p>
Values in Title can be assigned at design-time using the object inspector, or
at run-time in program code.
</p>
<p>
See <link id="TGridColumnTitle">TGridColumnTitle</link> for more information
about the properties and methods in the class.
</p>
</descr>
<seealso>
<link id="TGridColumnTitle"/>
</seealso>
</element>
<element name="TGridColumn.Width">
<short>
The display width in pixels for the column on its Grid control.
</short>
<descr>
<p>
<var>Width</var> is an <var>Integer</var> property with the display width for
the column in pixels. Its value is used when the column has its Visible
property set to True. Otherwise, the property value is 0.
</p>
<p>
Width can be assigned at design-time using the object inspector in the IDE, or
at run-time in program code.
</p>
<p>
If a value has not been assigned for the property, the DefaultColWidth
property from the Grid control is used as the property value.
</p>
<p>
Width is updated at run-time when the column is resized on the Grid control.
This can occur when the border on the fixed header is dragged (when column
resizing is enabled in the Options for Grid control). It may also occur when
AutoFillColumns is enabled for Grid control.
</p>
<p>
Use MinSize and MaxSize to specify the smallest and largest widths for the
column when SizePriority has a non-zero value.
</p>
</descr>
<seealso>
<link id="TGridColumn.MaxSize"/>
<link id="TGridColumn.MinSize"/>
<link id="TGridColumn.SizePriority"/>
<link id="TGridColumn.Visible"/>
<link id="TCustomGrid.AutoFillColumns"/>
<link id="TCustomGrid.Columns"/>
<link id="TCustomGrid.DefaultColWidth"/>
<link id="TCustomGrid.Options"/>
</seealso>
</element>
<element name="TGridColumn.Visible">
<short>
<b>True</b> if the column is visible (not hidden) on the Grid control.
</short>
<descr/>
<seealso/>
</element>
<element name="TGridColumn.GetValueChecked">
<short>
Gets the value for the ValueChecked property.
</short>
<descr>
<p>
Returns the value from the GetDefaultValueChecked method if an explicit value
has not been assigned for the property.
</p>
</descr>
<seealso>
<link id="TGridColumn.ValueChecked"/>
<link id="TGridColumn.GetDefaultValueChecked"/>
<link id="TGridColumn.ButtonStyle"/>
<link id="TColumnButtonStyle"/>
</seealso>
</element>
<element name="TGridColumn.GetValueChecked.Result">
<short>
Value for the ValueChecked property.
</short>
</element>
<element name="TGridColumn.GetValueUnchecked">
<short>
Gets the value for the ValueUnChecked property.
</short>
<descr>
<p>
Returns the value from the GetDefaultValueUnchecked method if an explicit
value has not been assigned for the property.
</p>
</descr>
<seealso>
<link id="TGridColumn.ValueUnchecked"/>
<link id="TGridColumn.ButtonStyle"/>
<link id="TColumnButtonStyle"/>
</seealso>
</element>
<element name="TGridColumn.GetValueUnchecked.Result">
<short>
Value for the ValueUnchecked property.
</short>
</element>
<element name="TGridColumn.ValueChecked">
<short>
Contains the checked value for a check box in the column.
</short>
<seealso>
<link id="TGridColumn.ButtonStyle"/>
<link id="TColumnButtonStyle"/>
</seealso>
</element>
<element name="TGridColumn.ValueUnchecked">
<short>
Contains the unchecked value for a check box in the column.
</short>
<seealso>
<link id="TGridColumn.ButtonStyle"/>
<link id="TColumnButtonStyle"/>
</seealso>
</element>
<element name="TGridPropertyBackup">
<short>
Stores data about rows and columns used in a TCustomGrid class instance.
</short>
<descr>
<p>
<var>TGridPropertyBackup</var> is a record type used to store data about rows
and columns, including fixed cells. Used internally in a
<var>TCustomGrid</var> class instance.
</p>
</descr>
<seealso>
<link id="TCustomGrid"/>
</seealso>
</element>
<element name="TGridPropertyBackup.ValidData">
<short>Indicates if the grid contains valid row or column counts.</short>
<descr/>
<seealso/>
</element>
<element name="TGridPropertyBackup.FixedRowCount">
<short>Number of fixed rows in the grid.</short>
<descr/>
<seealso/>
</element>
<element name="TGridPropertyBackup.FixedColCount">
<short>Number of fixed columns in the grid.</short>
<descr/>
<seealso/>
</element>
<element name="TGridPropertyBackup.RowCount">
<short>Number of rows in the grid.</short>
<descr/>
<seealso/>
</element>
<element name="TGridPropertyBackup.ColCount">
<short>Number of columns in the grid.</short>
<descr/>
<seealso/>
</element>
<element name="TGridColumns">
<short>
Collection used to store column definitions for a grid control.
</short>
<descr>
<p>
<var>TGridColumns</var> is a <var>TCollection</var> descendant that
implements a container for column definitions used in <var>TCustomGrid</var>
and descendent classes. TGridColumns is the type used to implement the
Columns in TCustomGrid.
</p>
<p>
TGridColumns is used to create, access, and maintain <var>TGridColumn</var>
class instances representing the columns in a grid. Use the indexed
<var>Items</var> to access a <var>TGridColumn</var> instance in the
collection using its ordinal position.
</p>
<p>
Additional properties and methods are included in the collection that are
relevant to their use with grid column definitions. A reference to the
<var>TCustomGrid</var> which owns the collection is maintained to provide
access to the properties, methods, and events in the grid.
</p>
</descr>
<seealso>
<link id="TGridColumn"/>
<link id="TCustomGrid.Columns"/>
</seealso>
</element>
<element name="TGridColumns.FGrid"/>
<element name="TGridColumns.GetColumn">
<short>Gets the value for the indexed Items property.</short>
<descr/>
<seealso/>
</element>
<element name="TGridColumns.GetColumn.Result">
<short>Collection the collection item at the specified position.</short>
</element>
<element name="TGridColumns.GetColumn.Index">
<short>Ordinal position for the requested collection item.</short>
</element>
<element name="TGridColumns.GetEnabled">
<short>Gets the value in the Enabled property.</short>
<descr/>
<seealso/>
</element>
<element name="TGridColumns.GetEnabled.Result">
<short>Value for the property.</short>
</element>
<element name="TGridColumns.SetColumn">
<short>Sets the item at the specified position in the Items property.</short>
<descr/>
<seealso/>
</element>
<element name="TGridColumns.SetColumn.Index">
<short>Ordinal position for the collection item updated in the method.</short>
</element>
<element name="TGridColumns.SetColumn.Value">
<short>Value stored at the specified position in the collection.</short>
</element>
<element name="TGridColumns.GetVisibleCount">
<short>Gets the value for the VisibleCount property.</short>
<descr/>
<seealso/>
</element>
<element name="TGridColumns.GetVisibleCount.Result">
<short>Value for the property.</short>
</element>
<element name="TGridColumns.Update">
<short>
Notifies the Grid using the collection when a column is updated.
</short>
<descr/>
<seealso>
<link id="#rtl.classes.TCollection">TCollection</link>
</seealso>
</element>
<element name="TGridColumns.Update.Item">
<short>Collection item requiring the update notification.</short>
</element>
<element name="TGridColumns.TitleFontChanged">
<short>
Performs actions needed when the title font is changed for items in the
collection.
</short>
<descr>
<p>
<var>TitleFontChanged</var> is a procedure used to perform actions needed
when the title font for a grid has been changed. TitleFontChanged examines
each of the column definitions in the collection, and updates the default
font for the column when it has not been set to another value.
TitleFontChanged is called during execution of the
<var>OnTitleFontChanged</var> event handler in <var>TCustomGrid</var>.
</p>
</descr>
<seealso>
<link id="TCustomGrid.TitleFont"/>
<link id="TGridColumnTitle.Font"/>
<link id="TGridColumnTitle.IsDefault"/>
</seealso>
</element>
<element name="TGridColumns.FontChanged">
<short>
Performs actions needed when the Font for the grid control is changed.
</short>
<descr>
<p>
<var>FontChanged</var> is an overridden method used to perform actions needed
when the <var>Font</var> for the grid control has been changed.
</p>
<p>
FontChanged ensures that the font used for the <var>Canvas</var> is updated
to use the value in Font when <var>csCustomPaint</var> is included in the
<var>ControlState</var> flags.
</p>
<p>
Otherwise, the inherited method is called to signal the change in the Font
property. The FontChanged method in the Columns collection is also called
(when enabled). The new Font is assigned to <var>TitleFont</var> and
<var>TitleFontIsDefault</var> is reset to <b>True</b>.
</p>
</descr>
<seealso>
<link id="TCustomGrid.TitleFont"/>
<link id="TGridColumns"/>
<link id="TGridColumn.Font"/>
<link id="#lcl.controls.TCustomControl.FontChanged">TCustomControl.FontChanged</link>
<link id="#lcl.controls.TControl.ControlState">TControl.ControlState</link>
<link id="#lcl.controls.TControl.Font">TControl.Font</link>
</seealso>
</element>
<element name="TGridColumns.RemoveColumn">
<short>Removes the specified column number from the collection.</short>
<descr/>
<seealso/>
</element>
<element name="TGridColumns.RemoveColumn.Index">
<short>Ordinal position of the column to remove in the method.</short>
</element>
<element name="TGridColumns.MoveColumn">
<short>Moves the column from the first index to the second.</short>
<descr/>
<seealso/>
</element>
<element name="TGridColumns.MoveColumn.FromIndex">
<short>Original position for the column moved in the method.</short>
</element>
<element name="TGridColumns.MoveColumn.ToIndex">
<short>New position for the column moved in the method.</short>
</element>
<element name="TGridColumns.ExchangeColumn">
<short>Exchanges the positions for the specified columns.</short>
<descr>
<p>
<var>ExchangeColumn</var> is a method used to swap the positions for the grid
columns specified in the Index and WithIndex parameters. The arguments
contain the ordinal positions for the respective grid columns in Items that
are swapped in the method.
</p>
<p>
ExchangeColumn calls HasIndex to ensure that both values within the range
allowed (0..Count-1). An exception is raised if either value is not in the
required range for the column collection.
</p>
<p>
The order for the index positions is not significant; the column with the
larger of the two index values is updated first. This prevents an exception
from being raised when the column positions are swapped.
</p>
<p>
ExchangeColumn swaps the values for the Index properties for the
corresponding TGridColumn instances in Items. The Grid control associated
with the collection is notified when the Index properties are updated, and
the grid moves the content for the updated columns.
</p>
</descr>
<errors>
Raises an Exception if values in Index or WithIndex are not within the range
allowed for the collection.
</errors>
<seealso>
<link id="TGridColumns.Items"/>
<link id="TGridColumns.Grid"/>
<link id="TGridColumn"/>
<link id="TCustomGrid"/>
<link id="#rtl.classes.TCollectionItem.Index">TCollectionItem.Index</link>
</seealso>
</element>
<element name="TGridColumns.ExchangeColumn.Index">
<short>Position of a column exchanged in the method.</short>
</element>
<element name="TGridColumns.ExchangeColumn.WithIndex">
<short>Position of the other column exchanged in the method.</short>
</element>
<element name="TGridColumns.InsertColumn">
<short>Inserts a column at the specified index position.</short>
<descr>
<p>
<var>InsertColumn</var> calls the Add method to create a new column instance
using the ItemClass for the collection. MoveColumn is called to relocate the
newly stored column to the position in the Index argument.
</p>
<p>
Use the Items property to access the new column by its index position.
</p>
</descr>
<seealso>
<link id="TGridColumns.Add"/>
<link id="TGridColumns.MoveColumn"/>
<link id="TGridColumns.Items"/>
<link id="TGridColumn"/>
<link id="#rtl.classes.TCollection.ItemClass">TCollection.ItemClass</link>
</seealso>
</element>
<element name="TGridColumns.InsertColumn.Index">
<short>Position in the collection where the column is inserted.</short>
</element>
<element name="TGridColumns.Create">
<short>Constructor for the class instance.</short>
<descr>
<p>
<var>Create</var> is the constructor for the class instance, and calls the
inherited method on entry using <var>aItemClass</var> as the class type for
new items added to the collection. Create stores the value in
<var>AGrid</var> to the <var>Grid</var> property.
</p>
</descr>
<seealso>
<link id="#rtl.classes.TCollection.Create">TCollection.Create</link>
</seealso>
</element>
<element name="TGridColumns.Create.AGrid">
<short>Grid which owns the collection of column definitions.</short>
</element>
<element name="TGridColumns.Create.aItemClass">
<short>Class reference used to create new items in the collection.</short>
</element>
<element name="TGridColumns.Add">
<short>
Creates a new ItemClass instance with the collection as its owner.
</short>
<descr>
<p>
<var>Add</var> is an overridden method used to create a new collection item
using the <var>ItemClass</var> class type for the collection. The new class
instance has the collection as its owner. Add re-implements the method from
the ancestor class.
</p>
<p>
Use <var>Insert</var> or <var>InsertColumn</var> to create a new collection
item and store it at a specified position in the collection.
</p>
</descr>
<seealso>
<link id="TGridColumns.InsertColumn"/>
<link id="#rtl.classes.TCollectionItem">TCollectionItem</link>
<link id="#rtl.classes.TCollection.Add">TCollection.Add</link>
<link id="#rtl.classes.TCollection.Insert">TCollection.Insert</link>
<link id="#rtl.classes.TCollection.ItemClass">TCollection.ItemClass</link>
</seealso>
</element>
<element name="TGridColumns.Add.Result">
<short>TGridColumn instance added to the collection.</short>
</element>
<element name="TGridColumns.Clear">
<short>Clears all items in the collection.</short>
<descr>
<p>
<var>Clear</var> calls <var>BeginUpdate</var> to suppress notifications when
items are removed from the collection. It also calls <var>EndUpdate</var>
when all items have been removed in the method. Clear calls the inherited
method to remove the items in the collection.
</p>
</descr>
<seealso>
<link id="#rtl.classes.TCollection.Clear">TCollection.Clear</link>
</seealso>
</element>
<element name="TGridColumns.ColumnByTitle">
<short>
Gets the grid column in the collection with the specified title.
</short>
<descr>
<p>
Calls SameText to perform a case-insensitive comparison between the value in
ATitle and the title in each of the columns in the collection.
</p>
</descr>
<seealso/>
</element>
<element name="TGridColumns.ColumnByTitle.Result">
<short>
TGridColumn instance with the specified title, or Nil when not found.
</short>
</element>
<element name="TGridColumns.ColumnByTitle.ATitle">
<short>Title for the column to retrieved from the collection.</short>
</element>
<element name="TGridColumns.RealIndex">
<short>
The actual grid index for the visible columns in the collection.
</short>
<descr>
<p>
<var>RealIndex</var> is an <var>Integer</var> function used to get the ordinal
position in the collection for the visible column specified in
<var>Index</var>. It is provided to maintain compatibility with older versions
of the LCL, where Items was used to access column instances with their visible
property set to <b>True</b>. Current LCL version do not have this limitation;
they access the collection directly.
</p>
<p>
The return value is set to the value in the Index argument when it is a value
position in the collection. Otherwise, the return value is set to -1.
</p>
<p>
RealIndex is called from the ColumnIndexFromGridColumn method in TCustomGrid
when its Columns collection has been enabled.
</p>
</descr>
<seealso>
<link id="TGridColumns.Enabled"/>
<link id="TGridColumns.Items"/>
<link id="TGridColumns.VisibleIndex"/>
<link id="TGridColumns.VisibleCount"/>
<link id="TCustomGrid.Columns"/>
<link id="TCustomGrid.ColumnIndexFromGridColumn"/>
</seealso>
</element>
<element name="TGridColumns.RealIndex.Result">
<short>
Ordinal position in the column for the specified visible column number, or -1
when not a valid position in the collection.
</short>
</element>
<element name="TGridColumns.RealIndex.Index">
<short>
Position for the visible column requested in the method.
</short>
</element>
<element name="TGridColumns.IndexOf">
<short>
Gets the ordinal position in the collection for the specified column.
</short>
<descr>
<p>
<var>IndexOf</var> is an <var>Integer</var> function used to get the ordinal
position in the collection for the <var>TGridColumn</var> instance specified
in <var>Column</var>. The return value contains the ordinal position (in the
range <b>0</b> to <b>Count-1</b>), or <b>-1</b> when no items exist in the
collection or when <var>Column</var> cannot be located in the container.
</p>
</descr>
<seealso>
<link id="TGridColumns.Items"/>
<link id="TGridColumn"/>
<link id="#rtl.classes.TCollection.Count">TCollection.Count</link>
</seealso>
</element>
<element name="TGridColumns.IndexOf.Result">
<short>Ordinal position for the collection item, or -1 when not found.</short>
</element>
<element name="TGridColumns.IndexOf.Column">
<short>Grid column to locate in the collection.</short>
</element>
<element name="TGridColumns.IsDefault">
<short>
<b>True</b> if the columns contain default values only.
</short>
<descr/>
<seealso>
<link id="TGridColumn.IsDefault"/>
<link id="TGridColumnTitle.IsDefault"/>
</seealso>
</element>
<element name="TGridColumns.IsDefault.Result">
<short>
<b>True</b> if the columns use default settings in their column settings and
titles, and contain no explicit property assignments.
</short>
</element>
<element name="TGridColumns.HasIndex">
<short>
<b>True</b> if the specified index value is valid for the collection.
</short>
<descr>
<p>
<var>HasIndex</var> ensures that the value in <var>Index</var> is valid for
the collection. The return value is <b>True</b> when Index is in the range
<b>0..Count-1</b>.
</p>
</descr>
<seealso>
<link id="TGridColumns.Items"/>
<link id="#rtl.classes.TCollection.Count">TCollection.Count</link>
</seealso>
</element>
<element name="TGridColumns.HasIndex.Result">
<short>
<b>True</b> when the value is in the range allowed for the collection.
</short>
</element>
<element name="TGridColumns.HasIndex.Index">
<short>Index value examined in the method.</short>
</element>
<element name="TGridColumns.VisibleIndex">
<short>
The visible index value for the specified column in the collection.
</short>
<descr/>
<seealso/>
</element>
<element name="TGridColumns.VisibleIndex.Result">
<short>
Ordinal position for the column within the visible columns for the collection.
</short>
</element>
<element name="TGridColumns.VisibleIndex.Index">
<short>Ordinal position for the column examined in the method.</short>
</element>
<element name="TGridColumns.Grid">
<short>The Grid which owns the collection and columns.</short>
<descr>
<p>
<var>Grid</var> is a read-only <var>TCustomGrid</var> which provides access
to the grid which owns the column collection. The value in Grid is set in the
constructor to an argument passed to the method, and used as the value for
the <var>Owner</var> property.
</p>
<p>
Grid can be used to access the properties, methods, and events in the grid
class instance. It is used in the implementation of methods in the
collection, such as <var>InsertColumn</var> and <var>Update</var>.
</p>
</descr>
<seealso>
<link id="TCustomGrid.CreateColumns"/>
<link id="TCustomGrid.ColumnsChanged"/>
<link id="TGridColumns.InsertColumn"/>
<link id="#rtl.classes.TCollection.Owner">TCollection.Owner</link>
</seealso>
</element>
<element name="TGridColumns.Items">
<short>
Provides indexed access to column definitions in the collection.
</short>
<descr>
<p>
<var>Items</var> is an indexed <var>TGridColumn</var> used to access column
definitions in the collection by the ordinal position specified in the
<var>Index</var> argument. Items is the default for the collection.
</p>
<p>
Use <var>Add</var> to create and store a new instance of
<var>TGridColumn</var> in the collection.
</p>
<p>
Use <var>InsertColumn</var> to create and store a new collection item at a
specific position in the collection.
</p>
<p>
Use <var>RemoveColumn</var>, <var>Delete</var> or <var>Clear</var> to remove
one or all item(s) in the collection.
</p>
<p>
Use <var>IndexOf</var> to get the ordinal position in the collection for an
existing <var>TGridColumn</var> class instance.
</p>
</descr>
<seealso>
<link id="TGridColumns.Clear"/>
<link id="TGridColumns.IndexOf"/>
<link id="TGridColumns.Add"/>
<link id="TGridColumns.InsertColumn"/>
<link id="TGridColumns.RemoveColumn"/>
<link id="#rtl.classes.TCollection.Delete">TCollection.Delete</link>
</seealso>
</element>
<element name="TGridColumns.Items.Index">
<short>Ordinal position for the column definition used as the value.</short>
</element>
<element name="TGridColumns.VisibleCount">
<short>The number of visible columns in the collection.</short>
<descr>
<p>
<var>VisibleCount</var> is a read-only <var>Integer</var> property with the
number of visible TGridColumn instances in the collection. In the current LCL
version, the property contains the value for the Count property in the
collection. In prior LCL versions, the value was calculated as the number of
TGridColumn instances in Items with their Visible properties set to <b>True</b>.
</p>
</descr>
<seealso>
<link id="TGridColumn.Visible"/>
<link id="#rtl.classes.TCollection.Count">TCollection.Count</link>
</seealso>
</element>
<element name="TGridColumns.Enabled">
<short>Indicates if the column collection is enabled.</short>
<descr>
<p>
<var>Enabled</var> is a read-only <var>Boolean</var> property which indicates
if columns in the collection can be used in the associated Grid control.
Enabled is <b>True</b> when Count contains a value greater than 0 (zero).
Please note: In prior LCL versions, the value in VisibleCount was checked to
determine the Enabled state. In the current LCL version, VisibleCount and Count
return the same value.
</p>
</descr>
<seealso>
<link id="TGridColumns.Grid"/>
<link id="TGridColumns.Items"/>
<link id="#rtl.classes.TCollection.Count">TCollection.Count</link>
</seealso>
</element>
<element name="TGridCoord">
<short>Stores mouse coordinates in screen pixels.</short>
<descr>
<p>
<var>TGridCoordinate</var> is an alias for the <var>TPoint</var> type, and
used to get mouse coordinates in <var>TCustomGrid</var> and descendent
classes. The <var>X</var> and <var>Y</var> members contain pixel screen
coordinates for a given cell.
</p>
</descr>
<seealso>
<link id="TCustomGrid.MouseCoord"/>
<link id="TCustomGrid.MouseToCell"/>
</seealso>
</element>
<element name="TGridRect">
<short>Alias for the TRect type in RTL.</short>
<descr>
<p>
<var>TGridRect</var> is an alias for the <var>TRect</var> type in the FPC
Run-time Library (RTL).
</p>
</descr>
<seealso>
<link id="TGridRectArray"/>
<link id="#rtl.types.TRect">TRect</link>
</seealso>
</element>
<element name="TGridRectArray">
<short>Array type used to store TGridRect instances.</short>
<descr>
<p>
<var>TGridRectArray</var> is an array type used to store <var>TGridRect</var>
instances. It is used to track cell selection ranges in a grid control.
</p>
</descr>
<seealso>
<link id="TGridRect"/>
<link id="TCustomGrid.SelectedRange"/>
<link id="TCustomGrid.SelectedRangeCount"/>
</seealso>
</element>
<element name="TSizingRec">
<short>
Stores size and movement data for columns or rows in a grid.
</short>
<descr>
<p>
<var>TSizingRec</var> is a record type used to store size and positioning
information for columns or rows in TCustomGrid and descendent classes.
TSizingRec is the type used for an internal member in TCustomGrid which is
used in methods that perform column or row sizing operations.
</p>
</descr>
<seealso>
<link id="TCustomGrid.MouseMove"/>
<link id="TCustomGrid.MouseUp"/>
<link id="TCustomGrid.DblClick"/>
</seealso>
</element>
<element name="TSizingRec.Index">
<short>
Column or row number for the sizing information.
</short>
</element>
<element name="TSizingRec.OffIni">
<short>
Initial offset for the sizing information.
</short>
</element>
<element name="TSizingRec.OffEnd">
<short>
Final offset included in the sizing information.
</short>
</element>
<element name="TSizingRec.DeltaOff">
<short>
Delta change (in pixels) for the column offsets in a resizing operation.
</short>
</element>
<element name="TSizingRec.PrevLine">
<short>
<b>True</b> if the row in PrevOffset is updated in a row sizing operation.
</short>
</element>
<element name="TSizingRec.PrevOffset">
<short>
Offset to a row affected in a row sizing operation.
</short>
</element>
<element name="TGridDataCache">
<short>Stores cached information about a grid control.</short>
<descr>
<p>
<var>TGridDataCache</var> is a record type used to store and cache
information about a grid control, its layout, and activity. TGridDataCache is
the type used to implement the <var>GCache</var> property in
<var>TCustomGrid</var>.
</p>
</descr>
<seealso>
<link id="TCustomGrid.GCache"/>
</seealso>
</element>
<element name="TGridDataCache.FixedWidth">
<short>Sum of the column widths for fixed cells in a grid.</short>
<descr/>
<seealso/>
</element>
<element name="TGridDataCache.FixedHeight">
<short>Sum of the row heights for fixed cells in a grid.</short>
<descr/>
<seealso/>
</element>
<element name="TGridDataCache.GridWidth">
<short>Sum of the column widths for all cells in a grid.</short>
<descr/>
<seealso/>
</element>
<element name="TGridDataCache.GridHeight">
<short>Sum of the row heights for all cells in a grid.</short>
<descr/>
<seealso/>
</element>
<element name="TGridDataCache.ClientWidth">
<short>
Width of the grid control minus the width for the vertical scroll bar.
</short>
<descr/>
<seealso/>
</element>
<element name="TGridDataCache.ClientHeight">
<short>
Height of the grid control minus the width of the horizontal scroll bar.
</short>
<descr/>
<seealso/>
</element>
<element name="TGridDataCache.ScrollWidth">
<short>The difference between ClientWidth and FixedWidth.</short>
<descr/>
<seealso/>
</element>
<element name="TGridDataCache.ScrollHeight">
<short>The difference between ClientHeight and FixedHeight.</short>
<descr/>
<seealso/>
</element>
<element name="TGridDataCache.HScrollBarNetRange">
<short>Difference between the scroll bar range and the grid page size.</short>
<descr/>
<seealso/>
</element>
<element name="TGridDataCache.VisibleGrid">
<short>Visible non-fixed cell coordinates rectangle.</short>
<descr/>
<seealso/>
</element>
<element name="TGridDataCache.MaxClientXY">
<short>
Bottom/Right coordinates in (pixels) for the visible parts of a grid.
</short>
<descr/>
<seealso/>
</element>
<element name="TGridDataCache.ValidRows">
<short>
<b>True</b> when there are no fixed columns to display in a grid.
</short>
<descr/>
<seealso/>
</element>
<element name="TGridDataCache.ValidCols">
<short>
<b>True</b> when there are no fixed rows to display in the grid.
</short>
<descr/>
<seealso/>
</element>
<element name="TGridDataCache.ValidGrid">
<short>
<b>True</b> when there are no fixed cells for columns or rows in a grid.
</short>
<descr/>
<seealso/>
</element>
<element name="TGridDataCache.AccumWidth">
<short>Cumulative preceding width per grid column.</short>
<descr/>
<seealso/>
</element>
<element name="TGridDataCache.AccumHeight">
<short>Cumulative preceding height per grid row.</short>
<descr/>
<seealso/>
</element>
<element name="TGridDataCache.TLColOff">
<short>Offset in pixels for the Top/Left column in a grid.</short>
<descr/>
<seealso/>
</element>
<element name="TGridDataCache.TLRowOff">
<short>Offset in pixels for the Top/Left row in a grid.</short>
<descr/>
<seealso/>
</element>
<element name="TGridDataCache.MaxTopLeft">
<short>
Cell coordinates for the last cell that can be used as the grid visual origin.
</short>
<descr/>
<seealso/>
</element>
<element name="TGridDataCache.MaxTLOffset">
<short>Max Top left offset for the last cell in the grid.</short>
<descr/>
<seealso/>
</element>
<element name="TGridDataCache.HotCell">
<short>The current "hot" cell in the grid.</short>
<descr/>
<seealso/>
</element>
<element name="TGridDataCache.HotCellPainted">
<short><b>True</b> if the current "hot" cell has already been painted.</short>
<descr/>
<seealso/>
</element>
<element name="TGridDataCache.HotGridZone">
<short>GridZone for the last MouseMove.</short>
<descr/>
<seealso/>
</element>
<element name="TGridDataCache.ClickCell">
<short>Cell coordinates for the last mouse click event.</short>
<descr/>
<seealso/>
</element>
<element name="TGridDataCache.ClickMouse">
<short>Mouse coordinates for the last mouse click event.</short>
<descr/>
<seealso/>
</element>
<element name="TGridDataCache.PushedCell">
<short>Cell coordinates for the cell drawn in the pushed state.</short>
<descr/>
<seealso/>
</element>
<element name="TGridDataCache.PushedMouse">
<short>Mouse Coordinates for the cell drawn in the pushed state.</short>
<descr/>
<seealso/>
</element>
<element name="TGridDataCache.ClickCellPushed">
<short>
Indicates if the header cell is currently drawn in the pushed state.
</short>
<descr/>
<seealso/>
</element>
<element name="TGridDataCache.FullVisibleGrid">
<short>Visible cells excluding partially visible cells.</short>
<descr/>
<seealso/>
</element>
<element name="TGridDataCache.MouseCell">
<short>Cell which contains the mouse pointer.</short>
<descr/>
<seealso/>
</element>
<element name="TGridDataCache.OldMaxTopLeft">
<short>Previous MaxTopleft (before column sizing).</short>
<descr/>
<seealso/>
</element>
<element name="TGridCursorState">
<short>Enumerated type with cursor states available in a grid.</short>
<descr>
<p>
<var>TGridCursorState</var> is the type used for the <var>CursorState</var>
property in <var>TCustomGrid</var>.
</p>
</descr>
<seealso>
<link id="TCustomGrid.CursorState"/>
</seealso>
</element>
<element name="TGridCursorState.gcsDefault">
<short>Normal cursor shape/style.</short>
</element>
<element name="TGridCursorState.gcsColWidthChanging">
<short>Cursor displayed when changing the width for a column.</short>
</element>
<element name="TGridCursorState.gcsRowHeightChanging">
<short>Cursor displayed when resizing the height for a row.</short>
</element>
<element name="TGridCursorState.gcsDragging">
<short>Cursor displayed when dragging a row or column.</short>
</element>
<element name="TGridScrollerDoScroll">
<short>
Specifies an event handler routine used to scroll a grid control when a column or row is dragged beyond the grid client area.
</short>
<descr>
<p>
<var>Dir</var> is a <var>TPoint</var> instance which indicates the scroll
direction for a grid control. The X and Y members in Dir can contain position
or negative values. A negative value indicates the scroll direction is to the
left (X) or top (Y) of the grid control. A positive value indicates the
scroll direction is to the right (X) or bottom (Y). The values cause the top
and/or left visible column on the grid to be adjusted by the indicated amount.
</p>
<p>
TGridScrollerDoScroll is the type used to implement the internal callback
routine in the TGridScroller class. It uses the private ScrollerDoScroll method in TCustomGrid as the handler routine called when a mouse movement is
handled in the control.
</p>
</descr>
<seealso>
<link id="TGridScroller.Create"/>
<link id="TGridScroller.Start"/>
<link id="TCustomGrid.MouseMove"/>
</seealso>
</element>
<element name="TGridScrollerDoScroll.Dir">
<short>
TPoint instance with delta values indicating the scroll direction.
</short>
</element>
<element name="TGridScroller">
<short>
Scrolls an associated grid when a column or row is dragged beyond the client
area for the control.
</short>
<descr>
<p>
<var>TGridScroller</var> provides methods and internal members which
implement a timer-based callback routine fired every 200ms (milliseconds).
The routine handles scrolling a grid control in a given direction by changing
the top/left visible cell for the control. The callback routine is passed as
an argument to the constructor for the class instance, and points to a
private method in the TCustomGrid instance.
</p>
<p>
TGridScroller is used in the implementation of TCustomGrid. The callback
routine is signalled when MouseMove handles a row or column drag operation
for the control. The class instance is created as needed, and freed when the
drag operation is completed in the MouseUp method for the grid control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.MouseMove"/>
<link id="TCustomGrid.MouseUp"/>
<link id="TCustomGrid.Destroy"/>
</seealso>
</element>
<!-- private -->
<element name="TGridScroller.Dir"/>
<element name="TGridScroller.Timer"/>
<element name="TGridScroller.Callback"/>
<element name="TGridScroller.TimerTick"/>
<element name="TGridScroller.TimerTick.Sender"/>
<!-- public -->
<element name="TGridScroller.Create">
<short>
Constructor for the class instance.
</short>
<descr>
<p>
<var>Create</var> sets the internal Callback member to the handler routine in
the DoScroll argument. It also creates the internal TTimer instance used in
the class; the timer Interval internal is set to 200ms (milliseconds) and the
OnTimer routine is set to the private TimerTick method in the class.
</p>
</descr>
<seealso>
<link id="TGridScrollerDoScroll"/>
<link id="#lcl.extctrls.TTimer.Interval">TTimer.Interval</link>
<link id="#lcl.extctrls.TTimer.OnTimer">TTimer.OnTimer</link>
</seealso>
</element>
<element name="TGridScroller.Create.DoScroll">
<short>
Contains the callback routine signalled when the timer has elapsed in the
class instance.
</short>
</element>
<element name="TGridScroller.Destroy">
<short>
Destructor for the class instance.
</short>
<descr>
<p>
<var>Destroy</var> is the overridden destructor for the class instance. It
frees resources allocates for the TTimer instance in the class. Destroy calls
the inherited destructor prior to exiting from the method.
</p>
</descr>
<seealso>
<link id="#lcl.extctrls.TTimer">TTimer</link>
</seealso>
</element>
<element name="TGridScroller.Start">
<short>
Stores the scroll direction and starts the internal timer for the class
instance.
</short>
<descr>
<p>
<var>Start</var> is a method used to configure and activate the scroller
class instance.
</p>
<p>
Start stores the value from the <var>ADir</var> argument to the Dir member in
the class instance. The TPoint value contains the relative scroll direction
for the associated grid control. The X member indicates the horizontal scroll
direction; -1 scrolls toward the left, and 1 scrolls toward the right.
Similarly, the Y member indicates the vertical scroll direction; -1 scrolls
toward the top, and 1 scrolls toward the bottom.
</p>
<p>
Start sets the value for the Enabled property in the internal TTimer instance
to <b>True</b>. This causes the Callback routine, passed as argument to the
constructor, to be executed when the time Interval (200ms) has elapsed.
</p>
<p>
Start is called when a TGridScroller instance is assigned for the grid
control, and occurs when column or row drag operations are handled for the
control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.MouseMove"/>
<link id="TCustomGrid.MouseUp"/>
<link id="#rtl.types.TPoint">TPoint</link>
</seealso>
</element>
<element name="TGridScroller.Start.ADir">
<short>
TPoint instance with the relative scroll direction for an associated grid
control.
</short>
</element>
<element name="TCustomGrid">
<short>
Implements the base class for grid controls.
</short>
<descr>
<p>
A grid is a collection of cells that are organized in columns and rows. Grids
are suitable for showing data that using a tabular layout. For example:
tables in a database, or formulae and data in a spreadsheet.
</p>
<p>
<b>Key properties:</b>
</p>
<p>
The <link id="TCustomGrid.ColCount">ColCount</link> and <link
id="TCustomGrid.RowCount">RowCount</link> properties contain the column and
row count of the grid.
</p>
<p>
The <link id="TCustomGrid.FixedCols">FixedCols</link> and <link
id="TCustomGrid.FixedRows">FixedRows</link> properties specify the count of
fixed columns or rows that are used for headings.
</p>
<p>
The column widths and row heights of the grid are accessible with the <link
id="TCustomGrid.ColWidths">ColWidths</link> and <link
id="TCustomGrid.RowHeights">RowHeights</link> properties.
</p>
<p>
The <link id="TCustomGrid.DefaultColWidth">DefaultColWidth</link> and <link
id="TCustomGrid.DefaultRowHeight">DefaultRowHeight</link> properties are used
to specify default column widths or row heights respectively.
</p>
<p>
The colors used for the cells and other grid elements are specified in the
following properties:
</p>
<ul>
<li><link id="TCustomGrid.AlternateColor">AlternateColor</link></li>
<li><link id="TCustomGrid.BorderColor">BorderColor</link></li>
<li><link id="TCustomGrid.FixedColor">FixedColor</link></li>
<li><link id="TCustomGrid.FixedHotColor">FixedHotColor</link></li>
<li><link id="TCustomGrid.FocusColor">FocusColor</link></li>
<li><link id="TCustomGrid.GridLineColor">GridLineColor</link></li>
</ul>
<p>
The <link id="TCustomGrid.GridWidth">GridWidth</link> and <link
id="TCustomGrid.GridHeight">GridHeight</link> properties contain the
dimension of the entire grid.
</p>
<p>
The <link id="TCustomGrid.ScrollBars">ScrollBars</link> controls the creation
of scroll bars for the grid.
</p>
<p>
The <link id="TCustomGrid.LeftCol">LeftCol</link>, <link
id="TCustomGrid.TopRow">TopRow</link>, <link
id="TCustomGrid.VisibleColCount">VisibleColCount</link> and <link
id="TCustomGrid.VisibleRowCount">VisibleRowCount</link> properties contain
information about the visible area of the grid.
</p>
<p>
The <link id="TCustomGrid.Options">Options</link> controls options for the
grid.
</p>
<p>
Please note that most of these properties are declared as protected members.
They are not accessible, by default, at design-time using the Object
Inspector in the Lazarus IDE. They can, however, be elevated to public or
published visibility in descendent classes.
</p>
<p>
<b>Key methods and events:</b>
</p>
<p>
If the user highlights a cell of the grid, the <link
id="TCustomGrid.SelectCell">SelectCell</link> method is called that triggers
the OnSelectCell event. The position of the highlighted cell is stored within
the <link id="TCustomGrid.Col">Col</link> and <link
id="TCustomGrid.Row">Row</link> property.
</p>
<p>
The <link id="TCustomGrid.MouseToCell">MouseToCell</link> method calculates a
grid cell from a given screen position.
</p>
<p>
Huge changes to the grid should be encapsulated in calls to <link
id="TCustomGrid.BeginUpdate">BeginUpdate</link> and <link
id="TCustomGrid.EndUpdate">EndUpdate</link> to speed up the application.
</p>
<p>
Component developers must override the <link
id="TCustomGrid.DrawCell">DrawCell</link> method in customized grid controls.
</p>
<p>
<b>Grid cell selection</b>
</p>
<p>
The location of the current (focused) cell (or row) can be changed using
keyboard, mouse or through code. In order to change cell focus successfully to
another position, we must test the target position to see if it is allowed to
receive cell focus. When using keyboard, the property AutoAdvance performs
part of the process by finding what should be the next focused cell. When
using mouse clicks or moving by code, focus will not move from the current
cell unless the target cell is permitted to receive focus.
</p>
<p>
The grid calls the SelectCell function to see if a cell is focusable: if this
function returns true, then the target cell identified with arguments aCol and
aRow is focusable (the current implementation of TCustomGrid simply returns
true). TCustomDrawGrid and hence TDrawGrid and TStringGrid override this
method to check first if cell is any wider than 0; normally you don't want a 0
width cell selected so a cell with these characteristics is skipped
automatically in the process of finding a suitable cell. The other thing the
overridden method SelectCell does is to call the user configurable event
OnSelectCell: this event receives the cell coordinates as arguments and always
returns a default result value of true.
</p>
<p>
Once a cell is known to be focusable and we are sure a movement will take
place, first the method BeforeMoveSelection is called; this in turns triggers
the OnBeforeSelection event. This method's arguments are the coordinates for
the new focused cell. At this point any visible editor is hidden too. The
"before" word means that selection is not yet changed and current focused
coordinates can be accessed with grid.Col and grid.Row properties.
</p>
<p>
After that, the internal focused cell coordinates are changed and then
MoveSelection method is called; this method's purpose is to trigger the
OnSelection event if set (this is a notification that the focused cell has, by
this time, already changed and cell coordinates are now available through
grid.row and grid.col properties).
</p>
<p>
Note that is not good to use OnSelectCell event to detect cell focus changes,
as this event will be triggered several times even for the same cell in the
process of finding a suitable cell. Is better to use OnBeforeSelection or
OnSelection events for this purpose.
</p>
<p>
<b>Multi-selection</b>
</p>
<p>
The Lazarus grids are able to extend the selection to multiple cells. The
Option goRangeSelect must be active for this purpose: Now you can drag the
mouse over a rectangle on the grid to select all the cells included or
intersected by this rectangle. Or you can click on the cell in one corner,
hold SHIFT down and either click on the opposite corner of the selection, or
press the arrow keys to extend the selection in the corresponding direction.
</p>
<p>
In the default setting of the RangeSelectMode property, rsmSingle, only a
single cell or cell range (rectangle of cells) can be selected, as described.
The rsmMulti mode, however, allows selection of multiple and even
discontiguous cells or ranges. After selecting the first cell/range as already
described, hold the CTRL key down and click on the next cell or drag over the
next range to be selected. Instead of dragging you can also select an
additional range by pressing SHIFT (in addition to CTRL) and clicking on the
opposite corner of the range or pressing the arrow keys.
</p>
<p>
The selected cells are highlighted by a different color. Note, however, that
the currently focused cell has the default background color of the grid unless
you set the Option goDrawFocusSelected.
</p>
<p>
Clicking somewhere on an unselected cell unselects the selected cell(s)/range(
s).
</p>
<p>
If you need to access selections by code you can do this by using these
TCustomGrid properties:
</p>
<dl>
<dt>SelectedRange[AIndex: Integer]: TGridRect:</dt>
<dd>
Returns the column/row coordinates of the corner cells of the selected range
at the specified index (type TGridRect = TRect). A single selected cell is
considered to be a block with equal Left and Right column and equal Top and
Bottom row coordinates.
</dd>
<dt>SelectedRangeCount: Integer:</dt>
<dd>The number of selected blocks. </dd>
</dl>
<p>
Note that these are read-only properties, you can add and change selections
only by user interaction. But you can call ClearSelections to unselect
everything.
</p>
<p>
Your selection handling code must be prepared that a selected cell could be
found in another selected block again. Normally this situation is prohibited
in the user interface, but there are scenarios where a selection could be
extended into another range so that the overlapping cells are "selected twice".
</p>
<p>
Additional information about grid usage is available on the Lazarus wiki in
the following pages:
</p>
<ul>
<li>
<url href="https://wiki.lazarus.freepascal.org/Grids_Reference_Page">
Grids Reference Page
</url>
</li>
<li>
<url href="https://wiki.lazarus.freepascal.org/TDrawGrid">
TDrawGrid
</url>
</li>
<li>
<url href="https://wiki.lazarus.freepascal.org/TStringGrid">
TStringGrid
</url>
</li>
</ul>
</descr>
<seealso>
<link id="TStringGrid"/>
<link id="TDrawGrid"/>
<link id="HowToUseGrids"/>
</seealso>
</element>
<!-- private -->
<element name="TCustomGrid.FAlternateColor"/>
<element name="TCustomGrid.FAutoAdvance"/>
<element name="TCustomGrid.FAutoEdit"/>
<element name="TCustomGrid.FAutoFillColumns"/>
<element name="TCustomGrid.FBorderColor"/>
<element name="TCustomGrid.FDefaultDrawing"/>
<element name="TCustomGrid.FEditor"/>
<element name="TCustomGrid.FEditorHidingCount"/>
<element name="TCustomGrid.FEditorMode"/>
<element name="TCustomGrid.FEditorOldValue"/>
<element name="TCustomGrid.FEditorShowing"/>
<element name="TCustomGrid.FEditorKey"/>
<element name="TCustomGrid.FEditorOptions"/>
<element name="TCustomGrid.FExtendedSelect"/>
<element name="TCustomGrid.FFastEditing"/>
<element name="TCustomGrid.FAltColorStartNormal"/>
<element name="TCustomGrid.FFlat"/>
<element name="TCustomGrid.FOnAfterSelection"/>
<element name="TCustomGrid.FOnLoadColumn"/>
<element name="TCustomGrid.FOnSaveColumn"/>
<element name="TCustomGrid.FRangeSelectMode"/>
<element name="TCustomGrid.FSelections"/>
<element name="TCustomGrid.FOnUserCheckboxBitmap"/>
<element name="TCustomGrid.FOnUserCheckboxImage"/>
<element name="TCustomGrid.FSortOrder"/>
<element name="TCustomGrid.FSortColumn"/>
<element name="TCustomGrid.FSortLCLImages"/>
<element name="TCustomGrid.FTabAdvance"/>
<element name="TCustomGrid.FTitleImageList"/>
<element name="TCustomGrid.FTitleImageListWidth"/>
<element name="TCustomGrid.FTitleStyle"/>
<element name="TCustomGrid.FAscImgInd"/>
<element name="TCustomGrid.FDescImgInd"/>
<element name="TCustomGrid.FOnCompareCells"/>
<element name="TCustomGrid.FGridLineStyle"/>
<element name="TCustomGrid.FGridLineWidth"/>
<element name="TCustomGrid.FDefColWidth"/>
<element name="TCustomGrid.FDefRowHeight"/>
<element name="TCustomGrid.FRealizedDefColWidth"/>
<element name="TCustomGrid.FRealizedDefRowHeight"/>
<element name="TCustomGrid.FCol"/>
<element name="TCustomGrid.FRow"/>
<element name="TCustomGrid.FFixedCols"/>
<element name="TCustomGrid.FFixedRows"/>
<element name="TCustomGrid.FOnEditButtonClick"/>
<element name="TCustomGrid.FOnButtonClick"/>
<element name="TCustomGrid.FOnPickListSelect"/>
<element name="TCustomGrid.FOnCheckboxToggled"/>
<element name="TCustomGrid.FOnPrepareCanvas"/>
<element name="TCustomGrid.FOnSelectEditor"/>
<element name="TCustomGrid.FOnValidateEntry"/>
<element name="TCustomGrid.FGridLineColor"/>
<element name="TCustomGrid.FFixedGridLineColor"/>
<element name="TCustomGrid.FFixedColor"/>
<element name="TCustomGrid.FFixedHotColor"/>
<element name="TCustomGrid.FFocusColor"/>
<element name="TCustomGrid.FSelectedColor"/>
<element name="TCustomGrid.FDisabledFontColor"/>
<element name="TCustomGrid.FFadeUnfocusedSelection"/>
<element name="TCustomGrid.FFocusRectVisible"/>
<element name="TCustomGrid.FCols"/>
<element name="TCustomGrid.FRows"/>
<element name="TCustomGrid.FSaveOptions"/>
<element name="TCustomGrid.FScrollBars"/>
<element name="TCustomGrid.FSelectActive"/>
<element name="TCustomGrid.FTopLeft"/>
<element name="TCustomGrid.FPivot"/>
<element name="TCustomGrid.FRange"/>
<element name="TCustomGrid.FDragDx"/>
<element name="TCustomGrid.FMoveLast"/>
<element name="TCustomGrid.FUpdateCount"/>
<element name="TCustomGrid.FGCache"/>
<element name="TCustomGrid.FOptions"/>
<element name="TCustomGrid.FOptions2"/>
<element name="TCustomGrid.FOnDrawCell"/>
<element name="TCustomGrid.FOnBeforeSelection"/>
<element name="TCustomGrid.FOnSelection"/>
<element name="TCustomGrid.FOnTopLeftChanged"/>
<element name="TCustomGrid.FUseXORFeatures"/>
<element name="TCustomGrid.FValidateOnSetSelection"/>
<element name="TCustomGrid.FVSbVisible"/>
<element name="TCustomGrid.FHSbVisible"/>
<element name="TCustomGrid.FDefaultTextStyle"/>
<element name="TCustomGrid.FLastWidth"/>
<element name="TCustomGrid.FTitleFont"/>
<element name="TCustomGrid.FLastFont"/>
<element name="TCustomGrid.FTitleFontIsDefault"/>
<element name="TCustomGrid.FColumns"/>
<element name="TCustomGrid.FButtonEditor"/>
<element name="TCustomGrid.FStringEditor"/>
<element name="TCustomGrid.FButtonStringEditor"/>
<element name="TCustomGrid.FPickListEditor"/>
<element name="TCustomGrid.FExtendedColSizing"/>
<element name="TCustomGrid.FExtendedRowSizing"/>
<element name="TCustomGrid.FUpdatingAutoFillCols"/>
<element name="TCustomGrid.FGridBorderStyle"/>
<element name="TCustomGrid.FGridFlags"/>
<element name="TCustomGrid.FGridPropBackup"/>
<element name="TCustomGrid.FStrictSort"/>
<element name="TCustomGrid.FIgnoreClick"/>
<element name="TCustomGrid.FAllowOutboundEvents"/>
<element name="TCustomGrid.FColumnClickSorts"/>
<element name="TCustomGrid.FHeaderHotZones"/>
<element name="TCustomGrid.FHeaderPushZones"/>
<element name="TCustomGrid.FCursorChangeLock"/>
<element name="TCustomGrid.FCursorState"/>
<element name="TCustomGrid.FColRowDragIndicatorColor"/>
<element name="TCustomGrid.FSavedCursor"/>
<element name="TCustomGrid.FSpecialCursors"/>
<element name="TCustomGrid.FSizing"/>
<element name="TCustomGrid.FRowAutoInserted"/>
<element name="TCustomGrid.FMouseWheelOption"/>
<element name="TCustomGrid.FSavedHint"/>
<element name="TCustomGrid.FCellHintPriority"/>
<element name="TCustomGrid.FOnGetCellHint"/>
<element name="TCustomGrid.FScroller"/>
<element name="TCustomGrid.AdjustCount">
<short>Adjusts a row or column count.</short>
<descr>
<p>
<var>AdjustCount</var> is a procedure used to adjust the row or column count
for the grid, and to update properties and cache information for the grid.
</p>
<p>
<var>IsColumn</var> indicates if the <var>OldValue</var> and
<var>NewValue</var> arguments refer to the column or row count for the grid;
when IsColumn is <b>True</b>, the values refer to the column count.
</p>
<p>
<var>OldValue</var> contains the previous row or column count in the grid.
</p>
<p>
<var>NewValue</var> contains the row or column count on exit from the method.
</p>
<p>
AdjustCount is called when the value in the <var>RowCount</var> or
<var>ColCount</var> is changed. It calls the <var>UpdateCachedSizes</var> and
<var>SizeChanged</var> methods. It may also call <var>FixPos</var> when
NewValue causes the row or column to be out of range for the grid control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.ColCount"/>
<link id="TCustomGrid.InternalSetColCount"/>
<link id="TCustomGrid.RowCount"/>
</seealso>
</element>
<element name="TCustomGrid.AdjustCount.IsColumn">
<short>
<b>True</b> when the count values are for a columns instead of rows.
</short>
</element>
<element name="TCustomGrid.AdjustCount.OldValue">
<short>Count value before adjustment.</short>
</element>
<element name="TCustomGrid.AdjustCount.NewValue">
<short>Count value after adjustment.</short>
</element>
<element name="TCustomGrid.CacheVisibleGrid">
<short>
Caches information about visible parts of the grid (excluding fixed cells).
</short>
<descr/>
<seealso>
<link id="TGridDataCache"/>
<link id="TCustomGrid.ScrollBy"/>
<link id="TCustomGrid.VisualChange"/>
<link id="TCustomGrid.ResetSizes"/>
<link id="TCustomGrid.ResetOffset"/>
</seealso>
</element>
<element name="TCustomGrid.CancelSelection">
<short>Removes the active range selection for the grid.</short>
<descr>
<p>
Ensures that a selection range is re-created for the current cell, or the
current row when <var>goRowSelect</var> is included in the <var>Options</var>
for the grid. The value in <var>SelectActive</var> is set to <b>False</b>.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Options"/>
<link id="TCustomGrid.SelectActive"/>
</seealso>
</element>
<element name="TCustomGrid.CheckFixedCount">
<short>
Ensures that the specified column and row counts for fixed cells are valid.
</short>
<descr>
<p>
<var>CheckFixedCount</var> is called when new values are assigned to the
ColCount, RowCount, FixedCols, or FixedRows properties. It raises an
EGridException exception if argument value are not valid or not in range for
the grid control.
</p>
<p>
See CheckCount for the actions performed to validate column and row count
values.
</p>
</descr>
<errors>
Raises an EGridException if values in AFCol or AFRow contain negative values,
or are not in range for the values specified in ACol or ARow.
</errors>
<seealso>
<link id="TCustomGrid.ColCount"/>
<link id="TCustomGrid.RowCount"/>
<link id="TCustomGrid.FixedCols"/>
<link id="TCustomGrid.FixedRows"/>
<link id="TCustomGrid.CheckCount"/>
</seealso>
</element>
<element name="TCustomGrid.CheckFixedCount.aCol">
<short>Number of columns for the grid control.</short>
</element>
<element name="TCustomGrid.CheckFixedCount.aRow">
<short>Number of rows mined in the method</short>
</element>
<element name="TCustomGrid.CheckFixedCount.aFCol">
<short>Number of fixed columns for the grid control.</short>
</element>
<element name="TCustomGrid.CheckFixedCount.aFRow">
<short>Number of fixed rows for the grid control.</short>
</element>
<element name="TCustomGrid.CheckCount">
<short>
Ensures that values in Col and Row are range limited to the corresponding
arguments values.
</short>
<descr>
<p>
CheckCount is a method used to ensure that values in the Col and Row property
are valid for the arguments specified in the ANewColCount and ANewRowCount
arguments. If the existing Col or Row values would exceed the new values,
they are adjusted to fall within the new range (0..n-1).
</p>
<p>
If either Col or Row is modified in the method, the visible top/left cell for
the control is moved (when needed). FixEditor indicates whether the cell
editor should be repositioned by calling MoveNextSelectable when the value in
Col or Row has been changed. The default value for the argument is
<b>True</b>.
</p>
<p>
No actions are performed in the method if the Handle has not been allocated
for the widgetset class instance.
</p>
<p>
CheckCount is called when new values are assigned to the ColCount or RowCount
properties, and when a delete operation is performed for a column or row in
the grid. It occurs after the CheckFixedCount method has been called to
validate new fixed column or row count values.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Col"/>
<link id="TCustomGrid.ColCount"/>
<link id="TCustomGrid.Row"/>
<link id="TCustomGrid.RowCount"/>
<link id="TCustomGrid.CheckTopLeft"/>
</seealso>
</element>
<element name="TCustomGrid.CheckCount.aNewColCount">
<short>New column count for the control.</short>
</element>
<element name="TCustomGrid.CheckCount.aNewRowCount">
<short>New row count for the control.</short>
</element>
<element name="TCustomGrid.CheckIndex">
<short>Ensures a row or column index is not out of range.</short>
<descr>
<p>
<var>CheckIndex</var> is a procedure used to ensure that an index value is
within the range of values allowed for a row or column.
</p>
<p>
<var>IsColumn</var> indicates whether a row or column index is being checked.
When set to <b>True</b>, a column index is verified. When set to
<b>False</b>, a row index is examined.
</p>
<p>
<var>IsColumnIndexValid</var> or <var>IsRowIndexValid</var> is called to
validate the value in <var>Index</var>. An <var>EGridException</var>
exception is raised when Index in not allowed for the corresponding dimension.
</p>
<p>
CheckIndex is called from methods like <var>Sort</var>,
<var>DoOPMoveColRow</var>, and <var>DoOPDeleteColRow</var>.
</p>
</descr>
<errors>
Raises an EGridException exception with the message in rsGridIndexOutOfRange
when Index is not valid for the row or column.
</errors>
<seealso>
<link id="TCustomGrid.IsColumnIndexValid"/>
<link id="TCustomGrid.IsRowIndexValid"/>
<link id="TCustomGrid.Sort"/>
<link id="TCustomGrid.DoOPMoveColRow"/>
<link id="TCustomGrid.DoOPDeleteColRow"/>
</seealso>
</element>
<element name="TCustomGrid.CheckIndex.IsColumn">
<short>
<b>True</b> when the Index is for a column; <b>False</b> when it is for a Row.
</short>
</element>
<element name="TCustomGrid.CheckIndex.Index">
<short>Column index examined in the method.</short>
</element>
<element name="TCustomGrid.CheckTopLeft">
<short>
Determines if the TopLeft cell needs to be changed in the grid cache.
</short>
<descr>
<p>
The return value is <b>True</b> if the cached value in TopLeft needs to be
updated to reflect the origin cell for the grid control.
</p>
<p>
Calls TopLeftChanged (when needed) and VisualChange to cause the control to be redrawn.
</p>
</descr>
<seealso>
<link id="TCustomGrid.TopLeft"/>
<link id="TCustomGrid.TopLeftChanged"/>
<link id="TCustomGrid.VisualChange"/>
</seealso>
</element>
<element name="TCustomGrid.CheckTopLeft.Result">
<short>
<b>True</b> if the top left cell was different than the cached value for the
grid.
</short>
</element>
<element name="TCustomGrid.CheckTopLeft.aCol"/>
<element name="TCustomGrid.CheckTopLeft.aRow"/>
<element name="TCustomGrid.CheckTopLeft.CheckCols"/>
<element name="TCustomGrid.CheckTopLeft.CheckRows"/>
<element name="TCustomGrid.GetQuickColRow">
<short>Gets the value for the ColRow property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.ColRow"/>
</seealso>
</element>
<element name="TCustomGrid.GetQuickColRow.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomGrid.SetQuickColRow">
<short>Sets the value for the ColRow property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.ColRow"/>
</seealso>
</element>
<element name="TCustomGrid.SetQuickColRow.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomGrid.IsCellButtonColumn">
<short>
Indicates if the specified cell is a non-fixed cell which contains a button
for each row in the column.
</short>
<descr>
<p>
<var>IsCellButtonColumn</var> calls ColumnFromGridColumn to get the
TGridColumn which represents the column number in ACell. The return value is
<b>True</b> when the following conditions are met:
</p>
<ul>
<li>Columns has been enabled for the grid control.</li>
<li>The column number in ACell (X) is valid in the grid Columns.</li>
<li>The row number in ACell (Y) is not within the FixedRows for the grid.</li>
<li>
The column definition (TGridColumn) uses cbsButtonColumn in its ButtonStyle
property.
</li>
</ul>
<p>
IsCellButtonColumn is used in the implementations for the PrepareCanvas,
DefaultDrawCell, and IsMouseOverCellButton methods.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Columns"/>
<link id="TCustomGrid.PrepareCanvas"/>
<link id="TCustomGrid.DefaultDrawCell"/>
<link id="TCustomGrid.IsMouseOverCellButton"/>
<link id="TGridColumn.ButtonStyle"/>
</seealso>
</element>
<element name="TCustomGrid.IsCellButtonColumn.Result">
<short>
<b>True</b> when the column exists and displays a button in its cells.
</short>
</element>
<element name="TCustomGrid.IsCellButtonColumn.ACell">
<short>TPoint instance with the column and row numbers for the cell.</short>
</element>
<element name="TCustomGrid.GetSelectedColumn">
<short>Gets the value for the SelectedColumn property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.SelectedColumn"/>
</seealso>
</element>
<element name="TCustomGrid.GetSelectedColumn.Result">
<short>Value for the SelectedColumn property.</short>
</element>
<element name="TCustomGrid.SetAlternateColor">
<short>Sets the value for the AlternateColor property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.AlternateColor"/>
</seealso>
</element>
<element name="TCustomGrid.SetAlternateColor.AValue">
<short>New value for the AlternateColor property.</short>
</element>
<element name="TCustomGrid.SetAutoFillColumns">
<short>Sets the value for the AutoFillColumns property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.AutoFillColumns"/>
</seealso>
</element>
<element name="TCustomGrid.SetAutoFillColumns.AValue">
<short>New value for the AutoFillColumns property.</short>
</element>
<element name="TCustomGrid.SetBorderColor">
<short>Sets the value for the BorderColor property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.BorderColor"/>
</seealso>
</element>
<element name="TCustomGrid.SetBorderColor.AValue">
<short>New value for the BorderColor property.</short>
</element>
<element name="TCustomGrid.SetColumnClickSorts">
<short>Sets the value for the ColumnClickSorts property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.ColumnClickSorts"/>
</seealso>
</element>
<element name="TCustomGrid.SetColumnClickSorts.AValue">
<short>New value for the ColumnClickSorts property.</short>
</element>
<element name="TCustomGrid.SetColumns">
<short>Sets the value for the Columns property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.Columns"/>
</seealso>
</element>
<element name="TCustomGrid.SetColumns.AValue">
<short>New value for the Columns property.</short>
</element>
<element name="TCustomGrid.SetEditorOptions">
<short>Sets the value for the EditorOptions property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.EditorOptions"/>
</seealso>
</element>
<element name="TCustomGrid.SetEditorOptions.AValue">
<short>New value for the EditorOptions property.</short>
</element>
<element name="TCustomGrid.SetEditorBorderStyle">
<short>Sets the value for the EditorBorderStyle property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.EditorBorderStyle"/>
</seealso>
</element>
<element name="TCustomGrid.SetEditorBorderStyle.AValue">
<short>New value for the EditorBorderStyle property.</short>
</element>
<element name="TCustomGrid.SetAltColorStartNormal">
<short>Sets the value for the AltColorStartNormal property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.AltColorStartNormal"/>
</seealso>
</element>
<element name="TCustomGrid.SetAltColorStartNormal.AValue">
<short>New value for the AltColorStartNormal property.</short>
</element>
<element name="TCustomGrid.SetFlat">
<short>Sets the value for the Flat property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.Flat"/>
</seealso>
</element>
<element name="TCustomGrid.SetFlat.AValue">
<short>New value for the Flat property.</short>
</element>
<element name="TCustomGrid.SetFocusRectVisible">
<short>Sets the value for the FocusRectVisible property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.FocusRectVisible"/>
</seealso>
</element>
<element name="TCustomGrid.SetFocusRectVisible.AValue">
<short>New value for the FocusRectVisible property.</short>
</element>
<element name="TCustomGrid.ScrollerDoScroll"/>
<element name="TCustomGrid.ScrollerDoScroll.Dir"/>
<element name="TCustomGrid.SetScroller"/>
<element name="TCustomGrid.SetScroller.Dir"/>
<element name="TCustomGrid.SetTitleImageList">
<short>Sets the value for the TitleImageList property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.TitleImageList"/>
</seealso>
</element>
<element name="TCustomGrid.SetTitleImageList.AValue">
<short>New value for the TitleImageList property.</short>
</element>
<element name="TCustomGrid.SetTitleImageListWidth">
<short>Sets the value for the TitleImageListWidth property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.TitleImageListWidth"/>
</seealso>
</element>
<element name="TCustomGrid.SetTitleImageListWidth.aTitleImageListWidth">
<short>New value for the TitleImageListWidth property.</short>
</element>
<element name="TCustomGrid.SetTitleFont">
<short>Sets the value for the TitleFont property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.TitleFont"/>
</seealso>
</element>
<element name="TCustomGrid.SetTitleFont.AValue">
<short>New value for the TitleFont property.</short>
</element>
<element name="TCustomGrid.SetTitleStyle">
<short>Sets the value for the TitleStyle property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.TitleStyle"/>
</seealso>
</element>
<element name="TCustomGrid.SetTitleStyle.AValue">
<short>New value for the TitleStyle property.</short>
</element>
<element name="TCustomGrid.SetUseXorFeatures">
<short>Sets the value for the UseXorFeatures property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.UseXorFeatures"/>
</seealso>
</element>
<element name="TCustomGrid.SetUseXorFeatures.AValue">
<short>New value for the UseXorFeatures property.</short>
</element>
<element name="TCustomGrid.doColSizing">
<short>Performs actions needed when a column in the grid is resized.</short>
<descr>
<p>
<var>doColSizing</var> is a <var>Boolean</var> function used to perform
actions needed when a column in the grid is resized. <var>X</var> and
<var>Y</var> contain the mouse coordinates where the action was initiated.
The return value contains <b>True</b> when the resizing operation is
successfully completed.
</p>
<p>
No actions are performed in doColSizing if the GridState member contains any
value other than <var>gsColSizing</var>. The GridFlags member is updated to
include the value <var>gfSizingStarted</var>, and the <var>ResizeColumn</var>
and <var>HeaderSizing</var> methods are called to reflect the altered column
size.
</p>
</descr>
<seealso>
<link ied="TCustomGrid.Options"/>
<link id="TGridOptions.goColSizing"/>
<link id="TCustomGrid.MouseMove"/>
<link id="TGridFlagsOption.gfSizingStarted"/>
<link id="TGridFlags"/>
</seealso>
</element>
<element name="TCustomGrid.doColSizing.Result">
<short><b>True</b> when column resizing is successfully completed.</short>
</element>
<element name="TCustomGrid.doColSizing.X">
<short>Horizontal mouse coordinate where the action was started.</short>
</element>
<element name="TCustomGrid.doColSizing.Y">
<short>Vertical mouse coordinate where the action was started.</short>
</element>
<element name="TCustomGrid.doRowSizing">
<short>Performs actions needed when a grid row is resized.</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.doRowSizing.Result"/>
<element name="TCustomGrid.doRowSizing.X"/>
<element name="TCustomGrid.doRowSizing.Y"/>
<element name="TCustomGrid.doColMoving">
<short>
Performs actions needed to move or drag a grid column.
</short>
</element>
<element name="TCustomGrid.doColMoving.X"/>
<element name="TCustomGrid.doColMoving.Y"/>
<element name="TCustomGrid.doRowMoving">
<short>
Performs actions needed to move or drag a grid row.
</short>
</element>
<element name="TCustomGrid.doRowMoving.X"/>
<element name="TCustomGrid.doRowMoving.Y"/>
<element name="TCustomGrid.doPushCell">
<short>
Performs actions needed to render a cell using its "Pushed" appearance.
</short>
<descr/>
<seealso>
<link id="TCustomGrid.StartPushCell"/>
<link id="TCustomGrid.MouseDown"/>
</seealso>
</element>
<element name="TCustomGrid.doTopleftChange">
<short>
Performs actions needed when the origin or dimensions for the grid are
changed.
</short>
<descr/>
<seealso>
<link id="TCustomGrid.SetFixedCols"/>
<link id="TCustomGrid.ScrollToCell"/>
<link id="TCustomGrid.CheckTopLeft"/>
<link id="TCustomGrid.FixScroll"/>
</seealso>
</element>
<element name="TCustomGrid.doTopleftChange.DimChg">
<short><b>True</b> when the dimensions for the grid have been altered.</short>
</element>
<element name="TCustomGrid.DrawXORVertLine">
<short>
Draws a vertical line at the specified horizontal location using XOR pen mode.
</short>
<descr/>
<seealso>
<link id="TCustomGrid.doColSizing"/>
<link id="TCustomGrid.MouseUp"/>
</seealso>
</element>
<element name="TCustomGrid.DrawXORVertLine.X">
<short>Horizontal location where the vertical grid line is drawn.</short>
</element>
<element name="TCustomGrid.DrawXORHorzLine">
<short>
Draws a horizontal line at the specified vertical location using XOR pen mode.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.DrawXORHorzLine.Y">
<short>Vertical location where the horizontal grid line is drawn.</short>
</element>
<element name="TCustomGrid.EditorGetValue">
<short>Gets the value for a cell editor.</short>
<descr>
<p>
<var>EditorGetValue</var> is a <var>Boolean</var> function used to get the
value for a cell editor in the grid. EditorGetValue is used in the
implementation of <var>TCustomGrid</var> methods like:
<var>EditorShowInCell</var>, <var>ResetEditor</var>, <var>MoveExtend</var>,
and <var>DestroyHandle</var>. It is used to get the cell value prior to
editing, and to display the value from the cell editor when it is hidden.
</p>
<p>
<var>Validate</var> is a <var>Boolean</var> argument that indicates if the
<var>ValidateEntry</var> method is called to validate the edited cell value.
When it contains <b>True</b>, <var>ValidateEntry</var> is called prior to
calling <var>EditorDoSetValue</var> and/or <var>EditorHide</var>.
</p>
<p>
The return value contains <b>True</b> when the edited cell value is valid. It
also contains <b>True</b> if a cell editor has not been assigned or is not
visible, or the method was called at design-time or during component
destruction.
</p>
</descr>
<seealso>
<link id="TCustomGrid.ResetEditor"/>
<link id="TCustomGrid.DestroyHandle"/>
<link id="TCustomGrid.MoveExtend"/>
<link id="TCustomGrid.EditorShowInCell"/>
</seealso>
</element>
<element name="TCustomGrid.EditorGetValue.Result">
<short><b>True</b> when the cell is valid or has not been altered.</short>
</element>
<element name="TCustomGrid.EditorGetValue.Validate">
<short>Indicates the cell value is validated using ValidateEntry.</short>
</element>
<element name="TCustomGrid.EditorPos">
<short>
Sets the position and size for an active cell editor in the grid.
</short>
<descr>
<p>
<var>EditorPos</var> is a procedure used to set the position and size for an
active cell editor in the grid. EditorPos posts messages to the
<var>Editor</var> for the grid, and requires a valid handle for both the grid
control and the editor control. No actions are performed in the method when a
Handle has not been allocated for the grid or when Editor is unassigned
(contains <b>Nil</b>).
</p>
<p>
A <var>TGridMessage</var> instance with the values in Grid, Col, and Row is
dispatched to the Editor to set the Editor position. The bounds for the
editor rectangle is calculated and adjusted when needed.
</p>
<p>
The <var>Font</var> for the grid control is assigned to the <var>Canvas</var>
where the editor control is drawn.
</p>
<p>
A TGridMessage instance with the values in Grid, Col, Row, and the calculated
bounds is dispatched to the Editor to set the Editor bounds.
</p>
<p>
EditorPos is called when visual properties are modified in the control and
the editor control is visible. For example: SetRowHeight, SetDefRowHeight,
AdjustEditorBounds, SetEditorBorderStyle, SetEditorValue, EditorWidthChanged,
GridMouseWheel, WMHScroll, and WMVScroll.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Editor"/>
<link id="TCustomGrid.Grid"/>
<link id="TCustomGrid.Col"/>
<link id="TCustomGrid.Row"/>
<link id="TGridMessage"/>
<link id="#lcl.controls.TCustomControl.Canvas">TCustomControl.Canvas</link>
<link id="#lcl.controls.TControl.Font">TControl.Font</link>
</seealso>
</element>
<element name="TCustomGrid.EditorShowChar">
<short>
Applies a UTF-8-encoded character value to the active cell editor.
</short>
<descr>
<p>
Calls <var>SelectEditor</var> to ensure that the cell <var>Editor</var> is
active and enabled for the cell at <var>Col</var> and <var>Row</var>. The
Editor is displayed (when available) if the value in Ch is handled in the
editor control, and is not marked as read-only. The character in
<var>Ch</var> is posted to the widgetset class for the grid.
</p>
<p>
This method bypasses the <var>KeyDown</var> handler for the class instance,
and as a result does not automatically reset <var>RowAutoInsert</var> when
<var>Ch</var> contains the <b>Backspace</b> key (<b>Ctrl+H</b>).
RowAutoInsert is manually set to <b>False</b> in the method when the
Backspace character is detected.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Editor"/>
<link id="TCustomGrid.SelectEditor"/>
<link id="TCustomGrid.Col"/>
<link id="TCustomGrid.Row"/>
<link id="TCustomGrid.RowAutoInsert"/>
</seealso>
</element>
<element name="TCustomGrid.EditorShowChar.Ch">
<short>UTF-8-encoded character applied in the method.</short>
</element>
<element name="TCustomGrid.EditorSetMode">
<short>Sets the value for the EditorMode property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.EditorMode"/>
</seealso>
</element>
<element name="TCustomGrid.EditorSetMode.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomGrid.EditorSetValue">
<short>Changes the cell editor value and position at run-time.</short>
<descr>
<p>
Calls <var>EditorPos</var> to the set the position for the <var>Editor</var>
control used in the active cell. Calls <var>EditorDoSetValue</var> to update
the content in the Editor control.
</p>
<p>
No actions are performed in the method at design-time.
</p>
</descr>
<seealso>
<link id="TCustomGrid.EditorDoSetValue"/>
</seealso>
</element>
<element name="TCustomGrid.EditorAlwaysShown">
<short>
Indicates if a cell editor is always displayed for an active non-fixed cell
in the grid control.
</short>
<descr>
<p>
The return value is <b>True</b> when editing is allowed for the cell, it is
not a fixed cell, and <var>goAlwaysShowEditor</var> is included in the
<var>Options</var> property.
</p>
</descr>
<seealso>
<link id="TCustomGrid.EditingAllowed"/>
<link id="TCustomGrid.FixedGrid"/>
<link id="TCustomGrid.Options"/>
</seealso>
</element>
<element name="TCustomGrid.EditorAlwaysShown.Result">
<short>
<b>True</b> when a cell editor is allowed and enabled in grid cells.
</short>
</element>
<element name="TCustomGrid.FixPosition">
<short>
Ensures that column and row positions, and selection(s) are valid for the
grid.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.FixPosition.IsColumn">
<short>
<b>True</b> if the index value is for a column. <b>False</b> if the value is
for a row.
</short>
</element>
<element name="TCustomGrid.FixPosition.aIndex">
<short>
Position for the column or row in the grid control.
</short>
</element>
<element name="TCustomGrid.FixScroll">
<short>
Ensures that scroll bars are updated to reflect the cached visible area in
the grid.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.GetLeftCol">
<short>Gets the value for LeftCol property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.LeftCol"/>
</seealso>
</element>
<element name="TCustomGrid.GetLeftCol.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomGrid.GetColCount">
<short>Gets the value for the ColCount property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.ColCount"/>
</seealso>
</element>
<element name="TCustomGrid.GetColCount.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomGrid.GetColWidths">
<short>Gets the value for the indexed ColWidths property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.ColWidths"/>
</seealso>
</element>
<element name="TCustomGrid.GetColWidths.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomGrid.GetColWidths.ACol">
<short>Column number to examine in the method.</short>
</element>
<element name="TCustomGrid.GetColumns">
<short>Gets the value for the Columns property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.Columns"/>
</seealso>
</element>
<element name="TCustomGrid.GetColumns.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomGrid.GetDefColWidth">
<short>Gets the value for the DefaultColWidth property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.DefColWidth"/>
</seealso>
</element>
<element name="TCustomGrid.GetDefColWidth.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomGrid.GetDefRowHeight">
<short>Gets the value for the DefaultRowHeight property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.DefRowHeight"/>
</seealso>
</element>
<element name="TCustomGrid.GetDefRowHeight.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomGrid.GetEditorBorderStyle">
<short>Gets the value for the EditorBorderStyle property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.EditorBorderStyle"/>
</seealso>
</element>
<element name="TCustomGrid.GetEditorBorderStyle.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomGrid.GetBorderWidth">
<short>
Gets the number of pixels needed for the grid border (when used).
</short>
<descr/>
<seealso>
<link id="TCustomGrid.DrawBorder"/>
</seealso>
</element>
<element name="TCustomGrid.GetBorderWidth.Result">
<short>Number of pixels needed for the grid border.</short>
</element>
<element name="TCustomGrid.GetTitleImageInfo">
<short>
Gets position and layout information for an image used in a column header.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.GetTitleImageInfo.aColumnIndex">
<short>Column number examined in the method.</short>
</element>
<element name="TCustomGrid.GetTitleImageInfo.ImgIndex">
<short>Position of the image used for the column.</short>
</element>
<element name="TCustomGrid.GetTitleImageInfo.ImgLayout">
<short>Image layout used for the column.</short>
</element>
<element name="TCustomGrid.GetSortTitleImageInfo">
<short>
Gets image information displayed in a column header for a sortable grid
column.
</short>
<descr>
<p>
GetSortTitleImageInfo is used in the implementation of the methods like
TCustomGrid.DrawColumnTitleImage and TCustomStringGrid.AutoAdjustColumn.
</p>
</descr>
<seealso>
<link id="TCustomGrid.DrawColumnTitleImage"/>
<link id="TCustomStringGrid.AutoAdjustColumn"/>
</seealso>
</element>
<element name="TCustomGrid.GetSortTitleImageInfo.aColumnIndex">
<short>Column index for the sort indicator.</short>
</element>
<element name="TCustomGrid.GetSortTitleImageInfo.ImgList">
<short>List with images used for the indicator.</short>
</element>
<element name="TCustomGrid.GetSortTitleImageInfo.ImgIndex">
<short>Image index used for the specified grid column.</short>
</element>
<element name="TCustomGrid.GetSortTitleImageInfo.ImgListWidth">
<short>Image width used for the indicator.</short>
</element>
<element name="TCustomGrid.GetSortTitleImageInfo.NativeSortGlyphs">
<short>
Indicates if native sort indicators are defined in the grid column.
</short>
</element>
<element name="TCustomGrid.GetRowCount">
<short>Gets the value for the RowCount property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.RowCount"/>
</seealso>
</element>
<element name="TCustomGrid.GetRowCount.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomGrid.GetRowHeights">
<short>Gets the value for the indexed RowHeights property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.RowHeights"/>
</seealso>
</element>
<element name="TCustomGrid.GetRowHeights.Result">
<short>Height for the row in pixels.</short>
</element>
<element name="TCustomGrid.GetRowHeights.ARow">
<short>Row number for the property value.</short>
</element>
<element name="TCustomGrid.GetSelectedRange">
<short>Gets the value for the indexed SelectedRange property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.SelectedRange"/>
</seealso>
</element>
<element name="TCustomGrid.GetSelectedRange.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomGrid.GetSelectedRange.AIndex">
<short>Ordinal position for the grid selection rectangle.</short>
</element>
<element name="TCustomGrid.GetSelectedRangeCount">
<short>Gets the value for the SelectedRangeCount property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.SelectedRangeCount"/>
</seealso>
</element>
<element name="TCustomGrid.GetSelectedRangeCount.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomGrid.GetSelection">
<short>Gets the value for the Selection property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.Selection"/>
</seealso>
</element>
<element name="TCustomGrid.GetSelection.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomGrid.GetSpecialCursor">
<short>Gets a cursor for the specified grid cursor state.</short>
<descr>
<p>
<var>GetSpecialCursor</var> is used as the read access specifier for the
<var>ColRowDraggingCursor</var>, <var>ColRowSizingCursor</var>, and
<var>RowSizingCursor</var> properties.
</p>
</descr>
<seealso>
<link id="TCustomGrid.ColRowDraggingCursor"/>
<link id="TCustomGrid.ColRowSizingCursor"/>
<link id="TCustomGrid.RowSizingCursor"/>
</seealso>
</element>
<element name="TCustomGrid.GetSpecialCursor.Result">
<short>TCursor representing the specified cursor state.</short>
</element>
<element name="TCustomGrid.GetSpecialCursor.ACursorState">
<short>Grid cursor state retrieved in the method.</short>
</element>
<element name="TCustomGrid.GetTopRow">
<short>Gets the value for the TopRow property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.TopRow"/>
</seealso>
</element>
<element name="TCustomGrid.GetTopRow.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomGrid.GetVisibleColCount">
<short>Gets the value for the VisibleRowCount property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.VisibleColCount"/>
</seealso>
</element>
<element name="TCustomGrid.GetVisibleColCount.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomGrid.GetVisibleGrid">
<short>
Gets a rectangle with the cell coordinates for the visible area in the grid.
</short>
<descr>
<p>
Gets a TRect instance with the cell coordinates for the visible area in the
grid control.
</p>
<p>
The visible grid area depends on the values in TopLeft, ClientWidth,
ClientHeight, ColCount and RowCount. The method is called immediately after
changing values in any of these properties. It provides the current values
needed when the grid cache is updated in the CacheVisibleGrid method.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.GetVisibleGrid.Result">
<short>
TRect with the cell coordinates for the visible area in the control.
</short>
</element>
<element name="TCustomGrid.GetVisibleRowCount">
<short>Gets the value for the VisibleRowCount property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.VisibleRowCount"/>
</seealso>
</element>
<element name="TCustomGrid.GetVisibleRowCount.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomGrid.InternalAutoFillColumns">
<short>
Performs actions needed to resize columns to fill the client area for the
grid control.
</short>
<descr>
<p>
<var>InternalAutoFillColumns</var> is a procedure used to resize one or more
columns to fill the client area for the grid control. No actions are
performed in the method if <var>AutoFillColumns</var> is set to <b>False</b>,
or when the method has already been called but has not yet been completed.
</p>
<p>
InternalAutoFillColumns calls <var>GetAutoFillColumnInfo</var> to accumulate
the fixed cell width, data width, and sizing priority for each of the
<var>Columns</var> defined in the grid. At least one of the cells in the grid
must have sizing priority; the last non-fixed column is expanded to fill the
client area in the grid when no other column has sizing priority.
</p>
<p>
InternalAutoFillColumns is called from the UpdateCachedSizes method.
</p>
</descr>
<seealso>
<link id="TCustomGrid.AutoFillColumns"/>
<link id="TCustomGrid.GetAutoFillColumnInfo"/>
<link id="TCustomGrid.UpdateCachedSizes"/>
</seealso>
</element>
<element name="TCustomGrid.InternalNeedBorder">
<short>Indicates if borders are needed to render the grid control.</short>
<descr/>
<seealso>
<link id="TCustomGrid.DrawBorder"/>
<link id="TCustomGrid.GetBorderWidth"/>
</seealso>
</element>
<element name="TCustomGrid.InternalNeedBorder.Result">
<short><b>True</b> when a border is drawn around the grid control.</short>
</element>
<element name="TCustomGrid.InternalSetColWidths">
<short>
Performs internal actions needed to set a column width to the specified value.
</short>
<descr/>
<seealso>
<link id="TCustomGrid.SetColWidths"/>
<link id="TCustomGrid.ColWidths"/>
</seealso>
</element>
<element name="TCustomGrid.InternalSetColWidths.aCol">
<short>Column number affected in the method.</short>
</element>
<element name="TCustomGrid.InternalSetColWidths.aValue">
<short>Width applied to the column.</short>
</element>
<element name="TCustomGrid.InternalUpdateColumnWidths">
<short>
Performs internal actions needed to update columns widths from the grid
Columns.
</short>
<descr>
Not used in the current implementation.
</descr>
<seealso/>
</element>
<element name="TCustomGrid.InvalidateMovement">
<short>
Invalidates the selection rectangle when a range Selection is expanded or
shrunk on the grid control.
</short>
<descr/>
<seealso>
<link id="TCustomGrid.Col"/>
<link id="TCustomGrid.Row"/>
<link id="TCustomGrid.Seleciton"/>
<link id="TCustomGrid.MoveExtend"/>
<link id="TCustomGrid.MoveNextSelectable"/>
<link id="TCustomGrid.MouseDown"/>
<link id="TCustomGrid.MouseUp"/>
<link id="TCustomGrid.MouseMove"/>
<link id="TCustomGrid.LoadContent"/>
</seealso>
</element>
<element name="TCustomGrid.InvalidateMovement.DCol">
<short>Destination column number with the end of the selection range.</short>
</element>
<element name="TCustomGrid.InvalidateMovement.DRow">
<short>Destination row number with the end of the selection range.</short>
</element>
<element name="TCustomGrid.InvalidateMovement.OldRange">
<short>Range selection rectangle on entry to the method.</short>
</element>
<element name="TCustomGrid.IsAltColorStored">
<short>
Indicates if AlternateColor has a value different than the Color for the grid
control.
</short>
<descr>
<p>
Used as the storage specifier for the AlternateColor property.
</p>
</descr>
<seealso>
<link id="TCustomGrid.AlternateColor"/>
</seealso>
</element>
<element name="TCustomGrid.IsAltColorStored.Result">
<short><b>True</b> when AlternateColor is different than Color.</short>
</element>
<element name="TCustomGrid.IsColumnsStored">
<short>Indicates if Columns has been enabled for the grid control.</short>
<descr>
<p>
Used as the storage specifier for the Columns property.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Columns"/>
</seealso>
</element>
<element name="TCustomGrid.IsColumnsStored.Result">
<short><b>True</b> when the Enabled in Columns is <b>True</b>.</short>
</element>
<element name="TCustomGrid.IsPushCellActive">
<short>Indicates if the pushed cell for the grid is visible.</short>
<descr/>
<seealso>
<link id="TCustomGrid.DrawRow"/>
<link id="TCustomGrid.MouseUp"/>
<link id="TCustomGrid.HeadersMouseMove"/>
<link id="TCustomGrid.GetGridDrawState"/>
</seealso>
</element>
<element name="TCustomGrid.IsPushCellActive.Result"/>
<element name="TCustomGrid.LoadColumns">
<short>
Loads column settings from the specified XML configuration file.
</short>
<descr/>
<seealso>
<link id="TCustomGrid.LoadContent"/>
</seealso>
</element>
<element name="TCustomGrid.LoadColumns.cfg">
<short>XML configuration file with values loaded in the method.</short>
</element>
<element name="TCustomGrid.LoadColumns.Version">
<short>Version number requested from the XML configuration.</short>
</element>
<element name="TCustomGrid.LoadResBitmapImage">
<short>
Loads a bitmap with the specified name from the resource file for the
control.
</short>
<descr>
Assumes the resource in ResName can be loaded using TPortableNetworkGraphic,
and assigned to the TBitmap return value.
</descr>
<seealso/>
</element>
<element name="TCustomGrid.LoadResBitmapImage.Result">
<short>TBitmap with the image loaded in the method.</short>
</element>
<element name="TCustomGrid.LoadResBitmapImage.ResName">
<short>Resource name loaded in the method.</short>
</element>
<element name="TCustomGrid.LoadSub">
<short>
Loads grid content from the specified XML configuration file.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.LoadSub.ACfg">
<short>XML configuration file with values loaded in the method.</short>
</element>
<element name="TCustomGrid.OnTitleFontChanged">
<short>
Event handler signalled when the font used for fixed title cells has been
changed.
</short>
<descr>
<p>
<var>OnTitleFontChanged</var> is a procedure which implements the event
handler signalled when the <var>TitleFont</var> for fixed cells has been
changed. OnTitleFontChanged is assigned to the <var>OnChange</var> event
handler in TitleFont in the constructor for the class instance.
</p>
<p>
OnTitleFontChanged sets the value in <var>TitleFontIsDefault</var> to
<b>False</b> to reflect the change in the font setting. When
<var>Columns</var> have been enabled (<var>VisibleCount</var> contains a
non-zero value), the <var>TitleFontChanged</var> method in Columns is called.
The <var>ColumnsChanged</var> method is called and causes the grid to be
updated. If Columns have not been enabled, the <var>VisualChange</var> method
is called to update the grid control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Create"/>
<link id="TCustomGrid.TitleFont"/>
<link id="TCustomGrid.Columns"/>
<link id="TCustomGrid.VisibleCount"/>
<link id="TCustomGrid.ColumnsChanged"/>
<link id="TCustomGrid.VisualChange"/>
<link id="TGridColumns.Enabled"/>
<link id="TGridColumns.TitleFontChanged"/>
</seealso>
</element>
<element name="TCustomGrid.OnTitleFontChanged.Sender">
<short>Object generating the event notification.</short>
</element>
<element name="TCustomGrid.ReadColumns">
<short>
Reads values for the Columns collection using the specified TReader class
instance.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.ReadColumns.Reader">
<short>TReader used to load values during LCL component streaming.</short>
</element>
<element name="TCustomGrid.ReadColWidths">
<short>
Reads the list of Integers in ColWidths using the specified TReader instance.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.ReadColWidths.Reader">
<short>TReader used to load values during LCL component streaming.</short>
</element>
<element name="TCustomGrid.ReadRowHeights">
<short>
Reads the list of Integers in RowHeights using the specified TReader instance.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.ReadRowHeights.Reader">
<short>TReader used to load values during LCL component streaming.</short>
</element>
<element name="TCustomGrid.ResetPushedCell">
<short>Resets cached grid information for the "pushed" cell.</short>
<descr>
<p>
<var>ResetPushedCell</var> refreshes cached information for the grid related
to the current <var>PushedCell</var>. It invalidates the cell at the position
in PushedCell when the cached values indicate it is "pushed". Resets
coordinates in PushedCell when <var>ResetColRow</var> is set to <b>True</b>.
Sets the ClickCellPushed member in the cached data to <b>False</b> prior to
exit.
</p>
<p>
ResetPushedCell is called from methods like <var>HeadersMouseMove</var> and
<var>MouseUp</var>. It is also called from the constructor for the
<var>TCustomGrid</var> instance.
</p>
</descr>
<seealso>
<link id="TCustomGrid.GCache"/>
<link id="TCustomGrid.Create"/>
<link id="TCustomGrid.HeadersMouseMove"/>
<link id="TCustomGrid.MouseUp"/>
<link id="TGridDataCache.PushedCell"/>
</seealso>
</element>
<element name="TCustomGrid.ResetPushedCell.ResetColRow">
<short>
<b>True</b> (the default value) if PushedCell is reset to an undefined column
and row (-1, -1).
</short>
</element>
<element name="TCustomGrid.RestoreCursor">
<short>
Restores the internal saved cursor for the grid, and resets CursorState to
its default value.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.SaveColumns">
<short>
Saves column configuration, layout, and appearance to an XML configuration
file.
</short>
<descr>
<p>
<var>SaveColumns</var> is a method used to store information about columns on
the grid to the specified XML configuration file. It stores information about
the configuration, layout, and appearance of Columns defined for the grid,
including:
</p>
<ul>
<li>Columns.Count</li>
<li>Columns.Enabled</li>
</ul>
<p>
Information about each of the TGridColumn instances in Columns are written to
the XML configuration file, and includes the following:
</p>
<ul>
<li>TGridColumn.Index</li>
<li>TGridColumn.Width</li>
<li>TGridColumn.MinSize</li>
<li>TGridColumn.MaxSize</li>
<li>TGridColumn.Alignment</li>
<li>TGridColumn.Layout</li>
<li>TGridColumn.ButtonStyle</li>
<li>TGridColumn.Color</li>
<li>TGridColumn.ValueChecked</li>
<li>TGridColumn.ValueUnChecked</li>
<li>TGridColumn.PickList</li>
<li>TGridColumn.SizePriority</li>
<li>TGridColumn.Font</li>
<li>TGridColumn.Title.Caption</li>
<li>TGridColumn.Title.Font</li>
<li>TGridColumn.Title.Alignment</li>
<li>TGridColumn.Title.Color</li>
<li>TGridColumn.Title.Layout</li>
</ul>
<p>
SaveColumns calls the DoSaveColumn method for each of the columns to signal
the OnSaveColumn event handler (when assigned).
</p>
<p>
SaveColumns is called from the SaveContent method, and occurs when soDesign
has been included in the SaveOptions for the control and the Columns
collection has been enabled.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Columns"/>
<link id="TCustomGrid.DoSaveColumn"/>
<link id="TCustomGrid.OnSaveColumn"/>
<link id="TCustomGrid.SaveContent"/>
<link id="TCustomGrid.SaveOptions"/>
<link id="TCGridColumn"/>
<link id="#lazutils.laz2_xmlcfg.TXMLConfig">TXMLConfig</link>
</seealso>
</element>
<element name="TCustomGrid.SaveColumns.cfg">
<short>XML configuration file where the values are written.</short>
</element>
<element name="TCustomGrid.SaveColumns.Version">
<short>
Version number for the storage format (tags, attributes) used in the XML
configuration file.
</short>
</element>
<element name="TCustomGrid.ScrollToCell">
<short>
Scrolls the grid until the cell at the specified location is visible.
</short>
<descr>
<p>
Calls TopLeftChanged (when needed) and VisualChange to cause the control to
be redrawn.
</p>
</descr>
<seealso>
<link id="TCustomGrid.TopLeftChanged"/>
<link id="TCustomGrid.VisualChange"/>
</seealso>
</element>
<element name="TCustomGrid.ScrollToCell.Result">
<short>
<b>True</b> if the origin cell (top, left) was changed after scrolling the
grid content.
</short>
</element>
<element name="TCustomGrid.ScrollToCell.aCol">
<short>
Column number for the cell to make visible in the display area for the
control.
</short>
</element>
<element name="TCustomGrid.ScrollToCell.aRow">
<short>
Row number for the cell to make visible in the display area for the
control.
</short>
</element>
<element name="TCustomGrid.ScrollToCell.ForceFullyVisible">
<short>
<b>True</b> to force the entire content for the cell to become visible.
<b>False</b> if the cell content can be partially visible.
</short>
</element>
<element name="TCustomGrid.ScrollGrid">
<short>
Scrolls the grid until the cell at the specified location is the new origin
for the control.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.ScrollGrid.Result"/>
<element name="TCustomGrid.ScrollGrid.Relative"/>
<element name="TCustomGrid.ScrollGrid.DCol"/>
<element name="TCustomGrid.ScrollGrid.DRow"/>
<element name="TCustomGrid.SetCol">
<short>Sets the value in the Col property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.Col"/>
</seealso>
</element>
<element name="TCustomGrid.SetCol.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomGrid.SetColWidths">
<short>Sets the value in the indexed ColWidths property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.ColWidths"/>
</seealso>
</element>
<element name="TCustomGrid.SetColWidths.ACol">
<short>Column number for the update width value.</short>
</element>
<element name="TCustomGrid.SetColWidths.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomGrid.SetColRowDragIndicatorColor">
<short>Sets the value for the ColRowDragIndicatorColor property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.ColRowDragIndicatorColor"/>
</seealso>
</element>
<element name="TCustomGrid.SetColRowDragIndicatorColor.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomGrid.SetDefColWidth">
<short>Sets the value for the DefColWidth property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.DefColWidth"/>
</seealso>
</element>
<element name="TCustomGrid.SetDefColWidth.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomGrid.SetDefRowHeight">
<short>Sets the value for the DefRowHeight property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.DefRowHeight"/>
</seealso>
</element>
<element name="TCustomGrid.SetDefRowHeight.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomGrid.SetDefaultDrawing">
<short>Sets the value for the DefaultDrawing property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.DefaultDrawing"/>
</seealso>
</element>
<element name="TCustomGrid.SetDefaultDrawing.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomGrid.SetEditor">
<short>Sets the value for the Editor property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.Editor"/>
</seealso>
</element>
<element name="TCustomGrid.SetEditor.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomGrid.SetFocusColor">
<short>Sets the value for the FocusColor property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.FocusColor"/>
</seealso>
</element>
<element name="TCustomGrid.SetFocusColor.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomGrid.SetGridLineColor">
<short>Sets the value for the GridLineColor property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.GridLineColor"/>
</seealso>
</element>
<element name="TCustomGrid.SetGridLineColor.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomGrid.SetFixedGridLineColor">
<short>Sets the value for the FixedGridLineColor property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.FixedGridLineColor"/>
</seealso>
</element>
<element name="TCustomGrid.SetFixedGridLineColor.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomGrid.SetGridLineStyle">
<short>Sets the value for the GridLineStyle property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.GridLineStyle"/>
</seealso>
</element>
<element name="TCustomGrid.SetGridLineStyle.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomGrid.SetGridLineWidth">
<short>Sets the value for the GridLineWidth property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.GridLineWidth"/>
</seealso>
</element>
<element name="TCustomGrid.SetGridLineWidth.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomGrid.SetLeftCol">
<short>Sets the value for the LeftCol property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.LeftCol"/>
</seealso>
</element>
<element name="TCustomGrid.SetLeftCol.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomGrid.SetOptions">
<short>Sets the value for the Options property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.Options"/>
</seealso>
</element>
<element name="TCustomGrid.SetOptions.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomGrid.SetOptions2">
<short>Sets the value for the Options2 property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.Options2"/>
</seealso>
</element>
<element name="TCustomGrid.SetOptions2.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomGrid.SetRangeSelectMode">
<short>Sets the value for the RangeSelectMode property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.RangeSelectMode"/>
</seealso>
</element>
<element name="TCustomGrid.SetRangeSelectMode.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomGrid.SetRow">
<short>Sets the value for the Row property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.Row"/>
</seealso>
</element>
<element name="TCustomGrid.SetRow.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomGrid.SetRowCount">
<short>Sets the value for the RowCount property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.RowCount"/>
</seealso>
</element>
<element name="TCustomGrid.SetRowCount.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomGrid.SetRowHeights">
<short>Sets the value in the indexed RowHeights property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.RowHeights"/>
</seealso>
</element>
<element name="TCustomGrid.SetRowHeights.ARow">
<short>Row number affected in the method.</short>
</element>
<element name="TCustomGrid.SetRowHeights.AValue">
<short>New value for the specified row number.</short>
</element>
<element name="TCustomGrid.SetScrollBars">
<short>Sets the value for the ScrollBars property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.ScrollBars"/>
</seealso>
</element>
<element name="TCustomGrid.SetScrollBars.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomGrid.SetSelectActive">
<short>Sets the value for the SelectActive property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.SelectActive"/>
</seealso>
</element>
<element name="TCustomGrid.SetSelectActive.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomGrid.SetSelection">
<short>Sets the value for the Selection property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.Selection"/>
</seealso>
</element>
<element name="TCustomGrid.SetSelection.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomGrid.SetSpecialCursor">
<short>
Sets the value for the indexed cursor states in the grid control.
</short>
<descr>
<p>
<var>SetSpecialCursor</var> is used as the write access specifier for the
<var>ColRowDraggingCursor</var>, <var>ColRowSizingCursor</var>, and
<var>RowSizingCursor</var> properties.
</p>
</descr>
<seealso>
<link id="TCustomGrid.ColRowDraggingCursor"/>
<link id="TCustomGrid.ColRowSizingCursor"/>
<link id="TCustomGrid.RowSizingCursor"/>
</seealso>
</element>
<element name="TCustomGrid.SetSpecialCursor.ACursorState">
<short>Cursor state located in the method.</short>
</element>
<element name="TCustomGrid.SetSpecialCursor.AValue">
<short>New value for the cursor state.</short>
</element>
<element name="TCustomGrid.SetTopRow">
<short>Sets the value for the TopRow property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.TopRow"/>
</seealso>
</element>
<element name="TCustomGrid.SetTopRow.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomGrid.StartColSizing">
<short>
Updates the grid to begin a column sizing operation for the specified cell.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.StartColSizing.Result"/>
<element name="TCustomGrid.StartColSizing.X"/>
<element name="TCustomGrid.StartColSizing.Y"/>
<element name="TCustomGrid.ChangeCursor">
<short>Changes the cursor shape to the specified value.</short>
<descr/>
<seealso>
<link id="TCustomGrid.SetCursor"/>
<link id="TCustomGrid.CursorState"/>
<link id="TCustomGrid.MouseMove"/>
<link id="TCustomGrid.MouseUp"/>
</seealso>
</element>
<element name="TCustomGrid.ChangeCursor.ACursor">
<short>Cursor shape applied in the method.</short>
</element>
<element name="TCustomGrid.ChangeCursor.ASaveCurrentCursor">
<short>
Indicates if the existing cursor shape is stored for later reuse.
</short>
</element>
<element name="TCustomGrid.TryScrollTo">
<short>
Attempts to scroll the grid until the specified coordinates are at the origin
for the grid control.
</short>
<descr>
<p>
Calls ScrollGrid to scroll the content until the cell at ACol and ARow is the
origin (top, left) for the visible area for the control. Calls TopLeftChanged
(when needed) and VisualChange to redraw the grid control.
</p>
<p>
TryScrollTo is called when the value in LeftCol or TopRow is changed. It is
also used in the implementation of the GridMouseWheel method.
</p>
</descr>
<seealso>
<link id="TCustomGrid.ScrollGrid"/>
<link id="TCustomGrid.Options"/>
<link id="TCustomGrid.TopLeftChanged"/>
<link id="TCustomGrid.VisualChange"/>
<link id="TGridOption"/>
<link id="TGridOptions"/>
</seealso>
</element>
<element name="TCustomGrid.TryScrollTo.aCol">
<short>Column number to become the first visible column on the grid.</short>
</element>
<element name="TCustomGrid.TryScrollTo.aRow">
<short>Row number to become the first visible row on the grid.</short>
</element>
<element name="TCustomGrid.UpdateCachedSizes">
<short>
Performs actions needed when the size for columns or rows are changed.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.UpdateSBVisibility">
<short>
Updates the visibility for horizontal and/or vertical scroll bars.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.UpdateSizes">
<short>
Updates cached information when visual aspects for columns or rows are
changed.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.WriteColumns">
<short>
Writes the Columns collection using the specified TWriter instance.
</short>
<descr>
<p>
A Nil collection is written using Writer when Column contains the default
column definitions (has not been modified at design-time or run-time).
</p>
<remark>
Not used in the current implementation of TCustomGrid.DefineProperties.
</remark>
</descr>
<seealso>
<link id="TCustomGrid.DefineProperties"/>
</seealso>
</element>
<element name="TCustomGrid.WriteColumns.Writer">
<short>TWriter instance used for the class.</short>
</element>
<element name="TCustomGrid.WriteColWidths">
<short>
Writes the list of Integers in ColWidths using the specified TWriter instance.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.WriteColWidths.Writer">
<short>TWriter instance used to write the values.</short>
</element>
<element name="TCustomGrid.WriteRowHeights">
<short>
Writes the list of Integers in RowHeights using the specified TWriter
instance.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.WriteRowHeights.Writer">
<short>TWriter instance used to write the values.</short>
</element>
<element name="TCustomGrid.WMEraseBkgnd">
<short>
Handles the Window Message used to erase the background for the control.
</short>
<descr>
<notes>
<note>Always returns 1 as the Message result.</note>
</notes>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.WMEraseBkgnd.message">
<short>Lazarus message applied in the method.</short>
</element>
<element name="TCustomGrid.WMGetDlgCode">
<short>
Handles the Window Message for Tab and Arrow keys in dialogs and custom
controls.
</short>
<descr>
Examines the Options property for the presence of the goTabs enumeration
value. When present, the DLGC_WANTTAB value is OR-ed to the result value in
Msg.
</descr>
<seealso>
<link id="TCustomGrid.Options"/>
<link id="TGridOption"/>
</seealso>
</element>
<element name="TCustomGrid.WMGetDlgCode.Msg">
<short>Lazarus message processed in the method.</short>
</element>
<!-- protected -->
<element name="TCustomGrid.fGridState">
<short>
Member with the current state for the grid (edited, updated, etc.).
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.RTLSign">
<short>
Gets the positive or negative multiplier used to adjust scroll values for
BiDi mode.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.RTLSign.Result">
<short>
The return value is 1 for all BiDiMode values except bdRightToLeft; it causes
-1 to be returned.
</short>
</element>
<element name="TCustomGrid.WSRegisterClass"
link="#lcl.lclclasses.TLCLComponent.WSRegisterClass"/>
<element name="TCustomGrid.AddSelectedRange">
<short>
Adds the current range selection to the array of selection rectangles for the
control.
</short>
<descr>
<p>
<var>AddSelectedRange</var> is a method used to add the rectangle for the
current range selection to the internal member used to store the selection
rectangle(s). It increases the capacity for the member and appends the value
for the current selection rectangle.
</p>
<p>
No actions are performed in the method if <var>goRangeSelect</var> has not
been included in the <var>Options</var> property, or when
<var>RangeSelectMode</var> has a value other than <var>rsmMulti</var>.
</p>
<p>
Use ClearSelections to remove range selection rectangle(s) stored using
AddSelectedRange.
</p>
<p>
AddSelectedRange is called from MouseDown when a Ctrl+Click or Meta+Click
(macOS) mouse event occurs in the data area for the grid and range selection
has been enabled for the control. Precautions have been taken in the calling
procedure to avoid adding the same cells to more than one selection range.
There are some combinations of user commands, however, where this cannot be
eliminated completely.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Options"/>
<link id="TCustomGrid.RangeSelectMode"/>
<link id="TCustomGrid.HasMultiSelection"/>
<link id="TCustomGrid.ClearSelections"/>
<link id="TCustomGrid.MouseDown"/>
<link id="TGridOptions"/>
<link id="TGridOption"/>
</seealso>
</element>
<element name="TCustomGrid.AdjustClientRect">
<short>
Adjusts the client rectangle and sets a grid flag to reflect the change.
</short>
<descr>
<p>
<var>AdjustClientRect</var> is an overridden method used to adjust the client
rectangle for the control, and set the grid flag to reflect the change. It
calls the inherited method on entry. AdjustClientRect updates the
<var>GridFlags</var> property to included the value
<var>gfClientRectChange</var>.
</p>
<p>
The method does not perform any real actions other than setting the flag
value in GridFlags. gfClientRectChange indicates that the cached sizes for
grid Columns needs to be recalculated for the visible area before the grid
control is drawn.
</p>
</descr>
<seealso>
<link id="TCustomGrid.GridFlags"/>
<link id="TCustomGrid.Paint"/>
<link id="TGridFlagsOption"/>
<link id="#lcl.controls.TWinControl.AdjustClientRect">TWinControl.AdjustClientRect</link>
</seealso>
</element>
<element name="TCustomGrid.AdjustClientRect.ARect">
<short>Client rectangle adjusted in the method.</short>
</element>
<element name="TCustomGrid.AdjustEditorBounds">
<short>
Updates the selected cell and sets the bounds for the optional cell Editor.
</short>
<descr>
<p>
Calls <var>SetColRow</var> to update the values in the <var>Col</var> and
<var>Row</var> properties. Values in <var>NewCol</var> and <var>NewRow</var>
are stored in the corresponding property.
</p>
<p>
When <var>EditorMode</var> is set to <b>True</b>, the private
<var>EditorPos</var> method is called to position the <var>Editor</var> to
the new cell selection.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Col"/>
<link id="TCustomGrid.Row"/>
<link id="TCustomGrid.Editor"/>
<link id="TCustomGrid.EditorMode"/>
<link id="TCustomGrid.SetColRow"/>
</seealso>
</element>
<element name="TCustomGrid.AdjustEditorBounds.NewCol">
<short>Column number for the current cell selection in the grid.</short>
</element>
<element name="TCustomGrid.AdjustEditorBounds.NewRow">
<short>Row number for the current cell selection in the grid.</short>
</element>
<element name="TCustomGrid.AfterMoveSelection">
<short>Signals the OnAfterSelection event handler.</short>
<descr>
<p>
<var>AfterMoveSelection</var> is a procedure used to signal the
<var>OnAfterSelection</var> event handler when has been assigned (does not
contain <b>Nil</b>). Values in <var>prevCol</var> and <var>prevRow</var> are
passed as arguments to the OnAfterSelection event handler.
</p>
<p>
AfterMoveSelection is called from the <var>MoveExtend</var> method when the
move operation has been completed.
</p>
</descr>
<seealso>
<link id="TCustomGrid.OnAfterSelection"/>
<link id="TCustomGrid.MoveExtend"/>
</seealso>
</element>
<element name="TCustomGrid.AfterMoveSelection.prevCol">
<short>Column number for the selection before it was moved.</short>
</element>
<element name="TCustomGrid.AfterMoveSelection.prevRow">
<short>Row number for the selection before it was moved.</short>
</element>
<element name="TCustomGrid.AssignTo">
<short>
Stores properties from the current grid class instance to the specified
target.
</short>
<descr>
<p>
AssignTo is an overridden method used to store values from the current class
instance to the persistent object specified in Dest. AssignTo is overridden
to provide support for TCustomGrid properties in the object persistence
mechanism.
</p>
<p>
When Dest is a TCustomGrid descendant, the following properties are copied
from the current class instance to the target:
</p>
<p>
<b>Structure</b>
</p>
<ul>
<li>Columns (When Columns has been Enabled)</li>
<li>ColCount (When Columns has not been Enabled)</li>
<li>RowCount</li>
<li>FixedCols</li>
<li>FixedRows</li>
<li>
DefaultRowHeight (when it contains a value other than the default)
</li>
<li>
DefaultColWidth (when it contains a value other than the default)
</li>
<li>The internal Rows list</li>
<li>The internal Cols list (when Columns has not been enabled)</li>
</ul>
<p>
<b>Display Settings</b>
</p>
<ul>
<li>Options</li>
<li>Color</li>
<li>FixedColor</li>
<li>AlternateColor</li>
<li>Font</li>
<li>TitleFont</li>
</ul>
<p>
<b>Position and Selection</b>
</p>
<ul>
<li>TopRow</li>
<li>LeftCol</li>
<li>Col</li>
<li>Row</li>
<li>Current selection range for the grid</li>
</ul>
<p>
When Dest is not a TCustomGrid descendant, the inherited AssignTo method is
called using Dest as an argument.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TControl.AssignTo">TControl.AssignTo</link>
</seealso>
</element>
<element name="TCustomGrid.AssignTo.Dest">
<short>Grid instance where value are stored.</short>
</element>
<element name="TCustomGrid.AutoAdjustColumn">
<short>
Adjusts column properties to accommodate the largest value in the specified
column.
</short>
<descr>
<p>
<var>AutoAdjustColumn</var> is called from the <var>DblClick</var> method
when the values <var>goColSizing</var> and <var>goDblClickAutoSize</var> have
been included in the <var>Options</var> property.
</p>
<p>
<var>AutoAdjustColumn</var> has an empty implementation in
<var>TCustomGrid</var>, and must be overridden in a descendent class like
TCustomStringGrid.
</p>
<p>
AutoAdjustColumn is called from the AutoAdjustColumns method. It also occurs
when the mouse is double-clicked on the cell header and column auto-sizing
(goColSizing) has been enabled in the Options for the grid control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Options"/>
<link id="TCustomGrid.DblClick"/>
<link id="TCustomGrid.AutoAdjustColumns"/>
<link id="TCustomStringGrid.AutoAdjustColumn"/>
<link id="TGridOptions"/>
</seealso>
</element>
<element name="TCustomGrid.AutoAdjustColumn.aCol">
<short>Column number adjusted in the method.</short>
</element>
<element name="TCustomGrid.BeforeMoveSelection">
<short>Performs actions needed before a selection is moved.</short>
<descr>
<p>
<var>BeforeMoveSelection</var> is called from the <var>MoveExtend</var>
method whenever the current grid cursor location is about to change. The
destination column and row are specified in the <var>DCol</var> and
<var>DRow</var> parameters respectively.
</p>
<p>
The new location is known to be a valid selectable cell (see <link
id="TCustomGrid.SelectCell"/>), and is given in absolute cell coordinates. At
this point the current grid location has not changed and can be retrieved
with Col and Row properties.
</p>
<p>
The purpose of this method is to call the <var>OnBeforeSelection</var> event
handler.
</p>
</descr>
<seealso>
<link id="TCustomGrid.MoveExtend"/>
<link id="TCustomGrid.SelectCell"/>
<link id="TCustomDrawGrid.OnBeforeSelection"/>
</seealso>
</element>
<element name="TCustomGrid.BeforeMoveSelection.DCol">
<short>
Column number where the selection will be stored.
</short>
</element>
<element name="TCustomGrid.BeforeMoveSelection.DRow">
<short>
Row number where the selection will be stored.
</short>
</element>
<element name="TCustomGrid.BeginAutoDrag">
<short>Starts an auto-drag operation in the grid control.</short>
<descr>
<p>
<var>BeginAutoDrag</var> is an overridden procedure used to start an
auto-dragging operation. Auto-dragging is in effect when <var>DragMode</var>
contains the value <var>dmAutomatic</var>.
</p>
<p>
BeginAutoDrag examines the <var>Options</var> property to determine if column
sizing (<var>goColSizing</var>) or row sizing (<var>goRowSizing</var>) have
been enabled for the grid control. In addition, the <var>CursorState</var>
property must contain a value that represents the action
(<var>gcsColWidthChanging</var> or <var>gcsRowHeightChanging</var>). If
either condition is not met, <var>BeginDrag</var> is called using
<b>False</b> as an argument.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Options"/>
<link id="TCustomGrid.CursorState"/>
<link id="TGridOption"/>
<link id="TGridCursorState"/>
</seealso>
</element>
<element name="TCustomGrid.BoxRect">
<short>
Gets the rectangle for the box around the cell at the given coordinates.
</short>
<descr>
<p>
Not used in the current implementation.
</p>
</descr>
<seealso/>
<notes>
<note>Not currently used in the grid implementation.</note>
</notes>
</element>
<element name="TCustomGrid.BoxRect.Result"/>
<element name="TCustomGrid.BoxRect.ALeft"/>
<element name="TCustomGrid.BoxRect.ATop"/>
<element name="TCustomGrid.BoxRect.ARight"/>
<element name="TCustomGrid.BoxRect.ABottom"/>
<element name="TCustomGrid.CacheMouseDown">
<short>
Updates cached grid information when a mouse click occurs in the grid control.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.CacheMouseDown.X">
<short>Horizontal screen coordinate for the mouse click.</short>
</element>
<element name="TCustomGrid.CacheMouseDown.Y">
<short>Vertical screen coordinate for the mouse click.</short>
</element>
<element name="TCustomGrid.CalcAutoSizeColumn">
<short>
Calculates the size for an auto-sized column at the specified position.
</short>
<descr>
<p>
<var>CalcAutoSizeColumn</var> sets the value for the <var>aPriority</var>
argument to 0 (zero). Other parameters values are not modified.
</p>
<remark>
CalcAutoSizeColumn is not used in the current LCL implementation.
</remark>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.CalcAutoSizeColumn.Index">
<short>
Position for the column definition in Columns.
</short>
</element>
<element name="TCustomGrid.CalcAutoSizeColumn.AMin">
<short>
Returns the minimum width for the column.
</short>
</element>
<element name="TCustomGrid.CalcAutoSizeColumn.AMax">
<short>
Returns the maximum width for the column.
</short>
</element>
<element name="TCustomGrid.CalcAutoSizeColumn.APriority">
<short>
Sizing priority for the column. Higher values are given preference.
</short>
</element>
<element name="TCustomGrid.CalcCellExtent">
<short>Deprecated.</short>
<descr>
<p>
This is a remnant from earlier LCL versions. Its has an empty implementation
in the current LCL version.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.CalcCellExtent.aCol"/>
<element name="TCustomGrid.CalcCellExtent.aRow"/>
<element name="TCustomGrid.CalcCellExtent.aRect"/>
<element name="TCustomGrid.CalcFocusRect">
<short>
Calculates the bounds for a focus rectangle in the grid control.
</short>
<descr>
<p>
When row selection is enabled in the grid <var>Options</var>, the
<var>Left</var> and <var>Right</var> values in <var>ARect</var> are updated
to use cached grid information in <var>GCache</var>. Calls
<var>FlipRect</var> to account for Right-to-Left alignment when needed.
</p>
<p>
<var>Adjust</var> indicates whether values in ARect are adjusted for
horizontal or vertical grid lines drawn in the control. No additional actions
are performed when Adjust is set to <b>False</b>. The default value for the
parameter is <b>True</b>.
</p>
<p>
When <var>goHorzLine</var> is included in Options, the Bottom value in ARect
is decremented to accommodate the horizontal grid line.
</p>
<p>
When <var>goVertLine</var> is included in Options, the Left or Right value in
ARect is adjusted to accommodate the vertical grid line. Left is incremented
when <var>UseRightToLeftAlignment</var> is set to <b>True</b>. Right is
decremented when UseRightToLeftAlignment is set to <b>False</b>.
</p>
<p>
CalcFocusRect is called from the <var>DrawRow</var> and
<var>DrawFocusRect</var> methods.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Options"/>
<link id="TCustomGrid.DrawRow"/>
<link id="TCustomGrid.DrawFocusRect"/>
<link id="TCustomGrid.GCache"/>
<link id="TCustomGrid.FlipRect"/>
<link id="TGridFlagsOption"/>
<link id="#lcl.controls.TControl.UseRightToLeftAlignment">TControl.UseRightToLeftAlignment</link>
</seealso>
</element>
<element name="TCustomGrid.CalcFocusRect.ARect">
<short>
TRect instance where the adjusted row or cell selection is stored.
</short>
</element>
<element name="TCustomGrid.CalcMaxTopLeft">
<short>
Updates cached grid information for the visible area and scroll bars in the
control.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.CalcScrollbarsRange">
<short>
Updates the range, page, and thumb position for visible scroll bars.
</short>
<descr>
<p>
<var>CalcScrollbarsRange</var> is a procedure used to update the range, page,
and thumb position for visible scroll bars in the grid control.
CalcScrollbarsRange accesses the cached grid data in <var>GCache</var> to
calculate values needed in the method. The visibility for both horizontal and
vertical scroll bars is determined, and the range, page and thumb position is
applied in the <var>UpdateHorzScrollBar</var> and
<var>UpdateVertScrollbar</var> methods.
</p>
<p>
CalcScrollbarsRange is used in the implementation of the <var>ScrollBy</var>
and <var>UpdateSizes</var> methods in TCustomGrid.
</p>
</descr>
<seealso>
<link id="TCustomGrid.GCache"/>
<link id="TCustomGrid.GetSBRanges"/>
<link id="TCustomGrid.UpdateHorzScrollBar"/>
<link id="TCustomGrid.UpdateVertScrollBar"/>
<link id="TCustomGrid.ScrollBy"/>
</seealso>
</element>
<element name="TCustomGrid.CalculatePreferredSize">
<short>Gets the preferred width and height for the control.</short>
<descr>
<p>
Always returns 0 (zero) in the PreferredWidth and PreferredHeight variable
arguments.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TWinControl.CalculatePreferredSize">TWinControl.CalculatePreferredSize</link>
</seealso>
</element>
<element name="TCustomGrid.CalculatePreferredSize.PreferredWidth">
<short>
Preferred width for a new instance of the class.
</short>
</element>
<element name="TCustomGrid.CalculatePreferredSize.PreferredHeight">
<short>
Preferred height for a new instance of the class.
</short>
</element>
<element name="TCustomGrid.CalculatePreferredSize.WithThemeSpace">
<short>
Not used in the current implementation.
</short>
</element>
<element name="TCustomGrid.CanEditShow">
<short>
Indicates whether the cell editor can be displayed and focused in the current
column.
</short>
<descr>
<p>
<var>CanEditShow</var> is a <var>Boolean</var> function which Indicates
whether the cell <var>Editor</var> can be displayed and focused in the
current grid column. The return value is <b>False</b> at design-time. The
return value is <b>True</b> if <var>Options</var> includes the value
<var>goEditing</var>, and the column number in <var>Col</var> is valid and
not in a fixed row.
</p>
<p>
When <var>Columns</var> have been Enabled in the grid control, the return
value is set to <b>False</b> when the column is marked as ReadOnly in the
column definition.
</p>
<p>
CanEditShow is called from the <var>EditorShow</var> method.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Columns"/>
<link id="TCustomGrid.Editor"/>
<link id="TCustomGrid.EditorShow"/>
<link id="TGridColumns.Enabled"/>
<link id="TGridColumn.ReadOnly"/>
</seealso>
</element>
<element name="TCustomGrid.CanEditShow.Result">
<short>
<b>True</b> at run-time when the column allows focus and editing.
</short>
</element>
<element name="TCustomGrid.CanGridAcceptKey">
<short>
Returns <b>True</b> if the grid is able to accept the given key.
</short>
<descr>
<p>
Always returns <b>True</b> in <var>TCustomGrid</var>.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.CanGridAcceptKey.Result">
<short><b>True</b> if the grid is able to accept the given key.</short>
</element>
<element name="TCustomGrid.CanGridAcceptKey.Key">
<short>Not used in the current implementation.</short>
</element>
<element name="TCustomGrid.CanGridAcceptKey.Shift">
<short>Not used in the current implementation.</short>
</element>
<element name="TCustomGrid.CellClick">
<short>Processes a mouse click in the cell at the given coordinates.</short>
<descr>
<p>
<var>CellClick</var> is a virtual method with an empty implementation in
<var>TCustomGrid</var>. It is overridden in descendent classes, like
TCustomDrawGrid, to perform action needed in the implementation.
</p>
<p>
CellClick is called from the MouseUp method when a mouse click event occurs
in the data area (non-fixed cells) for the grid control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.MouseUp"/>
<link id="TCustomDrawGrid.CellClick"/>
</seealso>
</element>
<element name="TCustomGrid.CellClick.aCol">
<short>Column number for the click event.</short>
</element>
<element name="TCustomGrid.CellClick.aRow">
<short>Row number for the click event.</short>
</element>
<element name="TCustomGrid.CellExtent">
<short>
Gets the last column number for the cell extent at the specified column and
row.
</short>
<descr>
<p>
<var>CellExtent</var> gets the extent rectangle for the cell at the
coordinated in <var>ACol</var> and <var>ARow</var>. The rectangle bounds in
<var>R</var> are updated by calling the <var>CalcCellExtent</var> method.
</p>
<p>
<var>exCol</var> is updated in the method to reflect the last visible column
in the cached grid information for the cell extent. The
<var>ColRowToOffset</var> method is iteratively called until the extent
exceeds the cached right-most column for the visible area in the grid.
</p>
<p>
CellExtent is called from the <var>DrawRow</var> method when column spanning
is enabled in the <var>Options</var> for the grid control.
</p>
<remark>
The current implementation does not account for BIDI mode or Right-to-Left
usage.
</remark>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.CellExtent.aCol">
<short>Column number for the cell extent.</short>
</element>
<element name="TCustomGrid.CellExtent.aRow">
<short>Row number for the cell extent.</short>
</element>
<element name="TCustomGrid.CellExtent.R">
<short>TRect with the bounds for the cell extent.</short>
</element>
<element name="TCustomGrid.CellExtent.exCol">
<short>Last usable column number for the cell extent.</short>
</element>
<element name="TCustomGrid.CheckLimits">
<short>Checks column and row limits for the specified cell.</short>
<descr>
<p>
<var>CheckLimits</var> is a procedure used to constrain the specified cell
coordinates to the valid values for grid control.
</p>
<p>
<var>ACol</var> and <var>ARow</var> contain the column and row numbers for a
cell in the grid control. CheckLimits ensures that the values represent a
valid, non-fixed cell in the grid control.
</p>
<p>
ACol must contain a value in the range <b>0..ColCount-1</b>, and cannot be a
fixed column in the grid. The value in <var>FixedCols</var> is assigned to
ACol if it is less than the value in FixedCols.<b> ColCount-1</b> is assigned
to ACol when it is larger than the upper limit.
</p>
<p>
<var>ARow</var> must contain a value in the range <b>0..RowCount-1</b>, and
cannot be a fixed row in the grid. The value in <var>FixedRows</var> is
assigned to ARow if it is less than the value in FixedRows. <b>RowCount-1</b>
is assigned to ARow when it is larger than the upper limit.
</p>
<p>
<var>CheckLimitsWithError</var> is used when an exception is required for
invalid cell coordinates.
</p>
<p>
CheckLimits is used in the implementation of methods like
<var>MoveNextSelectable</var> and <var>TryMoveSelection</var>.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.CheckLimits.aCol">
<short>Column number examined in the method.</short>
</element>
<element name="TCustomGrid.CheckLimits.aRow">
<short>Row number examined in the method.</short>
</element>
<element name="TCustomGrid.CheckLimitsWithError">
<short>
Checks column and row limits for the specified cell, with error trapping.
</short>
<descr>
<p>
<var>CheckLimitsWithError</var> is a procedure used to ensure that the
specified cell coordinates are valid values for grid control.
</p>
<p>
<var>ACol</var> and <var>ARow</var> contain the column and row numbers for a
cell in the grid control. CheckLimitsWithError ensures that the values
represent a valid, non-fixed cell in the grid control. ACol must contain a
value in the range <b>0..ColCount-1</b>, and cannot be a fixed column in the
grid. ARow must contain a value in the range <b>0..RowCount-1</b>, and cannot
be a fixed row in the grid.
</p>
<p>
CheckLimitsWithError calls IsColumnIndexValid and IsRowIndexValid to
determine whether the corresponding values are valid. If either method
returns <b>False</b>, an EGridException is raised.
</p>
<p>
<var>CheckLimits</var> is used when cell coordinates must be constrained to
the values that are valid for the control.
</p>
<p>
CheckLimitsWithError is used in the implementation of methods like SetCol,
SetRow, and SetQuickColRow when AllowOutboundEvents is not enabled.
</p>
</descr>
<errors>
Raises an EGridException exception with the message in rsGridIndexOutOfRange
when a column or row number is out of range for the control.
</errors>
<seealso/>
</element>
<element name="TCustomGrid.CheckLimitsWithError.aCol">
<short>Column number examined in the method.</short>
</element>
<element name="TCustomGrid.CheckLimitsWithError.aRow">
<short>Row number examined in the method.</short>
</element>
<element name="TCustomGrid.CMBiDiModeChanged">
<short>
Handles the CM_BIDIMODECHANGED control message for the grid control.
</short>
<descr>
<p>
Calls <var>VisualChange</var> to update column sizes and redraw the control,
and calls the inherited method to notify child controls of the new BidiMode
value.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.CMMouseEnter">
<short>
Handles the control message posted when the mouse enters a cell in the grid.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.CMMouseEnter.Message">
<short>Message handled in the method.</short>
</element>
<element name="TCustomGrid.CMMouseLeave">
<short>
Handles the control message posted when a mouse leaves a cell.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.CMMouseLeave.Message">
<short>Message handled in the method.</short>
</element>
<element name="TCustomGrid.ColRowDeleted">
<short>
Performs actions when a column or a row is deleted from the control.
</short>
<descr>
<p>
<var>ColRowDeleted</var> has an empty implementation in
<var>TCustomGrid</var>. It is overridden in descendent classes to remove the
affected cells and perform notifications.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.ColRowDeleted"/>
</seealso>
</element>
<element name="TCustomGrid.ColRowDeleted.IsColumn">
<short><b>True</b> to remove a column, <b>False</b> to remove a Row.</short>
</element>
<element name="TCustomGrid.ColRowDeleted.Index">
<short>Ordinal position for the column or row removed in the method.</short>
</element>
<element name="TCustomGrid.ColRowExchanged">
<short>
Performs a notification when column or row data at the specified positions
are exchanged in the grid control.
</short>
<descr>
<p>
<var>ColRowExchanged</var> has an empty implementation in
<var>TCustomGrid</var>. It is implemented in descendent classes like
<var>TCustomDrawGrid</var> to update the content in the grid and signal the
<var>OnColRowExchanged</var> event handler (when assigned).
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.ColRowExchanged.IsColumn">
<short>
<b>True</b> if columns are affected in the method. <b>False</b> if rows are
affected.
</short>
</element>
<element name="TCustomGrid.ColRowExchanged.Index">
<short>Position for the initial column or row exchanged in the method.</short>
</element>
<element name="TCustomGrid.ColRowExchanged.WithIndex">
<short>Position for the other column or row exchanged in the method.</short>
</element>
<element name="TCustomGrid.ColRowInserted">
<short>
Performs actions needed when column or row data is inserted into the grid
control.
</short>
<descr>
<p>
<var>ColRowInserted</var> is a virtual method in TCustomGrid used to perform
actions needed when a column or row is inserted into a grid control. The
implementation is empty in TCustomGrid, and must be overridden in descendent
classes.
</p>
<p>
The method is called from DoOPInsertColRow and occurs after the Columns
definitions for the grid have been updated (when needed and enabled). It
occurs before VisualChange is called or the bounds for an editor control are
adjusted.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Columns"/>
<link id="TCustomGrid.DoOPInsertColRow"/>
<link id="TCustomDrawGrid.ColRowInserted"/>
<link id="TCustomDrawGrid.OnColRowInserted"/>
</seealso>
</element>
<element name="TCustomGrid.ColRowInserted.IsColumn">
<short>
<b>True</b> if the operation inserted a column. <b>False</b> when a row was
inserted.
</short>
</element>
<element name="TCustomGrid.ColRowInserted.Index">
<short>
Ordinal position for the column or row inserted into the grid control.
</short>
</element>
<element name="TCustomGrid.ColRowMoved">
<short>
Performs actions when a column or row is moved in the grid.
</short>
<descr>
<p>
<var>ColRowMoved</var> is virtual method in <var>TCustomGrid</var> used to
perform actions when a column or a row is moved in the grid control. It has
an empty implementation, must be overridden in a descendent class.
</p>
<p>
ColRowMoved is called from the DoOPMoveColRow method, and occurs after
Columns has been updated (when needed and enabled). It occurs before
VisualChange is called or the bounds for an editor control are adjusted.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.ColRowMoved"/>
<link id="TCustomDrawGrid.OnColRowMoved"/>
</seealso>
</element>
<element name="TCustomGrid.ColRowMoved.IsColumn">
<short>
<b>True</b> if the specified index values refer to a column positions.
<b>False</b> when they refer to row positions.
</short>
</element>
<element name="TCustomGrid.ColRowMoved.FromIndex">
<short>
Ordinal position for the column or row moved in the grid control.
</short>
</element>
<element name="TCustomGrid.ColRowMoved.ToIndex">
<short>
New ordinal position for the column or row after it has been moved in the
grid control.
</short>
</element>
<element name="TCustomGrid.ColRowToOffset">
<short>
Converts a column or row index to starting and ending pixels coordinates.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.ColRowToOffset.Result">
<short><b>True</b> if a column or row exists for the specified index.</short>
</element>
<element name="TCustomGrid.ColRowToOffset.IsCol">
<short>
<b>True</b> when the index is for a column in the grid, <b>False</b> for a
row.
</short>
</element>
<element name="TCustomGrid.ColRowToOffset.Index">
<short>Ordinal position for the column or row.</short>
</element>
<element name="TCustomGrid.ColRowToOffset.StartPos">
<short>Position where the column or row starts (pixel).</short>
</element>
<element name="TCustomGrid.ColRowToOffset.EndPos">
<short>Position where the column or row ends (pixel).</short>
</element>
<element name="TCustomGrid.ColumnIndexFromGridColumn">
<short>
Gets the position of the specified column relative to the first column in the
grid.
</short>
<descr>
<p>
<var>ColumnIndexFromGridColumn</var> is an Integer function used to get the
position of the specified column relative to the first column in the grid.
The return value contains the difference between <var>Column</var> and
<var>FirstGridColumn</var> when <var>Columns</var> have been enabled in the
grid control. <var>RealIndex</var> is called to translate the position used
in the return value. If <var>Columns</var> have not been enabled, the return
value is <b>-1</b>.
</p>
<p>
ColumnIndexFromGridColumn is used in the implementation of TCustomGrid
methods like:
</p>
<ul>
<li>ColumnFromGridColumn</li>
<li>DoOPExchangeColRow</li>
<li>DoOPInsertColRow</li>
<li>DoOPMoveColRow</li>
<li>DoOPDeleteColRow</li>
</ul>
</descr>
<seealso>
<link id="TCustomGrid.ColumnFromGridColumn"/>
<link id="TCustomGrid.DoOPExchangeColRow"/>
<link id="TCustomGrid.DoOPInsertColRow"/>
<link id="TCustomGrid.DoOPMoveColRow"/>
<link id="TCustomGrid.DoOPDeleteColRow"/>
</seealso>
</element>
<element name="TCustomGrid.ColumnIndexFromGridColumn.Result">
<short>Relative position for the specified column.</short>
</element>
<element name="TCustomGrid.ColumnIndexFromGridColumn.Column">
<short>Column number to locate in the grid.</short>
</element>
<element name="TCustomGrid.ColumnFromGridColumn">
<short>
Returns the grid column definition at the specified position in Columns.
</short>
<descr>
<p>
ColumnFromGridColumn calls ColumnIndexFromGridColumn to convert the relative
column number in Column to its ordinal position in the Columns property. It
is relative because it refers to the n-th column which is not fixed and is
both enabled and visible.
</p>
<p>
The return value contains the TGridColumn instance in Columns where the
Column number was located. The return value is Nil if Column is not a valid
relative column number, is not enabled, or is a fixed column on the grid
control.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.ColumnFromGridColumn.Result">
<short>
TGridColumn instance at the specified position, or Nil when Column is not a
valid or enabled in the grid control.
</short>
</element>
<element name="TCustomGrid.ColumnFromGridColumn.Column">
<short>
Position in the visible and enabled non-fixed columns for the grid control.
</short>
</element>
<element name="TCustomGrid.ColumnsChanged">
<short>
Performs actions needed when one or more columns in the grid are changed.
</short>
<descr>
<p>
<var>ColumnsChanged</var> is procedure used to perform actions needed when
one or more <var>Columns</var> in the grid are changed. <var>AColumn</var>
contains the column affected by the change, or signals a change to multiple
columns when its value is unassigned (contains <b>Nil</b>).
</p>
<p>
When AColumn is Nil, the row or column count and/or fixed row or fixed column
count has been changed. When AColumn contains a valid <var>TGridColumn</var>
instance, the modified column is located in the Columns collection and the
<var>VisualChange</var> method is called.
</p>
<p>
ColumnsChanged is called from methods like: <var>SetFixedCols</var>,
<var>SetRowCount</var>, and <var>OnTitleFontChanged</var>. It is also called
when the <var>Update</var> method in Columns is called for the
<var>TGridColumns</var> collection.
</p>
</descr>
<seealso>
<link id="TCustomGrid.FixedCols"/>
<link id="TCustomGrid.RowCount"/>
<link id="TCustomGrid.Columns"/>
<link id="TGridColumns"/>
<link id="TGridColumn"/>
</seealso>
</element>
<element name="TCustomGrid.ColumnsChanged.aColumn">
<short>Grid column instance for the notification, or Nil.</short>
</element>
<element name="TCustomGrid.ColWidthsChanged">
<short>
Performs actions needed when the widths for grid columns have been changed.
</short>
<descr>
<p>
<var>ColWidthsChanged</var> has an empty implementation in TCustomGrid. It is
not currently used in any descendent classes in the LCL. It can be overridden
in custom controls to perform any actions needed when one or more of the
column widths has been changed. One common use is to invalidate the grid
control and cause it to be redrawn.
</p>
<p>
ColWidthsChanged is called when a new value is specified for the indexed
ColWidths property and Columns have been enabled for the control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.ColWidths"/>
<link id="TCustomGrid.DefaultColWidth"/>
<link id="TCustomGrid.Columns"/>
</seealso>
</element>
<element name="TCustomGrid.CreateColumns">
<short>
Allocates and configures resources for the Columns collection.
</short>
<descr>
<p>
<var>CreateColumns</var> is a <var>TGridColumns</var> function used create a
new <var>TGridColumns</var> instance for the grid control.
<var>TGridColumn</var> is the class type used for items stored in the
collection.
</p>
<p>
CreateColumns is called from the <var>Create</var> constructor, and the
return value is assigned to the member used for the <var>Columns</var>
property.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Create"/>
<link id="TCustomGrid.Columns"/>
<link id="TGridColumns"/>
<link id="TGridColumn"/>
</seealso>
</element>
<element name="TCustomGrid.CreateColumns.Result">
<short>TGridColumns instance created in the method.</short>
</element>
<element name="TCustomGrid.CheckNewCachedSizes">
<short>
Checks the values for cached column sizes when they have been reset in the
grid.
</short>
<descr>
<p>
<var>CheckNewCachedSizes</var> has an empty implementation in
<var>TCustomGrid</var>.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.CheckNewCachedSizes.AGCache">
<short>
Grid cache examined in the method.
</short>
</element>
<element name="TCustomGrid.CreateWnd">
<short>
Creates and configures the widgetset handle for the grid control.
</short>
<descr>
<p>
<var>CreateWnd</var> is an overridden method in <var>TCustomGrid</var>. It
calls the inherited method to allocate the <var>Handle</var> for the
widgetset class.
</p>
<p>
CreateWnd ensures that internal flags used for horizontal and vertical scroll
bar visibility are updated to reflect the states for the control Handle. The
<var>CheckPosition</var> method is called to determine the cell selection in
the grid. <var>VisualChange</var> is called to refresh the visible area and
scroll bars in the control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.CheckPosition"/>
<link id="TCustomGrid.VisualChange"/>
<link id="#lcl.controls.TWinControl.CreateWnd">TWinControl.CreateWnd</link>
<link id="#lcl.controls.TWinControl.Handle">TWinControl.Handle</link>
</seealso>
</element>
<element name="TCustomGrid.CreateParams">
<short>
Initializes the window creation parameters with the settings for the control.
</short>
<descr>
<p>
<var>CreateParams</var> is a procedure used to initialize and/or update
creation parameters in the Params argument. CreateParams is called from the
CreateWnd method when the window handle is allocated for the control.
</p>
<p>
CreateParams is an overridden method in TCustomGrid. It ensures that Params
contains the values needed for the style and offset in the window class type.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TWinControl.CreateParams">TWinControl.CreateParams</link>
<link id="#lcl.controls.TWinControl.CreateWnd">TWinControl.CreateWnd</link>
<link id="#lcl.lcltype.TCreateParams">TCreateParams</link>
</seealso>
</element>
<element name="TCustomGrid.CreateParams.Params">
<short>Creation parameters updated in the method.</short>
</element>
<element name="TCustomGrid.Click">
<short>
Performs actions needed when a mouse click occurs in the grid control.
</short>
<descr>
<p>
<var>Click</var> is an overridden method used to perform actions needed when
a mouse click occurs in the control. The grid control provides an internal
flag to suppress mouse click handling when the event occurs in a "hot zone"
(fixed header cells for columns or rows). Click checks the value in the
internal flag, and calls the inherited method when the click occurs in the
"normal" data cells for the grid.
</p>
<p>
Click is called from methods like <var>SetCol</var>, <var>SetRow</var>, and
<var>SetColRow</var> to emulate a mouse click when values are assigned to the
<var>Col</var> and/or <var>Row</var> properties.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Col"/>
<link id="TCustomGrid.Row"/>
<link id="TCustomGrid.ColRow"/>
<link id="#lcl.controls.TControl.Click">TControl.Click</link>
</seealso>
</element>
<element name="TCustomGrid.DblClick">
<short>
Performs actions needed to handle mouse double click events in the control.
</short>
<descr>
<p>
<var>DblClick</var> is an overridden method used to perform actions needed
when a mouse Double Click event occurs in the grid control.
</p>
<p>
<var>SelectActive</var> is set to <b>False</b> to ignore an active cell or
range selection in the control. The internal <var>TGridState</var> member for
the control is set to <var>gsNormal</var> to reflect the new state for the
control.
</p>
<p>
DblClick uses values in the <var>Options</var> property to determine whether
double click is enabled for column or row sizing operations in the control.
Some of the Options values relevant to DblClick include:
</p>
<dl>
<dt>goColSizing</dt>
<dd>Column sizing in enabled for the control.</dd>
<dt>goRowSizing</dt>
<dd>Row sizing is enabled for the control.</dd>
<dt>goDblClickAutoSize</dt>
<dd>A mouse double click resizes the column automatically.</dd>
</dl>
<p>
When the needed Options values are present, and match the current
<var>CursorState</var> for the control, the corresponding action is
performed. <var>AutoAdjustColumn</var> is called for a column resize action.
<var>RestoreCursor</var> is called, and <var>HeaderSized</var> is called to
signal completion of the column resize operation. Row resize actions for
double click mouse events are not currently implemented.
</p>
<p>
If the values in Options or CursorState do not meet the required conditions,
the inherited method is called.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TControl.DblClick">TControl.DblClick</link>
</seealso>
</element>
<element name="TCustomGrid.DefaultColWidthIsStored">
<short>
Indicates if the DefaultColWidth property is available in component streaming.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.DefaultColWidthIsStored.Result">
<short>
<b>True</b> when DefaultColWidth contains a positive non-zero value.
</short>
</element>
<element name="TCustomGrid.DefaultRowHeightIsStored">
<short>
Indicates if the DefaultRowHeight property is available in component
streaming.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.DefaultRowHeightIsStored.Result">
<short>
Returns <b>True</b> if DefaultRowHeight has an explicitly assigned value that
is greater than or equal to 0.
</short>
</element>
<element name="TCustomGrid.DefineProperties">
<short>
Defines non-published properties included during LCL component streaming.
</short>
<descr>
<p>
<var>DefineProperties</var> is an overridden method used to define
non-published properties which are included during LCL component streaming.
It sets the read and write routines in <var>Filer</var> used for the
following grid properties:
</p>
<ul>
<li>ColWidths </li>
<li>RowHeights</li>
</ul>
</descr>
<seealso>
<link id="TCustomGrid.ColWidths"/>
<link id="TCustomGrid.RowHeights"/>
<link id="#lcl.controls.TControl.DefineProperties">TControl.DefineProperties</link>
</seealso>
</element>
<element name="TCustomGrid.DefineProperties.Filer">
<short>
TFiler instance used to read and write the defined properties.
</short>
</element>
<element name="TCustomGrid.DestroyHandle" link="#lcl.controls.TWinControl.DestroyHandle"/>
<element name="TCustomGrid.DialogChar">
<short>Applies an accelerator key for a column in the grid.</short>
<descr>
<p>
<var>DialogChar</var> is an overridden <var>Boolean</var> function used to
apply Lazarus messages with accelerator keys for columns in the grid. Message
contains the <var>TLMKey</var> instance with the message examined in the
method. DialogChar examines each of the <var>Columns</var> defined for the
grid to determine if the CharCode for the <var>Message</var> is an
accelerator key appearing in the title for the column. When a match is found,
the <var>HeaderClick</var> method is called to activate the column.
</p>
<p>
The return value contains the result from the inherited <var>DialogChar</var>
method.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Columns"/>
<link id="TCustomGrid.ColCount"/>
<link id="TCustomGrid.HeaderClick"/>
<link id="#lcl.controls.TWinControl.DialogChar">TWinControl.DialogChar</link>
</seealso>
</element>
<element name="TCustomGrid.DialogChar.Result">
<short>
<b>True</b> if the character code in Message is found in a caption for a
column on the grid.
</short>
</element>
<element name="TCustomGrid.DialogChar.Message">
<short>TLMKey message examined in the method.</short>
</element>
<element name="TCustomGrid.DoCompareCells">
<short>
Performs a comparison between the specified cells in the grid control.
</short>
<descr>
<p>
<var>DoCompareCells</var> signals the <var>OnCompareCells</var> event handler
(when assigned) to perform the comparison. The return value contains the
relative sort order for the compared cells, and uses the following values:
</p>
<dl>
<dt>-1</dt>
<dd>
The cell at ACol and ARow occurs comes before the cell at BCol and BRow.
</dd>
<dt>0</dt>
<dd>The specified cells have the same value.</dd>
<dt>1</dt>
<dd>
The cell at ACol and ARow occurs comes after the cell at BCol and BRow.
</dd>
</dl>
<p>
When OnCompareCells is not assigned, the return value is always <b>0</b>.
</p>
</descr>
<seealso>
<link id="TCustomGrid.OnCompareCells"/>
</seealso>
</element>
<element name="TCustomGrid.DoCompareCells.Result">
<short>Relative sort order for the compared cells.</short>
</element>
<element name="TCustomGrid.DoCompareCells.Acol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomGrid.DoCompareCells.ARow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomGrid.DoCompareCells.Bcol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomGrid.DoCompareCells.BRow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomGrid.DoCopyToClipboard">
<short>
Performs actions needed to copy a cell or a text selection to the clipboard.
</short>
<descr>
<p>
<var>DoCopyToClipboard</var> is a virtual method in <var>TCustomGrid</var>,
and has an empty implementation. It is overridden in descendent classes, like
TCustomStringGrid, to perform the actions required for the class type.
</p>
<p>
DoCopyToClipboard is called from the KeyDown method when the Ctrl+C or Meta+C
(macOS, iOS, Darwin) key is handled for the control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.KeyDown"/>
<link id="TCustomGrid.DoCutToClipboard"/>
<link id="TCustomGrid.DoPasteFromClipboard"/>
<link id="TCustomStringGrid.DoCopyToClipboard"/>
</seealso>
</element>
<element name="TCustomGrid.DoCutToClipboard">
<short>
Performs actions needed to cut a cell or a text selection to the clipboard.
</short>
<descr>
<p>
<var>DoCutToClipboard</var> is a virtual method in <var>TCustomGrid</var>,
and has an empty implementation. It is overridden in descendent classes, like
TCustomStringGrid, to perform the actions required for the class type.
</p>
<p>
DoCutToClipboard is called from the KeyDown method when the Shift+X key is
handled for the control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.KeyDown"/>
<link id="TCustomGrid.DoCopyToClipboard"/>
<link id="TCustomGrid.DoPasteFromClipboard"/>
<link id="TCustomStringGrid.DoCutToClipboard"/>
<link id="TCustomStringGrid.DoCopyToClipboard"/>
</seealso>
</element>
<element name="TCustomGrid.DoEditButtonClick">
<short>
Performs actions needed when the button for the editor control is clicked.
</short>
<descr>
<p>
<var>DoEditButtonClick</var> is a procedure used to perform actions requires
when the button for a cell editor or button column is clicked.
</p>
<p>
<var>ACol</var> and <var>ARow</var> contain the Integer coordinates for the
cell where the action occurred.
</p>
<p>
DoEditButtonClick signals the <var>OnEditButtonClick</var> and
<var>OnButtonClick</var> event handlers when they have been assigned for the
grid control.
</p>
<p>
DoEditButtonClick is used in the implementation of the
<var>EditButtonClicked</var> method used in cell editor controls, and the
<var>MouseUp</var> method.
</p>
</descr>
<seealso>
<link id="TCustomGrid.OnEditButtonClick"/>
<link id="TCustomGrid.OnButtonClick"/>
<link id="TCustomGrid.MouseUp"/>
</seealso>
</element>
<element name="TCustomGrid.DoEditButtonClick.ACol">
<short>Column number for the affected cell.</short>
</element>
<element name="TCustomGrid.DoEditButtonClick.ARow">
<short>Row number for the affected cell.</short>
</element>
<element name="TCustomGrid.DoEditorHide">
<short>
Performs actions needed to hide the cell Editor in the grid control.
</short>
<descr>
<p>
<var>DoEditorHide</var> is a procedure used to hide the cell
<var>Editor</var> for the control.
</p>
<p>
When <var>gfEditingDone</var> is included in the <var>GridFlags</var> for the
control, and <var>CanFocus</var> indicates that the control can be focused,
it is used as the <var>ActiveControl</var> in the parent <var>Form</var>. The
<var>Visible</var> property in Editor is set to <b>False</b> to hide the cell
editor for the control.
</p>
<p>
DoEditorHide is called from the <var>EditorHide</var> method.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Editor"/>
<link id="TCustomGrid.GridFlags"/>
<link id="TCustomGrid.EditorHide"/>
<link id="TGridFlags"/>
<link id="TGridFlagsOption"/>
<link id="#lcl.forms.TCustomForm.ActiveControl">TCustomForm.ActiveControl</link>
<link id="#lcl.controls.TWinControl.CanFocus">TWinControl.CanFocus</link>
</seealso>
</element>
<element name="TCustomGrid.DoEditorShow">
<short>
Performs actions needed to show the cell Editor for the grid control.
</short>
<descr>
<p>
Calls <var>ScrollToCell</var> to position the grid on the cell indicated by
the <var>Col</var> and <var>Row</var> properties.
</p>
<p>
String- and Button-style editor controls are updated to use the alignment
defined for the current column. If <var>Columns</var> has not been enabled,
the default alignment for the cell is <var>taLeftJustify</var>. Calls
<var>EditSetValue</var> to copy the cell content into the cell
<var>Editor</var>.
</p>
<p>
The <var>Editor.SetFocus</var> method is called when the grid control
currently has focus and the cell editor can receive focus.
<var>InvalidateCell</var> is called to redraw the cell at the position in Col
and Row.
</p>
<p>
DoEditorShow is called from the <var>EditorShow</var> method.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.DoExit">
<short>
Performs actions needed when the control loses focus.
</short>
<descr>
<p>
<var>DoExit</var> is an overridden method in <var>TCustomGrid</var>. It
ensures that an active editor control and the active selection are updated
when the grid control loses focus.
</p>
<p>
If the editor for the control is not always visible (goAlwaysShowEditor in
Options), InvalidateFocused is called to invalidate the cell or the row.
ResetEditor is called to sync and re-display the Editor when needed.
SelectActive is set to <b>False</b> when the internal grid state is
gsSelecting, and it is reset to gsNormal.
</p>
<p>
The inherited DoExit method is called to signal the OnExit event handler
(when assigned).
</p>
<p>
DoExit is called from the CMExit method when it handles the corresponding
control message.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Options"/>
<link id="TCustomGrid.Editor"/>
<link id="TCustomGrid.ResetEditor"/>
<link id="TCustomGrid.SelectActive"/>
<link id="TGridState"/>
<link id="#lcl.controls.TWinControl.DoExit">TWinControl.DoExit</link>
<link id="#lcl.controls.TWinControl.OnExit">TWinControl.OnExit</link>
<link id="#lcl.controls.TWinControl.CMExit">TWinControl.CMExit</link>
</seealso>
</element>
<element name="TCustomGrid.DoEnter">
<short>
Performs actions needed when the grid control receives focus.
</short>
<descr>
<p>
DoEnter is an overridden method in TCustomGrid. The inherited DoEnter method
is called on entry to signal the OnEnter event handler (when assigned).
</p>
<p>
It ensures that the active selection and optional editor control are restored
when grid control receives focus. If the Editor is not locked for update, and
is always visible, the Editor class is re-selected and it is displayed in the
active cell. When the Editor is not always visible (goAlwaysShowEditor is not
in Options), InvalidateFocused is called to request the active cell or row
selection to be redrawn.
</p>
<p>
DoEnter is called from the CMEnter method when it handles the corresponding
control message.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Options"/>
<link id="TCustomGrid.Editor"/>
<link id="TCustomGrid.SelectActive"/>
<link id="#lcl.controls.TWinControl.DoEnter">TWinControl.DoEnter</link>
<link id="#lcl.controls.TWinControl.OnEnter">TWinControl.OnEnter</link>
<link id="#lcl.controls.TWinControl.CMEnter">TWinControl.CMEnter</link>
</seealso>
</element>
<element name="TCustomGrid.DoLoadColumn">
<short>
Signals the OnLoadColumn event handler for the grid control (when assigned).
</short>
<descr>
<p>
<var>DoLoadColumn</var> is a method used to signal the
<var>OnLoadColumn</var> event handler (when assigned) to load a column from
an external XML configuration file. DoLoadColumn is called from the private
LoadColumns method, and occurs immediately after a TColumn instance has been
created, initialized, and added to the <var>Columns</var> collection. The
event handler can be used to override or augment the values loaded from the
XML storage into the TColumn instance.
</p>
</descr>
<seealso>
<link id="TCustomGrid.OnLoadColumn"/>
<link id="TCustomGrid.Columns"/>
<link id="TGridColumns"/>
<link id="TGridColumn"/>
</seealso>
</element>
<element name="TCustomGrid.DoLoadColumn.Sender">
<short>Object (TCustomGrid) for the event notification.</short>
</element>
<element name="TCustomGrid.DoLoadColumn.aColumn">
<short>Grid column definition for the event.</short>
</element>
<element name="TCustomGrid.DoLoadColumn.aColIndex">
<short>Ordinal position for the column.</short>
</element>
<element name="TCustomGrid.DoLoadColumn.aCfg">
<short>
XML configuration file with the design-time information for the columns in
the grid.
</short>
</element>
<element name="TCustomGrid.DoLoadColumn.aVersion">
<short>
Version number for the streaming format used in the configuration file.
</short>
</element>
<element name="TCustomGrid.DoLoadColumn.aPath">
<short>
XPath-like expression where the column information is stored.
</short>
</element>
<element name="TCustomGrid.DoSaveColumn">
<short>
Signals the OnSaveColumn event handler for the grid control (when assigned).
</short>
<descr>
<p>
<var>DoSaveColumn</var> is a method used to signal the
<var>OnSaveColumn</var> event handler (when assigned) when a column
definition is saved to an external XML configuration file.
</p>
<p>
DoSaveColumn is called from the private SaveColumns method, and occurs
immediately after a TColumn instance in the <var>Columns</var> collection is
written to the XML storage. It is also called from the SaveContent method
when the Columns collection has not been enabled in the control.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.DoSaveColumn.Sender">
<short>
Object (TCustomGrid) for the event.
</short>
</element>
<element name="TCustomGrid.DoSaveColumn.aColumn">
<short>
Grid column instance for the event handler.
</short>
</element>
<element name="TCustomGrid.DoSaveColumn.aColIndex">
<short>
Ordinal position in Columns for the grid column.
</short>
</element>
<element name="TCustomGrid.DoSaveColumn.aCfg">
<short>
XML configuration file where the column values are stored.
</short>
</element>
<element name="TCustomGrid.DoSaveColumn.aVersion">
<short>
Version number for the grid column data written in the XML storage.
</short>
</element>
<element name="TCustomGrid.DoSaveColumn.aPath">
<short>
XPath-like expression where the column information is stored.
</short>
</element>
<element name="TCustomGrid.DoMouseWheel">
<short>
Handles a mouse wheel operation for the grid control.
</short>
<descr>
<p>
<var>DoMouseWheel</var> is an overridden method in <var>TCustomGrid</var>
used to apply a mouse wheel operation to the control. It ensures that the
SelectActive property is reset to <b>False</b> when
<var>MouseWheelOption</var> applies to the selection cursor instead of the
visible area for the grid control.
</p>
<p>
DoMouseWheel calls the inherited method to signal the <var>OnMouseWheel</var>
event handler (when assigned), and to apply the mouse wheel movement using
the parameter values. The inherited method also determines the return value.
It is <b>False</b> if an OnMouseWheel is not found or the message cannot
handle the WheelDelta value using DoMouseWheelUp or DoMouseWheelDown.
</p>
<p>
DoMouseWheel is called from the inherited <var>WMMouseWheel</var> method when
the LM_MOUSEWHEEL message is handled for the control.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.DoMouseWheel.Result">
<short>
<b>True</b> when the mouse wheel action was handled for the control.
<b>False</b> when a handler was not found or the delta value was invalid.
</short>
</element>
<element name="TCustomGrid.DoMouseWheel.Shift">
<short>
Shift, Alt, Ctrl modifier for the mouse wheel action.
</short>
</element>
<element name="TCustomGrid.DoMouseWheel.WheelDelta">
<short>
Number of units the mouse wheel was moved. A negative values implies movement
in the down direction.
</short>
</element>
<element name="TCustomGrid.DoMouseWheel.MousePos">
<short>
TPoint instance with the coordinates for the mouse pointer.
</short>
</element>
<element name="TCustomGrid.DoMouseWheelDown">
<short>
Handles a mouse wheel down movement for the grid control.
</short>
<descr>
<p>
<var>DoMouseWheelDown</var> is a an overridden method in
<var>TCustomGrid</var> called when the mouse wheel is scrolled downward. It
calls the inherited method on entry to signal the <var>OnMouseWheelDown</var>
event handler (when assigned). The return value is set to <b>True</b> if the
action was handled in OnMouseWheelDown.
</p>
<p>
If the action is not handled in OnMouseWheelDown, the
<var>GridMouseWheel</var> method is called to scroll to the next selectable
area in the control using the specified <var>Shift</var> modifier. When Shift
contains <var>ssCtrl</var> (Ctrl key), the horizontal position is updated
instead of the vertical. The return value is set to <b>True</b> when the
action is handled in this manner.
</p>
<p>
Use <var>MouseWheelOption</var> to specify whether mouse wheel operations are
applied to the grid cursor (selection / editing) or the visible area for the
control.
</p>
<p>
See DoMouseWheelUp for the actions performed when the mouse wheel is scrolled
in the upward direction.
</p>
<p>
DoMouseWheelDown is called from the inherited DoMouseWheel method when an
OnMouseWheel event handler was not found, or it did not handle the
notification.
</p>
</descr>
<seealso>
<link id="TCustomGrid.MouseWheelOption"/>
<link id="TCustomGrid.GridMouseWheel"/>
<link id="TCustomGrid.DoMouseWheelUp"/>
<link id="#lcl.controls.TControl.DoMouseWheelDown">TControl.DoMouseWheelDown</link>
<link id="#lcl.controls.TControl.OnMouseWheelDown">TControl.OnMouseWheelDown</link>
<link id="#rtl.classes.TShiftState">TShiftState</link>
</seealso>
</element>
<element name="TCustomGrid.DoMouseWheelDown.Result">
<short>
<b>True</b> if the mouse wheel operation was handled in the method.
</short>
</element>
<element name="TCustomGrid.DoMouseWheelDown.Shift">
<short>
Shift, Alt, Ctrl modifier for the mouse wheel action.
</short>
</element>
<element name="TCustomGrid.DoMouseWheelDown.MousePos">
<short>
TPoint instance with the coordinates for the mouse pointer.
</short>
</element>
<element name="TCustomGrid.DoMouseWheelUp">
<short>
Handles a mouse wheel up movement for the grid control.
</short>
<descr>
<p>
<var>DoMouseWheelUp</var> is an overridden method in <var>TCustomGrid</var>
called when the mouse wheel is scrolled upward. It calls the inherited method
on entry to signal the <var>OnMouseWheelUp</var> event handler (when
assigned). The return value is set to <b>True</b> if the action was handled
in OnMouseWheelUp.
</p>
<p>
If the action is not handled in OnMouseWheelUp, the <var>GridMouseWheel</var>
method is called to scroll to the previous selectable area in the control
using the specified <var>Shift</var> modifier. When Shift contains
<var>ssCtrl</var> (Ctrl key), the horizontal position is updated instead of
the vertical. The return value is set to <b>True</b> when the action is
handled in this manner.
</p>
<p>
Use <var>MouseWheelOption</var> to specify whether mouse wheel operations are
applied to the grid cursor (selection / editing) or the visible area for the
control.
</p>
<p>
See DoMouseWheelDown for the actions performed when the mouse wheel is
scrolled in the downward direction.
</p>
<p>
DoMouseWheelUp is called from the inherited DoMouseWheel method when an
OnMouseWheel event handler was not found, or it did not handle the
notification.
</p>
</descr>
<seealso>
<link id="TCustomGrid.MouseWheelOption"/>
<link id="TCustomGrid.GridMouseWheel"/>
<link id="TCustomGrid.DoMouseWheelDown"/>
<link id="#lcl.controls.TControl.DoMouseWheelUp">TControl.DoMouseWheelUp</link>
<link id="#lcl.controls.TControl.OnMouseWheelUp">TControl.OnMouseWheelUp</link>
<link id="#rtl.classes.TShiftState">TShiftState</link>
</seealso>
</element>
<element name="TCustomGrid.DoMouseWheelUp.Result">
<short>
<b>True</b> if the mouse wheel operation was handled in the method.
</short>
</element>
<element name="TCustomGrid.DoMouseWheelUp.Shift">
<short>
Shift, Alt, Ctrl modifier for the mouse wheel action.
</short>
</element>
<element name="TCustomGrid.DoMouseWheelUp.MousePos">
<short>
TPoint instance with the coordinates for the mouse pointer.
</short>
</element>
<element name="TCustomGrid.DoMouseWheelLeft">
<short>
Handles a mouse wheel scroll left message for the control.
</short>
<descr>
<p>
<var>DoMouseWheelLeft</var> is an overridden method in <var>TCustomGrid</var>
which handles a horizontal mouse wheel scroll message towards the left of the
grid control. DoMouseWheelLeft is called from the inherited DoMouseWheelHorz
method when an unhandled scroll wheel message with a negative WheelDelta
value occurs.
</p>
<p>
DoMouseWheelLeft calls the inherited method on entry to signal the
OnMouseWheelLeft event handler (when assigned). The return value is set to
<b>True</b> if the message is handled in the method.
</p>
<p>
If the message is not handled in the inherited method, the GridMouseWheel
method is called using the ssCtrl modifier and the current mouse position as
arguments. This is the equivalent of a Ctrl+MouseWheelUp message. The return
value is set to <b>True</b> when the message is handled in this manner.
</p>
<p>
See DoMouseWheelRight for the actions performed for a Ctrl+MouseWheelDown
scroll message.
</p>
<p>
Use <var>MouseWheelOption</var> to specify whether mouse wheel operations are
applied to the grid cursor (selection / editing) or the visible area for the
control.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TControl.DoMouseWheelLeft">TControl.DoMouseWheelLeft</link>
</seealso>
</element>
<element name="TCustomGrid.DoMouseWheelLeft.Result">
<short>
<b>True</b> if the mouse wheel message is handled in the method.
</short>
</element>
<element name="TCustomGrid.DoMouseWheelLeft.Shift">
<short>
Shift, Alt, Ctrl modifier for the mouse wheel action.
</short>
</element>
<element name="TCustomGrid.DoMouseWheelLeft.MousePos">
<short>
TPoint instance with the coordinates for the mouse pointer.
</short>
</element>
<element name="TCustomGrid.DoMouseWheelRight">
<short>
Handles a mouse wheel scroll right message for the control.
</short>
<descr>
<p>
<var>DoMouseWheelRight</var> is an overridden method in
<var>TCustomGrid</var> which handles a horizontal mouse wheel scroll message
towards the right of the grid control. DoMouseWheelRight is called from the
inherited DoMouseWheelHorz method when an unhandled scroll wheel message with
a positive WheelDelta value occurs.
</p>
<p>
DoMouseWheelRight calls the inherited method on entry to signal the
OnMouseWheelRight event handler (when assigned). The return value is set to
<b>True</b> if the message is handled in the method.
</p>
<p>
If the message is not handled in the inherited method, the GridMouseWheel
method is called using the ssCtrl modifier and the current mouse position as
arguments. This is the equivalent of a Ctrl+MouseWheelDown message. The
return value is set to <b>True</b> when the message is handled in this manner.
</p>
<p>
See DoMouseWheelLeft for the actions performed for a Ctrl+MouseWheelUp scroll
message.
</p>
<p>
Use <var>MouseWheelOption</var> to specify whether mouse wheel operations are
applied to the grid cursor (selection / editing) or the visible area for the
control.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TControl.DoMouseWheelRight">TControl.DoMouseWheelRight</link>
</seealso>
</element>
<element name="TCustomGrid.DoMouseWheelRight.Result">
<short>
<b>True</b> if the mouse wheel message is handled in the method.
</short>
</element>
<element name="TCustomGrid.DoMouseWheelRight.Shift">
<short>
Shift, Alt, Ctrl modifier for the mouse wheel action.
</short>
</element>
<element name="TCustomGrid.DoMouseWheelRight.MousePos">
<short>
TPoint instance with the coordinates for the mouse pointer.
</short>
</element>
<element name="TCustomGrid.DoAutoAdjustLayout">
<short>
Performs actions to automatically apply the layout policy with the specified
scaling factors.
</short>
<descr>
<p>
DoAutoAdjustLayout is an overridden method in TCustomGrid.
</p>
<p>
AMode contains the layout policy applied in the method, and contains a value
from the TLayoutAdjustmentPolicy enumeration. AXProportion and AYProportion
contain the horizontal and vertical scaling factors applied for the specified
layout policy.
</p>
<p>
DoAutoAdjustLayout calls the inherited method on entry to apply the scaling
factors for the grid control. This includes scaling its width and/or height
using values in Align and/or Anchors. The BaseBounds for the control may also
be affected.
</p>
<p>
When AMode contains lapAutoAdjustWithoutHorizontalScrolling or
lapAutoAdjustForDPI, the layout policy is applied to the columns and rows in
the control. When Columns has been enabled the factor in AXProportion is
applied to MinSize, MaxSize and the stored Width for each of the TGridColumn
entries. AXProportion is also applied to the values in Cols and
DefaultColWidth.
</p>
<p>
The value in AYProportion is applied to the values stored in Rows and
DefaultRowHeight.
</p>
<p>
DoAutoAdjustLayout is called from the inherited AutoAdjustLayout method.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.DoAutoAdjustLayout.AMode">
<short>
Auto-adjust layout policy applied in the method.
</short>
</element>
<element name="TCustomGrid.DoAutoAdjustLayout.AXProportion">
<short>
Horizontal scaling factor for the layout policy.
</short>
</element>
<element name="TCustomGrid.DoAutoAdjustLayout.AYProportion">
<short>
Vertical scaling factor for the layout policy.
</short>
</element>
<element name="TCustomGrid.DoOnChangeBounds">
<short>
Signals OnChangeBounds event handlers for the control.
</short>
<descr>
<p>
<var>DoOnChangeBounds</var> is an overridden method in
<var>TCustomGrid</var>. It calls the inherited method on entry to signal any
assigned OnChangeBounds event handlers and to update flag values for the
control.
</p>
<p>
DoOnChangeBounds updates cached column and row sizes, and scroll bar
information when the bounds for the control have been changed.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TControl.DoOnChangeBounds">TControl.DoOnChangeBounds</link>
</seealso>
</element>
<element name="TCustomGrid.DoOPDeleteColRow">
<short>Performs a delete operation for a column or a row.</short>
<descr>
<p>
<var>DoOPDeleteColRow</var> is a method which performs actions needed to
delete the specified column or row from the grid control.
</p>
<p>
IsColumn indicates whether a column or row is affected in the method. When
set to <b>True</b>, the specified column number is deleted from the control.
Otherwise, the specified row number is removed.
</p>
<p>
Use Index to specify the position for the column or row removed in the method.
</p>
<p>
Prior to removing the specified column or row, private methods are called to
validate values used by or affected in the operation like:
</p>
<dl>
<dt>Index</dt>
<dd>
Checks whether the value in Index is a valid column or row number. An
EGridException exception is raised if Index has an invalid index value for
the grid control.
</dd>
<dt>FixedCols, FixedRows</dt>
<dd>
Ensures that new fixed column or row counts are valid for the number of
columns or rows on the grid control. An EGridException is raised if the new
values are not within the limits for the column or row count.
</dd>
<dt>Col, Row, ColCount, RowCount</dt>
<dd>
Ensures that values for Col or Row are range limited to the new column or row
count for the control. Calls MoveNextSelectable to scroll the grid control to
the new origin cell when needed.
</dd>
</dl>
<p>
DoOPDeleteColRow ensures that a visible cell editor in the column or row is
deactivated by setting EditorMode to False.
</p>
<p>
The ColRowDeleted method is called when the affected data has been removed
from the grid control and the cached values in GCache. In a descendent class
(TCustomDrawGrid), the OnColRowDeleted event handler is signalled (when
assigned).
</p>
<p>
Col and Row are updated if the operation causes the selection range to be
changed, and SelectCell is called to include the cell in Selection. Sizes for
auto-filled columns are recalculated when needed. The cell Editor is updated
when needed for the new selection and position on the grid control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.ColRowDeleted"/>
<link id="TCustomGrid.Col"/>
<link id="TCustomGrid.ColCount"/>
<link id="TCustomGrid.Row"/>
<link id="TCustomGrid.RowCount"/>
<link id="TCustomGrid.FixedCols"/>
<link id="TCustomGrid.FixedRows"/>
<link id="TCustomGrid.SelectCell"/>
<link id="TCustomGrid.Selection"/>
<link id="TCustomGrid.EditorMode"/>
</seealso>
</element>
<element name="TCustomGrid.DoOPDeleteColRow.IsColumn">
<short>
<b>True</b> if Index refers to a column instead of a row.
</short>
</element>
<element name="TCustomGrid.DoOPDeleteColRow.Index">
<short>
Position for the column or row deleted in the method.
</short>
</element>
<element name="TCustomGrid.DoOPExchangeColRow">
<short>
Performs an exchange of values for the columns or rows with the specified
indexes.
</short>
<descr>
<p>
<var>DoOPExchangeColRow</var> is used to exchange or swap column or row
values at the specified positions in the grid control.
</p>
<p>
IsColumn indicates whether columns or rows are affected in the method. When
set to <b>True</b>, Index and WithIndex refer to column positions. Otherwise,
they refer to row positions.
</p>
<p>
TGridColumn instances in Columns are exchanged when the collection has been
enabled in the control. Column widths in Cols, or row heights in Rows are
also exchanged in the method.
</p>
<p>
DoOPExchangeColRow calls the ColRowExchanged method to perform the
notification which informs the grid control to exchange their column or row
data.
</p>
<p>
AdjustEditorBounds is called to reposition the cell Editor for the grid when
the operation requires it to be moved.
</p>
<p>
When a value in Index or WithIndex is a sort column for the grid, the value
in the SortColumn property is updated to reflect the (ex)changed value.
</p>
<p>
DoOPExchangeColRow is called from the Sort method when the StrictSort
property is set to <b>False</b>.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.DoOPExchangeColRow.IsColumn">
<short>
<b>True</b> if Index refers to a column instead of a row.
</short>
</element>
<element name="TCustomGrid.DoOPExchangeColRow.Index">
<short>
Position for a column or row exchanged in the method.
</short>
</element>
<element name="TCustomGrid.DoOPExchangeColRow.WithIndex">
<short>
Position for the other column or row exchanged in the method.
</short>
</element>
<element name="TCustomGrid.DoOPInsertColRow">
<short>
Performs an insert operation for a column or a row at the specified position.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.DoOPInsertColRow.IsColumn">
<short>
<b>True</b> if Index refers to a column instead of a row.
</short>
</element>
<element name="TCustomGrid.DoOPInsertColRow.Index">
<short>
Position where the column or row is inserted in the method.
</short>
</element>
<element name="TCustomGrid.DoOPMoveColRow">
<short>
Performs a move operation for the column or row at the specified position.
</short>
<descr>
<p>
<var>DoOPMoveColRow</var> is called from the MouseUp method when the mouse
button is released during a column or row drag operation.
</p>
<p>
DoOPMoveColRow ensures that <var>FromIndex</var> and <var>ToIndex</var>
contain valid index values for the grid. When FromIndex and ToIndex contain
the same value, the drag operation has ended without changing the position for
the column or row. In this situation, the grid control is redrawn and no
additional actions are performed in the method.
</p>
<p>
<var>IsColumn</var> determines whether column or row data is affected in the
method. When set to <b>True</b>, the index values refer to column positions
on the grid. Otherwise, the index values refer to row positions.
</p>
<p>
<b>Column Movement</b>
</p>
<p>
Column movements are handled using either the Columns collection or the
internal list of column widths maintained in the grid control. When Columns
has been enabled, and column order is not locked using GridFlags, the
MoveColumn method in the collection is used to move the specified column to
its new position.
</p>
<p>
If Columns have not been defined, the internal column list is used to perform
the operation. ColRowMoved is called to perform an event notification
(implemented in descendent classes) when the action has been completed.
</p>
<p>
<b>Row Movement</b>
</p>
<p>
Row movements are handled using the internal list of row heights in the
control. The Move method in in the list is called to relocate the specified
row to its new position. ColRowMoved is called to perform an event
notification (implemented in descendent classes) when the action has been
completed.
</p>
<p>
DoOPMoveColRow calls AdjustEditorBounds to re-select the active cell and
position an active cell editor (when needed). For a column movement, the value
in SortColumn is updated to reflect the new position for the sort column.
</p>
</descr>
<seealso>
<link id="TCustomGrid.MouseUp"/>
<link id="TCustomGrid.Columns"/>
<link id="TCustomGrid.GridFlags"/>
<link id="TCustomGrid.SortColumn"/>
<link id="TCustomGrid.AdjustEditorBounds"/>
<link id="TCustomGrid.ColRowMoved"/>
<link id="TCustomGrid.ColumnIndexFromGridColumn"/>
<link id="TCustomGrid.VisualChange"/>
<link id="TGridColumns.MoveColumn"/>
<link id="TGridColumn"/>
</seealso>
</element>
<element name="TCustomGrid.DoOPMoveColRow.IsColumn">
<short>
<b>True</b> if index values are for columns instead of rows.
</short>
</element>
<element name="TCustomGrid.DoOPMoveColRow.FromIndex">
<short>
Ordinal position for a column or a row moved in the method.
</short>
</element>
<element name="TCustomGrid.DoOPMoveColRow.ToIndex">
<short>
Ordinal position where the column or row is relocated in the method.
</short>
</element>
<element name="TCustomGrid.DoPasteFromClipboard">
<short>
Pastes data from the clipboard into the grid control.
</short>
<descr>
<p>
DoPasteFromClipboard is a virtual method and has an empty implementation in
TCustomGrid. It must be overridden in a descendent class to use the data and
selection ranges(s) allowed in the implementation.
</p>
<p>
DoPasteFromClipboard is called from the KeyDown method when a Shift+V key is
handled for the control.
</p>
</descr>
<seealso>
<link id="TCustomStringGrid.DoPasteFromClipboard"/>
</seealso>
</element>
<element name="TCustomGrid.DoPrepareCanvas">
<short>
Performs actions needed to prepare the canvas for a drawing operation.
</short>
<descr>
<p>
DoPrepareCanvas signals the <var>OnPrepareCanvas</var> event handler (when
assigned) to prepare the Canvas to draw the specified cell using the
specified state. It is called from the PrepareCanvas method, and allows the
default actions performed in the caller to be overridden.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.DoPrepareCanvas.aCol">
<short>
Column number for the current cell.
</short>
</element>
<element name="TCustomGrid.DoPrepareCanvas.aRow">
<short>
Row number for the current cell.
</short>
</element>
<element name="TCustomGrid.DoPrepareCanvas.aState">
<short>
Drawing state (like selected, focused, fixed) for the current cell.
</short>
</element>
<element name="TCustomGrid.DoOnResize">
<short>Performs actions needed when the grid control is resized.</short>
<descr>
<p>
DoOnResize is an overridden method in TCustomGrid. It calls the inherited
method on entry to signal the OnResize event handler(s) assigned to the
control or its parents. If the active update counter is 0, the Invalidate
method in the widgetset class instance is called to refresh the control.
</p>
<p>
DoOnResize is called from the Resize method in the ancestor class.
</p>
</descr>
<seealso>
<link id="TCustomGrid.BeginUpdate"/>
<link id="TCustomGrid.EndUpdate"/>
<link id="#lcl.controls.TControl.DoOnResize">TControl.DoOnResize</link>
<link id="#lcl.controls.TControl.OnResize">TControl.OnResize</link>
<link id="#lcl.controls.TControl.Resize">TControl.Resize</link>
</seealso>
</element>
<element name="TCustomGrid.DoSetBounds">
<short>
Captures the current client width prior to setting the new bounds for the
control.
</short>
<descr/>
<seealso>
<link id="#lcl.controls.TControl.DoSetBounds">TControl.DoSetBounds</link>
</seealso>
</element>
<element name="TCustomGrid.DoSetBounds.ALeft">
<short>
New value for the Left property.
</short>
</element>
<element name="TCustomGrid.DoSetBounds.ATop">
<short>
New value for the Top property.
</short>
</element>
<element name="TCustomGrid.DoSetBounds.AWidth">
<short>
New value for the Width property.
</short>
</element>
<element name="TCustomGrid.DoSetBounds.AHeight">
<short>
New value for the Height property.
</short>
</element>
<element name="TCustomGrid.DoUTF8KeyPress">
<short>
Applies a UTF-8-encoded character to the active cell editor in the control.
</short>
<descr>
<p>
<var>DoUTF8KeyPress</var> is an overridden method used to apply the
UTF-8-encoded character in <var>UTF8Key</var> to the active cell
<var>Editor</var> for the control. The return value is <b>True</b> if the
character is successfully handled.
</p>
<p>
DoUTF8KeyPress calls the inherited method on entry to determine if the
character is handled in the ancestor class. No additional actions are
performed in the method when the character is handled in the ancestor.
</p>
<p>
Otherwise, <var>EditingAllowed</var> is called to determine if a cell editor
can be displayed for the column number in <var>Col</var>. When allowed, the
<var>EditorShowChar</var> method is called to apply the value in UTF8Key to
the cell Editor. The value in UTF8Key is set to an empty string (<b>''</b>),
and the return is set to <b>True</b> on successful completion of the
operation.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TWinControl.DoUTF8KeyPress">TWinControl.DoUTF8KeyPress</link>
</seealso>
</element>
<element name="TCustomGrid.DoUTF8KeyPress.Result">
<short>
<b>True</b> if the character was successfully applied in the method.
</short>
</element>
<element name="TCustomGrid.DoUTF8KeyPress.UTF8Key">
<short>UTF-8 character value handled in the method.</short>
</element>
<element name="TCustomGrid.DrawBorder">
<short>Draws the border for the grid control.</short>
<descr>
<p>
<var>DrawBorder</var> is used to draw the border around the grid using the
client rectangle for the control. No actions are performed in the method when
Flat is set to <b>False</b> or BorderStyle has a value other than bsSingle.
</p>
<p>
DrawBorder ensures that the Pen color in Canvas is updated to use the value
in BorderColor. The width for the Pen is set to 1 pixel for the drawing
operation. Drawing methods in Canvas are called to draw the borders on the
Left, Right, Top, and Bottom edges for the control.
</p>
<p>
DrawBorder is called from the Paint method, and occurs after the inherited
Paint method and its OnPaint event handler have been executed.
</p>
</descr>
<seealso>
<link id="TCustomGrid.DrawBorder"/>
<link id="TCustomGrid.BorderStyle"/>
<link id="TCustomGrid.Flat"/>
<link id="TCustomGrid.Paint"/>
<link id="#lcl.controls.TCustomControl.Canvas">TCustomControl.Canvas</link>
<link id="#lcl.controls.TControl.ClientHeight">TControl.ClientHeight</link>
<link id="#lcl.controls.TControl.ClientWidth">TControl.ClientWidth</link>
</seealso>
</element>
<element name="TCustomGrid.DrawAllRows">
<short>Draws all of the rows for the grid.</short>
<descr>
<p>
Draws both the fixed rows and any visible data rows using cached information
in the grid control. Calls <var>DrawRow</var> to render each row by its row
number in the control.
</p>
<p>
<var>DrawAllRows</var> is called from the <var>Paint</var> method.
</p>
</descr>
<seealso>
<link id="TCustomGrid.GCache"/>
<link id="TCustomGrid.DrawRow"/>
<link id="TCustomGrid.Paint"/>
<link id="TGridDataCache"/>
</seealso>
</element>
<element name="TCustomGrid.DrawFillRect">
<short>Draws the fill rectangle on the specified canvas.</short>
<descr>
<p>
Shifts the specified rectangle by one pixel on the left- and right-hand edges
when <var>UseRightToLeftAlignment</var> is set to <b>True</b>. Calls the
<var>FillRect</var> method in the <var>TCanvas</var> instance to draw the
adjusted rectangle.
</p>
<p>
DrawFillRect is called from the <var>DrawCell</var> method.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.DrawFillRect.aCanvas">
<short>Canvas where the fill rectangle is drawn.</short>
</element>
<element name="TCustomGrid.DrawFillRect.R">
<short>Rectangle with the bounds filled in the method.</short>
</element>
<element name="TCustomGrid.DrawCell">
<short>
Draws a cell using a given state at the specified grid location (Col, Row,
rectangle).
</short>
<descr>
<p>
Calls <var>PrepareCanvas</var> to initialize the <var>Canvas</var> for the
control to the state in <var>AState</var>. Calls <var>DrawFillRect</var> to
fill the rectangle in <var>ARect</var> using the background for the cell.
Calls <var>DrawCellGrid</var> to render fixed or non-fixed cells using the
state in AState, including horizontal and vertical grid lines when enabled.
</p>
<p>
DrawCell is called from the <var>DrawRow</var> method when it renders the
visible cells in the grid row.
</p>
</descr>
<seealso>
<link id="TCustomGrid.PrepareCanvas"/>
<link id="TCustomGrid.DrawFillRect"/>
<link id="TCustomGrid.DrawCellGrid"/>
<link id="TCustomGrid.DrawRow"/>
<link id="#lcl.controls.TCustomControl.Canvas">TCustomControl.Canvas</link>
</seealso>
</element>
<element name="TCustomGrid.DrawCell.aCol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomGrid.DrawCell.aRow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomGrid.DrawCell.aRect">
<short>Rectangle with the dimensions for the cell.</short>
</element>
<element name="TCustomGrid.DrawCell.aState">
<short>State used to render the cell.</short>
</element>
<element name="TCustomGrid.DrawCellGrid">
<short>Draws cell grid lines for the control.</short>
<descr>
<p>
<var>DrawCellGrid</var> is a procedure used to draw cell grid lines for both
a fixed and a non-fixed cell in the grid control.
</p>
<p>
DrawCellGrid ensures that the control <var>Canvas</var> (and its
<var>Pen</var>) are updated to use the values needed to draw the fixed or
non-fixed cell at the location specified in <var>ACol</var> and
<var>ARow</var>.
</p>
<p>
For a fixed cell (when <var>gdFixed</var> is in AState), grid lines are drawn
when <var>gdoFixedVertLine</var> or <var>gdoFixedHorzLine</var> is found in
the <var>Options</var> property. The Pen in the control Canvas is updated to
reflect a non-zero value in <var>GridLineWidth</var>.
</p>
<p>
When <var>Flat</var> is set to <b>False</b>, the value in AState is used to
determine the color used for the Pen. Canvas drawing methods, like
<var>MoveTo</var> and <var>LineTo</var>, are used to draw the cell grid lines
at the coordinates in ARect. The value in <var>UseRightToLeftAlignment</var>
determines how values in ARect are adjusted for the operation.
</p>
<p>
When Flat is set to <b>True</b>, the value in <var>FixedGridLineColor</var>
is used as the color for the Pen.
</p>
<p>
For a non-fixed cell (gdFixed is not in AState), grid lines are drawn when
<var>gdoVertLine</var> or <var>gdoHorzLine</var> is found in the Options
property. The Pen in the control Canvas is updated to use the GridLineWidth,
<var>GridLineStyle</var>, and <var>GridLineColor</var> for the control.
Canvas drawing methods, like MoveTo and LineTo, are used to draw the cell
grid lines at the coordinates in ARect. The value in UseRightToLeftAlignment
determines how values in ARect are adjusted for the operation.
</p>
<p>
DrawCellGrid is called from the <var>DrawCell</var> method after preparing
the Canvas and drawing the filled rectangle with the background for the cell.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Options"/>
<link id="TCustomGrid.DrawCell"/>
<link id="TCustomGrid.Flat"/>
<link id="TCustomGrid.FixedGridLineColor"/>
<link id="TCustomGrid.GridLineColor"/>
<link id="TCustomGrid.GridLineStyle"/>
<link id="TCustomGrid.GridLineWidth"/>
<link id="#lcl.controls.TControl.UseRightToLeftAlignment">TControl.UseRightToLeftAlignment</link>
</seealso>
</element>
<element name="TCustomGrid.DrawCellGrid.ACol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomGrid.DrawCellGrid.ARow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomGrid.DrawCellGrid.ARect">
<short>Rectangle with the screen coordinates for the cell.</short>
</element>
<element name="TCustomGrid.DrawCellGrid.AState">
<short>State for the cell (normal, fixed, pushed, et. al.).</short>
</element>
<element name="TCustomGrid.DrawTextInCell">
<short>Draws the text for a non-fixed cell in the grid.</short>
<descr>
<p>
The implementation for <var>DrawTextInCell</var> is empty in TCustomGrid. It
is overridden in descendent classes.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.DrawTextInCell.aCol">
<short>Column number for the cell drawn in the method.</short>
</element>
<element name="TCustomGrid.DrawTextInCell.aRow">
<short>Row number for the cell drawn in the method.</short>
</element>
<element name="TCustomGrid.DrawTextInCell.aRect">
<short>
Rectangle with the coordinates where the cell text is drawn.
</short>
</element>
<element name="TCustomGrid.DrawTextInCell.aState">
<short>
Drawing state for the cell (like selected, focused, fixed, etc.).
</short>
</element>
<element name="TCustomGrid.DrawThemedCell">
<short>
Draws a cell using the theme services for the specified grid drawing state.
</short>
<descr>
<p>
<var>DrawThemedCell</var> is a procedure used to draw the cell at the
specified coordinates using the theme services for the platform or widget set.
</p>
<p>
<var>aCol</var> contains the column number for the affected cell.
</p>
<p>
<var>aRow</var> contains the row number for the affected cell.
</p>
<p>
<var>aRect</var> contains the screen coordinates for the cell rendered in the
method.
</p>
<p>
<var>aState</var> contains the grid drawing state applied to the cell. aState
contains a value from the <var>TGridDrawState</var> enumeration that
determines the theme service element details used for the drawing operation.
</p>
<table>
<tr>
<td><b>Grid Draw State</b></td>
<td><b>Theme Element</b></td>
<td><b>Description</b></td>
</tr>
<tr>
<td>gdPushed</td>
<td>thHeaderItemPressed</td>
<td>Draws the cell using the Pressed state</td>
</tr>
<tr>
<td>gdHot</td>
<td>thHeaderItemHot</td>
<td>Draws the cell using the Hotlighted state</td>
</tr>
<tr>
<td>Other states</td>
<td>thHeaderItemNormal</td>
<td>Draws the cell using the normal drawing state</td>
</tr>
</table>
</descr>
<seealso>
<link id="TCustomDrawGrid.DefaultDrawCell"/>
</seealso>
</element>
<element name="TCustomGrid.DrawThemedCell.aCol">
<short>Column number for the affected cell.</short>
</element>
<element name="TCustomGrid.DrawThemedCell.aRow">
<short>Row number for the affected cell.</short>
</element>
<element name="TCustomGrid.DrawThemedCell.aRect">
<short>Screen coordinates for the cell.</short>
</element>
<element name="TCustomGrid.DrawThemedCell.aState">
<short>Grid drawing state for the cell.</short>
</element>
<element name="TCustomGrid.DrawCellText">
<short>Draws the specified text in the given text rectangle.</short>
<descr>
<p>
<var>DrawCellText</var> is a procedure used to draw the text specified in
<var>AText</var> using the given text rectangle on the <var>Canvas</var> for
the control. The Canvas also contains the alignment and layout used for the
text drawn in the method.
</p>
<p>
<var>ARect</var> contains the Canvas coordinates for the text is drawn.
DrawCellText adjusts the bounds in ARect to account for the cell padding used
in the control (<var>varCellPadding</var>) as needed for the text alignment
and layout. The <var>TextRect</var> method in the Canvas is called to render
the text.
</p>
<p>
Values in the <var>ACol</var>, <var>ARow</var>, and <var>AState</var>
parameters are not used in DrawCellText.
</p>
<p>
DrawCellText is used in the implementation of the <var>DrawColumnText</var>,
<var>DrawCellAutonumbering</var>, and <var>DrawTextInCell</var> methods where
AText contains the column title, row number, or content for a given cell.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.DrawCellText.aCol">
<short>Not used in the current implementation.</short>
</element>
<element name="TCustomGrid.DrawCellText.aRow">
<short>Not used in the current implementation.</short>
</element>
<element name="TCustomGrid.DrawCellText.aRect">
<short>Text rectangle for the text drawn on the control canvas.</short>
</element>
<element name="TCustomGrid.DrawCellText.aState">
<short>Not used in the current implementation.</short>
</element>
<element name="TCustomGrid.DrawCellText.aText">
<short>Text drawn in the method.</short>
</element>
<element name="TCustomGrid.DrawGridCheckboxBitmaps">
<short>
Draws a check box bitmap which represents the given state in a cell.
</short>
<descr>
<p>
<var>DrawGridCheckboxBitmaps</var> is used to draw a bitmap used for a check
box at the cell coordinates in <var>ACol</var> and <var>aRow</var>.
<var>AState</var> contains the check box state for the cell, and determines
the image displayed in the specified cell.
</p>
<p>
GetImageForCheckBox is called to get the image list, image index, and/or
bitmap used in the cell. Use the OnUserCheckBoxImage or OnUserCheckboxBitmap
event handler to get a custom image or bitmap displayed for the value in
AState. If GetImageForCheckBox is unable to find either a bitmap or an image,
ThemeServices is used to get the theme element details for the check box
state.
</p>
<p>
The bitmap/image/theme element may be scaled if the control Font uses a
display density (PPI) different than the value used for the Screen.
</p>
<p>
When Columns has been Enabled, the GetColumnAlignment and GetColumnLayout
methods are used to determine the image alignment and layout used for the
check box cell. If Columns has not been enabled, the image is centered
horizontally in the cell using the vertical alignment defined for text on the
Canvas.
</p>
<p>
DrawGridCheckboxBitmaps adjusts ARect to use the cell padding for the control
(varCellPadding) along with the size, alignment and layout needed for the
grid column.
</p>
<p>
The check box bitmap is drawn using the mechanism needed for the image
source; ThemeServices.DrawElement, Canvas.StretchDraw, or
TScaledImageListResolution.StretchDraw.
</p>
<p>
DrawGridCheckboxBitmaps is called from the DrawCellCheckboxBitmaps method.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Columns"/>
<link id="TCustomGrid.GetImageForCheckBox"/>
<link id="TCustomGrid.OnUserCheckBoxImage"/>
<link id="TCustomGrid.OnUserCheckBoxBitmap"/>
<link id="TCustomDrawGrid.DefaultDrawCell"/>
</seealso>
</element>
<element name="TCustomGrid.DrawGridCheckboxBitmaps.aCol">
<short>Column number for the check box cell.</short>
</element>
<element name="TCustomGrid.DrawGridCheckboxBitmaps.aRow">
<short>Row number for the check box cell.</short>
</element>
<element name="TCustomGrid.DrawGridCheckboxBitmaps.aRect">
<short>Rectangle with the bounds for the cell.</short>
</element>
<element name="TCustomGrid.DrawGridCheckboxBitmaps.aState">
<short>Checkbox state used to determine the bitmap drawn in the cell.</short>
</element>
<element name="TCustomGrid.DrawButtonCell">
<short>Draws a cell in a button-style column.</short>
<descr>
<p>
<var>DrawButtonCell</var> is a method used to draw a cell which appears in a
button-style column. DrawButtonCell uses ThemeServices to get the theme
element details used to render the button for the cell.
</p>
<p>
<var>AState</var> contains the drawing state for the button, and determines
the theme element details used for the drawing state. The
ThemeServices.DrawElement method is called to render the button on the
control <var>Canvas</var> at the location specified in <var>ARect</var>.
</p>
<p>
DrawButtonCell is called from <var>DefaultDrawCell</var> when the column has
a button-style definition.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.DrawButtonCell.aCol">
<short>Column number for the button cell.</short>
</element>
<element name="TCustomGrid.DrawButtonCell.aRow">
<short>Row number for the button cell.</short>
</element>
<element name="TCustomGrid.DrawButtonCell.aRect">
<short>Rectangle with the bounds where the button is drawn.</short>
</element>
<element name="TCustomGrid.DrawButtonCell.aState">
<short>Drawing state for the button cell; pushed, hot, or normal.</short>
</element>
<element name="TCustomGrid.DrawColRowMoving">
<short>Draws a column or row when dragging is in effect.</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.DrawColumnText">
<short>
Draws the text and image for a grid column title at the specified cell
coordinates.
</short>
<descr>
<p>
<var>DrawColumnText</var> is a method used to draw the text and image for a
grid column title at the cell coordinates specified in <var>ACol</var> and
<var>ARow</var>. DrawColumnText calls <var>DrawColumnTitleImage</var> to draw
the sort indicator for the column. <var>DrawCellText</var> is called to
render the text for the cell using the specified drawing state.
</p>
<p>
DrawColumnText is called from the <var>DefaultDrawCell</var> method in
descendent classes for cells which are fixed column titles.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.DrawColumnText.aCol">
<short>Column number for the column title.</short>
</element>
<element name="TCustomGrid.DrawColumnText.aRow">
<short>Row number for the column title.</short>
</element>
<element name="TCustomGrid.DrawColumnText.aRect">
<short>Rectangle with the bounds for the column title.</short>
</element>
<element name="TCustomGrid.DrawColumnText.aState">
<short>Drawing state for the text in the cell.</short>
</element>
<element name="TCustomGrid.DrawColumnTitleImage">
<short>
Draws the image(s) used in the column title at the specified index in the
grid.
</short>
<descr>
<p>
<var>DrawColumnTitleImage</var> is a method used to draw the image(s) used in
the column title at the index position in <var>AColumnIndex</var>.
<var>ARect</var> contains the bounds for the cell where the image is drawn.
</p>
<p>
When AColumnIndex contains the same value as the <var>SortColumn</var>
property, a sort indicator is drawn for the column.
<var>GetSortTitleImageInfo</var> is called to determine whether theme
services is used to drawn native sort buttons using theme element details.
The image size may be scaled when the display density (PPI) for the control
<var>Font</var> has a value other than 96.
</p>
<p>
DrawColumnTitleImage ensures that image padding (DEFIMAGEPADDING) is applied
to the bounds in ARect. The top and bottom bounds are adjusted so that the
image is vertically centered in the area in ARect.
</p>
<p>
DrawColumnTitleImage calls the <var>DrawElement</var> method in
<var>ThemeServices</var> to draw the sort indicator.
</p>
<p>
When native sort indicators are not used for the column, an image scaled to
the display density is retrieved from the image list. DrawColumnTitleImage
ensures that image padding (DEFIMAGEPADDING) is applied to the bounds in
ARect. The top and bottom bounds are adjusted so that the image is vertically
centered in the area in ARect. The <var>Draw</var> method in the scaled image
resolution is called to draw the image on the control Canvas.
</p>
<p>
<var>TitleImageList</var> is used to determine if an additional image is
displayed for the column at AColumnIndex. When TitleImageList has been
assigned, the <var>GetTitleImageInfo</var> method is called to get the image
list and position used for the column. When an image is defined in
<var>Columns</var>, an image scaled to the size size needed for the display
density (PPI) is retrieved from TitleImageList. The bounds in ARect is
adjusted to include padding around the image (DEFIMAGEPADDING) using the
image layout for the column. The <var>Draw</var> method in the scaled image
resolution is called to render the image to the control Canvas.
</p>
<p>
DrawColumnTitleImage is called from the <var>DrawColumnText</var> method.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.DrawColumnTitleImage.ARect">
<short>Rectangle with the bounds for the column title.</short>
</element>
<element name="TCustomGrid.DrawColumnTitleImage.AColumnIndex">
<short>Column Index for the title image drawn in the method.</short>
</element>
<element name="TCustomGrid.DrawEdges">
<short>
Draws the edges (and filled background) of the client area for the control.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.DrawFocusRect">
<short>Draws the focus rectangle for the specified cell.</short>
<descr>
<p>
DrawFocusRect has an empty implementation in TCustomGrid. It is overridden in
descendent classes.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.DrawFocusRect.aCol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomGrid.DrawFocusRect.aRow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomGrid.DrawFocusRect.ARect">
<short>TRect instance with the bounds for the cell.</short>
</element>
<element name="TCustomGrid.DrawRow">
<short>Draws the columns for the specified row in the grid control.</short>
<descr>
<p>
DrawRow is a method used to draw the columns for the row number specified in
ARow. DrawRow calls ColRowToOffSet to get the upper and lower bounds for the
row, and ensures that the bounds are within the clipping area for the control
Canvas.
</p>
<p>
No actions are performed in the method when the client area for the row does
not fit within the clipping rectangle for the control Canvas.
</p>
<p>
DrawRow iterates over the columns in the visible area in the grid to
determine if each cell fits vertically within the clipping rectangle for the
control Canvas. If column spanning (goColSpanning) has been enabled in the
Options for the grid, the cell extent is determined for each cell. DoDrawCell
is called to render the cells.
</p>
<p>
DrawRow draws the focus rectangle for the row when row selection
(goRowSelect) is enabled in the Options for the grid control. DrawFocusRect
is called to render the focus rectangle.
</p>
<p>
DrawRow draws fixed cells used for title columns when the row is one of the
fixed rows.
</p>
<p>
DrawRow is called from the DrawAllRows method.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.DrawRow.aRow">
<short>Row number drawn in the method.</short>
</element>
<element name="TCustomGrid.EditButtonClicked">
<short>
Signals the OnEditButtonClick or OnButtonClick event handler (when assigned).
</short>
<descr>
<p>
When Sender is the TButtonCellEditor for the control, the DoEditButtonClick
method is called using the Col and Row numbers from the TButtonCellEditor
class instance. Otherwise, DoEditButtonClick is called using the values in
the Col and Row properties.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.EditButtonClicked.Sender">
<short>Object for the event notification.</short>
</element>
<element name="TCustomGrid.EditorDoGetValue">
<short>Gets the value for the cell Editor.</short>
<descr>
<p>
EditorDoGetValue creates a GM_GETVALUE TGridMessage with the Col, Row, and
value for the cell. It is dispatched to the Editor for the control.
SetEditText is called prior to exiting from the method; not used in
TCustomGrid - but relevant in descendent classes with an event handler for
the action.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.EditorDoResetValue">
<short>
Resets the value in the selected cell when a visible editor is cancelled or
hidden.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.EditorDoSetValue">
<short>
Sets the mask and value for a visible cell editor in the grid control.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.EditorCanAcceptKey">
<short>
Returns <b>True</b> if the Editor is able to accept the specified UTF-8
character.
</short>
<descr>
<p>
Always returns <b>True</b> in TCustomGrid. It is overridden in descendent classes like TCustomDbGrid.
</p>
</descr>
<seealso>
<link id="#lcl.dbgrids.TCustomDBGrid.EditorCanAcceptKey">TCustomDBGrid.EditorCanAcceptKey</link>
</seealso>
</element>
<element name="TCustomGrid.EditorCanAcceptKey.Result">
<short>
<b>True</b> the active cell editor can accept the specified UTF-8 character.
</short>
</element>
<element name="TCustomGrid.EditorCanAcceptKey.ch">
<short>
UTF-8 character examined in the method.
</short>
</element>
<element name="TCustomGrid.EditorIsReadOnly">
<short>
Determines if the current column number is defined as read-only.
</short>
<descr>
<p>
Calls GetColumnReadonly using the value in Col as the column number.
</p>
<p>
When the Columns collection has been enabled, the ReadOnly property in the
TGridColumn instance determines the return value. Otherwise, the value from
GetDefaultColumnReadOnly is used as the return value (<b>False</b> in
TCustomGrid).
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.EditorIsReadOnly.Result">
<short>
<b>True</b> if the current column is marked (or defined) as read-only.
</short>
</element>
<element name="TCustomGrid.EditorHide">
<short>Hides a visible cell editor in the grid control.</short>
<descr>
<p>
EditorHide ensures that an active, visible cell editor is locked / hidden /
unlocked in the method. No actions are performed in the method when
EditorLocked returns <b>True</b>, or the Editor is not visible.
</p>
<p>
EditorHide sets the value in EditorMode to <b>False</b>, and sets GridState
to gsNormal.
</p>
<p>
No additional actions are performed when the Editor does not have a Parent
(when the parent form is closing). If the Editor has an assigned Parent, the
Editor is locked and DoEditorHide is called to hide the Editor. If the Editor
was focused on entry, SetFocus is called to restore focus to the grid
control. The editor is unlocked prior to exiting from the method.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.EditorLocked">
<short>
Returns <b>True</b> if the Editor is locked, i.e. unable to accept input or
make changes.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.EditorLocked.Result">
<short>
<b>True</b> when LockEditor has been called and UnLockEditor has not yet been
called.
</short>
</element>
<element name="TCustomGrid.EditingAllowed">
<short>Indicates if the grid and specified column allow editing.</short>
<descr>
<p>
Returns <b>True</b> if both the grid and the specified column allow editing.
The return value is <b>True</b> when all of the following conditions are
satisfied:
</p>
<ul>
<li>goEditing is included in the Options property</li>
<li>ACol contains a valid column index</li>
<li>RowCount has a value larger than the value in FixedRows</li>
<li>The Columns collection has been Enabled (contains at least one visible
column)</li>
<li>A TGridColumn instance exists for the column index in ACol</li>
<li>The TGridColumn instance is not marked as read-only</li>
</ul>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.EditingAllowed.Result">
<short>
Returns <b>True</b> if both the grid and the current column allow editing.
</short>
</element>
<element name="TCustomGrid.EditingAllowed.ACol">
<short>Column number examined in the method.</short>
</element>
<element name="TCustomGrid.EditorSelectAll">
<short>
Performs actions to select the entire content in the current cell.
</short>
<descr>
<p>
EditorSelectAll is a method used to select the entire content in the current
cell when the Editor is active and visible. EditorSelectAll creates,
configures, and dispatches a TGridMessage using the GM_SELECTALL message
constant to the Editor in the grid control.
</p>
<p>
No actions are performed in the method when Editor has not been assigned
(contains <b>Nil</b>).
</p>
<p>
EditorSelectAll is called from the EditorShow method when its SelAll argument
is set to <b>True</b>, and from the IMEStartComposition method.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.EditorShow">
<short>Displays the Editor for the selected cell.</short>
<descr>
<p>
Displays and enables the cell Editor for the selected cell, and optionally
selects all content in the cell.
</p>
<p>
No actions are performed in the method at design-time, or during LCL
component streaming. The grid control must have an allocated Handle, and be
Enabled and Visible (including the Parent). In addition, both the grid and
the column must allow editing. Use Options to enable editing in grid cells.
Use Columns to define TGridColumn instances with editable columns using the
required button style for the column data.
</p>
<p>
No actions are performed in the method when Editor has not been assigned, or
has already been displayed, or is currently locked by a call to LockEditor.
</p>
<p>
EditorShow sets the value in EditorMode to <b>True</b>, and saves the
existing cell value on entry. EditorShowing is set to <b>True</b> to indicate
that the Editor is visible, and calls doEditorShow to display the Editor
control.
</p>
<p>
SelAll indicates whether all of the content in the current cell is selected
in the Editor for the control. When set to <b>True</b>, the EditorSelectAll
method is called to post the GM_SELECTALL message to the Editor control. The
value in GridState is set to gsNormal prior to exiting from the method.
</p>
<p>
EditorShow is called when the value goAlwaysShowEditor is included in the
Options for the grid control. It is also called from methods like:
</p>
<ul>
<li>ResetEditor</li>
<li>MouseDown</li>
<li>MouseUp</li>
<li>DoEnter</li>
<li>KeyDown</li>
<li>KeyPress</li>
<li>MoveExtend</li>
<li>MoveNextSelectable</li>
<li>EditorShowInCell</li>
<li>EditorShowChar</li>
<li>EditorSetMode</li>
</ul>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.EditorShow.SetAll">
<short>
<b>True</b> to select the entire content for the cell in the Editor.
</short>
</element>
<element name="TCustomGrid.EditorShowInCell">
<short>Shows the cell content for the Editor<i>in situ</i>.</short>
<descr/>
<seealso/>
<notes><note>Not used in the current implementation.</note></notes>
</element>
<element name="TCustomGrid.EditorShowInCell.aCol">
<short>Column number where the editor is displayed.</short>
</element>
<element name="TCustomGrid.EditorShowInCell.aRow">
<short>Row number where the editor is displayed.</short>
</element>
<element name="TCustomGrid.EditorWidthChanged">
<short>
Performs actions needed when the width for a cell Editor has been changed.
</short>
<descr>
<p>
<var>EditorWidthChanged</var> performs actions needed to update the width for
the cell Editor when a column width in the grid has been changed.
EditorWidthChanged calls the <var>EditorPos</var> method to set the position,
bounds, and font for the Editor.
</p>
<p>
EditorWidthChanged is called when a new value is assigned to the indexed
<var>ColWidths</var> property, and when column widths are adjusted when
<var>AutoFillColumns</var> is set to <b>True</b>.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.EditorWidthChanged.aCol">
<short>Column number for the affected editor.</short>
</element>
<element name="TCustomGrid.EditorWidthChanged.aWidth">
<short>New width for the cell with the editor control.</short>
</element>
<element name="TCustomGrid.FirstGridColumn">
<short>
Gets the position of the first column after any fixed columns in the grid.
</short>
<descr>
<p>
<var>FirstGridColumn</var> is an <var>Integer</var> function used to get the
ordinal position of the first column appearing after any fixed column in the
grid control. The return value contains the value in the <var>FixedCols</var>
property.
</p>
<p>
FirstGridColumn is used in the implementation of methods including:
</p>
<ul>
<li>GetColWidths</li>
<li>GetIsCellTitle</li>
<li>ColumnIndexFromGridColumn</li>
<li>GridColumnFromColumnIndex</li>
<li>ColumnsChanged</li>
</ul>
</descr>
<seealso>
<link id="TCustomGrid.ColWidths"/>
<link id="TCustomGrid.FixedCols"/>
<link id="TCustomGrid.GetIsCellTitle"/>
<link id="TCustomGrid.ColumnIndexFromGridColumn"/>
<link id="TCustomGrid.GridColumnFromColumnIndex"/>
<link id="TCustomGrid.ColumnsChanged"/>
</seealso>
</element>
<element name="TCustomGrid.FirstGridColumn.Result">
<short>
Position of the first column after any fixed columns in the grid.
</short>
</element>
<element name="TCustomGrid.FixedGrid">
<short>Determines if all columns or all rows in the grid are fixed.</short>
<descr>
<p>
<var>FixedGrid</var> is a <var>Boolean</var> function used to determine
whether all columns in the grid are defined as fixed columns, or all rows are
defined as fixed rows. The return value is <b>True</b> when
<var>FixedCols</var> is equal to <var>ColCount</var> <b>OR</b>
<var>FixedRows</var> is equal to <var>RowCount</var>.
</p>
<p>
FixedGrid is used in the implementation of methods like: SetFixedCols,
SetFixedRows, MouseToGridZone, MouseDown, MouseMove, MouseUp, TryMoveSelect,
EditorAlwaysShown, and FixPosition.
</p>
</descr>
<seealso>
<link id="TCustomGrid.FixedCols"/>
<link id="TCustomGrid.FixedRows"/>
<link id="TCustomGrid.ColCount"/>
<link id="TCustomGrid.RowCount"/>
</seealso>
</element>
<element name="TCustomGrid.FixedGrid.Result">
<short>
<b>True</b> when all of the row or all of the columns in the control are
fixed.
</short>
</element>
<element name="TCustomGrid.FontChanged">
<short>
Performs actions needed when the font for the control is changed.
</short>
<descr>
<p>
<var>FontChanged</var> is an overridden method used to perform actions needed
when the <var>Font</var> for the control has been changed.
</p>
<p>
FontChanged ensures that the internal default heights for rows and columns
are reset to <b>0</b> (<b>zero</b>). This causes the default column and row
heights to be recalculated when the <var>DoAutoAdjustLayout</var> method is
called.
</p>
<p>
When <var>csCustomPaint</var> is included in <var>ControlState</var>, the
Font is assigned to the <var>Canvas</var> for the control.
</p>
<p>
Otherwise, the FontChanged method is called for the ancestor class and the
<var>Columns</var> collection (when Enabled). If the default title font is
used for the control, the Font is assigned to <var>TitleFont</var> property.
</p>
<p>
FontChanged is assigned as the <var>OnChange</var> event handler for the
<var>Font</var> property in the constructor for the class instance.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Columns"/>
<link id="TCustomGrid.TitleFont"/>
<link id="TGridColumn.Title"/>
<link id="TGridColumnTitle.Font"/>
<link id="#lcl.controls.TControl.Font">TControl.Font</link>
<link id="#lcl.controls.TControl.ControlState">TControl.ControlState</link>
<link id="#lcl.controls.TCustomControl.FontChanged">TCustomControl.FontChanged</link>
<link id="#lcl.graphics.TFont">TFont</link>
</seealso>
</element>
<element name="TCustomGrid.FontChanged.Sender">
<short>Object for the event notification.</short>
</element>
<element name="TCustomGrid.GetAutoFillColumnInfo">
<short>Gets auto-fill information for the specified column.</short>
<descr>
<p>
<var>GetAutoFillColumnInfo</var> is a method used to get sizing information
for an auto-fill column specified in <var>Index</var>. <var>AMin</var>,
<var>AMax</var>, and <var>APriority</var> are variable arguments updated with
the values for the requested column.
</p>
<p>
GetAutoFillColumnInfo calls <var>ColumnFromGridColumn</var> to get the
<var>TGridColumn</var> instance in <var>Columns</var> with the requested
values. If a column exists with the requested Index, its properties are
stored in the variable parameters. When Index is a fixed column in the grid,
the value in APriority is set to <b>0</b> (<b>zero</b>) which disables
auto-sizing for the column. If Columns has not been Enabled for the control,
or the column index is not valid, APriority is set to <b>1</b>.
</p>
<p>
GetAutoFillColumnInfo is called when AutoFillColumns is set to <b>True</b>,
and the column sizes are recalculated for the grid control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.AutoFillColumns"/>
<link id="TCustomGrid.ColumnFromGridColumn"/>
<link id="TCustomGrid.Columns"/>
<link id="TGridColumn.MinSize"/>
<link id="TGridColumn.MaxSize"/>
<link id="TGridColumn.SizePriority"/>
</seealso>
</element>
<element name="TCustomGrid.GetAutoFillColumnInfo.Index">
<short>Position for the grid column examined in the method.</short>
</element>
<element name="TCustomGrid.GetAutoFillColumnInfo.aMin">
<short>Minimum size for the column.</short>
</element>
<element name="TCustomGrid.GetAutoFillColumnInfo.aMax">
<short>Maximum size for the column.</short>
</element>
<element name="TCustomGrid.GetAutoFillColumnInfo.aPriority">
<short>Sizing priority for the column.</short>
</element>
<element name="TCustomGrid.GetCellHintText">
<short>
Gets the hint for the specified cell using the Options enabled in the grid
control.
</short>
<descr>
<p>
<var>GetCellHintText</var> signals the <link
id="TCustomGrid.OnGetCellHint">OnGetCellHint</link> event handler (when
assigned) to get the hint text for the cell at the position in
<var>ACol</var> and <var>ARow</var>. The return value contains the hint text
returned from the event handler, or an empty string (<b>''</b>) when the
event handler has not been assigned.
</p>
<p>
GetCellHintText is called from the <var>ShowCellHintWindow</var> method when
<var>Options</var> contains the value <var>goCellHints</var> and
<var>CellHintPriority</var> is <b>not</b> set to <var>chpTruncOnly</var>.
</p>
</descr>
<seealso>
<link id="TCustomGrid.OnGetCellHint"/>
<link id="TCustomGrid.ShowCellHintWindow"/>
<link id="TCustomGrid.Options"/>
<link id="TCustomGrid.CellHintPriority"/>
<link id="TCustomGrid.GetTruncCellHintText"/>
</seealso>
</element>
<element name="TCustomGrid.GetCellHintText.Result">
<short>String with the hint text for the specified cell.</short>
</element>
<element name="TCustomGrid.GetCellHintText.ACol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomGrid.GetCellHintText.ARow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomGrid.GetCells">
<short>Gets the cell content at the specified column and row numbers.</short>
<descr>
<p>
Always returns an empty string ('') in TCustomGrid. Overridden in descendent
classes.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.GetCells.Result">
<short>Content for the specified cell.</short>
</element>
<element name="TCustomGrid.GetCells.ACol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomGrid.GetCells.ARow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomGrid.GetColumnAlignment">
<short>Gets the horizontal Alignment for the specified column.</short>
<descr>
<p>
Calls <var>ColumnFromGridColumn</var> to get the <var>TGridColumn</var>
instance in <var>Columns</var> for the column number in the <var>Column</var>
parameter.
</p>
<p>
<var>ForTitle</var> indicates the alignment used as the return value for the
specified column number. When set to <b>True</b>, the alignment for the Title
in the TGridColumn instance is used as the return value. Otherwise, the
alignment property in the TGridColumn instance is used as the return value.
</p>
<p>
Called from the <var>PrepareCanvas</var> and
<var>DrawGridCheckboxBitmaps</var> methods.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.GetColumnAlignment.Result">
<short>TAlignment value for the column.</short>
</element>
<element name="TCustomGrid.GetColumnAlignment.Column">
<short>Column number examined in the grid.</short>
</element>
<element name="TCustomGrid.GetColumnAlignment.ForTitle">
<short><b>True</b> when the alignment in the column title is used.</short>
</element>
<element name="TCustomGrid.GetColumnColor">
<short>
Gets the Color used to render the background for the specified column number.
</short>
<descr>
<p>
<var>GetColumnColor</var> ensures that the correct color value is used to
render the background for the specified column number.
</p>
<p>
When the Columns collection has been enabled, the color is retrieved from the
TGridColumn instance. The Color property in TGridColumn is used when ForTitle
is set to <b>False</b>. Otherwise, the Color in the Title for the column
instance is used.
</p>
<p>
If the Columns collection has not been enabled, the color is retrieved from
the Color or FixedColor properties in the grid control. FixedColor is used
when ForTitle is set to <b>True</b>.
</p>
<p>
GetColumnColor is called from the PrepareCanvas method.
</p>
<p>
Use properties like AlternateColor, FixedHotColor, FocusColor, and
SelectedColor to control when the corresponding Options are enabled for the
grid control.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.GetColumnColor.Result">
<short>Color the column.</short>
</element>
<element name="TCustomGrid.GetColumnColor.Column">
<short>Column number examined in the method.</short>
</element>
<element name="TCustomGrid.GetColumnColor.ForTitle">
<short>
<b>True</b> when the color for the title in the column is needed.
</short>
</element>
<element name="TCustomGrid.GetColumnFont">
<short>Gets the font used to render values for the specified column.</short>
<descr/>
<seealso>
<link id="TCustomGrid.ColumnFromGridColumn"/>
<link id="TCustomGrid.TitleFont"/>
<link id="TCustomGrid.Columns"/>
<link id="TCustomGrid.PrepareCanvas"/>
<link id="TGridColumn"/>
<link id="#lcl.controls.TControl.Font">TControl.Font</link>
</seealso>
</element>
<element name="TCustomGrid.GetColumnFont.Result">
<short>TFont instance used to render values for the column.</short>
</element>
<element name="TCustomGrid.GetColumnFont.Column">
<short>Column number examined in the method.</short>
</element>
<element name="TCustomGrid.GetColumnFont.ForTitle">
<short><b>True</b> when the font for the column title is needed.</short>
</element>
<element name="TCustomGrid.GetColumnLayout">
<short>Gets the vertical text Layout value for the specified column.</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.GetColumnLayout.Result">
<short>TTextLayout value for the column.</short>
</element>
<element name="TCustomGrid.GetColumnLayout.Column">
<short>Column number examined in the method.</short>
</element>
<element name="TCustomGrid.GetColumnLayout.ForTitle">
<short>
<b>True</b> when the text layout for the column title is needed.
</short>
</element>
<element name="TCustomGrid.GetColumnReadonly">
<short>Returns <b>True</b> if the column is marked as ReadOnly.</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.GetColumnReadonly.Result">
<short>Returns <b>True</b> if the column is marked as ReadOnly.</short>
</element>
<element name="TCustomGrid.GetColumnReadonly.Column">
<short>Column number examined in the method.</short>
</element>
<element name="TCustomGrid.GetColumnTitle">
<short>
Gets the text displayed as the column title for the specified column number.
</short>
<descr>
<p>
<var>GetColumnTitle</var> is a <var>String</var> function used to get the
text displayed as the column title for column number specified in
<var>Column</var>. <var>ColumnFromGridColumn</var> is called to get the
non-fixed <var>TGridColumn</var> instance at the specified position in the
Columns collection.
</p>
<p>
If a column exists at the position in Column, the <var>Caption</var> stored
in its <var>Title</var> property is used as the return value. If Column does
not represent a valid non-fixed column position, or the Columns collection
has not been enabled, the value from the <var>GetDefaultColumnTitle</var>
method is used as the return value.
</p>
<p>
GetColumnTitle is called from the <var>DrawColumnText</var> method when the
image and text for the column header is drawn.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.GetColumnTitle.Result">
<short>Text displayed in the title for the column.</short>
</element>
<element name="TCustomGrid.GetColumnTitle.Column">
<short>Column number for the title text.</short>
</element>
<element name="TCustomGrid.GetColumnWidth">
<short>Gets the width of the column at the specified column number.</short>
<descr>
<p>
<var>GetColumnWidth</var> calls <var>ColumnFromGridColumn</var> to get the
<var>TGridColumn</var> instance for the column number in the
<var>Column</var> parameter. If the grid column is assigned, its Width
property is used as the return value for the method.
</p>
<p>
The grid column may be unassigned (contain <b>Nil</b>) if Column is not a
valid column number for the control, or <var>Columns</var> has not been
<var>Enabled</var> for the grid. In this situation,
<var>GetDefaultColumnWidth</var> is called to get the return value for the
method.
</p>
<remark>
GetColumnWidth is never called in TCustomGrid or TCustomDrawGrid. It is
called from the internal auto-sizing routine in the <var>TCustomDBGrid</var>
descendant.
</remark>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.GetColumnWidth.Result">
<short>Width (in pixels) for the column.</short>
</element>
<element name="TCustomGrid.GetColumnWidth.Column">
<short>Column number examined in the method.</short>
</element>
<element name="TCustomGrid.GetDeltaMoveNext">
<short>
Returns the relative cell coordinates for the next cell in the grid
navigation order.
</short>
<descr>
<p>
<var>AAutoAdvance</var> contains the navigation direction requested in the
method. When it is set to <var>aaNone</var>, the values in <var>ACol</var>
and <var>ARow</var> always contain <b>0</b> (<b>zero</b>) indicating no
relative movement.
</p>
<p>
When <var>Inverse</var> is set to <b>True</b>, the cell navigation order in
AAutoAdvance is reversed. When row selection is enabled in the grid
<var>Options</var> (using <var>goRowSelect</var>), ACol is set to the first
non-fixed column in the grid. Otherwise, it is set to the last column in the
grid. Other auto-advance values are handled as follows:
</p>
<ul>
<li>aaLeft is treated as if it were aaRight</li>
<li>aaRightDown is treated as if it were aaLeftUp</li>
<li>aaLeftDown is treated as if it were aaRightUp</li>
<li>aaRightUp is treated as if it were aaLeftDown</li>
<li>aaLeftUp is treated as if it were aaRightDown</li>
</ul>
<p>
The next cell for the navigation order is calculated and returned in the ACol
and ARow arguments. The return value is <b>True</b> if the values in ACol and
ARow were successfully selected as the current cell in the grid.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.GetDeltaMoveNext.Result">
<short>
<b>True</b> if the calculated cell for the movement is selected in the grid
control.
</short>
</element>
<element name="TCustomGrid.GetDeltaMoveNext.Inverse">
<short><b>True</b> is the navigation order is reversed.</short>
</element>
<element name="TCustomGrid.GetDeltaMoveNext.ACol">
<short>Column number after the navigation request.</short>
</element>
<element name="TCustomGrid.GetDeltaMoveNext.ARow">
<short>Column number after the navigation request.</short>
</element>
<element name="TCustomGrid.GetDeltaMoveNext.AAutoAdvance">
<short>Direction of movement for the request.</short>
</element>
<element name="TCustomGrid.GetDefaultColumnAlignment">
<short>
Gets the default horizontal alignment used for values in the grid control.
</short>
<descr>
<p>
<var>GetDefaultColumnAlignment</var> is a <var>TAlignment</var> function
which provides the default horizontal alignment for text in the columns for
the grid control. It is used in the <var>GetColumnAlignment</var> method when
<var>Columns</var> are not Enabled for the control. GetDefaultColumnAlignment
returns the Alignment value from <var>DefaultTextStyle</var> as stored in the
constructor for the class instance.
</p>
</descr>
<seealso>
<link id="TCustomGrid.GetColumnAlignment"/>
<link id="TCustomGrid.Columns"/>
<link id="TCustomGrid.DefaultTextStyle"/>
<link id="#rtl.classes.TAlignment">TAlignment</link>
</seealso>
</element>
<element name="TCustomGrid.GetDefaultColumnAlignment.Result">
<short>Default horizontal alignment for the specified column.</short>
</element>
<element name="TCustomGrid.GetDefaultColumnAlignment.Column">
<short>Column number is not used in the method </short>
</element>
<element name="TCustomGrid.GetDefaultColumnWidth">
<short>Gets the default width used for the specified column.</short>
<descr>
<p>
GetDefaultColumnWidth is an Integer function which retrieves the default
width for the specified Column in the grid control. GetDefaultColumnWidth is
used in the GetColumnWidth method when Columns have not been enabled for the
control. It returns the value stored in the DefaultColWidth property.
</p>
<p>
Use the indexed ColWidths property to set the width for an individual column
when the Columns collection has not been enabled. Or, use the Columns
collection to maintain column definitions including their editing and display
attributes.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.GetDefaultColumnWidth.Result">
<short>
Default column width for the specified column number.
</short>
</element>
<element name="TCustomGrid.GetDefaultColumnWidth.Column">
<short>
Column number. Ignored in the method.
</short>
</element>
<element name="TCustomGrid.GetDefaultColumnLayout">
<short>
Gets the default vertical layout for text in the specified column.
</short>
<descr>
<p>
<var>GetDefaultColumnLayout</var> gets the default vertical layout for text
in the specified Column. The <var>DefaultTextStyle</var> property is used as
the source for the text Layout, and contains the value assigned in the
constructor for the class instance.
</p>
<p>
GetDefaultColumnLayout is called from <var>GetColumnLayout</var> when a
<var>TGridColumn</var> instance cannot be located in <var>Columns</var> for
the specified column number. This occurs when <var>Column</var> is invalid
for the defined Columns in the control, or when Columns has not been
<var>Enabled</var> (contains at least one visible column).
</p>
<p>
Change values in the DefaultTextStyle property to override the default values
assigned in the Create method. Use the Columns collection to change the text
layout used in a column when Columns are Enabled.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.GetDefaultColumnLayout.Result">
<short>TTextLayout value for the specified column.</short>
</element>
<element name="TCustomGrid.GetDefaultColumnLayout.Column">
<short>Column number examined in the method.</short>
</element>
<element name="TCustomGrid.GetDefaultColumnReadOnly">
<short>
Gets the default setting for the ReadOnly flag in the specified column number.
</short>
<descr/>
<seealso>
<link id="#lcl.dbgrids.TCustomDBGrid.GetDefaultColumnReadOnly">TCustomDBGrid.GetDefaultColumnReadOnly</link>
<link id="#fcl.db.TField.ReadOnly">TField.ReadOnly</link>
</seealso>
</element>
<element name="TCustomGrid.GetDefaultColumnReadOnly.Result">
<short>
Always returns <b>False</b> in TCustomGrid; overridden in descendent classes.
</short>
</element>
<element name="TCustomGrid.GetDefaultColumnReadOnly.Column">
<short>
Ordinal position for the column definition examined in the method.
</short>
</element>
<element name="TCustomGrid.GetDefaultColumnTitle">
<short>
Gets the default text used as the column title for the specified column
number.
</short>
<descr>
<p>
<var>GetDefaultColumnTitle</var> provides the text used for the specified
column number when <var>Columns</var> have not been enabled for the grid
control. GetDefaultColumnTitle always returns an empty string ('') in
<var>TCustomGrid</var>.
</p>
<p>
GetDefaultColumnTitle is called from the <var>GetColumnTitle</var> method.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.GetDefaultColumnTitle.Result">
<short>
Default text used as the column title for the specified column.
</short>
</element>
<element name="TCustomGrid.GetDefaultColumnTitle.Column">
<short>Column number for the default title text.</short>
</element>
<element name="TCustomGrid.GetDefaultEditor">
<short>Gets the default cell editor for the specified column.</short>
<descr>
<p>
<var>GetDefaultEditor</var> is a <var>TWinControl</var> function used to get
the default <var>Editor</var> control for the specified column number.
</p>
<p>
GetDefaultEditor calls <var>EditingAllowed</var> to determine if the column
can be edited. When editing is permitted, the <var>Columns</var> collection
is used to get the ButtonStyle stored in the <var>TGridColumn</var> instance.
If the column uses the cbsAuto button style and has a valid non-empty
PickList, the cbsPickList button style is used.
</p>
<p>
If Columns has not been enabled, the cbsAuto button style is always used for
the Editor control.
</p>
<p>
GetDefaultEditor calls <var>EditorByStyle</var> to create the Editor with the
button style needed for the control. The return value is <b>Nil</b> if the
column does not allow editing, or the current cell is a fixed column or row
header.
</p>
<p>
For an Editor using the cbsPickList button style, its items and drop-down row
count are set using values from the column definition in Columns.
</p>
<p>
GetDefaultEditor is called from the <var>SelectEditor</var> method prior to
selecting the cell and signalling the <var>OnSelectEditor</var> event handler
(when assigned). Use the OnSelectEditor event handler to override the Editor
style or its configuration.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.GetDefaultEditor.Result">
<short>
The control used as the Editor for the specified column number.
</short>
</element>
<element name="TCustomGrid.GetDefaultEditor.Column">
<short>Column number examined in the method.</short>
</element>
<element name="TCustomGrid.GetDefaultRowHeight">
<short>Gets the default height for a row in the grid control.</short>
<descr>
<p>
<var>GetDefaultRowHeight</var> is an <var>Integer</var> function used to get
the default height for a row in the grid control.
</p>
<p>
GetDefaultRowHeight uses a <var>TCanvas</var> instance to get the height for
the text displayed in a row. If the control Canvas is unassigned, or does not
have an allocated handle, a temporary TCanvas instance is created using the
Font for the control. The TextHeight method in Canvas is called to get the
return value for the method.
</p>
<p>
GetDefaultRowHeight is called from the <var>GetDefRowHeight</var> method used
to get the value for the <var>DefaultRowHeight</var> property.
</p>
</descr>
<seealso/>
<notes><note>What are the 7 additional pixels added to the text
height?</note></notes>
</element>
<element name="TCustomGrid.GetDefaultRowHeight.Result">
<short>Default value used as the height for rows in the grid.</short>
</element>
<element name="TCustomGrid.GetGridDrawState">
<short>
Gets the grid drawing state for the cell with the specified column and row
numbers.
</short>
<descr>
<p>
<var>GetGridDrawState</var> is a <var>TGridDrawState</var> function used to
get the state flags for the cell specified in <var>ACol</var> and
<var>ARow</var>. The return value can contain the following enumeration
values:
</p>
<dl>
<dt>gdFixed</dt>
<dd>ARow is one of the FixedRows for the grid.</dd>
<dt>gdFocused</dt>
<dd>ACol and ARow have the same values as the Col and Row properties.</dd>
<dt>gdSelected</dt>
<dd>
ACol and ARow have the same values as the Col and Row properties, or the cell
is included in a selection range.
</dd>
<dt>gdRowHighlight</dt>
<dd>
Row highlighting is enabled in Options, Row and aRow have the same value, and
the cell is not a fixed cell.
</dd>
<dt>gdPushed</dt>
<dd>ACol and ARow match the cached PushedCell coordinates.</dd>
<dt>gdHot</dt>
<dd>ACol and ARow match the cached HotCell coordinates, and the cell is not
"pushed".</dd>
</dl>
<p>
GetGridDrawState is called from the DrawRow and ShowCellHintWIndow methods.
</p>
</descr>
<seealso>
<link id="TCustomGrid.DrawRow"/>
<link id="TCustomGrid.ShowCellHintWIndow"/>
<link id="TGridDrawState"/>
</seealso>
</element>
<element name="TCustomGrid.GetGridDrawState.Result">
<short>
TGridDrawState instance with the state flags for the specified cell.
</short>
</element>
<element name="TCustomGrid.GetGridDrawState.ACol">
<short>Column number for the cell examined in the method.</short>
</element>
<element name="TCustomGrid.GetGridDrawState.ARow">
<short>Row number for the cell examined in the method.</short>
</element>
<element name="TCustomGrid.GetImageForCheckBox">
<short>Gets the bitmap used to draw check box columns in the grid.</short>
<descr>
<p>
<var>GetImageForCheckBox</var> signals the <var>OnUserCheckboxBitmap</var>
event handler (when assigned) to get a bitmap used for the check box state.
If a valid <var>TBitmap</var> instance is not assigned in the event handler,
the <var>OnUserCheckBoxImage</var> event handler is signalled (when assigned)
to get the <var>TImageList</var>, <var>TBitmap</var>, and
<var>ImageIndex</var> used for the purpose.
</p>
<p>
GetImageForCheckBox is used in the implementation of the
<var>DrawGridCheckboxBitmaps</var> and <var>DrawCellText</var> methods in
<var>TCustomGrid</var>.
</p>
</descr>
<seealso>
<link id="TCustomGrid.OnUserCheckboxBitmap"/>
<link id="TCustomGrid.OnUserCheckboxImage"/>
<link id="TCustomGrid.DrawGridCheckboxBitmaps"/>
<link id="TCustomGrid.DrawCellText"/>
</seealso>
</element>
<element name="TCustomGrid.GetImageForCheckBox.aCol">
<short>Column number for the check box cell.</short>
</element>
<element name="TCustomGrid.GetImageForCheckBox.aRow">
<short>Row number for the check box cell.</short>
</element>
<element name="TCustomGrid.GetImageForCheckBox.CheckBoxView">
<short>Checkbox state for the cell.</short>
</element>
<element name="TCustomGrid.GetImageForCheckBox.ImageList">
<short>Image list with images used for check box drawing states.</short>
</element>
<element name="TCustomGrid.GetImageForCheckBox.ImageIndex">
<short>
Ordinal position of the image used for the corresponding check box state.
</short>
</element>
<element name="TCustomGrid.GetImageForCheckBox.Bitmap">
<short>Bitmap with the image drawn for the check box state.</short>
</element>
<element name="TCustomGrid.GetScrollBarPosition">
<short>Gets the position for the specified scroll bar.</short>
<descr>
<p>
<var>GetScrollBarPosition</var> is an <var>Integer</var> function used to get
the position for the scroll bar specified in Which. GetScrollBarPosition
calls the <var>GetScrollInfo</var> routine in the LCL interface to get the
<var>TScrollInfo</var> structure with the position for the scroll bar in
<var>Which</var>.
</p>
<p>
The return value contain the position from the TScrollInfo structure. The
return value is <b>0</b> (<b>zero</b>) if the <var>Handle</var> for the grid
control has not been allocated.
</p>
</descr>
<seealso>
<link id="#lcl.lclintf.GetScrollInfo">GetScrollInfo</link>
<link id="#lcl.lcltype.TScrollInfo">TScrollInfo</link>
</seealso>
</element>
<element name="TCustomGrid.GetScrollBarPosition.Result">
<short>Current position in the specified scroll bar.</short>
</element>
<element name="TCustomGrid.GetScrollBarPosition.Which">
<short>
Indicates the scroll bar (horizontal or vertical) examined in the method.
</short>
</element>
<element name="TCustomGrid.GetSmoothScroll">
<short>Gets the smooth scroll setting in the Options for the grid.</short>
<descr>
GetSmoothScroll determines whether the smooth scroll setting (goSmoothScroll)
has been included in the Options for the grid control.
</descr>
<notes><note>Needs an explanation of what "smooth scroll" really
means.</note></notes>
<seealso/>
</element>
<element name="TCustomGrid.GetSmoothScroll.Result">
<short><b>True</b> when Options contains the value goSmoothScroll.</short>
</element>
<element name="TCustomGrid.GetSmoothScroll.Which">
<short>Not used in the current implementation.</short>
</element>
<element name="TCustomGrid.GetSBVisibility">
<short>
Gets the values for the scroll bar visibility flags in the control.
</short>
<descr/>
<seealso/>
<notes><note>?</note></notes>
</element>
<element name="TCustomGrid.GetSBVisibility.HsbVisible">
<short><b>True</b> if the horizontal scroll bar is visible.</short>
</element>
<element name="TCustomGrid.GetSBVisibility.VsbVisible">
<short><b>True</b> if the vertical scroll bar is visible.</short>
</element>
<element name="TCustomGrid.GetSBRanges">
<short>Gets the range values for the scroll bars when visible.</short>
<descr>
<p>
Called from the CalcScrollbarsRange method when the grid has been scrolled or
when a size value in ColWidths has been changed.
</p>
</descr>
<seealso>
<link id="TCustomGrid.CalcScrollbarsRange"/>
<link id="TCustomGrid.ColWidths"/>
<link id="TCustomGrid.ScrollBy"/>
</seealso>
</element>
<element name="TCustomGrid.GetSBRanges.HsbVisible">
<short>
<b>True</b> if the horizontal scroll bar is visible and updated in the method.
</short>
</element>
<element name="TCustomGrid.GetSBRanges.VsbVisible">
<short>
<b>True</b> if the vertical scroll bar is visible and updated in the method.
</short>
</element>
<element name="TCustomGrid.GetSBRanges.HsbRange">
<short>
Returns the horizontal scroll bar range, or 0 when the scroll bar is not
visible.
</short>
</element>
<element name="TCustomGrid.GetSBRanges.VsbRange">
<short>
Returns the vertical scroll bar range, or 0 when the scroll bar is not
visible.
</short>
</element>
<element name="TCustomGrid.GetSBRanges.HsbPage">
<short>
Returns the page size for the horizontal scroll bar (ClientWidth).
</short>
</element>
<element name="TCustomGrid.GetSBRanges.VsbPage">
<short>
Returns the page size for the vertical scroll bar (ClientHeight).
</short>
</element>
<element name="TCustomGrid.GetSBRanges.HsbPos">
<short>
Returns the position for the thumb bar on the horizontal scroll bar, or 0 if
the scroll bar is not visible.
</short>
</element>
<element name="TCustomGrid.GetSBRanges.VsbPos">
<short>
Returns the position for the thumb bar on the vertical scroll bar, or 0 if the
scroll bar is not visible.
</short>
</element>
<element name="TCustomGrid.GetSelectedState">
<short>
Gets the effective selected state using the control Options and the grid draw
state.
</short>
<descr>
<p>
Called from the PrepareCanvas method when fixed cells are drawn, or when
DefaultDrawing is enabled for the control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.PrepareCanvas"/>
<link id="TCustomGrid.DefaultDrawing"/>
<link id="TCustomGrid.Options"/>
<link id="TGridOption"/>
<link id="TGridOptions"/>
<link id="TGridDrawState"/>
<link id="TGridState"/>
</seealso>
</element>
<element name="TCustomGrid.GetSelectedState.AState">
<short>Grid draw state values examined in the method.</short>
</element>
<element name="TCustomGrid.GetSelectedState.IsSelected">
<short>
<b>True</b> when the state and Options values indicate a selected state.
</short>
</element>
<element name="TCustomGrid.GetEditMask">
<short>Gets the edit mask for the specified cell.</short>
<descr>
<p>
<var>GetEditMask</var> provides the mask posted in a grid message to an
active cell Editor control. It occurs immediately before the grid message that
posts the cell value to the editor control.
</p>
<p>
GetEditMask always returns an empty string ('') in TCustomGrid. It is
overridden in descendent classes.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Editor"/>
<link id="TCustomGrid.EditorDoSetValue"/>
<link id="TCustomDrawGrid.GetEditMask"/>
</seealso>
</element>
<element name="TCustomGrid.GetEditMask.Result">
<short>Edit mask for the specified cell.</short>
</element>
<element name="TCustomGrid.GetEditMask.ACol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomGrid.GetEditMask.ARow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomGrid.GetEditText">
<short>Gets the text displayed in the Editor for the specified cell.</short>
<descr>
<p>
<var>GetEditText</var> always returns an empty string ('') in
<var>TCustomGrid</var>. It is overridden in descendent classes like
TCustomDrawGrid and TCustomStringGrid to signal an <var>OnGetEditText</var>
event handler.
</p>
<p>
GetEditText is called from the <var>EditorDoSetValue</var> method when
<var>TGridMessages</var> are dispatched to the <var>Editor</var> to set the
edit mask and value used in the control.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.GetEditText.Result">
<short>Text displayed in the cell editor.</short>
</element>
<element name="TCustomGrid.GetEditText.ACol">
<short>Column number for the editor text.</short>
</element>
<element name="TCustomGrid.GetEditText.ARow">
<short>Row number for the editor text.</short>
</element>
<element name="TCustomGrid.GetFixedColor">
<short>Gets the value for the FixedColor property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.FixedColor"/>
</seealso>
</element>
<element name="TCustomGrid.GetFixedColor.Result">
<short>Value for the FixedColor property.</short>
</element>
<element name="TCustomGrid.GetFirstVisibleColumn">
<short>
Gets the column number for the first visible non-fixed column in the grid.
</short>
<descr>
<p>
<var>GetFirstVisibleColumn</var> is an <var>Integer</var> function used to
get the column number for the first visible non-fixed column in the grid. A
visible column is one which starts after the fixed columns specified in
<var>FixedCols</var> and has a non-zero width for the column in
<var>ColWidths</var>.
</p>
<p>
The return value contains the column number (zero-based) for the column
matching the criteria. If a non-fixed column with a non-zero width is not
found, the return value is set to <var>ColCount</var>.
</p>
<p>
GetFirstVisibleColumn is called from the KeyDown method when handling
<b>Tab</b> key navigation for the grid control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.FixedCols"/>
<link id="TCustomGrid.ColCount"/>
<link id="TCustomGrid.ColWidths"/>
<link id="TCustomGrid.KeyDown"/>
</seealso>
</element>
<element name="TCustomGrid.GetFirstVisibleColumn.Result">
<short>Column number for the first visible column.</short>
</element>
<element name="TCustomGrid.GetFirstVisibleRow">
<short>
Gets the row number for the first visible non-fixed row in the grid.
</short>
<descr>
<p>
<var>GetFirstVisibleRow</var> is an <var>Integer</var> function used to get
the row number for the first visible non-fixed row in the grid. A visible row
is one which starts after the fixed rows specified in <var>FixedRows</var> and
has a non-zero height for the row in <var>RowHeights</var>.
</p>
<p>
The return value contains the row number (zero-based) for the row matching the
criteria. If a non-fixed row with a non-zero height is not found, the return
value is set to <var>RowCount</var>.
</p>
<p>
GetFirstVisibleRow is called from the KeyDown method when handling <b>Tab</b>
key navigation for the grid control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.FixedRows"/>
<link id="TCustomGrid.RowCount"/>
<link id="TCustomGrid.RowHeights"/>
<link id="TCustomGrid.GetLastVisibleRow"/>
<link id="TCustomGrid.GetFirstVisibleColumn"/>
<link id="TCustomGrid.GetLastVisibleColumn"/>
<link id="TCustomGrid.KeyDown"/>
</seealso>
</element>
<element name="TCustomGrid.GetFirstVisibleRow.Result">
<short>Row number for the first visible row.</short>
</element>
<element name="TCustomGrid.GetLastVisibleColumn">
<short>
Gets the column number for the last visible non-fixed column in the grid.
</short>
<descr>
<p>
<var>GetLastVisibleColumn</var> is an <var>Integer</var> function used to get
the column number for the last visible non-fixed column in the grid. A visible
column is one which has a non-zero width for the column in
<var>ColWidths</var>.
</p>
<p>
The return value contains the column number (zero-based) for the column
matching the criteria. If a column with a non-zero width is not found, the
return value contains -1.
</p>
<p>
GetLastVisibleColumn is called from the KeyDown method when handling
<b>Tab</b> key navigation for the grid control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.FixedCols"/>
<link id="TCustomGrid.ColCount"/>
<link id="TCustomGrid.ColWidths"/>
<link id="TCustomGrid.KeyDown"/>
</seealso>
</element>
<element name="TCustomGrid.GetLastVisibleColumn.Result">
<short>Position for the last visible column in the grid.</short>
</element>
<element name="TCustomGrid.GetLastVisibleRow">
<short>
Gets the row number for the last visible non-fixed row in the grid.
</short>
<descr>
<p>
<var>GetLastVisibleRow</var> is an <var>Integer</var> function used to get the
row number for the last visible non-fixed row in the grid. A visible row is
one which has a non-zero height for the row in <var>RowHeights</var>.
</p>
<p>
The return value contains the row number (zero-based) for the row matching the
criteria. If a row with a non-zero height is not found, the return value
contains -1.
</p>
<p>
GetLastVisibleRow is called from the KeyDown method when handling <b>Tab</b>
key navigation for the grid control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.FixedRows"/>
<link id="TCustomGrid.RowCount"/>
<link id="TCustomGrid.RowHeights"/>
<link id="TCustomGrid.GetFirstVisibleRow"/>
<link id="TCustomGrid.GetFirstVisibleColumn"/>
<link id="TCustomGrid.GetLastVisibleColumn"/>
<link id="TCustomGrid.KeyDown"/>
</seealso>
</element>
<element name="TCustomGrid.GetLastVisibleRow.Result">
<short>Row number for the last visible non-fixed row.</short>
</element>
<element name="TCustomGrid.GetSelectedColor">
<short>Gets the value for the SelectedColor property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.SelectedColor"/>
</seealso>
</element>
<element name="TCustomGrid.GetSelectedColor.Result">
<short>Value for the properly.</short>
</element>
<element name="TCustomGrid.GetTitleShowPrefix">
<short>
Gets the prefix option for the title in the specified column number.
</short>
<descr>
<p>
<var>GetTitleShowPrefix</var> determines whether the <var>DT_NOPREFIX</var>
DrawText flag is included in the <var>Canvas</var> text style for the
specified column. When GetTitleShowPrefix returns <b>False</b>, the
DT_NOPREFIX flag in included in the text style.
</p>
<p>
GetTitleShowPrefix is called from the <var>PrepareCanvas</var> method when
drawing a cell in the fixed rows for the grid.
</p>
</descr>
<seealso>
<link id="TCustomGrid.PrepareCanvas"/>
<link id="TCustomGrid.DrawCell"/>
<link id="#lcl.controls.TCustomControl.Canvas">TCustomControl.Canvas</link>
<link id="#lcl.graphics.TTextStyle">TTextStyle</link>
</seealso>
</element>
<element name="TCustomGrid.GetTitleShowPrefix.Result">
<short><b>True</b> when the TGridColumn is configured to use prefixes.</short>
</element>
<element name="TCustomGrid.GetTitleShowPrefix.Column">
<short>Column number examined in the method.</short>
</element>
<element name="TCustomGrid.GetPxTopLeft">
<short>
Gets a TPoint instance with the top and left coordinates for the first
visible, non-fixed row in the grid control.
</short>
<descr>
<p>
GetPxTopLeft is used to implement scrolling operations in the WMHScroll and
WMVScroll window message handlers.
</p>
</descr>
<seealso>
<link id="TCustomGrid.WMHScroll"/>
<link id="TCustomGrid.WMVScroll"/>
</seealso>
</element>
<element name="TCustomGrid.GetPxTopLeft.Result">
<short>TPoint instance with the coordinates for the row.</short>
</element>
<element name="TCustomGrid.GetTruncCellHintText">
<short>
Gets the truncated version of the hint for the cell at the specified position.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.GetTruncCellHintText.Result">
<short>Truncated text for the cell hint.</short>
</element>
<element name="TCustomGrid.GetTruncCellHintText.ACol">
<short>Column number for the hint text.</short>
</element>
<element name="TCustomGrid.GetTruncCellHintText.ARow">
<short>Row number for the hint text.</short>
</element>
<element name="TCustomGrid.GridColumnFromColumnIndex">
<short>
Gets the ordinal position in Columns for the visible column specified in
ColumnIndex.
</short>
<descr>
<p>
<var>GridColumnFromColumnIndex</var> is an <var>Integer</var> function used
to get the position in Columns for the visible column represented by
ColumnIndex. It is necessary because a grid can include 0 or more fixed
columns. This is a problem because: A) the fixed columns are both optional
and variable, and B) the Columns collection uses ordinal values and never
includes a column definition for fixed column.
</p>
<p>
ColumnIndex refers to the ordinal position for a visible column in the
display area for the grid control. The return value is calculated as
ColumnIndex + FirstGridColumn. In previous versions of the LCL, the value was
derived using values from VisibleIndex and FixedCols.
</p>
<p>
The return value is -1 if the computed value is larger than ColCount-1.
</p>
<p>
GridColumnFromColumnIndex is used when a new value is assigned to the Index
property in a TGridColumn instance. It is also used in the DialogChar method
to locate and perform the OnClick handler for the column header where an
accelerator key is found.
</p>
</descr>
<seealso>
<link id="TCustomGrid.FirstGridColumn"/>
<link id="TCustomGrid.FixedCols"/>
<link id="TCustomGrid.DialogChar"/>
<link id="TGridColumn"/>
<link id="#rtl.classes.TCollectionItem.Index">TCollectionItem.Index</link>
</seealso>
</element>
<element name="TCustomGrid.GridColumnFromColumnIndex.Result">
<short>
Ordinal position in Columns for the visible column in ColumnIndex.
</short>
</element>
<element name="TCustomGrid.GridColumnFromColumnIndex.ColumnIndex">
<short>
Ordinal position for the visible column to locate in the Columns collection.
</short>
</element>
<element name="TCustomGrid.GridMouseWheel">
<short>
Performs actions to apply a mouse wheel message to the grid control.
</short>
<descr>
<p>
<var>GridMouseWheel</var> ensures that the Delta value for the mouse wheel
event is correctly applied for horizontal scroll messages. These are the
scroll messages which occurs when the Ctrl key is pressed. GridMouseWheel
calls the MoveNextSelectable for both horizontal and vertical messages, but
the value in Delta is used as the column argument when Ctrl is included in
the Shift modifier. Otherwise, Delta is used as the Row argument.
</p>
<p>
GridMouseWheel is called from methods like: DoMouseWheelDown, DoMouseWheelUp,
DoMouseWheelLeft, and DoMouseWheelRight.
</p>
</descr>
<seealso>
<link id="TCustomGrid.MoveNextSelectable"/>
<link id="TCustomGrid.DoMouseWheelDown"/>
<link id="TCustomGrid.DoMouseWheelUp"/>
<link id="TCustomGrid.DoMouseWheelLeft"/>
<link id="TCustomGrid.DoMouseWheelRight"/>
</seealso>
</element>
<element name="TCustomGrid.GridMouseWheel.Shift">
<short>Shift state modifier in effect for the action.</short>
</element>
<element name="TCustomGrid.GridMouseWheel.Delta">
<short>Relative change in the current position for the action.</short>
</element>
<element name="TCustomGrid.HeaderClick">
<short>
Performs actions needed when a mouse click occurs in a fixed header for a
grid column or row.
</short>
<descr>
<p>
<var>HeaderClick</var> ensures that the value in <var>SortOrder</var> is
toggled when <var>Index</var> contains the <var>SortColumn</var> defined for
the grid control. SortOrder is set to <var>soAscending</var> when Index
contains a column number other than SortColumn. SortColumn is updated in the
method to use the value in Index as the active sort column.
</p>
<p>
HeaderClick calls the <var>Sort</var> method to sort all non-fixed rows in
the grid control using the content from the column number in Index.
</p>
<p>
No actions are performed in the method when <var>ColumnClickSorts</var> is
set to <b>False</b>.
</p>
<p>
<var>IsColumn</var> indicates whether the header click applies to a column or
a row. When set to <b>True</b>, the mouse click occurred in a fixed header
for the column number in Index. This parameter implies that similar handling
is provided in the method for a header click on a fixed header in a row. No
actions are performed for a header click on a row.
</p>
<p>
HeaderClick is overridden in descendent classes like
<var>TCustomDrawGrid</var> to perform additional actions.
</p>
<p>
HeaderClick is called from methods like DialogChar and MouseUp.
</p>
</descr>
<seealso>
<link id="TCustomGrid.SortColumn"/>
<link id="TCustomGrid.SortOrder"/>
<link id="TCustomGrid.ColumnClickSorts"/>
<link id="TCustomGrid.DialogChar"/>
<link id="TCustomGrid.MouseUp"/>
<link id="TCustomDrawGrid.HeaderClick"/>
</seealso>
</element>
<element name="TCustomGrid.HeaderClick.IsColumn">
<short>
<b>True</b> if the click occurred on a column header. <b>False</b> for a row
header.
</short>
</element>
<element name="TCustomGrid.HeaderClick.Index">
<short>Column (or row) number for the header click.</short>
</element>
<element name="TCustomGrid.HeaderSized">
<short>
Performs actions needed when a column or a row has been resized.
</short>
<descr>
<p>
<var>HeaderSized</var> is used to perform actions needed when the header for
a column or row has been resized in the grid control.
</p>
<p>
<var>IsColumn</var> indicates whether the sizing action applies to a column
or a row. When set to <b>True</b>, the column header has been resized. When
set to <b>False</b>, the row header was resized.
</p>
<p>
<var>Index</var> indicates the column or row number in the grid where the
resizing action occurred.
</p>
<p>
HeaderSized has an empty implementation in <var>TCustomGrid</var>. It is
overridden in descendent classes like <var>TCustomDrawGrid</var> to perform
additional actions.
</p>
<p>
HeaderSized is called from methods like <var>MouseUp</var> (when column or
row sizing is completed) and <var>DblClick</var> (when column sizing is
enabled in the grid <var>Options</var>).
</p>
</descr>
<seealso>
<link id="TCustomGrid.Options"/>
<link id="TCustomGrid.MouseUp"/>
<link id="TCustomGrid.DblClick"/>
<link id="TCustomDrawGrid.HeaderSized"/>
</seealso>
</element>
<element name="TCustomGrid.HeaderSized.IsColumn">
<short>
<b>True</b> if a column was resized, <b>False</b> if a Row was resized.
</short>
</element>
<element name="TCustomGrid.HeaderSized.Index">
<short>Column or row number for the resize operation.</short>
</element>
<element name="TCustomGrid.HeaderSizing">
<short>
Performs actions to resize a column or row to the specified size.
</short>
<descr>
<p>
<var>HeaderSizing</var> has an empty implementation in
<var>TCustomGrid</var>. It is overridden in descendent classes.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.HeaderSizing.IsColumn">
<short>
<b>True</b> when the resize action is for a column, or <b>False</b> for a row.
</short>
</element>
<element name="TCustomGrid.HeaderSizing.AIndex">
<short>Column or row index resized in the method.</short>
</element>
<element name="TCustomGrid.HeaderSizing.ASize">
<short>New size for the column or row.</short>
</element>
<element name="TCustomGrid.HideCellHintWindow">
<short>
Cancels the current hint display and restores the saved hint for the grid
control.
</short>
<descr>
<p>
<var>HideCellHintWindow</var> is a method used to cancel the current hint
display, and to restore the saved <var>Hint</var> for the grid control.
HideCellHintWindow calls the <var>CancelHint</var> method in the
<var>Application</var> singleton to discard the current hint window.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.InternalSetColCount">
<short>
Performs actions needed to set the column count in the grid control.
</short>
<descr>
<p>
Called when a new value is assigned to the ColCount property (SetColCount).
</p>
</descr>
<seealso>
<link id="TCustomGrid.ColCount"/>
<link id="TCustomGrid.SetColCount"/>
</seealso>
</element>
<element name="TCustomGrid.InternalSetColCount.ACount">
<short>New column count for the control </short>
</element>
<element name="TCustomGrid.IsColumnIndexValid">
<short>
Indicates if the specified index position is valid for the columns in the
grid.
</short>
<descr>
<p>
Returns <b>True</b> when <var>AIndex</var> is a valid column index in the
range <b>0..<var>ColCount</var>-1</b>.
</p>
<p>
IsColumnIndexValid is used in several methods which access a column
definition or data by its ordinal position in the grid control.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.IsColumnIndexValid.Result">
<short>
<b>True</b> when Index is in range for the column definitions in the grid.
</short>
</element>
<element name="TCustomGrid.IsColumnIndexValid.AIndex">
<short>Index position examined in the method.</short>
</element>
<element name="TCustomGrid.IsRowIndexValid">
<short>
Indicates if the specified index position is valid for the rows in the grid.
</short>
<descr>
<p>
The return value is <b>True</b> when <var>AIndex</var> is in the range
<b>0..<var>RowCount</var>-1</b>.
</p>
</descr>
<seealso>
<link id="TCustomGrid.RowCount"/>
</seealso>
</element>
<element name="TCustomGrid.IsRowIndexValid.Result">
<short><b>True</b> when Index is in range for the rows in the grid.</short>
</element>
<element name="TCustomGrid.IsRowIndexValid.AIndex">
<short>Index position examined in the method.</short>
</element>
<element name="TCustomGrid.IsColumnIndexVariable">
<short>
<b>True</b> when the column index is in the range FixedCols..ColCount-1.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.IsColumnIndexVariable.Result">
<short>
<b>True</b> when the column index is in the range FixedCols..ColCount-1.
</short>
</element>
<element name="TCustomGrid.IsColumnIndexVariable.AIndex">
<short>Column index position checked in the method.</short>
</element>
<element name="TCustomGrid.IsRowIndexVariable">
<short>
Indicates if the specified row is a valid, non-fixed row in the grid control.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.IsRowIndexVariable.Result">
<short>
<b>True</b> when AIndex is a valid, non-fixed row in the grid control.
</short>
</element>
<element name="TCustomGrid.IsRowIndexVariable.AIndex">
<short>Row number to examine in the method.</short>
</element>
<element name="TCustomGrid.GetIsCellTitle">
<short>
Indicates if the cell at the specified position is a fixed column header.
</short>
<descr>
<p>
Returns <b>True</b> when all of the following conditions are satisfied:
</p>
<ul>
<li>FixedRows contains a positive non-zero value</li>
<li>ARow contains zero (<b>0</b>) (first row in the grid)</li>
<li>ACol contains a value >= FirstGridColumn</li>
</ul>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.GetIsCellTitle.Result">
<short><b>True</b> if the cell is a fixed column header.</short>
</element>
<element name="TCustomGrid.GetIsCellTitle.ACol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomGrid.GetIsCellTitle.ARow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomGrid.GetIsCellSelected">
<short>
Gets the value for the indexed IsCellSelected property.
</short>
<descr>
<p>
Compares the cell coordinates in <var>ACol</var> and <var>ARow</var> to the
current range selection(s) in the grid control. The return value is
<b>True</b> if the cell is in the current range selection for the control.
</p>
<p>
If <var>RangeSelectMode</var> is set to <var>rsmMulti</var>, all of the
existing range selections are examined for the specified cell. The return is
<b>True</b> when the cell is located in the array of rectangles used for
multi-selections in the grid control.
</p>
<p>
Otherwise, the return value is set to <b>False</b>.
</p>
</descr>
<seealso>
<link id="TCustomGrid.IsCellSelected"/>
<link id="TCustomGrid.RangeContains"/>
</seealso>
</element>
<element name="TCustomGrid.GetIsCellSelected.Result">
<short>Boolean value for the indexed property.</short>
</element>
<element name="TCustomGrid.GetIsCellSelected.aCol">
<short>Column number for the cell examined in the method.</short>
</element>
<element name="TCustomGrid.GetIsCellSelected.aRow">
<short>Row number for the cell examined in the method.</short>
</element>
<element name="TCustomGrid.IsEmptyRow">
<short>
Indicates if all non-fixed cells in the specified row are empty.
</short>
<descr/>
<seealso>
<link id="TCustomGrid.GetCells"/>
<link id="TCustomGrid.FixedCols"/>
<link id="TCustomGrid.ColCount"/>
</seealso>
</element>
<element name="TCustomGrid.IsEmptyRow.Result">
<short>
<b>True</b> when all non-fixed cells in the specified row contain empty
strings ('').
</short>
</element>
<element name="TCustomGrid.IsEmptyRow.ARow">
<short>Row number for the cells examined in the method.</short>
</element>
<element name="TCustomGrid.IsMouseOverCellButton">
<short>
Indicates if the specified mouse position is over a cell defined with a
button column cell editor.
</short>
<descr>
<p>
The return value is <b>True</b> when the mouse coordinates in <var>X</var>
and <var>Y</var> are located over a cell which uses a button column cell
editor. IsMouseOverCellButton temporarily disables AllowOutBoundEvents while
the return value is determined.
</p>
<p>
IsMouseOverCellButton is used in the implementation of the MouseDown method
to determine if the cell needs to be drawn in a pushed state.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Columns"/>
<link id="TCustomGrid.ColumnFromGridColumn"/>
<link id="TCustomGrid.AllowOutBoundEvents"/>
<link id="TCustomGrid.MouseToCell"/>
<link id="TGridColumn.ButtonStyle"/>
</seealso>
</element>
<element name="TCustomGrid.IsMouseOverCellButton.Result">
<short>
<b>True</b> when the mouse coordinates in <var>X</var> and <var>Y</var> are
located over a cell which uses a button column cell editor.
</short>
</element>
<element name="TCustomGrid.IsMouseOverCellButton.X">
<short>Horizontal screen coordinate for the mouse pointer.</short>
</element>
<element name="TCustomGrid.IsMouseOverCellButton.Y">
<short>Vertical screen coordinate for the mouse pointer.</short>
</element>
<element name="TCustomGrid.KeyDown">
<short>Handles key down events for the grid control.</short>
<descr>
<p>
<var>KeyDown</var> is overridden in <var>TCustomGrid</var> to ensure that
keys handled by the grid or its <var>Editor</var> are properly applied to the
control. KeyDown calls the inherited method on entry to signal the OnKeyDown
event handler (when assigned) or any other key handlers for the control.
</p>
<p>
CanGridAcceptKey is called to determine whether <var>Key</var> and
<var>Shift</var> are ignored in the control.
</p>
<p>
KeyDown handles the following key codes:
</p>
<dl>
<dt>VK_TAB</dt>
<dd>
Performs cell navigation when goTabs in included in the Options for the grid.
Ensures that goAutoAddRowsSkipContentCheck in Options is supported. When
TabAdvance is set to aaNone, the key and modifier are forwarded to the Editor
control.
</dd>
<dt>VK_LEFT</dt>
<dd>
Moves to the previous cell when the Editor is not active.
</dd>
<dt>VK_RIGHT</dt>
<dd>
Moves to the next cell when the Editor is not active.
</dd>
<dt>VK_UP</dt>
<dd>
Moves the selection to the previous visible row.
</dd>
<dt>VK_DOWN</dt>
<dd>
Moves the selection to the next visible row.
</dd>
<dt>VK_PRIOR (Page Up)</dt>
<dd>
Moves upward in the grid by the number of visible rows.
</dd>
<dt>VK_NEXT (Page Down)</dt>
<dd>
Moves downward in the grid by the number of visible rows.
</dd>
<dt>VK_HOME</dt>
<dd>
Moves to the first non-fixed row in the grid. The current column is used.
When goRelaxedRowSelect is included in Options, the selection is moved to the
first non-fixed column in the current row.
</dd>
<dt>VK_END</dt>
<dd>
Moves to the last non-fixed row in the grid. The current column is used. When
goRelaxedRowSelect is included in Options, the selection is moved to the last
non-fixed column in the current row.
</dd>
<dt>VK_APPS (Menu Pop-up on PC keyboards)</dt>
<dd>
Displays the Pop-up menu for the cell Editor when editing is allowed in the
column.
</dd>
<dt>VK_F2</dt>
<dd>
Selects and displays the cell Editor when editing is allowed in the column.
</dd>
<dt>VK_BACK (Backspace)</dt>
<dd>
Forwards the Backspace character (^H) to the cell Editor when editing is
allowed in the column.
</dd>
<dt>VK_C</dt>
<dd>
Performs a copy to clipboard operation when ssCtrl or ssMeta is in the Shift
modifier.
</dd>
<dt>VK_V</dt>
<dd>
Performs a paste from clipboard operation when ssCtrl or ssMeta is in the
Shift modifier.
</dd>
<dt>VK_X</dt>
<dd>
Performs a cut to clipboard operation when ssShift is in the Shift modifier.
</dd>
<dt>VK_DELETE</dt>
<dd>
Clears the value in the cell Editor and redraws the current cell when editing
is allowed for the column.
</dd>
<dt>VK_ESCAPE</dt>
<dd>
Resets the value in the cell Editor, and hides the Editor control when it is
both assigned and visible.
</dd>
</dl>
<p>
When Key is handled in the method, it is set to 0 (zero).
</p>
<p>
Called from EditorKeyDown when key down events are enabled in the
EditorOptions for the control.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TWinControl.KeyDown">TWinControl.KeyDown</link>
</seealso>
</element>
<element name="TCustomGrid.KeyDown.Key">
<short>Key code examined in the method.</short>
</element>
<element name="TCustomGrid.KeyDown.Shift">
<short>Shift / Ctrl / Alt modifier for the key code.</short>
</element>
<element name="TCustomGrid.KeyUp" link="#lcl.controls.TWinControl.KeyUp"/>
<element name="TCustomGrid.KeyUp.Key" link="#lcl.controls.TWinControl.KeyUp.Key"/>
<element name="TCustomGrid.KeyUp.Shift" link="#lcl.controls.TWinControl.KeyUp.Shift"/>
<element name="TCustomGrid.KeyPress">
<short>
Applies the specified key press character to the control.
</short>
<descr>
<p>
<var>KeyPress</var> is a method used to apply the character in <var>Key</var>
to the grid control. KeyPress is overridden to ensure that a key which
originated from the grid control is applied properly to the cell
<var>Editor</var> (when needed). It calls the inherited method on entry to
signal the <var>OnKeyPress</var> event handler (when assigned).
</p>
<p>
KeyPress uses the value in <var>EditorKey</var> to determine if Key applies to
an active cell Editor on the control. If KeyDown did not flag the value for
the Editor control, the following values in Key are handled in the method:
</p>
<dl>
<dt>Enter (#13)</dt>
<dd>
Gets and displays the cell Editor when EditMode is <b>False</b> and the
column allows editing. This includes signalling the OnSelectEditor event
handler (when assigned).
</dd>
<dt>Backspace (^H), and characters in the range #32..#255 (data)</dt>
<dd>
Calls EditorShowChar to apply the key press to the Editor (when editing is
enabled).
</dd>
</dl>
<p>
When Key is handled in the method, it is set to #0 prior to exit.
</p>
<remark>
The SendCharToEditor implementation in the Windows widgetset was modified
in LCL version 4.0. It changed the message delivery mechanism from
PostMessageW (asynchronous) to SendMessageW (synchronous) to avoid duplicate
or unintentional message delivery to the grid and/or cell editor controls.
</remark>
</descr>
<seealso>
<link id="TCustomGrid.KeyDown"/>
<link id="TCustomGrid.EditorKey"/>
<link id="TCustomGrid.EditorShow"/>
<link id="TCustomGrid.EditorCanAcceptKey"/>
<link id="TCustomGrid.EditorIsReadOnly"/>
<link id="TCustomGrid.SelectEditor"/>
<link id="TCustomGrid.OnSelectEditor"/>
<link id="#lcl.controls.TWinControl.KeyPress">TWinControl.KeyPress</link>
<link id="#lcl.controls.TWinControl.OnKeyPress">TWinControl.OnKeyPress</link>
</seealso>
</element>
<element name="TCustomGrid.KeyPress.Key">
<short>
Key press character examined in the method.
</short>
</element>
<element name="TCustomGrid.LoadContent">
<short>
Loads values for the grid control from the specified XML configuration file.
</short>
<descr>
<p>
<var>LoadContent</var> is a method used to load content from the XML
configuration file specified in <var>cfg</var> into the grid control.
</p>
<p>
Design-time settings for the grid control are loaded from the XML file when
soDesign is included in the SaveOptions property and the XML file includes
the corresponding values.
</p>
<p>
Property values loaded in the method include:
</p>
<ul>
<li>Color</li>
<li>ColCount</li>
<li>RowCount</li>
<li>FixedCols</li>
<li>FixedRows</li>
<li>DefaultRowHeight</li>
<li>DefaultColWidth</li>
<li>ColWidths</li>
<li>RowHeights</li>
<li>Columns</li>
</ul>
<p>
The LoadGridOptions method is called to load values for the Options and
Options2 properties.
</p>
<p>
The columns and rows visible in the grid control are loaded and restored when
they are included in the XML file. This includes the range selection
rectangle in RangeSelect when enabled in the Options for the control.
</p>
<remark>
In TCustomGrid, LoadContent does not load the cell values for the control.
That process is implemented in descendent classes which handle the data
type(s) supported in the implementation.
</remark>
</descr>
<seealso>
<link id="TCustomStringGrid.LoadContent"/>
</seealso>
</element>
<element name="TCustomGrid.LoadContent.cfg">
<short>Configuration file with values loaded in the method.</short>
</element>
<element name="TCustomGrid.LoadContent.Version">
<short>LCL Grid version number for the values processed in the method.</short>
</element>
<element name="TCustomGrid.LoadGridOptions">
<short>
Loads design-time values for the Options in a grid from an XML configuration
file.
</short>
<descr>
<p>
LoadGridOptions is method used to load value for the Options and Options2
properties from the XML configuration file specified in cfg.
</p>
<p>
Design-time settings for the grid control are loaded from the XML file when
soDesign is included in the SaveOptions property and the XML file includes
the corresponding values. LoadGridOptions reads the enumeration values for
both properties from the XML configuration file and stores the set types to
the Options and Options2 properties.
</p>
<p>
LoadGridOptions is called during execution of the LoadContent method.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Options"/>
<link id="TCustomGrid.Options2"/>
<link id="TCustomGrid.LoadContent"/>
<link id="TCustomGrid.SaveContent"/>
<link id="TCustomGrid.SaveOptions"/>
</seealso>
</element>
<element name="TCustomGrid.LoadGridOptions.cfg">
<short>XML configuration file instance examined in the method.</short>
</element>
<element name="TCustomGrid.LoadGridOptions.Version">
<short>LCL version for the grid option data.</short>
</element>
<element name="TCustomGrid.Loaded">
<short>
Performs actions when the component has been loaded using LCL component
streaming.
</short>
<descr>
<p>
Calls the inherited method on entry, and calls VisualChange to resize columns
and redraw the grid control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.VisualChange"/>
<link id="#lcl.controls.TWinControl.Loaded">TWinControl.Loaded</link>
</seealso>
</element>
<element name="TCustomGrid.LockEditor">
<short>Locks the Editor so that it cannot accept input or changes.</short>
<descr>
<p>
<var>LockEditor</var> increments the value for the internal lock counter used
to get the return value for the EditorLocked method. LockEditor is called
from the MouseDown method when a mouse click occurs in the cell data for the
grid control, and prevents a cell Editor from being displayed until the mouse
event is handled. It is also called from the EditorHide method to prevent
access to an Editor until the current one is hidden.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.MouseButtonAllowed">
<short>
Indicates if the specified mouse button is a mouse down event used in the
control.
</short>
<descr>
<p>
Called from the MouseDown method to ignore Right mouse clicks in the grid
control at design-time. This allows the mouse event to be handled as a
context menu on the form design surface.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.MouseButtonAllowed.Result">
<short>
<b>True</b> if the specified mouse button is valid for the grid control.
</short>
</element>
<element name="TCustomGrid.MouseButtonAllowed.Button">
<short>TMouseButton value examined in the method.</short>
</element>
<element name="TCustomGrid.MouseDown">
<short>Handles mouse down events for the grid control.</short>
<descr>
<p>
<var>MouseDown</var> is overridden in <var>TCustomGrid</var> to ensure that
cached grid information in <var>GCache</var> is updated for mouse down
events, and both GridState and GridFlags are updated for the control.
</p>
<p>
MouseDown calls the inherited method to handle focus changes for the control
and drag operations. The OnMouseDown event handler is signalled (when
assigned) by the ancestor.
</p>
<p>
No additional actions are performed in the method at design-time, when the
mouse Button is not allowed in the grid control, or when the control cannot
receive focus.
</p>
<p>
MouseDown ensures that the grid control is focused when visible and enabled,
and does not contain csNoFocus in the ControlStyle flags. MouseDown updates
GCache with the coordinates for the mouse down event. The grid "hot" zone in
the cached information determines the value assigned to GridState, GridFlags,
CursorState and the actions performed for the mouse event.
</p>
<p>
<b>gzFixedCells</b>
</p>
<p>
Sets GridState to gsColSizing when both goColSizing and goFixedColSizing have
been included in the Options and the cursor state is gcsColWidthChanging.
</p>
<p>
Otherwise, GridState is set to gsHeaderClicking. The cell is drawn in a
"pushed" state when goHeaderPushedLook is included in Options and the grid
zone is in HeaderPushZones.
</p>
<p>
<b>gzFixedCols</b>
</p>
<p>
GridState is set to gsColSizing when goColSizing has been included in the
Options and the cursor state is gcsColWidthChanging.
</p>
<p>
Otherwise, GridState is set to gsColMoving. The cell is drawn in a "pushed"
state when goHeaderPushedLook is included in Options and the grid zone is in
HeaderPushZones.
</p>
<p>
<b>gzFixedRows</b>
</p>
<p>
GridState is set to gsRowMoving when goRowSizing is included in Options and
CursorState is gcsRowHeightChanging.
</p>
<p>
Otherwise, GridState is set to gsRowMoving. The cell is drawn using the
"pushed" state when goHeaderPushedLook is included in Options and the grid
zone is in HeaderPushZones.
</p>
<p>
<b>gzNormal</b>
</p>
<p>
When the mouse down event is over a button-style cell, it is drawn in the
"pushed" state. No additional actions are needed for the event.
</p>
<p>
Other cells use the values in Options and CursorState to determine whether
the mouse event is for column sizing, selection, or enabling/disabling the
cell editor. GridState is updated to the corresponding value.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TControl.MouseDown">TControl.MouseDown</link>
</seealso>
</element>
<element name="TCustomGrid.MouseDown.Button">
<short>Mouse button for the event.</short>
</element>
<element name="TCustomGrid.MouseDown.Shift">
<short>Shift state for the event.</short>
</element>
<element name="TCustomGrid.MouseDown.X">
<short>Horizontal coordinate for the mouse event.</short>
</element>
<element name="TCustomGrid.MouseDown.Y">
<short>Vertical coordinate for the mouse event.</short>
</element>
<element name="TCustomGrid.MouseMove">
<short>
Applies a change in the mouse pointer position to the grid control.
</short>
<descr>
<p>
<var>MouseMove</var> is an overridden method in <var>TCustomGrid</var>. It
calls the inherited method on entry to update the DragManager when it is
active, and to signal the OnMouseMove event handler (when assigned). No
additional actions are performed in the method if a drag operation is already
active in the DragManager.
</p>
<p>
If the mouse coordinates are located in the fixed headers for the control,
hot tracking and cell down / pushed drawing are applied to the grid control
when enabled in Options.
</p>
<p>
Cell selections are handled for the mouse movement depending on grid state
values and Options set for the control. No additional actions are performed
in the method when gsHeaderClicking or gsButtonColumnClicking are in the grid
state for the control. Performs the following for a corresponding mouse
movement:
</p>
<dl>
<dt>
Extend an active selection in the control when needed.
</dt>
<dd>
Calls MoveExtend when the mouse pointer is not in the current selection, not
in a fixed header area for the control, and editing is not active or allowed.
Occurs when gsSelecting is in the grid state values for the control.
</dd>
<dt>
Move the column under the mouse pointer.
</dt>
<dd>
Occurs when goColMoving is in Options.
</dd>
<dt>
Resize the column under the mouse pointer.
</dt>
<dd>
Occurs when goColSizing is in Options.
</dd>
<dt>
Resize the row under the mouse pointer.
</dt>
<dd>
Occurs when goRowSizing is in Options.
</dd>
</dl>
<p>
MouseMove sets the Hint displayed for the cell under the mouse pointer when
ShowHint is enabled. Values in Hint, CellHintPriority, Options, and the
OnGetCellHint event handler are used for the purpose. If the mouse pointer is
not over a cell, the Hint for the application is reset to a previous hint or
an empty string ('') when saved hint text is not available.
</p>
<p>
Called from WMMouseMove when a LM_MOUSEMOVE window message is handled for the
grid control.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TControl.MouseMove">TControl.MouseMove</link>
<link id="#lcl.controls.TControl.WMMouseMove">TControl.WMMouseMove</link>
</seealso>
</element>
<element name="TCustomGrid.MouseMove.Shift">
<short>Ctrl, Alt, or Shift modifier for the mouse event.</short>
</element>
<element name="TCustomGrid.MouseMove.X">
<short>Horizontal coordinate for the mouse pointer.</short>
</element>
<element name="TCustomGrid.MouseMove.Y">
<short>Vertical coordinate for the mouse pointer.</short>
</element>
<element name="TCustomGrid.MouseUp">
<short>
Handles a mouse up event for the grid control.
</short>
<descr>
<p>
<var>MouseUp</var> is an overridden method in <var>TCustomGrid</var> used to
perform actions needed when a mouse up event has been received for the grid
control. It calls the inherited method on entry to signal the OnMouseUp event
handler (when assigned). MouseUp performs additional actions based on the
grid zone where the mouse up event occurred and the current grid state flags
for the control.
</p>
<p>
For example:
</p>
<dl>
<dt>
Mouse event on a fixed header for the grid.
</dt>
<dd>
Calls HeaderClick for the column header under the mouse pointer. Changes the
sort order in the column when enabled. Occurs when gsHeaderClicking is in the
grid state flags.
</dd>
<dt>
Mouse event on a column button in the grid header.
</dt>
<dd>
Calls DoEditButton to signal the OnEditButtonClick or OnButtonClick event
handlers (when assigned). Occurs when gsButtonColumnClicking is in the grid
state flags.
</dd>
<dt>
Mouse event on a non-fixed cell in the grid control.
</dt>
<dd>
Selects and displays an editor for the cell, and calls the CellClick method
to apply the mouse event to the cell. If a selection is already active in the
control, it is extended to include the range of cells ending at the mouse
pointer. Occurs when gsNormal or gsSelecting is in the grid state flags.
</dd>
<dt>
The mouse event occurs when dragging a column header.
</dt>
<dd>
Moves the dragged column to the column position under the mouse pointer.
Calls HeaderClick to refresh the sort order for cells in the column. Occurs
when gsColMoving is in the grid state flags.
</dd>
<dt>
The mouse event occurs when dragging a row header.
</dt>
<dd>
Moves the dragged row to the row position under the mouse pointer. Calls
HeaderClick to refresh the sort order for cells in the row. Occurs when
gsRowMoving is in the grid state flags.
</dd>
<dt>
The mouse event occurs when resizing a column header.
</dt>
<dd>
Calls ResizeColumn to apply the new column size, and calls the HeaderSized
method for the resized column number. Occurs when gsColSizing is in the grid
state flags.
</dd>
<dt>
The mouse event occurs when resizing a row header.
</dt>
<dd>
Calls ResizeRow to apply the new row size, and calls the HeaderSized method
for the resized row number. Occurs when gsRowSizing is in the grid state
flags.
</dd>
</dl>
<p>
Values in GridFlags are updated to remove flag values for the handled
actions, and the grid state is set to gsNormal prior to exit.
</p>
<p>
MouseUp is called when window messages are handled in the WMLButtonUp,
WMRButtonUp, and WMXButtonUp methods in the ancestor class.
</p>
</descr>
<seealso>
<link id="TCustomGrid.GridFlags"/>
<link id="TGridState"/>
<link id="TGridScroller"/>
<link id="#lcl.controls.TControl.MouseUp">TControl.MouseUp</link>
<link id="#lcl.controls.TControl.OnMouseUp">TControl.OnMouseUp</link>
<link id="#lcl.controls.TControl.WMLButtonUp">TControl.WMLButtonUp</link>
<link id="#lcl.controls.TControl.WMRButtonUp">TControl.WMRButtonUp</link>
<link id="#lcl.controls.TControl.WMXButtonUp">TControl.WMXButtonUp</link>
</seealso>
</element>
<element name="TCustomGrid.MouseUp.Button">
<short>Mouse button for the event notification.</short>
</element>
<element name="TCustomGrid.MouseUp.Shift">
<short>Ctrl, Alt, or Shift modifier for the mouse event.</short>
</element>
<element name="TCustomGrid.MouseUp.X">
<short>Horizontal coordinate for the mouse pointer.</short>
</element>
<element name="TCustomGrid.MouseUp.Y">
<short>Vertical coordinate for the mouse pointer.</short>
</element>
<element name="TCustomGrid.MoveExtend">
<short>
Moves the selected cell or extends a selection using the specified column and
row values.
</short>
<descr>
<p>
Calls TryMoveSelection to perform the selection change using the specified
arguments. No actions are performed in the method when:
</p>
<ul>
<li>
FixedGrid is <b>True</b>. All cells are fixed and cannot be selected.
</li>
<li>
DCol and DRow are not valid for the Col, Row, ColCount or RowCount for the
grid control.
</li>
</ul>
</descr>
<seealso>
<link id="TCustomGrid.TryMoveSelection"/>
<link id="TCustomGrid.SelectCell"/>
<link id="TCustomGrid.FixedGrid"/>
<link id="TCustomGrid.Col"/>
<link id="TCustomGrid.ColCount"/>
<link id="TCustomGrid.Row"/>
<link id="TCustomGrid.RowCount"/>
</seealso>
</element>
<element name="TCustomGrid.MoveExtend.Result">
<short>
<b>True</b> if the selection was moved or extended in the method.
</short>
</element>
<element name="TCustomGrid.MoveExtend.Relative">
<short>
<b>True</b> if the selection is extended by the relative number of columns
and rows. <b>False</b> to move the selection to the specified cell
coordinates.
</short>
</element>
<element name="TCustomGrid.MoveExtend.DCol">
<short>
Column number for the selection, or the delta when a selection is extended.
</short>
</element>
<element name="TCustomGrid.MoveExtend.DRow">
<short>
Row number for the selection, or the delta when a selection is extended.
</short>
</element>
<element name="TCustomGrid.MoveExtend.ForceFullyVisible">
<short>
<b>True</b> if the cell in DCol and DRow must be fully visible after the
selection change.
</short>
</element>
<element name="TCustomGrid.MoveNextAuto">
<short>Moves to the next cell in the auto-advance sequence.</short>
<descr>
<p>
<var>MoveNextAuto</var> calls the <var>GetDeltaMoveNext</var> method to
determine the column and row number for the next cell in the auto-advance
sequence. It also sets the return value for the method. When it returns
<b>True</b>, the <var>MoveNextSelectable</var> method is called to move to
the new cell position in the direction indicated by <b>Inverse</b>.
</p>
<p>
MoveNextAuto is called from the EditorKeyPress method when the Enter or
Shift+Enter key press is handled for the editor control on the grid.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.MoveNextAuto.Result">
<short>
<b>True</b> if a column and row number were successfully determined for the
movement.
</short>
</element>
<element name="TCustomGrid.MoveNextAuto.Inverse">
<short>
<b>True</b> to move to the previous cell in the auto-advance sequence.
<b>False</b> (the default value) to move forward in the sequence.
</short>
</element>
<element name="TCustomGrid.MoveNextSelectable">
<short>
Moves to the next selectable cell in the specified direction.
</short>
<descr>
<p>
<var>MoveNextSelectable</var> is a <var>Boolean</var> function used to move
either or extend the selection in the grid control by a specified number of
selectable columns and rows.
</p>
<p>
Relative indicates whether the column and row arguments are relative to the
current Col and Row (or current cell), or represent an absolute cell address.
</p>
<p>
When Relative is set to <b>True</b>, DCol and DRow can have positive or
negative values which indicate the direction in which the selection is moved
or extended. A positive value in DCol indicates the selection moves to the
right. A negative moves the selection to the left. A positive value in DRow
moves the selection towards the bottom of the grid. A negative value moves
the selection towards the top of the grid.
</p>
<p>
Applications do not normally call MoveNextSelectable; it is used in the
implementation of methods like:
</p>
<ul>
<li>KeyDown</li>
<li>MoveNextAuto</li>
<li>CheckPosition</li>
<li>GridMouseWheel</li>
</ul>
<p>
It is also called when a new value is assigned to the FixedCols or FixedRows
property.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.MoveNextSelectable.Result">
<short>
<b>True</b> if the selection was successfully moved or extended in the method.
</short>
</element>
<element name="TCustomGrid.MoveNextSelectable.Relative">
<short>
<b>True</b> if the selection is extended in the direction indicated by DCol
and DRow. <b>False</b> if the selection is moved to the destination cell.
</short>
</element>
<element name="TCustomGrid.MoveNextSelectable.DCol">
<short>
Destination column for the selection.
</short>
</element>
<element name="TCustomGrid.MoveNextSelectable.DRow">
<short>
Destination row for the selection.
</short>
</element>
<element name="TCustomGrid.MoveSelection">
<short>
Signals the OnSelection event handler for a new mouse selection.
</short>
<descr>
<p>
<var>MoveSelection</var> signals the <var>OnSelection</var> event handler
(when assigned) using the values in <var>Col</var> and <var>Row</var> as
arguments.
</p>
<p>
Use The OnBeforeSelection, OnSelection, and OnAfterSelection event handlers
to perform actions needed before, during, or after a range is selected on the
grid control.
</p>
<p>
Use OnSelectCell to determine whether a specific column and row number can
actually be selected.
</p>
<p>
Called from the MouseDown method when a mouse click in the non-fixed area for
the grid is detected. It is also called from MoveExtend when range selection
(goRangeSelect) is enabled in the Options for the control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.OnSelection"/>
<link id="TCustomGrid.OnBeforeSelection"/>
<link id="TCustomGrid.OnAfterSelection"/>
<link id="TCustomGrid.Options"/>
<link id="TCustomGrid.MouseDown"/>
<link id="TCustomGrid.MoveExtend"/>
</seealso>
</element>
<element name="TCustomGrid.Notification">
<short>
Performs actions needed when the specified component is added to or removed
from the control.
</short>
<descr>
<p>
<var>Notification</var> is an overridden method in <var>TCustomGrid</var>. It
calls the inherited method on entry to handle notifications in ancestor
classes and their child components. It ensures that the reference in
TitleImageList is set <b>Nil</b> when the component is removed from the
control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.TitleImageList"/>
<link id="#lcl.controls.TControl.Notification">TControl.Notification</link>
<link id="#rtl.classes.TComponent">TComponent</link>
</seealso>
</element>
<element name="TCustomGrid.Notification.AComponent">
<short>Component for the notification.</short>
</element>
<element name="TCustomGrid.Notification.Operation">
<short>Operation performed for the specified component.</short>
</element>
<element name="TCustomGrid.OffsetToColRow">
<short>Determines the index of a column or row for a the specified offset.</short>
<descr/>
<seealso/>
<version>
Index and Rest arguments were changed to output parameters in LCL version 2.1
(revision 65087).
</version>
</element>
<element name="TCustomGrid.OffsetToColRow.Result">
<short>
<b>True</b> if a column and row number was identified for the specified
offset.
</short>
</element>
<element name="TCustomGrid.OffsetToColRow.IsCol">
<short>
<b>True</b> if the offset is for a column, <b>False</b> for a row.
</short>
</element>
<element name="TCustomGrid.OffsetToColRow.Physical">
<short>
<b>True</b> for a physical offset (i.e. relative to the scrolled grid),
<b>False</b> for a logical offset (i.e. relative to the unscrolled grid).
</short>
</element>
<element name="TCustomGrid.OffsetToColRow.Offset">
<short>Distance of the location to be tested (in pixels) from the left edge of
the grid (in case of IsCol=<b>true</b>) or the top edge of the grid (in case of IsCol=<b>false</b>).</short>
</element>
<element name="TCustomGrid.OffsetToColRow.Index">
<short>Index of the column or row at the specified offset.</short>
</element>
<element name="TCustomGrid.OffsetToColRow.Rest">
<short>Remaining pixels between the Offset value and the left edge of the column
(in case of IsCol=<b>true</b>) or the top edge of the row (in case of IsCol=<b>false</b>)
identified by Index.</short>
</element>
<element name="TCustomGrid.Paint">
<short>Draws the edges, borders, and rows in the grid control.</short>
<descr>
<p>
<var>Paint</var> is an overridden method in <var>TCustomGrid</var> used to
update and draw the grid control.
</p>
<p>
Values in <var>GridFlags</var> and <var>GCache</var> are examined to
determine if a visual change to the columns or the client area for the
control is in progress. For either condition, the <var>ResetSizes</var>
method is called to handle the visual change(s) and the flag values are
removed from GridFlags.
</p>
<p>
Paint calls the inherited method to signal the <var>OnPaint</var> event
handler in the ancestor class.
</p>
<p>
If there are no other active updates for the control, methods are called to
draw the edges and all visible rows in the control. If a column move
operation is in effect, the <var>Canvas</var> is updated to display a drag
cursor with the color defined in the grid. Borders for the control are drawn
prior to exiting from the method.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TCustomControl.Paint">TCustomControl.Paint</link>
</seealso>
</element>
<element name="TCustomGrid.PickListItemSelected">
<short>
Signals the OnPickListSelect event handler when a selection is made in a
picklist.
</short>
<descr>
<p>
Called from the Select method when the text for the cell value is stored in a
cell using a picklist-style Editor.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.PickListItemSelected.Sender">
<short>Object for the event notification.</short>
</element>
<element name="TCustomGrid.PrepareCanvas">
<short>
Prepares the canvas for drawing the cell at the specified location.
</short>
<descr>
<p>
<var>PrepareCanvas</var> ensures that the <var>Canvas</var> for the control
is properly configured to draw the cell at ACol and ARow using the drawing
state specified in <var>AState</var>. Flags in AState and the values from the
<var>Options</var>, <var>Enabled</var>, <var>DefaultDrawing</var> and
<var>EditorMode</var> properties determine the <var>Pen</var>,
<var>Brush</var>, <var>Font</var>, and <var>TextStyle</var> settings used in
the control <var>Canvas</var>.
</p>
<p>
PrepareCanvas is called from <var>ShowCellHintWIndow</var> when truncated
cell hints are enabled in the <var>Options</var> for the grid. It is also
called from <var>DrawCell</var> before drawing the filled rectangle and grid
lines for the cell.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.PrepareCanvas.aCol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomGrid.PrepareCanvas.aRow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomGrid.PrepareCanvas.aState">
<short>Drawing state applied to the canvas for the specified cell.</short>
</element>
<element name="TCustomGrid.PrepareCellHints">
<short>Prepares the control to display hints for a cell.</short>
<descr>
<p>
<var>PrepareCellHints</var> has an empty implementation in
<var>TCustomGrid</var>, and may be overridden or re-implemented in descendent
classes (like TCustomDBGrid, TDBGrid).
</p>
<p>
PrepareCellHints is called from the <var>ShowCellHintWIndow</var> method.
</p>
</descr>
<seealso>
<link id="TCustomGrid.ShowCellHintWIndow"/>
<link id="#lcl.dbgrids.TCustomDBGrid.PrepareCellHints">TCustomDBGrid.PrepareCellHints</link>
</seealso>
</element>
<element name="TCustomGrid.PrepareCellHints.ACol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomGrid.PrepareCellHints.ARow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomGrid.RangeContains">
<short>
Indicates whether the specified grid rectangle contains the specified cell
coordinates.
</short>
<descr>
<p>
<var>RangeContains</var> is a <var>Boolean</var> function used to determine
whether the grid rectangle specified in the <var>ARange</var> argument
contains the cell specified in the <var>ACol</var> and <var>ARow</var>
arguments. The return value is <b>True</b> if the <var>TGridRect</var>
instance includes the specified cell coordinates; ACol must be between the
Left and Right members (inclusive) in the rectangle, ARow must be between the
Top and Bottom members (inclusive) in the rectangle.
</p>
<p>
RangeContains is called from the GetIsCellSelected method and occurs when the
IsCellSelected property is examined during mouse down event handling and state
draw operations for the grid control.
</p>
</descr>
<version>
Added in LCL version 4.5.
</version>
<seealso>
<link id="TCustomGrid.IsCellSelected"/>
<link id="TCustomGrid.GetIsCellSelected"/>
<link id="TCustomGrid.GetGridDrawState"/>
<link id="TCustomGrid.MouseDown"/>
<link id="TCustomGrid.DrawRow"/>
</seealso>
</element>
<element name="TCustomGrid.RangeContains.ARange">
<short>
Grid rectangle with the cell coordinates examined in the method.
</short>
</element>
<element name="TCustomGrid.RangeContains.ACol">
<short>
Column number for the cell to locate in the specified rectangle.
</short>
</element>
<element name="TCustomGrid.RangeContains.ARow">
<short>
Row number for the cell to locate in the specified rectangle.
</short>
</element>
<element name="TCustomGrid.RangeContains.Result">
<short>
Returns <b>True</b> if the specified cell exists in the specified grid
rectangle.
</short>
</element>
<element name="TCustomGrid.ResetDefaultColWidths">
<short>Restores the default width for columns in the grid.</short>
<descr>
<p>
<var>ResetDefaultColWidths</var> updates an internal member with the list of
column widths currently in use for the grid. The width for each column is set
to <b>-1</b> to indicate that an explicit value has not been assigned for the
column width.
</p>
<p>
ResetDefaultColWidths calls the <var>VisualChange</var> method after
resetting the column widths to their default values. No actions are performed
in the method when <var>AutoFillColumns</var> contains <b>True</b>.
</p>
</descr>
<seealso>
<link id="TCustomGrid.VisualChange"/>
<link id="TCustomGrid.AutoFillColumns"/>
</seealso>
</element>
<element name="TCustomGrid.ResetEditor">
<short>
Resets the value in the cell Editor, and optionally re-displays and selects
it content.
</short>
<descr>
<p>
<var>ResetEditor</var> is a procedure used to reset the value in the cell
Editor to the stored content for the current cell in the grid control.
</p>
<p>
ResetEditor calls <var>EditorGetValue</var> to retrieve the value for the
current cell and to perform validation using the <var>OnValidateEntry</var>
event handler (when assigned). If the column allows editing and
<var>goAlwaysShowEditor</var> has been included in the <var>Options</var> for
the grid, the <var>EditorShow</var> method is called to re-display the cell
Editor and re-select all of the cell content.
</p>
<p>
ResetEditor is called from the <var>DoExit</var> method when the grid control
receives the <var>CM_EXIT</var> control message.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.ResetLastMove">
<short>
Resets the member used to track the last row or column movement.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.ResetOffset">
<short>Resets cached column (Top/Left) and row offsets.</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.ResetOffset.Result">
<short>
<b>True</b> if column or row offsets were updated in the method.
</short>
</element>
<element name="TCustomGrid.ResetOffset.chkCol">
<short>
<b>True</b> if the column offset is checked and updated, or <b>False</b> to
ignore the cached offset.
</short>
</element>
<element name="TCustomGrid.ResetOffset.ChkRow">
<short>
<b>True</b> if the row offset is checked and updated, or <b>False</b> to
ignore the cached offset.
</short>
</element>
<element name="TCustomGrid.ResetSizes">
<short>Resets the internal column sizes.</short>
<descr>
<p>
No actions are performed in the method when the internal list of column sizes
has not been allocated, during component streaming, or when the handle has
not been allocated for the grid control.
</p>
<p>
Calls UpdateCachedSizes to recalculate the cached grid information in GCache.
Calls CacheVisibleGrid to cache the current visible grid (excluding fixed
cells).
</p>
<p>
Called from the Paint method when the client width or height has changed for
the control.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.ResizeColumn">
<short>Resizes the specified column number to the given width.</short>
<descr>
<p>
<var>ResizeColumn</var> is a method used to set the width for the column
number specified in <var>ACol</var> to to the value in <var>AWidth</var>.
</p>
<p>
ResizeColumn ensures that the value in AWidth is at least <b>0</b>
(<b>zero</b>). A negative column size is invalid. The value in AWidth is
stored to the <var>ColWidths</var> property at the index position in ACol.
</p>
<p>
Use <var>ResizeRow</var> or <var>RowHeights</var> to change the height for a
specific row in the grid control.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.ResizeColumn.aCol">
<short>Column number resized in the method.</short>
</element>
<element name="TCustomGrid.ResizeColumn.aWidth">
<short>New width for the column.</short>
</element>
<element name="TCustomGrid.ResizeRow">
<short>Resizes the specified row number to the given height.</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.ResizeRow.aRow">
<short>Row number resized in the method.</short>
</element>
<element name="TCustomGrid.ResizeRow.aHeight">
<short>New height for the row.</short>
</element>
<element name="TCustomGrid.RowHeightsChanged">
<short>
Performs actions needed when the values in RowHeights have been changed.
</short>
<descr>
<p>
<var>RowHeightsChanged</var> has an empty implementation in the current
version of the LCL. It is called when a new value is assigned to the
RowHeights property and occurs after the cache, scroll bars, and cell editor
position have been updated for the control.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.SaveContent">
<short>
Saves design-time configuration, column and row settings, and data to the
specified XML configuration file.
</short>
<descr>
<p>
Use LoadContent to load values saved in SaveContent method.
</p>
</descr>
<seealso>
<link id="TCustomGrid.SaveOptions"/>
<link id="TCustomGrid.SaveGridOptions"/>
<link id="TCustomGrid.LoadContent"/>
</seealso>
<notes>
<note>Needs to be updated using LoadContent as a template.</note>
</notes>
</element>
<element name="TCustomGrid.SaveContent.cfg">
<short>TXMLConfig instance where the content is stored.</short>
</element>
<element name="TCustomGrid.SaveGridOptions">
<short>Saves grid options to the specified XML configuration file.</short>
<descr>
<p>
Stores <var>TGridOption</var> and <var>TGridOption2</var> enumeration values
found in the <var>Options</var> and <var>Options2</var> properties to the XML
configuration file specified in <var>cfg</var>. Used in the implementation of
the <var>SaveContent</var> method.
</p>
<p>
Use <var>LoadContent</var> to load option settings into the current grid
class instance.
</p>
</descr>
<seealso>
<link id="TGridOption"/>
<link id="TGridOption2"/>
<link id="TCustomGrid.Options"/>
<link id="TCustomGrid.Options2"/>
<link id="TCustomGrid.SaveContent"/>
<link id="TCustomGrid.LoadContent"/>
</seealso>
</element>
<element name="TCustomGrid.SaveGridOptions.cfg">
<short>XML configuration file where values are stored.</short>
</element>
<element name="TCustomGrid.ScrollBarRange">
<short>Sets range information for the specified scroll bar.</short>
<descr>
<p>
<var>Which</var> contains an <var>Integer</var> value which indicates the
scroll bar updated in the method. It corresponds to the SB_Horz, or SB_Vert
values defined in the <file>lcltype.pp</file> unit. <var>ARange</var>,
<var>APage</var>, and <var>APos</var> contain the values applied to the
corresponding scroll bar.
</p>
<p>
ScrollBarRange allocates and initializes the <var>TScrollInfo</var> structure
passed as an argument to the SetScrollInfo routine in the LCL interface. The
value in the APos argument is translated for a horizontal scroll bar to be
relative to ARange when right-to-left reading is used in the control.
</p>
<p>
ScrollBarRange is called from the <var>UpdateHorzScrollBar</var> and
<var>UpdateVertScrollbar</var> methods.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.ScrollBarRange.Which">
<short>
Integer constant which identifies the scroll bar updated in the method.
</short>
</element>
<element name="TCustomGrid.ScrollBarRange.aRange">
<short>
Maximum value for the scroll bar range.
</short>
</element>
<element name="TCustomGrid.ScrollBarRange.aPage">
<short>
Specifies the page size for the proportionally-sized thumb bar.
</short>
</element>
<element name="TCustomGrid.ScrollBarRange.aPos">
<short>
Current position in the scroll bar range.
</short>
</element>
<element name="TCustomGrid.ScrollBarPosition">
<short>
Sets the position for the specified scroll bar to the given value.
</short>
<descr>
<p>
<var>ScrollBarPosition</var> is a method used to set position for the scroll
bar specified in <var>Which</var> to the new <var>Value</var>.
</p>
<p>
Which contains either SB_Horz or SB_Vert, and identifies the scroll bar
affected in the method.
</p>
<p>
Value contains the new position for the scroll bar.
</p>
<p>
ScrollBarPosition uses the SetScrollInfo routine to update the scroll bar
position. It allocates the TScrollInfo structure and stores Value as the
scroll bar position in the structure.
</p>
<p>
ScrollBarPosition calls ScrollBarIsVisible to determine if the scroll bar in
Which is visible. The visibility is used when calling SetScrollInfo.
</p>
<p>
No actions are performed in the method if the Handle has not been allocated
for the grid control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.ScrollBarPage"/>
<link id="TCustomGrid.ScrollBarRange"/>
</seealso>
</element>
<element name="TCustomGrid.ScrollBarPosition.Which">
<short>Scroll bar updated in the method.</short>
</element>
<element name="TCustomGrid.ScrollBarPosition.Value">
<short>New position for the scroll bar.</short>
</element>
<element name="TCustomGrid.ScrollBarIsVisible">
<short>Returns <b>True</b> if the specified scroll bar is visible.</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.ScrollBarIsVisible.Result">
<short>
<b>True</b> if the specified scroll bar is visible.
</short>
</element>
<element name="TCustomGrid.ScrollBarIsVisible.Which">
<short>
Identifies the scroll bar examined in the method (SB_Horz, SB_Vert).
</short>
</element>
<element name="TCustomGrid.ScrollBarPage">
<short>Updates the page size for the specified scroll bar.</short>
<descr>
<p>
Allocates and populates a TScrollInfo structure used to update the scroll
information for the specified scroll bar(s). Calls the SetScrollInfo routine
in the LCL interface to apply to the scroll information with the new page
size.
</p>
<p>
No actions are performed in the method if the Handle has not been allocated
for the grid control.
</p>
<p>
<var>Which</var> is an <var>Integer</var> argument that specifies the scroll
bar(s) affected in the method, and can include the following constant values:
</p>
<dl>
<dt>SB_HORZ</dt>
<dd>Horizontal scroll bar</dd>
<dt>SB_VERT</dt>
<dd>Vertical scroll bar</dd>
<dt>SB_BOTH</dt>
<dd>Both horizontal and vertical scroll bars</dd>
</dl>
<remark>
ScrollBarPage is not used in the current LCL implementation.
</remark>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.ScrollBarPage.Which">
<short>
Identifies the scroll bar affected in the method.
</short>
</element>
<element name="TCustomGrid.ScrollBarPage.aPage">
<short>
New value for the page size used on the proportional thumb bar.
</short>
</element>
<element name="TCustomGrid.ScrollBarShow">
<short>
Displays or hides scroll bar(s) for the grid control.
</short>
<descr>
<p>
<var>ScrollBarShow</var> is a procedure used to control the visibility of the
scroll bars for the grid.
</p>
<p>
<var>Which</var> is an <var>Integer</var> argument that specifies the scroll
bar(s) affected in the method, and can include the following constant values:
</p>
<dl>
<dt>SB_HORZ</dt>
<dd>Horizontal scroll bar</dd>
<dt>SB_VERT</dt>
<dd>Vertical scroll bar</dd>
<dt>SB_BOTH</dt>
<dd>Both horizontal and vertical scroll bars</dd>
</dl>
<p>
<var>aValue</var> is a <var>Boolean</var> argument that indicates if the
specified scroll bar(s) are visible or hidden. When aValue contains
<b>True</b>, the corresponding scroll bar(s) are displayed. Otherwise, they
are hidden.
</p>
<p>
No actions are performed in the method if a handle has not been allocated for
the grid (<var>HandleAllocated</var> returns <b>False</b>). ScrollBarShow
ensures that <var>gfUpdatingScrollbar</var> is included in the grid flags
prior to calling the <var>ShowScrollBar</var> routine in the LCL interface.
The flag value is removed immediately after updating the scroll bar display.
Internal members used to track scroll bar visibility are set to the state
requested in AValue.
</p>
<p>
ScrollBarShow is called from the UpdateHorzScrollBar and UpdateVertScrollbar
methods, as well as the private UpdateSBVisibility method.
</p>
</descr>
<seealso>
<link id="TGridFlags"/>
<link id="TGridFlagsOption"/>
<link id="#lcl.controls.TWinControl.HandleAllocated">TWinControl.HandleAllocated</link>
<link id="#lcl.lclintf.ShowScrollBar">ShowScrollBar</link>
</seealso>
</element>
<element name="TCustomGrid.ScrollBarShow.Which">
<short>Scrollbar(s) affected in the method.</short>
</element>
<element name="TCustomGrid.ScrollBarShow.aValue">
<short><b>True</b> indicates the scroll bar(s) are visible.</short>
</element>
<element name="TCustomGrid.ScrollBarAutomatic">
<short>
Indicates whether an automatic scroll bar of the given type is used on the
grid control.
</short>
<descr>
<p>
Translates the value in Which to the automatic equivalent (ssAutoVertical,
ssAutoHorizontal, ssAutoBoth), and checks the ScrollBars property for the
value(s).
</p>
</descr>
<seealso>
<link id="TCustomGrid.ScrollBars"/>
<link id="#lcl.stdctrls.TScrollStyle">TScrollStyle</link>
</seealso>
</element>
<element name="TCustomGrid.ScrollBarAutomatic.Result">
<short>
<b>True</b> if an automatic scroll bar is used for the specified type.
</short>
</element>
<element name="TCustomGrid.ScrollBarAutomatic.Which">
<short>
Scrollbar type (ssHorizontal or ssVertical) checked in the method.
</short>
</element>
<element name="TCustomGrid.ScrollBy">
<short>
Scrolls the non-fixed area for the control by the specified delta values.
</short>
<descr>
<p>
<var>ScrollBy</var> us an overridden method in <var>TCustomGrid</var>. No
actions are performed in the method when both DeltaX and DeltaY contain 0
(zero).
</p>
<p>
ScrollBy calls ScrollWindowEx to perform the scrolling operation for the
non-fixed client area on the control. It updates the visible grid area in the
cached information for the control, and recalculates the scroll bar ranges.
</p>
<p>
ScrollBy is called from the TrySmoothScrollBy method, and occurs when scroll
bar messages or mouse wheel events are handled for the grid control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.FixedCols"/>
<link id="TCustomGrid.FixedRows"/>
<link id="TCustomGrid.TrySmoothScrollBy"/>
<link id="TCustomGrid.LeftCol"/>
<link id="TCustomGrid.TopRow"/>
<link id="TCustomGrid.GridMouseWheel"/>
<link id="#lcl.controls.TWinControl.ScrollBy">TWinControl.ScrollBy</link>
<link id="#lcl.controls.TControl.ClientRect">TControl.ClientRect</link>
</seealso>
</element>
<element name="TCustomGrid.ScrollBy.DeltaX">
<short>
Scroll amount in the horizontal direction. A negative value scrolls to the
left, and a positive value scrolls to the right.
</short>
</element>
<element name="TCustomGrid.ScrollBy.DeltaY">
<short>
Scroll amount in the vertical direction. A negative value scrolls toward the
top, and a positive value scrolls toward the bottom.
</short>
</element>
<element name="TCustomGrid.SelectEditor">
<short>
Gets the cell editor for the current cell, and sets its PopupMenu.
</short>
<descr>
<p>
Calls <var>GetDefaultEditor</var> to retrieve the default <var>Editor</var>
used for the column where the current cell is located (<var>Col</var>).
</p>
<p>
In situations where the current cell is not selectable in the grid, when
<var>FixedGrid</var> is <b>True</b> as an example, the default cell Editor is
set to <b>Nil</b>. The <var>OnSelectEditor</var> event handler is signalled
(when assigned) to determine if a cell Editor (or none) is available for the
editable column.
</p>
<p>
If an Editor has been assigned, but does not have a PopupMenu, the
<var>PopupMenu</var> for the grid control is used in the Editor.
</p>
<p>
SelectEditor is called when <var>goEditing</var> is included in the
<var>Options</var> for the grid control. It is also called when Options is
configured to always display cell editors (<var>goAlwaysShowEditor</var>),
and an editable non-fixed cell is selected in the <var>MouseDown</var>
method. Similarly, it is called from <var>MouseUp</var> when a mouse click
selects a new editable cell in the grid control.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.SelectCell">
<short>
Determines whether the specified cell can be selected in the grid control.
</short>
<descr>
<p>
<var>SelectCell</var> is a <var>Boolean</var> function used to determine
whether the cell specified in <var>ACol</var> and <var>ARow</var> can be
selected in the grid control. The return value is <b>True</b> when both
<var>ColWidths</var> and <var>RowHeights</var> have positive non-zero values
for the column and row numbers where the cell is located.
</p>
<p>
SelectCell is used in the implementation of methods like
<var>TryMoveSelection</var>, <var>CheckPosition</var>,
<var>SelectEditor</var>, and <var>GetDeltaMoveNext</var>. It is overridden in
<var>TCustomDrawGrid</var> to signal the <var>OnSelectCell</var> event
handler (when assigned).
</p>
<p>
Component developers may use the <var>SelectCell</var> method to react to
focus changes. The <var>Result</var> is <b>True</b> if the cell can be
selected.
</p>
</descr>
</element>
<element name="TCustomGrid.SelectCell.Result">
<short><b>True</b> when the cell can be selected in the grid control.</short>
</element>
<element name="TCustomGrid.SelectCell.ACol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomGrid.SelectCell.ARow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomGrid.SetCanvasFont">
<short>Sets the Canvas font to the specified value.</short>
<descr>
<p>
<var>SetCanvasFont</var> is used to assign the <var>TFont</var> instance in
<var>AFont</var> to the <var>Canvas</var> for the grid control.
</p>
<p>
Different fonts can be used to render the title in fixed headers and the data
in the cells. The font used is determined (and assigned) when the
PrepareCanvas method configures the Canvas to draw cells in the grid.
SetCanvasFont ensures that the new font is stored in an internal member when
the font is assigned to the Canvas.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.SetCanvasFont.aFont">
<short>Font applied to the canvas for the grid.</short>
</element>
<element name="TCustomGrid.SetColCount">
<short>Sets the value in the ColCount property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.ColCount"/>
</seealso>
</element>
<element name="TCustomGrid.SetColCount.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomGrid.SetColor">
<short>Sets the value in the Color property.</short>
<descr/>
<seealso>
<link id="#lcl.controls.TControl.Color">TControl.Color</link>
</seealso>
</element>
<element name="TCustomGrid.SetColor.Value">
<short>New value for the property.</short>
</element>
<element name="TCustomGrid.SetColRow">
<short>
Makes the specified column and row a selected cell in the grid control.
</short>
<descr>
<p>
ACol and ARow contain the coordinates for the cell affected in the method.
</p>
<p>
WithEvents indicates whether the specified cell is added to the Selections
for the grid control, or if it becomes the selected cell.
</p>
<p>
When WithEvents is set to <b>True</b>, MoveExtend is called to add the cell
to the current range. This also causes the Click method to be called to
signal the OnClick event handler (when assigned).
</p>
<p>
When WithEvents is set to <b>False</b>, argument values are assigned to the
Col and Row properties in the grid control. UpdateSelectionRange is called to
update the cell rectangle for the cell or row selection.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Col"/>
<link id="TCustomGrid.Row"/>
<link id="TCustomGrid.UpdateSelectionRange"/>
<link id="TCustomGrid.MoveExtend"/>
<link id="TCustomGrid.Click"/>
</seealso>
</element>
<element name="TCustomGrid.SetColRow.ACol">
<short>Column number for the selected cell.</short>
</element>
<element name="TCustomGrid.SetColRow.ARow">
<short>Row number for the selected cell.</short>
</element>
<element name="TCustomGrid.SetColRow.withEvents">
<short>
<b>True</b> if the OnClick event handler is signalled for the change to the
selected range.
</short>
</element>
<element name="TCustomGrid.SetCursor">
<short>Changes the cursor shape in the grid to the specified value.</short>
<descr>
<p>
<var>SetCursor</var> is an overridden method in <var>TCustomGrid</var>.
SetCursor calls the inherited method to perform the
<var>CM_CURSORCHANGED</var> message for the control, and calls
<var>ChangeCursor</var> to save the previous Cursor and apply the shape in
<var>AShape</var> to the <var>Cursor</var> property.
</p>
</descr>
<seealso>
<link id="TCustomGrid.CursorState"/>
<link id="TCustomGrid.ColSizingCursor"/>
<link id="TCustomGrid.RowSizingCursor"/>
</seealso>
</element>
<element name="TCustomGrid.SetCursor.AValue">
<short>Cursor shape used for the mouse pointer in the grid.</short>
</element>
<element name="TCustomGrid.SetEditText">
<short>Sets the value used in the cell Editor to the specified text.</short>
<descr>
<p>
Sets the text displayed in the <var>Editor</var> for the cell at the
position specified in <var>ACol</var> and <var>ARow</var> to the given value.
</p>
<p>
<var>SetEditText</var> has an empty implementation in <var>TCustomGrid</var>.
It is overridden in <var>TCustomDrawGrid</var> to signal the
<var>OnSetEditText</var> event handler (when assigned).
</p>
<p>
SetEditText is used in <var>KeyDown</var> when the <b>Escape</b> key
(<b>VK_ESCAPE</b>) is not handled by the grid control. It is called from the
<var>EditorGetValue</var> method when a visible cell Editor is updated. It is
called from <var>EditorTextChanged</var> method when the value in a cell
Editor has been altered using the <var>Change</var> or <var>Select</var>
methods in the editor control.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.SetEditText.ACol">
<short>Column number for the editor value.</short>
</element>
<element name="TCustomGrid.SetEditText.ARow">
<short>Row number for the editor value.</short>
</element>
<element name="TCustomGrid.SetEditText.Value">
<short>New value for the cell Editor.</short>
</element>
<element name="TCustomGrid.SetBorderStyle">
<short>Sets the value for the BorderStyle property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.BorderStyle"/>
</seealso>
</element>
<element name="TCustomGrid.SetBorderStyle.NewStyle">
<short>New value for the BorderStyle property.</short>
</element>
<element name="TCustomGrid.SetFixedColor">
<short>Sets the value for the FixedColor property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.FixedColor"/>
</seealso>
</element>
<element name="TCustomGrid.SetFixedColor.AValue">
<short>New value for the FixedColor property.</short>
</element>
<element name="TCustomGrid.SetFixedCols">
<short>Sets the value for the FixedCols property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.FixedCols"/>
</seealso>
</element>
<element name="TCustomGrid.SetFixedCols.AValue">
<short>New value for the FixedCols property.</short>
</element>
<element name="TCustomGrid.SetFixedRows">
<short>Sets the value for the FixedRows property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.FixedRows"/>
</seealso>
</element>
<element name="TCustomGrid.SetFixedRows.AValue">
<short>New value for the FixedRows property.</short>
</element>
<element name="TCustomGrid.SetRawColWidths">
<short>
Sets the width for the specified column number in the internal list.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.SetRawColWidths.ACol">
<short>Column number for the specified width.</short>
</element>
<element name="TCustomGrid.SetRawColWidths.AValue">
<short>Width in pixels for the specified column.</short>
</element>
<element name="TCustomGrid.SetSelectedColor">
<short>Sets the value for the SelectedColor property.</short>
<descr/>
<seealso>
<link id="TCustomGrid.SelectedColor"/>
</seealso>
</element>
<element name="TCustomGrid.SetSelectedColor.AValue">
<short>New value for the SelectedColor property.</short>
</element>
<element name="TCustomGrid.SetFadeUnfocusedSelection">
<short>Sets the value for the FadeUnfocusedSelection property.</short>
<descr>
<p>
Changing the value for the property causes the control to be redrawn.
</p>
</descr>
<seealso>
<link id="TCustomGrid.FadeUnfocusedSelection"/>
<link id="TCustomGrid.Invalidate"/>
</seealso>
</element>
<element name="TCustomGrid.SetFadeUnfocusedSelection.AValue">
<short>New value for the FadeUnfocusedSelection property.</short>
</element>
<element name="TCustomGrid.ShowCellHintWindow">
<short>
Gets and displays the cell hint(s) for the current cell in the grid.
</short>
<descr>
<p>
<var>ShowCellHintWindow</var> is a procedure used to get and display cell
hint(s) for the cell located at the position in <var>APoint</var>. APoint
contains client-relative coordinates for the mouse pointer used to locate the
cell for the hint. The values in APoint are translated to screen coordinates
(using ClientToScreen) when the cell hint is displayed by the application.
</p>
<p>
Values in the Options and the CellHintPriority properties determine the text
available for use as cell hints. The grid can display three types of hint: the
default hint for the control (Hint property), individual cell hints (OnCellHint
event), and hints for truncated cells. TCellHintPriority determines how the
overall hint is combined when multiple hint texts are to be displayed.
</p>
<p>
GetCellHintText and GetTruncCellHintText are called to get the corresponding
hint text(s) for the options and hint priority. AddToHint is called to apply
the derived text to the values displayed in the control using its Hint
property. The Application.ActivateHint method is called to display the hint
window at the screen coordinates for the value in APoint.
</p>
<p>
No actions are performed in the method when:
</p>
<ul>
<li>ShowHints contains <b>False</b>,</li>
<li>The mouse pointer is not positioned over a grid cell,</li>
<li>EditorMode is <b>True</b>,</li>
<li>or at design-time.</li>
</ul>
<p>
ShowCellHintWindow is called from the MouseMove method, and occurs after a
prior hint displayed by the application has been cancelled and the cell for the
mouse pointer has has been updated in the grid cache.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Options"/>
<link id="TCustomGrid.CellHintPriority"/>
<link id="TCustomGrid.GetCellHintText"/>
<link id="TCustomGrid.GetTruncCellHintText"/>
<link id="TCustomGrid.HideCellHintWindow"/>
<link id="TCustomGrid.MouseMove"/>
<link id="TGridDataCache"/>
<link id="#lcl.forms.TApplication.ActivateHint">TApplication.ActivateHint</link>
<link id="#lcl.controls.TControl.ClientToScreen">TControl.ClientToScreen</link>
</seealso>
</element>
<element name="TCustomGrid.ShowCellHintWindow.APoint">
<short>
Client coordinates for the mouse pointer.
</short>
</element>
<element name="TCustomGrid.SizeChanged">
<short>
Performs actions needed when the number of columns or rows has been changed.
</short>
<descr>
<p>
<var>SizeChanged</var> has an empty implementation in <var>TCustomGrid</var>.
It is overridden in <var>TCustomDrawGrid</var> to perform a notification when
the column and/or row count has been changed for the control.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.SizeChanged.OldColCount">
<short>Previous number of columns.</short>
</element>
<element name="TCustomGrid.SizeChanged.OldRowCount">
<short>Previous number of rows.</short>
</element>
<element name="TCustomGrid.Sort">
<short>Sorts rows or columns in the grid.</short>
<descr>
<p>
<var>Sort</var> is a method used to sort items in the grid. When
<var>ColSorting</var> is <b>True</b>, it sorts the items in a column.
Otherwise, it sorts values in a row. The three index values specify the items
to be sorted.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.Sort.ColSorting">
<short>
<b>True</b> if a column is affected in the method. <b>False</b> if a row is
affected.
</short>
</element>
<element name="TCustomGrid.Sort.Index">
<short>
Column or row number for the values sorted in the method.
</short>
</element>
<element name="TCustomGrid.Sort.IndxFrom">
<short>
Position for the first value sorted in the method.
</short>
</element>
<element name="TCustomGrid.Sort.IndxTo">
<short>
Position for the last value sorted in the method.
</short>
</element>
<element name="TCustomGrid.StartPushCell">
<short>Starts an operation to render a cell in its "pushed" state.</short>
<descr>
<p>
StartPushCell updates the GridState property to the value
gsButtonColumnClicking, and calls the DoPushCell method to cache and redraw
the clicked cell.
</p>
<p>
StartPushCell is called from the MouseDown method when a mouse click has
occurred over a cell using a button-style Editor in the non-fixed area for
the grid control.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.TopLeftChanged">
<short>
Signals the OnTopLeftChanged event handler (when assigned) at run-time.
</short>
<descr>
<p>
<var>TopLeftChanged</var> occurs when the origin for the scrollable area in
the control has been changed.
</p>
<p>
<var>TopLeftChanged</var> is called from methods like
<var>TrySmoothScrollBy</var>, <var>UpdateCachedSizes</var>, and
<var>FixPosition</var>. It is also called when the <var>AutoFillColumns</var>
property is set to <b>True</b>.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.TryMoveSelection">
<short>
Tries to move the cell selection by or to the specified column and row values.
</short>
<descr>
<p>
<var>TryMoveSelection</var> is a <var>Boolean</var> function used to select
the cell represented in the DCol and DRow arguments. These values can be
either an absolute cell address or relative offsets from the current cell in
Col and Row.
</p>
<p>
When Relative is <b>True</b>, the arguments can contain positive or negative
values. Positive values move the selection to the right (for DCol) or towards
the bottom of the grid (for DRow) starting at the cell in Col and Row.
Negative values cause the selection to move in the opposite directions for
each argument.
</p>
<p>
When Relative is <b>False</b>,the arguments in DCol and DRow are absolute
cell coordinates and should contain only positive values.
</p>
<p>
TryMoveSelection calls SelectCell to select the cell at the specified column
and row.
</p>
<p>
The return value is <b>True</b> if the specified cell was selected in the
method. It is <b>False</b> if DCol or DRow do not represent a valid cell in
the grid control. No actions are performed in the method when FixedGrid
returns <b>True</b>, and the return value is set to <b>False</b>.
</p>
<p>
TryMoveSelection is called from the MoveExtend method and occurs before the
OnBeforeSelection, OnSelection, and OnAfterSelection event handlers are
signalled.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.TryMoveSelection.Result">
<short>
<b>True</b> on success.
</short>
</element>
<element name="TCustomGrid.TryMoveSelection.Relative">
<short>
<b>True</b> the column and row numbers are relative offsets from the current
cell.
</short>
</element>
<element name="TCustomGrid.TryMoveSelection.DCol">
<short>
Column offset or number for the selection.
</short>
</element>
<element name="TCustomGrid.TryMoveSelection.DRow">
<short>
Row offset or number for the selection.
</short>
</element>
<element name="TCustomGrid.TrySmoothScrollBy">
<short>
Scrolls the grid origin by the specified relative amounts.
</short>
<descr>
<p>
<var>TrySmoothScrollBy</var> is an <var>Integer</var> function used to scroll
the grid control by the specified horizontal and vertical amounts (Deltas).
TrySmoothScrollBy ensures that the internal cache for the control is updated to
reflect the visible area for the control after the scroll operation.
</p>
<p>
TrySmoothScrollBy is called from methods that handle scroll bar or the event
handler for mouse wheel messages, and occurs when the user interacts with the
the grid control. For example: WMHScroll, WMVScroll, and GridMouseWheel. In is
not intended for use in end-user code - but it's not expressly forbidden either.
</p>
<p>
<var>AColDelta</var> and <var>ARowDelta</var> contain the number of pixels that
the control content should be scrolled in the horizontal and vertical
directions. Positive values indicate that the content should scroll towards the
right or bottom of the control. Negative values indicate that the content
should scroll towards the left or top of the control.
</p>
<p>
No actions are performed in the method when both AColDelta and ARowDelta are
set to 0 (zero).
</p>
<p>
TrySmoothScrollBy uses the coordinates for the visible cell at the top and left
coordinates on the control for the scroll operation. It also uses values in
ColWidths and RowHeights to determine when a cells become visible (or hidden)
on the control canvas and in its cache. When goScrollKeepVisible has been
included in Options, the selection on the control is extended to include the
scrolled area. The ScrollBy method is called using the calculated X and Y
offsets for the new top and left coordinates on the control.
</p>
<p>
The return value is <b>True</b> if the scroll operation was successfully
completed in the method. The return value is <b>False</b> if the operation
failed due to cell that is too tall or too wide for the requested scroll
value(s). This can occur when goSmoothScroll is <b>not</b> included in the grid
Options.
</p>
</descr>
<version>
Modified in LCL version 4.0 to have protected visibility.
</version>
<seealso>
<link id="TCustomGrid.ColWidths"/>
<link id="TCustomGrid.GCache"/>
<link id="TCustomGrid.GetPxTopLeft"/>
<link id="TCustomGrid.GetSmoothScroll"/>
<link id="TCustomGrid.GridMouseWheel"/>
<link id="TCustomGrid.MoveNextSelectable"/>
<link id="TCustomGrid.Options"/>
<link id="TCustomGrid.RowHeights"/>
<link id="TCustomGrid.ScrollBy"/>
<link id="TCustomGrid.TopLeftChanged"/>
<link id="TCustomDrawGrid.GridMouseWheel"/>
<link id="TGridOption"/>
</seealso>
</element>
<element name="TCustomGrid.TrySmoothScrollBy.Result">
<short>
<b>True</b> on successful completion of the scroll operation.
</short>
</element>
<element name="TCustomGrid.TrySmoothScrollBy.aColDelta">
<short>
Indicates the direction and number of pixels for a horizontal scroll request.
</short>
</element>
<element name="TCustomGrid.TrySmoothScrollBy.aRowDelta">
<short>
Indicates the direction and number of pixels for a vertical scroll request.
</short>
</element>
<element name="TCustomGrid.UnLockEditor">
<short>
Decrements the lock count for the cell Editor following a call to LockEditor.
</short>
<descr>
<p>
LockEditor and UnlockEditor are used to surround operations where a cell
Editor is hidden or the focus is changed as a result of keyboard navigation
or a mouse click event.
</p>
<p>
UnlockEditor is called from methods like MouseDown and EditorHide.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.UnprepareCellHints">
<short>Re-implemented in descendent classes.</short>
<descr>
<p>
UnprepareCellHints has an empty implementation in TCustomGrid, but it
overridden in descendent classes (like TCustomDBGrid / TDBGrid).
</p>
<p>
UnprepareCellHints is called from the ShowCellHintWindow method.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.UpdateHorzScrollBar">
<short>
Updates the horizontal scroll bar to use the specified range, page, and
position.
</short>
<descr>
<p>
<var>UpdateHorzScrollBar</var> calls <var>ScrollBarShow</var> to update the
scroll bar visibility when it differs from the value in <var>aVisible</var>.
The <var>ScrollBarRange</var> method is called to apply the values in the
ARange, APage, and APos arguments to the horizontal scroll bar for the control.
</p>
<p>
The scroll bar range is not updated if the scroll bar visibility has not been
changed or if the scroll bar is not visible. For the Darwin platform,
ScrollBarRange is always called - regardless of visibility; overlay-style
scroll bars on macOS require the latest range, page, and position values.
</p>
<p>
UpdateHorzScrollBar is called from the CalcScrollbarsRange method when the
visible area in the grid is scrolled.
</p>
</descr>
<seealso>
<link id="TCustomGrid.ScrollBarShow"/>
<link id="TCustomGrid.ScrollBarRange"/>
<link id="TCustomGrid.ScrollBarIsVisible"/>
</seealso>
</element>
<element name="TCustomGrid.UpdateHorzScrollBar.AVisible">
<short><b>True</b> if the scroll bar is visible.</short>
</element>
<element name="TCustomGrid.UpdateHorzScrollBar.ARange">
<short>Maximum position for the scroll bar.</short>
</element>
<element name="TCustomGrid.UpdateHorzScrollBar.APage">
<short>Page size for a thumb tab in the scroll bar.</short>
</element>
<element name="TCustomGrid.UpdateHorzScrollBar.APos">
<short>Position for the scroll bar.</short>
</element>
<element name="TCustomGrid.UpdateSelectionRange">
<short>
Updates the selection range when the current selection in the grid has
changed.
</short>
<descr>
<p>
<var>UpdateSelectionRange</var> is a method used to update the
<var>Selection</var> property with the cell coordinates for the current cell
or row in the grid control. UpdateSelectionRange creates a new
<var>TRect</var> instance with the cell coordinates representing the current
selection in the grid.
</p>
<p>
UpdateSelectionRange uses values in <var>ColCount</var>, <var>RowCount</var>,
and <var>Options</var> to determine whether the rectangle represents an empty
selection, a single cell, or all cells in the current Row.
</p>
<p>
When ColCount and RowCount both contain 0 (zero), the selection range is an
empty rectangle (Top, Left, Bottom, and Right members in the rectangle are -1).
</p>
<p>
When <var>goRowSelect</var> has been included in Options, the rectangle
contains the first non-fixed column and last column numbers for the current
Row. If row selection is not enabled in Options, the rectangle uses the values
in <var>Col</var> and <var>Row</var> to represent both the start and end cells
for the selection range.
</p>
<p>
UpdateSelectionRange is called from the <var>ClearSelections</var> and
<var>FixPosition</var> methods.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Col"/>
<link id="TCustomGrid.ColCount"/>
<link id="TCustomGrid.FixedCols"/>
<link id="TCustomGrid.Options"/>
<link id="TCustomGrid.Row"/>
<link id="TCustomGrid.RowCount"/>
</seealso>
</element>
<element name="TCustomGrid.UpdateVertScrollbar">
<short>
Updates the vertical scroll bar to use the specified visibility, range, and
page values.
</short>
<descr>
<p>
<var>UpdateVertScrollbar</var> calls <var>ScrollBarShow</var> to update the
scroll bar visibility when it differs from the value in <var>aVisible</var>.
The <var>ScrollBarRange</var> method is called to apply the values in ARange,
APage, and APos to the vertical scroll bar for the control.
</p>
<p>
The scroll bar range is not updated if the scroll bar visibility has not been
changed or if the scroll bar is not visible. For the Darwin platform,
ScrollBarRange is always called - regardless of visibility; overlay-style
scroll bars on macOS require the latest range, page, and position values.
</p>
<p>
UpdateVertScrollbar is called from the CalcScrollbarsRange method when the
visible area in the grid is scrolled.
</p>
</descr>
<seealso>
<link id="TCustomGrid.ScrollBarShow"/>
<link id="TCustomGrid.ScrollBarRange"/>
<link id="TCustomGrid.ScrollBarIsVisible"/>
</seealso>
</element>
<element name="TCustomGrid.UpdateVertScrollbar.AVisible">
<short><b>True</b> if the scroll bar should be visible.</short>
</element>
<element name="TCustomGrid.UpdateVertScrollbar.ARange">
<short>Maximum position for the scroll bar.</short>
</element>
<element name="TCustomGrid.UpdateVertScrollbar.APage">
<short>Page size for a thumb tab in the scroll bar.</short>
</element>
<element name="TCustomGrid.UpdateVertScrollbar.APos">
<short>Position for the scroll bar.</short>
</element>
<element name="TCustomGrid.UpdateBorderStyle">
<short>Updates the border style used for the control.</short>
<descr>
<p>
<var>UpdateBorderStyle</var> is a method used to apply a
<var>BorderStyle</var> for the control that is valid for the value in the
<var>Flat</var> property. When Flat is set to <b>False</b>, the value in
BorderStyle is used. When Flat is <b>True</b>, the value <var>bsNone</var> is
always used as the BorderStyle for the control.
</p>
<p>
UpdateBorderStyle calls the inherited <var>SetBorderStyle</var> method to
apply the derived value to the BorderStyle property.
</p>
<p>
UpdateBorderStyle calls <var>VisualChange</var> to refresh the control after
the change to the property, and validates the Top and Left for the visual
area in the grid. These actions are not performed if the <var>Handle</var>
has not been allocated for the control, or during LCL component streaming.
</p>
<p>
UpdateBorderStyle is called when the value for the Flat property has been
changed.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Flat"/>
<link id="TCustomGrid.BorderStyle"/>
<link id="TCustomGrid.VisualChange"/>
</seealso>
</element>
<element name="TCustomGrid.ValidateEntry">
<short>Validates the value for the specified cell.</short>
<descr>
<p>
<var>ValidateEntry</var> is a <var>Boolean</var> function used to a validate
the value for the cell at the specified <var>Col</var> and <var>Row</var>
position.
</p>
<p>
ValidateEntry signals the <var>OnValidateEntry</var> event handler (when
assigned) to perform validation for the cell. The return value is <b>True</b>
when <var>OnValidateEntry</var> completes successfully, or when the event
handler has not been assigned.
</p>
</descr>
<seealso>
<link id="TCustomGrid.OnValidateEntry"/>
<link id="TCustomGrid.Col"/>
<link id="TCustomGrid.Row"/>
</seealso>
</element>
<element name="TCustomGrid.ValidateEntry.Result">
<short><b>True</b> when validation completes successfully.</short>
</element>
<element name="TCustomGrid.ValidateEntry.ACol">
<short>Column number for the operation.</short>
</element>
<element name="TCustomGrid.ValidateEntry.ARow">
<short>Row number for the operation.</short>
</element>
<element name="TCustomGrid.ValidateEntry.OldValue">
<short>Value on entry to the method.</short>
</element>
<element name="TCustomGrid.ValidateEntry.NewValue">
<short>Value on exit from the method.</short>
</element>
<element name="TCustomGrid.VisualChange">
<short>
Updates the grid after changes to the visual properties in the control.
</short>
<descr>
<p>
<var>VisualChange</var> is a procedure used to update the grid when visual
aspects of the control have been changed. VisualChange calls
<var>UpdateSizes</var> to refresh the size of cells in the grid, and calls
<var>Invalidate</var> to cause the control to be redrawn.
</p>
<p>
No actions are performed in the method when <var>BeginUpdate</var> has
already been called to buffer updates to the grid. VisualChange will resume
updates when <var>EndUpdate</var> has been called to disable update buffering.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Invalidate"/>
<link id="TCustomGrid.BeginUpdate"/>
<link id="TCustomGrid.EndUpdate"/>
</seealso>
</element>
<element name="TCustomGrid.WMSize">
<short>Handles a WM_SIZE window message for the control.</short>
<descr>
<p>
Ignores the message when updating scroll bars (gfUpdatingScrollbar in
GridFlags). Otherwise, the inherited method is called to handle the window
size message.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TWinControl.WMSize">TWinControl.WMSize</link>
</seealso>
</element>
<element name="TCustomGrid.WMSize.Message">
<short>Message handled in the method.</short>
</element>
<element name="TCustomGrid.WMHScroll">
<short>Handles the system message for horizontal scrolling.</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.WMHScroll.message">
<short>Message applied in the method.</short>
</element>
<element name="TCustomGrid.WMVScroll">
<short>Handles the system message for vertical scrolling.</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.WMVScroll.message">
<short>Message applied in the method.</short>
</element>
<element name="TCustomGrid.WMKillFocus">
<short>Handles the LM_KILLFOCUS message for the control.</short>
<descr/>
<seealso>
<link id="#lcl.controls.TWinControl.WMKillFocus">TWinControl.WMKillFocus</link>
</seealso>
</element>
<element name="TCustomGrid.WMKillFocus.message">
<short>Message handled in the method.</short>
</element>
<element name="TCustomGrid.WMSetFocus">
<short>
Handles the LM_KILLFOCUS message for the control.
</short>
<descr/>
<seealso>
<link id="#lcl.controls.TWinControl.WMSetFocus">TWinControl.WMSetFocus</link>
</seealso>
</element>
<element name="TCustomGrid.WMSetFocus.message">
<short>Message handled in the method.</short>
</element>
<element name="TCustomGrid.WndProc">
<short>
Extends the message processing loop for the grid control.
</short>
<descr>
<p>
WndProc is an overridden method in TCustomGrid. It extends the ancestor
method to provide design-time support for the grid control. LM_HSCROLL and
LM_VSCROLL messages are not processed at design-time.
</p>
<p>
For the Windows platform, message processing is halted when a LM_SIZE message
is being processed. Windows sends WM_SIZE when showing or hiding scroll bars,
and can occur during the DoOnChangeBounds method.
</p>
<p>
WndProc calls the inherited method to handle focus, mouse, key, and state
change messages.
</p>
<p>
WndProc ensures that a TGridScroller instance allocated for the class is
freed after a scroll message has been handled and the grid state has been
updated.
</p>
</descr>
<seealso>
<link id="TGridScroller"/>
<link id="TGridState"/>
<link id="#lcl.controls.TWinControl.WndProc">TWinControl.WndProc</link>
</seealso>
</element>
<element name="TCustomGrid.WndProc.TheMessage">
<short>Message examined in the method.</short>
</element>
<element name="TCustomGrid.AllowOutboundEvents">
<short>
Allows a mouse click on unused space in the control, and moves the cursor to
the nearest valid cell.
</short>
<descr>
<p>
Normally, when a user clicks on a point over the empty space after cells (for
example if grid has three rows but user clicks on imaginary fourth row) the
current focused cell will move to the nearest cell to clicked point. We call
this an outbound event.
</p>
<p>
The default value or the property is <b>True</b>, as this has been the grid's
behavior since the beginning.
</p>
<p>
This was added to mimic Delphi behavior where outbound events are not
available; to enable Delphi compatibility, set AllowOutboundEvents to
<b>False</b>.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.AlternateColor">
<short>Color used for the background in alternate rows in the grid.</short>
<descr>
<p>
<var>AlternateColor</var> is a <var>TColor</var> property with the background
color used for alternate rows on the grid control. Color is used as the
background color for even-numbered rows. Having alternate rows in different
colors can make the grid easier to read.
</p>
<p>
AlternateColor is initially set to the value for Color property in the
constructor. Setting a new value for the property causes the grid control to
be redrawn. AlternateColor is updated when a new value is assigned to the
Color property; it assumes the old value in Color.
</p>
<p>
Color and AlternateColor are used in the PrepareCanvas method to set the
Canvas brush color for cells which are not selected in a given row.
</p>
</descr>
<seealso>
<link id="TCustomGrid.PrepareCanvas"/>
<link id="#lcl.graphics.TColor">TColor</link>
<link id="#lcl.controls.TControl.Color">TControl.Color</link>
</seealso>
</element>
<element name="TCustomGrid.AutoAdvance">
<short>
Direction used when automatically moving the selection to the next selectable
cell.
</short>
<descr>
<p>
<var>AutoAdvance</var> is a <var>TAutoAdvance</var> property which indicates
the direction of movement applied when the <b>Enter</b> key is pressed to
finish editing in an active cell <var>Editor</var>.
</p>
<p>
The default value for the property is <var>aaRight</var>, and indicates the
cell selection advances to the right until it reaches the last column in the
grid control. Use <var>aaNone</var> to disable the auto-advance feature.
</p>
<p>
For more information about acceptable values and their usage, please refer to
<link id="TAutoAdvance">TAutoAdvance</link>.
</p>
<p>
AutoAdvance is used in methods like <var>MoveNextAuto</var> and
<var>CheckPosition</var>.
</p>
<p>
Use <var>TabAdvance</var> to control the direction of movement used when the
<b>Tab</b> key is pressed.
</p>
</descr>
<seealso>
<link id="TCustomGrid.TabAdvance"/>
<link id="TCustomGrid.MoveNextAuto"/>
<link id="TCustomGrid.CheckPosition"/>
<link id="TCustomGrid.Editor"/>
<link id="TAutoAdvance"/>
</seealso>
</element>
<element name="TCustomGrid.AutoEdit">
<short>
Indicates if edit mode is automatically entered when a cell is selected.
</short>
<descr>
<p>
<var>AutoEdit</var> is a <var>Boolean</var> property which indicates if edit
mode is automatically entered when a cell is selected in the grid control.
The default value for the property is <b>True</b>.
</p>
<p>
When AutoEdit is set to <b>True</b>, the cell Editor is automatically
displayed when a non-fixed cell is entered using keyboard navigation or a
mouse click. When AutoEdit is set to <b>False</b>, the cell Editor is not
displayed until toggled. Use the F2 or Enter key to activate a cell Editor.
Use a second mouse click in the active cell to display the cell Editor.
</p>
<p>
AutoEdit does not allow a cell to be edited if the column definition in the
Columns collection is defined as ReadOnly.
</p>
<p>
Use the Options property to enable or disable editing in the grid control
using the value goEditing. Use the value goAlwaysShowEditor to always display
the cell Editor.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.AutoFillColumns">
<short>
Indicates whether columns are automatically resized to fill the visible area
in the grid.
</short>
<descr>
<p>
<var>AutoFillColumns</var> is a <var>Boolean</var> property which enables or
disables automatic sizing for columns on the grid control. The default value
for the property is <b>False</b>, and indicates that automatic column sizing
is not enabled.
</p>
<p>
Changing AutoFillColumns to <b>True</b> causes the column sizes to be
recalculated (and cached) based on default values, or using properties
assigned to the <var>TGridColumn</var> instances when the <var>Columns</var>
collection has been Enabled. The resizing algorithm works as follows:
</p>
<ul>
<li>
Fixed columns are not resized.
</li>
<li>
When Columns has not been Enabled, or the column position is not found in
Columns, a default sizing priority of 1 is used along with the minimum and
maximum sizes defined in the DEFMINSIZE and DEFMAXSIZE constants.
</li>
<li>
When Columns is Enabled, and a column is defined for a given position, values
from the TGridColumn instance are used including: SizePriority, MinSize, and
MaxSize.
</li>
<li>
A column with a SizePriority of 0 is not resized.
</li>
<li>
A column with a non-zero value in SizePriority is adjusted using the average
available width with respect to the MinSize and MaxSize for all of the
defined columns. When MinSize and MaxSize have the same non-zero value, the
column cannot be resized. If all columns have assigned MinSize and MaxSize
values, the auto-fill algorithm may not be able to set column widths as
intended. At least one of the columns should have MinSize and MaxSize set to 0
for the intended result.
</li>
<li>
If Columns is not Enabled (populated), fixed columns are set to the size found
in either ColWidths (preferred) or DefaultColWidth (default). Non-fixed
columns (starting at FixedCols-1) are uniformly resized to fill the available
unused area following the fixed columns.
</li>
</ul>
<p>
Please note that TGridColumn instances in Columns are initially created with
SizePriority set to 1. For TDbGrid, which automatically populates Columns,
this means the user will not be able to resize these columns using the mouse
(since they are auto-sized).
</p>
<p>
Use ColWidths to set the width for a specified column when the Columns
collection has not been enabled or populated. Use DefaultColWidth to set the
default width used when a width is not available in ColWidths or Columns.
</p>
</descr>
<seealso>
<link id="TCustomGrid.ColWidths"/>
<link id="TCustomGrid.DefaultColWidth"/>
<link id="TCustomGrid.Columns"/>
<link id="TCustomGrid.FixedCols"/>
<link id="TCustomGrid.ColCount"/>
<link id="TGridColumns"/>
<link id="TGridColumn.MaxSize"/>
<link id="TGridColumn.MinSize"/>
<link id="TGridColumn.SizePriority"/>
</seealso>
</element>
<element name="TCustomGrid.BorderStyle">
<short>
Drawing style used for the borders on the control.
</short>
<descr>
<p>
<var>BorderStyle</var> is a <var>TBorderStyle</var> property with the drawing
style used for the borders around the control. BorderStyle uses a restricted
range of values found in TFormBorderStyle: a single border (bsSingle) or none
(bsNone). Changing the property value causes UpdateBorderStyle to be called.
</p>
<p>
Use EditorBorderStyle to set the border drawing style for cell Editor
controls on the grid.
</p>
<p>
BorderStyle is used in the ancestor class to determine the creation
parameters passed to the widgetset class instance.
</p>
</descr>
<seealso>
<link id="TCustomGrid.UpdateBorderStyle"/>
<link id="#lcl.controls.TBorderStyle">TBorderStyle</link>
<link id="#lcl.controls.TFormBorderStyle">TFormBorderStyle</link>
<link id="#lcl.controls.TWinControl.BorderStyle">TWinControl.BorderStyle</link>
</seealso>
</element>
<element name="TCustomGrid.BorderColor">
<short>The color used for the border on the control.</short>
<descr>
<p>
<var>BorderColor</var> is a <var>TColor</var> property with color used when
drawing the borders around the grid control. The default value for the
property is cl3DDKShadow. Changing the value for the property causes the
control to be redrawn when BorderStyle is bsSingle.
</p>
<p>
BorderColor is used in the DrawBorder method to set the Pen color in Canvas
prior to drawing the borders on the control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.BorderStyle"/>
<link id="TCustomGrid.DrawBorder"/>
<link id="#lcl.graphics.TColor">TColor</link>
</seealso>
</element>
<element name="TCustomGrid.CellHintPriority">
<short>Identifies how text is combined to form the Hint property.</short>
<descr>
<p>
<var>CellHintPriority</var> is a <var>TCellHintPriority</var> that identifies
how text is combined to form the Hint property. The default value for the
property is <var>chpAllNoDefault</var>. See <link id="TCellHintPriority"/>
for a description of the enumeration values and their meanings.
</p>
<p>
CellHintPriority is used in the implementation of the
<var>ShowCellHintWindow</var>, <var>MouseMove</var>, and
<var>GetTruncCellHintText</var> methods.
</p>
</descr>
<seealso>
<link id="TCellHintPriority"/>
<link id="TCustomGrid.ShowCellHintWindow"/>
<link id="TCustomGrid.MouseMove"/>
<link id="TCustomGrid.GetTruncCellHintText"/>
</seealso>
</element>
<element name="TCustomGrid.Col">
<short>Column index for the selected grid cell.</short>
<descr>
<p>
<var>Col</var> is an Integer which holds the column index for the current
cell or grid cursor. The current grid column can be changed programmatically
by setting a new value in this property.
</p>
<p>
Setting a new value for the property causes the limits for the column index
to be checked when AllowOutboundEvents is set to <b>False</b>. An exception
is raised in the CheckLimitsWithError method when the property value is not a
valid column index for the grid control.
</p>
<p>
MoveExtend is called to move the selection to the cell at the coordinates in
Row and Col. The cell editor is also retrieved (when available) and is
displayed. The Click method is called to signal the OnClick event handler
(when assigned) if the cell is not already selected or displaying a cell
editor.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Row"/>
<link id="TCustomGrid.CheckLimitsWithError"/>
<link id="TCustomGrid.MoveExtend"/>
<link id="TCustomGrid.Click"/>
<link id="#lcl.controls.TControl.Click"/>
<link id="#lcl.controls.TControl.OnClick"/>
</seealso>
</element>
<element name="TCustomGrid.ColCount">
<short>Number of columns in the grid.</short>
<descr>
<p>
<var>ColCount</var> is an Integer that represents the number of columns in
the grid, including fixed and normal columns. Changing the value in
<var>ColCount</var> after <var>Columns</var> have been created causes an
<var>EGridException</var> to be raised. Use the <var>Columns</var> collection
to add or delete columns defined in the grid.
</p>
<p>
Use <var>FixedCols</var> for the number of fixed columns in the grid.
</p>
<p>
Use <var>VisibleColCount</var> for the number of non-fixed columns in the
grid.
</p>
<p>
Use <var>RowCount</var>, <var>FixedRows</var>, and <var>VisibleRowCount</var>
to access the row-oriented equivalents.
</p>
</descr>
<errors>
Raises an <var>EGridException</var> when the value is changed and
<var>Columns</var> already exist in the grid.
</errors>
<seealso>
<link id="TCustomGrid.FixedCols"/>
<link id="TCustomGrid.FixedRows"/>
<link id="TCustomGrid.Columns"/>
<link id="TCustomGrid.RowCount"/>
<link id="TCustomGrid.VisibleColCount"/>
<link id="TCustomGrid.VisibleRowCount"/>
<link id="TGridPropertyBackup"/>
<link id="EGridException"/>
</seealso>
</element>
<element name="TCustomGrid.ColRow">
<short>
Provides access to current column and row numbers as a TPoint instance.
</short>
<descr>
<p>
<var>ColRow</var> is a <var>TPoint</var> property used to provide access to
the current values at the position specified in Col and Row. The <var>X</var>
member in TPoint is used for the value in the <var>Col</var> property. The
<var>Y</var> member in TPoint is used for the value in the <var>Row</var>
property.
</p>
<p>
Setting the value for the causes the <var>CheckLimitsWithError</var> method
to be called for the X and Y values when <var>AllowOutboundEvents</var> is
<b>False</b>. The <var>SetColRow</var> method is called to update the values
in the Col and Row properties.
</p>
</descr>
<seealso>
<link id="TCustomGrid.CheckLimitsWithError"/>
<link id="TCustomGrid.SetColRow"/>
<link id="TCustomGrid.AllowOutboundEvents"/>
</seealso>
</element>
<element name="TCustomGrid.ColRowDraggingCursor">
<short>
Cursor shape displayed when a column or row is dragged in the grid control.
</short>
<descr>
<p>
<var>ColRowDraggingCursor</var> is a <var>TCursor</var> property with the
cursor shape displayed when a column or a row in the grid control is dragged.
It is displayed in methods which perform column or row drag operations at
run-time when the CursorState property is set to gcsDragging. The default
value for the property is crMultiDrag (multiple item drag cursor
TCursor(-16)).
</p>
<p>
ColRowDraggingCursor is a published property in descendent classes like:
TDrawGrid, TStringGrid, and TDBGrid.
</p>
<p>
Use ColRowDragIndicatorColor to specify the color for the drag cursor when a
drag operation is active.
</p>
<p>
Use ColSizingCursor to specify the cursor shape displayed when a column is resized by dragging the column border.
</p>
</descr>
<seealso>
<link id="TCustomGrid.ColRowDragIndicatorColor"/>
<link id="TCustomGrid.ColSizingCursor"/>
<link id="TCustomGrid.CursorState"/>
<link id="TDrawGrid"/>
<link id="TStringGrid"/>
<link id="#lcl.dbgrids.TDBGrid"/>
</seealso>
</element>
<element name="TCustomGrid.ColRowDragIndicatorColor">
<short>
Color used to render the drag cursor when a column or row is dragged in the
grid.
</short>
<descr>
<p>
<var>ColRowDragIndicatorColor</var> is a <var>TColor</var> property with the
cursor color used when the ColRowDraggingCursor is visible for the grid
control. The default value for the property is clRed.
</p>
<p>
Changing the property value causes the DrawColRowMoving method to be called
when the grid state is set to gsColMoving.
</p>
<p>
ColRowDragIndicatorColor is a published property in descendent classes like:
TDrawGrid, TStringGrid, and TDBGrid.
</p>
<p>
Use ColRowDraggingCursor to specify the cursor shape displayed when a column
or row drag operation is active.
</p>
<p>
Use ColSizingCursor to specify the cursor shape displayed when a column is
resized by dragging the border on a column.
</p>
</descr>
<seealso>
<link id="TCustomGrid.ColRowDraggingCursor"/>
<link id="TCustomGrid.ColSizingCursor"/>
<link id="TDrawGrid"/>
<link id="TStringGrid"/>
<link id="#lcl.dbgrids.TDBGrid"/>
</seealso>
</element>
<element name="TCustomGrid.ColSizingCursor">
<short>Cursor shape displayed when a column is resized.</short>
<descr>
<p>
<var>ColSizingCursor</var> is a <var>TCursor</var> property with the cursor
displayed when the horizontal size for a column is changed. The default value
for the property is defined in the <var>crHSplit</var> constant.
</p>
<p>
It is displayed when a mouse down event causes the grid cursor state to be
changed to the value gcsColWidthChanging.
</p>
<p>
Use RowSizingCursor to specify the cursor shape displayed when a row height
is changed.
</p>
</descr>
<seealso>
<link id="TCustomGrid.RowSizingCursor"/>
<link id="TCustomGrid.MouseDown"/>
<link id="#lcl.controls.crHSplit">crVSplit</link>
</seealso>
</element>
<element name="TCustomGrid.ColumnClickSorts">
<short>Indicates if clicking a column header changes its sort order.</short>
<descr>
<p>
<var>ColumnClickSorts</var> is a <var>Boolean</var> used to indicate if
clicking a column header changes its sort order. The default value for the
property is <b>False</b>.
</p>
<p>
ColumnClickSorts is used in the <var>HeaderClick</var> method to determine if
the value in the <var>SortOrder</var> is toggled for a click in the header
cell for SortColumn.
</p>
</descr>
<seealso>
<link id="TCustomGrid.HeaderClick"/>
<link id="TCustomGrid.SortColumn"/>
<link id="TCustomGrid.SortOrder"/>
</seealso>
</element>
<element name="TCustomGrid.Columns">
<short>Definitions for the columns displayed the grid.</short>
<descr>
<p>
<var>Columns</var> is a <var>TGridColumns</var> which contains column
definitions for the grid control. Columns stores the <var>TGridColumn</var>
instances which define the attributes for each of the columns such as its
Font, Color, Alignment, Layout, Editor style, auto-sizing priority, et. al.
Properties and methods in Columns can be used at run-time to access and
maintain the column definitions for the grid.
</p>
<p>
See <link id="TGridColumn">TGridColumn</link> for more information about the
items stored in the collection.
</p>
<p>
Columns contains definitions for the non-fixed columns on the grid control.
For a grid with 5 columns, and FixedCols set to 1, there would need to be 4
definitions added to the Columns collection. ColCount is automatically
maintained when items are added to or deleted from Columns. When Columns is
enabled, a value cannot be directly assigned to ColCount; it is calculated
as:.
</p>
<code>ColCount := FixedCols + Columns.Count</code>
<p>
Values in the collection can be modified at run-time to add, delete, or
modify column definitions. For example:
</p>
<code>
var
c: TGridColumn;
begin
// add a custom column
c := Grid.Columns.Add;
// modify the new column
c.title.caption := 'Price'; // Set columns caption
c.align := taRightJustify; // Align column content to the right
c.color := clMoneyGreen; // Change default color to clMoneyGreen
c.Index := 0; // Make it the first column
// access an existing column
grid.columns[0].Width := 60; // Change column 0 width to 60 pixels
// delete an existing column
grid.columns.delete(0); // Delete column 0
....
end;
</code>
<p>
Columns should not be confused with the <b><i>COLUMNS</i></b> construct
frequently used in <b><i>SQL</i></b> programming, which refer to
<var>Fields</var> in a database table. The content in fields can be displayed
as Columns in a Grid, but they must be seen as separate and distinct. It is
irrelevant to refer to the color, font or width of a data field from a
database - but these are all very relevant in specifying the appearance of a
column in a grid.
</p>
</descr>
<seealso>
<link id="TGridColumns"/>
<link id="TGridColumn"/>
</seealso>
</element>
<element name="TCustomGrid.ColWidths">
<short>
Provides indexed access to the Width for a column in the grid.
</short>
<descr>
<p>
The column is specified with the <var>aCol</var> parameter. The
<var>aCol</var> parameter must fall within the valid index range of 0 to
<link id="TCustomGrid.ColCount">ColCount</link>-1.
</p>
<p>
The property value is the width of the specified column in pixels.
</p>
<p>
The initial width for a newly created column is specified with the <link
id="TCustomGrid.DefaultColWidth">DefaultColWidth</link> property.
</p>
<p>
If the <link id="TCustomGrid.Options">Options</link> property includes the
value <var>goColSizing</var>, the column width may also be changed by the
user at run-time.
</p>
</descr>
<seealso>
<link id="TCustomGrid.ColCount"/>
<link id="TCustomGrid.DefaultColWidth"/>
<link id="TCustomGrid.RowHeights"/>
<link id="TCustomGrid.Options"/>
<link id="TGridOption"/>
</seealso>
</element>
<element name="TCustomGrid.ColWidths.aCol">
<short>
Ordinal position for the column. It allows access to all fixed columns
including the initial column (0) normally used for row indicators or line
numbers.
</short>
</element>
<element name="TCustomGrid.DefaultColWidth">
<short>Default width used for grid columns.</short>
<descr>
<p>
DefaultColWidth is an Integer property with the default width for a new
column added to the grid control. If new columns of the grid are created by
changing the <link id="TCustomGrid.ColCount">ColCount</link> property, the
width of these new columns will be set to the value in the
<i>DefaultColWidth</i> property.
</p>
<p>
A negative non-zero value in the property member indicates that the value in
the DEFCOLWIDTH constant is scaled to the PPI setting for the Font used on
the control. Use 0 as the width for an auto-sized column. Changing the value
for the property causes existing values in Cols to be reset to -1 to force
the columns to be scaled and updated. The position for a visible Editor
control is also updated when the property value is changed.
</p>
<p>
DefaultColWidth is used as the default when reading values from the indexed
ColWidths property.
</p>
</descr>
<seealso>
<link id="TCustomGrid.DefaultRowHeight"/>
<link id="TCustomGrid.ResetDefaultColWidths"/>
<link id="TCustomGrid.EditorMode"/>
<link id="TCustomGrid.EditorWidthChanged"/>
<link id="TCustomGrid.ColWidths"/>
<link id="DEFCOLWIDTH"/>
</seealso>
</element>
<element name="TCustomGrid.DefaultRowHeight">
<short>Default row height for newly created grid rows.</short>
<descr>
<p>
If new rows of the grid are created by changing the <link
id="TCustomGrid.RowCount">RowCount</link> property, the height of these new
rows will be set to the value of the <i>DefaultRowHeight</i> property.
</p>
<p>
Use 0 for auto-sized row heights.
</p>
</descr>
<seealso>
<link id="TCustomGrid.DefaultColWidth"/>
</seealso>
</element>
<element name="TCustomGrid.DefaultDrawing">
<short>
Indicates if the default drawing mechanism is used to draw the background and
text for cells.
</short>
<descr>
<p>
<var>DefaultDrawing</var> is a <var>Boolean</var> property which indicates if
the default drawing mechanism is used to draw the background and text for the
cells on the grid control. The default value for the property is <b>True</b>.
</p>
<p>
Normally, the grid prepares its canvas using the properties needed for the
kind cell type that is being painted. DefaultDrawing indicates that the grid
control handles drawing the background and text for the cell (including a
visible cell <var>Editor</var>) using the relevant properties.
</p>
<p>
Use the <var>OnDrawCell</var> event handler to handle drawing a cell using an
appearance different than the default provided in PrepareCanvas. When
DefaultDrawing is set to <b>False</b>, the OnDrawCell event handler is
responsible for both the background and text content in the cell.
</p>
<p>
Changing the value for the property causes the <var>Invalidate</var> method
to be called to redraw the control.
</p>
<p>
DefaultDrawing is used in the PrepareCanvas method to configure the control
Canvas for a drawing operation. It is also used in the DrawCell method in
descendent classes.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.DrawCell"/>
</seealso>
</element>
<element name="TCustomGrid.DefaultTextStyle">
<short>
Default style used to display text including alignment, layout, wrapping, et.
al.
</short>
<descr>
<p>
DefaultTextStyle is a TTextStyle property with the default settings used for
text displayed on the grid control. It includes settings like:
</p>
<ul>
<li>Horizontal and vertical alignment.</li>
<li>Use of line breaks or wrapping.</li>
<li>Use of clipping for the text rectangle.</li>
<li>Converting Tab characters to spaces.</li>
<li>Display of Accelerator or shortcut prefixes.</li>
<li>Opacity for the background color and text.</li>
<li>Use of the system font.</li>
<li>Right-to-left alignment.</li>
<li>Text shortening using an Ellipsis character.</li>
</ul>
<p>
DefaultTextStyle is used in the PrepareCanvas method. It is merged with
state, color, and options in the control and assigned to the TextStyle
property in Canvas.
</p>
</descr>
<seealso>
<link id="TCustomGrid.PrepareCanvas"/>
<link id="TCustomGrid.DoPrepareCanvas"/>
<link id="TCustomGrid.OnPrepareCanvas"/>
<link id="#lcl.graphics.TTextStyle">TTextStyle</link>
<link id="#lcl.controls.TCustomControl.Canvas">TCustomControl.Canvas</link>
</seealso>
</element>
<element name="TCustomGrid.DisabledFontColor">
<short>
Color used to draw text in the grid when Enabled is set to <b>False</b>.
</short>
<descr>
<p>
<var>DisabledFontColor</var> is a <var>TColor</var> property with the color
used to render text on the grid control when Enabled is set to <b>False</b>.
The default value for the property is clGrayText.
</p>
<p>
DisabledFontColor is used in the PrepareCanvas method to set the font color
on the Canvas when Enabled is <b>False</b>. It is not used in the Canvas font
when it contains clNone.
</p>
</descr>
<seealso>
<link id="TCustomGrid.PrepareCanvas"/>
<link id="#lcl.graphics.TColor">TColor</link>
<link id="#lcl.controls.TCustomControl.Canvas">TCustomControl.Canvas</link>
<link id="#lcl.controls.TControl.Enabled">TControl.Enabled</link>
</seealso>
</element>
<element name="TCustomGrid.DragDx">
<short>The amount (DeltaX) by which an object should be dragged.</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.Editor">
<short>
The editor control used to modify the value in the current cell.
</short>
<descr>
<p>
<var>Editor</var> is a <var>TWinControl</var> descendant which contains the
control used to edit the value in the current cell for the grid control.
</p>
<p>
There are several editor styles available for columns on the grid control:
String, Button, Composite, and Pick List. Button editors display a button
that can be clicked to perform actions which determine the value for the
cell. A composite editor uses an editor for the string value and a button to
perform additional actions. A pick list editor allows selection from one of
the predetermined values for the cell. The String editor is essentially a
TEdit control, and is the default editor style used in the grid control.
</p>
<p>
The Editor style is determined either by examining values in the column
definition stored in the Columns property, or using the OnSelectEditor event
handler. OnSelectEditor is signalled when Columns has not been Enabled in the
grid.
</p>
<p>
Editor display behavior is controlled by properties like Options and AutoEdit.
</p>
<p>
Options can be used to enabled / disabled cell editor features using the
following:
</p>
<dl>
<dt>goEditing</dt>
<dd>Cell editing is allowed for the grid control. Omit to disable cell
editing.</dd>
<dt>goAlwaysShowEditor</dt>
<dd>
The cell editor for the current cell is always displayed. Omit to disable.
The cell editor can be toggled using F2, Enter, or a mouse click in the
current cell.
</dd>
</dl>
<p>
The AutoEdit property determines whether a cell is automatically placed in
edit mode as soon as it is selected. This is basically the same as including
goAlwaysShowEditor in the Options property.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.EditorBorderStyle">
<short>The border style for the Editor control.</short>
<descr>
<p>
<var>EditorBorderStyle</var> is a <var>name</var> property which contains the
border style used for the Editor in the grid control. The value for the
property depends on the editor style used for the cell in the grid.
</p>
<p>
When TStringCellEditor, TCompositeCellEditor, or TPickListCellEditor are used
for the cell, the property value is read from the BorderStyle in the editor
control. For all other editors (TButtonCellEditor), the value bsSingle is
returned as the property value.
</p>
<p>
Setting a new value for the property causes the BorderStyle for the Editor to
be updated, and the EditorPos method is called to recalculate the editor
bounds and position.
</p>
<p>
Setting the property to bsSingle forces a border to be drawn inside the cell
rectangle where the control is located. For some widgetsets, the border is
drawn using theme services to maintain a uniform appearance for the platform.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.EditorMode">
<short>
<b>True</b> when the Editor is ready to modify the value for the current cell.
</short>
<descr>
<p>
<var>EditorMode</var> is a <var>Boolean</var> property which indicates
whether the cell <var>Editor</var> has been enabled for the grid control. Set
EditorMode to <b>True</b> to display the cell Editor for the control. Set it
to <b>False</b> to hide the cell Editor.
</p>
<p>
The value in EditorMode is updated when handling key press and mouse click
events, scrolling the visible area for the control, or changing the
configuration settings for the grid.
</p>
</descr>
<seealso>
<link id="TCustomGrid.EditorMode"/>
<link id="TCustomGrid.EditorShow"/>
<link id="TCustomGrid.EditorHide"/>
<link id="TCustomGrid.ColCount"/>
<link id="TCustomGrid.RowCount"/>
<link id="TCustomGrid.FixedCols"/>
<link id="TCustomGrid.FixedRows"/>
<link id="TCustomGrid.KeyPress"/>
<link id="TCustomGrid.ClearCols"/>
<link id="TCustomGrid.Clear"/>
<link id="TCustomGrid.ClearRows"/>
<link id="TCustomGrid.DefaultColWidth"/>
<link id="TCustomGrid.DefaultRowHeight"/>
<link id="TCustomGrid.ShowCellHintWindow"/>
<link id="TCustomGrid.PrepareCanvas"/>
<link id="TCustomGrid.DrawRow"/>
<link id="TCustomDrawGrid.OnMouseWheel"/>
</seealso>
</element>
<element name="TCustomGrid.EditorKey">
<short>
Indicates if the last key event was triggered by the cell Editor for the grid
control.
</short>
<descr>
<p>
<var>EditorKey</var> is a <var>Boolean</var> property which indicates if the
last key event was generated by the cell <var>Editor</var> for the grid
control. The property value is updated in the OnKeyDown, OnKeyPress, and
OnKeyUp event handlers used in the Editor control. Its value is used in
method like KeyDown, KeyPress, and KeyUp to determine whether a given key
needs to be applied / handled for the grid control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Editor"/>
<link id="TCustomGrid.KeyDown"/>
<link id="TCustomGrid.KeyPress"/>
<link id="TCustomGrid.KeyUp"/>
</seealso>
</element>
<element name="TCustomGrid.EditorOptions">
<short>The option flags sent to the Editor control in the grid.</short>
<descr>
<p>
EO_HOOKKEYDOWN enables the OnKeyDown event handler in the editor control.
EO_HOOKKEYPRESS enables the OnKeyPress event handler in the editor control.
EO_HOOKKEYUP enables the OnKeyUp event handler in the editor control.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.EditorShowing">
<short>
<b>True</b> when the cell Editor for the grid control has been displayed.
</short>
<descr>
<p>
<var>EditorShowing</var> is a <var>Boolean</var> property which indicates if
the cell Editor for the control has been displayed. The property value is
updated in methods like EditorShow and EditorHide when the visibility for the
Editor control is changed.
</p>
<p>
The property value is used in several methods which handle key events, mouse
clicks, and focus changes in the control.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.ExtendedColSizing">
<short>Indicates if extended column sizing is enabled in the grid.</short>
<descr>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.ExtendedRowSizing">
<short>
Indicates if extended row sizing is enabled for rows in the grid.
</short>
<descr>
<p>
ExtendedRowSizing is a Boolean property which indicates if extended row
sizing is enabled for the grid control.
</p>
<remark>
ExtendedRowSizing is not maintained in any methods in the class
implementation. It is used in DoRowSizing only.
</remark>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.ExtendedSelect">
<short>
Controls whether extending the current cell selection(s) on the control is
enabled.
</short>
<descr>
<p>
<var>ExtendedSelect</var> is a <var>Boolean</var> property which controls
whether selected cells can be extended beyond the current value(s) in Selection
and SelectedRange. The default value for the property is <b>True</b> and allows
Selection / SelectedRange to be extended when range selection is enabled for
the grid control. ExtendedSelect has no effect if goRangeSelect has not been
included in the Options property.
</p>
<p>
ExtendedSelect is used when the value in SelectActive property is changed. It
prevents SelectActive from being enabled when range selection is not enabled,
or a cell editor is already (or always) active for a cell in the current
selection.
</p>
<p>
ExtendedSelect is used in MouseDown when a mouse click is detected for a cell.
It causes an active cell editor (or its associated cell editor button) to be
deactivated before the selection is extended. It is also used in MouseMove when
logical cell coordinates are retrieved for a selection at the current mouse
position.
</p>
<p>
Use Options to enable range selection (goRangeSelect) or to control use of cell
editors (goEditing, goAlwaysShowEditor).
</p>
<p>
Use RangeSelectMode to control whether multi-selections are enabled for the
control. Use Selection to access a single selected range for the grid. Use
SelectedRange and SelectedRangeCount to access multi-selection ranges on the
control.
</p>
<p>
Use FixedGrid to determine whether editable, non-fixed columns or rows are
available on the grid control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.SelectActive"/>
<link id="TCustomGrid.MouseDown"/>
<link id="TCustomGrid.MouseMove"/>
<link id="TCustomGrid.FixedGrid"/>
<link id="TCustomGrid.Options"/>
<link id="TCustomGrid.RangeSelectMode"/>
<link id="TCustomGrid.Selection"/>
<link id="TCustomGrid.SelectedRange"/>
<link id="TCustomGrid.SelectedRangeCount"/>
<link id="TCustomGrid.Columns"/>
<link id="TGridColumns"/>
<link id="TGridColumn"/>
<link id="TGridOptions"/>
<link id="TGridOption"/>
</seealso>
</element>
<element name="TCustomGrid.FastEditing">
<short>Indicates if "Fast Editing" is enabled in the grid.</short>
<descr>
<p>
<var>FastEditing</var> is a <var>Boolean</var> property which indicates if
cell editing initialized by a KeyDown message instead of by a navigation key
is used in the grid control. The value in FastEditing is used when a
TPickListCellEditor handles KeyDown messages.
</p>
<p>
The default value for the property is <b>True</b> as assigned in the
<var>Create</var> constructor.
</p>
</descr>
<seealso>
<link id="TPickListCellEditor.KeyDown"/>
</seealso>
</element>
<element name="TCustomGrid.AltColorStartNormal">
<short>
Indicates if alternate row coloring starts with the normal row color.
</short>
<descr>
<p>
<var>AltColorStartNormal</var> - using a second color to display alternate
rows, but starting the first row with the normal color.
</p>
<p>
Using a different color for the background of alternate rows often makes the
data in a grid much easier to read.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.FixedCols">
<short>The number of fixed columns in the grid.</short>
<descr>
<p>
FixedCols is an Integer property with the fixed column count for the grid.
Fixed columns are displayed on the left edge of the grid and become part of
the non-scrolled area for the control. A fixed column is displayed using the
background color in FixedColor and separator lines using FixedGridLineColor.
They are also rendered using the display style attributes in TitleStyle.
</p>
<p>
Values in a fixed column cannot be selected or edited using a cell editor at
run-time. They can be modified, however, in descendent classes like
TStringGrid by assigning values directly to the Cells property for the
required column number.
</p>
<p>
The default value for the FixedCols property is 1 and causes the first column
(column 0) (the one reserved for row indicators or automatic row numbering)
to always be visible on the left edge of the control. Cell data in adjacent
column can be converted to fixed column by incrementing the value for the
property.
</p>
<p>
Setting a new value for the property causes several actions to be performed
for the grid control.
</p>
<ul>
<li>
The values in FixedCols and FixedRows are verified by calling
CheckFixedCount, which can raise an exception if either value is not in range
for the grid control.
</li>
<li>
EditorMode is set to <b>False</b> to hide a visible cell Editor for the
control.
</li>
<li>
When Columns has been Enabled, UpdateSelectionRange is called to refresh the
selection rectangle for the control. ColumnsChanged is called to apply the
visual change to the control. If Columns has not been Enabled,
MoveNextSelectable and UpdateSelectionRange are called to refresh the grid
control.
</li>
</ul>
<p>
Use FixedRows to get or set the number of fixed rows displayed for the grid
control.
</p>
<p>
Use the Columns property to maintain column definitions for the non-fixed
columns on the control. If a column definition in Columns needs to be changed
to a fixed column, it must be removed from the Columns collection before
increasing the value in FixedCols. An Exception is raised if FixedCols +
Columns.Count does not match the value in ColCount.
</p>
</descr>
<seealso>
<link id="TCustomGrid.FixedRows"/>
<link id="TCustomGrid.ColCount"/>
<link id="TCustomGrid.Columns"/>
</seealso>
</element>
<element name="TCustomGrid.FixedRows">
<short>Number of the fixed rows in the grid.</short>
<descr>
<p>
Contains the fixed row count for the grid control. A fixed row with fixed
columns is normally used to display the headings (titles), images, and sort
indicators for the columns in the grid control. The fixed row containing the
fixed columns is not scrolled along with the visible area for grid.
</p>
<p>
Setting a new value for the property causes several actions to be performed
for the grid control.
</p>
<ul>
<li>
The values in FixedCols and FixedRows are verified by calling
CheckFixedCount, which can raise an exception if an error condition is
detected.
</li>
<li>
EditorMode is set to <b>False</b> to hide a visible cell Editor for the
control.
</li>
<li>
MoveNextSelectable is called to find the first selectable cell in the current
column. UpdateSelectionRange is called to refresh the cell selected in the
grid control.
</li>
</ul>
<p>
Use FixedCols to get or set the number of fixed columns displayed for the
grid control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.RowCount"/>
<link id="TCustomGrid.ColCount"/>
<link id="TCustomGrid.FixedCols"/>
<link id="TCustomGrid.FixedRows"/>
<link id="TCustomGrid.EditorMode"/>
<link id="TCustomGrid.MoveNextSelectable"/>
<link id="TCustomGrid.UpdateSelectionRange"/>
</seealso>
</element>
<element name="TCustomGrid.FixedColor">
<short>The color used for the fixed cells in the grid.</short>
<descr>
<p>
<var>FixedColor</var> is a <var>TColor</var> property with the color used to
paint the background for fixed cells in the grid control. The default value
for the property is clBtnFace. Changing the value in FixedColor causes the
Invalidate method to be called to redraw the control.
</p>
<p>
Use Color to specify the background color for non-fixed cells in the grid
control. Use AlternateColor to specify the background color used for
alternate rows in the grid control.
</p>
<p>
Use the Color property in Font to specify the color used for text drawn in
the cells for the grid. Use DisabledFontColor to specify the color used for
text when the control is disabled.
</p>
<p>
Other colors can be supplied using properties including: BorderColor,
GridLineColor, FixedGridLineColor FixedHotColor, FocusColor, and
SelectedColor.
</p>
</descr>
<seealso>
<link id="TCustomGrid.FixedColor"/>
<link id="TCustomGrid.FixedRows"/>
<link id="TCustomGrid.FixedCols"/>
</seealso>
</element>
<element name="TCustomGrid.FixedGridLineColor">
<short>Color used to draw the separator lines for fixed grid cells.</short>
<descr>
<p>
The default value for the property is cl3DDKShadow as assigned in the
constructor. Changing the value in FixedGridLineColor causes the grid to be
redrawn.
</p>
<p>
FixedGridLineColor is used in the implementation of the DrawCellGrid method.
The color is not used (or needed) when GridLineWidth contains the value 0
(zero).
</p>
</descr>
<seealso>
<link id="TCustomGrid.GridLineWidth"/>
<link id="TCustomGrid.DrawCellGrid"/>
</seealso>
</element>
<element name="TCustomGrid.FixedHotColor">
<short>The color used for hot-lighted fixed cells in the grid.</short>
<descr>
<p>
<var>FixedHotColor</var> is a <var>TColor</var> property used to draw the
background for a fixed cell that is under the mouse pointer (or hovered).The
default value for the property is cl3DLight.
</p>
<p>
FixedHotColor is used in the PrepareCanvas method when header hot tracking is
enabled in Options (goHeaderHotTracking) and gdHot is included in the drawing
state for the specified cell. The property value is assigned as the brush
color for the Canvas in the control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.PrepareCanvas"/>
<link id="TGridDrawState"/>
<link id="#lcl.graphics.TColor">TColor</link>
</seealso>
</element>
<element name="TCustomGrid.Flat">
<short>Indicates if cells are displayed using a Flat appearance.</short>
<descr>
<p>
<var>Flat</var> is a <var>Boolean</var> property which indicates if the cells
on the control are drawn using a "flat" drawing style. This causes the cells,
including fixed headers, to have a thinner single-line border without any 3D
relief regardless of the setting in TitleStyle.
</p>
<p>
The default value for the property is <b>False</b>. Changing the value in
Flat causes the UpdateBorderStyle method to be called when BorderStyle is set
to bsSingle. Invalidate is called and causes the control to be redrawn.
</p>
<p>
Flat is used in the DrawBorder method to determine the border drawing style
and Canvas settings needed for the control.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.FocusColor">
<short>
The color used to draw the focus rectangle when a cell has focus.
</short>
<descr>
<p>
<var>FocusColor</var> is a <var>TColor</var> property with the color used to
draw the focus rectangle (or rubber band) for the focused cell in the grid
control. The default value for the property is clRed. Changing the value for
the property causes the current cell at Col and Row to be redrawn.
</p>
<p>
FocusColor is used in the DrawFocusRect method when DefaultDrawing is enabled
for the grid control. But it is not used when UseXORFeatures is enabled;
clWhite is used as the pixel color instead.
</p>
</descr>
<seealso>
<link id="TCustomGrid.DrawFocusRect"/>
<link id="TCustomGrid.UseXORFeatures"/>
</seealso>
</element>
<element name="TCustomGrid.FocusRectVisible">
<short>Indicates if the focus rectangle is displayed for the control.</short>
<descr>
<p>
<var>FocusRectVisible</var> is a <var>Boolean</var> property which indicates
if the focus rectangle (or rubber band) is drawn for the focused cell, extent,
or row in the grid control. Changing the value for the property causes the
grid control to be redrawn. The default value for the property is <b>True</b>.
</p>
<p>
FocusRectVisible is used in the DrawRow method when the current cell or
extent is redrawn. If row selection (roRowSelect) is included in the Options
for the grid, the focus rectangle is drawn for the entire row.
</p>
<p>
Set FocusRectVisible to <b>False</b> to disable the feature in the control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.DrawRow"/>
</seealso>
</element>
<element name="TCustomGrid.GCache">
<short>
Contains cached data about the visual layout and state for the grid control.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.GridFlags">
<short>Contains grid-specific state flags active for the control.</short>
<descr>
<p>
<var>GridFlags</var> is a <var>TGridFlags</var> property which contains
values that indicate the state or status for the grid control or its editor.
It is a set type and may contain zero (0) or more values from the
<var>TGridFlagsOption</var> enumeration.
</p>
<p>
Values are included in or excluded from the set as needed during execution of
methods in the grid control. See TGridFlagsOption for more information about
the values in the enumeration and their meanings.
</p>
</descr>
<seealso>
<link id="TGridFlags"/>
<link id="TGridFlagsOption"/>
</seealso>
</element>
<element name="TCustomGrid.GridHeight">
<short>Total height for all of the rows in the grid control.</short>
<descr>
<p>
<var>GridHeight</var> is a read-only <var>Integer</var> property which
contains the calculated height for all of the rows in the grid control. Its
value is provided using the cached values stored in GCache when row or column
sizes are calculated for the control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.GridWidth"/>
<link id="TCustomGrid.GCache"/>
<link id="TCustomGrid.VisualChange"/>
</seealso>
</element>
<element name="TCustomGrid.GridLineColor">
<short>Color used for the grid lines on the control.</short>
<descr>
<p>
<var>GridLineColor</var> is a <var>TColor</var> property with the color used
to draw the grid lines between rows and columns on the control. The default
value for the property is <var>clSilver</var>. Changing the value for the
property causes the grid control to be redrawn.
</p>
<p>
GridLineColor is used in the <var>DrawCellGrid</var> method to draw the lines
around non-fixed cells when <var>GridLineWidth</var> has a non-zero value.
</p>
<p>
Use <var>FixedGridLineColor</var> to set the color used to draw grid lines
around fixed rows and columns on the control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.DrawCellGrid"/>
<link id="TCustomGrid.GridLineWidth"/>
<link id="TCustomGrid.GridLineStyle"/>
<link id="TCustomGrid.FixedGridLineColor"/>
</seealso>
</element>
<element name="TCustomGrid.GridLineStyle">
<short>Style used to draw the grid lines on the control.</short>
<descr>
<p>
<var>GridLineStyle</var> is a <var>TPenStyle</var> property with the pen
drawing style used to draw grid lines on the control. The default value for
the property is psSolid. Changing the value for the property causes the grid
control to be redrawn.
</p>
<p>
GridLineStyle, GridLineWidth, GridLineColor, and FixedGridLineColor are used
in the DrawCellGrid method when GridLineWidth is set to a positive non-zero
value.
</p>
</descr>
<seealso>
<link id="TCustomGrid.DrawCellGrid"/>
<link id="TCustomGrid.FixedGridLineColor"/>
<link id="TCustomGrid.GridLineColor"/>
<link id="TCustomGrid.GridLineWidth"/>
<link id="#lcl.graphics.TCanvas.Pen">TCanvas.Pen</link>
<link id="#lcl.graphics.TPen.Style">TPen.Style</link>
<link id="#lcl.graphics.TPenStyle">TPenStyle</link>
</seealso>
</element>
<element name="TCustomGrid.GridLineWidth">
<short>Width (thickness) for grid lines drawn on the control.</short>
<descr>
<p>
<var>GridLineWidth</var> is an <var>Integer</var> property which contains the
thickness for the grid lines drawn on the control.
</p>
<p>
The default value for the property is 1, and causes a single pixel to be used
when drawing grid lines. Changing the value for the property causes the grid
control to be redrawn.
</p>
<p>
GridLineWidth is used in the <var>DrawCellGrid</var> method when grid lines
are drawn for both fixed and non-fixed cells. Set GridLineWidth to <b>0</b>
to suppress drawing of grid lines on the control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.DrawCellGrid"/>
<link id="TCustomGrid.GridLineStyle"/>
<link id="TCustomGrid.GridLineColor"/>
<link id="TCustomGrid.FixedGridLineColor"/>
</seealso>
</element>
<element name="TCustomGrid.GridWidth">
<short>
Total width for all columns in the Grid including non-visible columns.
</short>
<descr>
<p>
<var>GridWidth</var> is a read-only Integer property which contains the
calculated width for all of the columns in the grid control, including
columns with the visible property set to <b>False</b>. Its value is provided
using the cached values stored in GCache when row or column sizes are
calculated for the control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.GridWidth"/>
<link id="TCustomGrid.GCache"/>
<link id="TCustomGrid.VisualChange"/>
</seealso>
</element>
<element name="TCustomGrid.HeaderHotZones">
<short>
Contains the grid zones which are hot-lighted (hovered) on the control.
</short>
<descr>
<p>
Other than setting the default value for the property, HeaderHotZones is not
used in the current LCL implementation.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.HeaderPushZones">
<short>
Contains the grid zones which are drawn in a "pushed" state on the control.
</short>
<descr>
<p>
<var>HeaderPushZones</var> is a <var>TGridZoneSet</var> property which
indicates which areas on the control are drawn in a "pushed" state when they
are clicked. It is a set type and contains zero or more values from the
TGridZone enumeration. The default value for the property is [gzFixedCols],
and indicates that fixed header cells are drawn with a button down state when
they are clicked.
</p>
<p>
HeaderPushZones is used in the MouseDown method when a mouse down event is
cached for the grid control. It is relevant when goHeaderPushedLook has been
included in the Options for the control, and causes the cell under the mouse
pointer to be redrawn in a clicked or pushed state when the mouse event is
handled.
</p>
</descr>
<seealso>
<link id="TCustomGrid.MouseDown"/>
<link id="TGridZoneSet"/>
<link id="TGridZone"/>
</seealso>
</element>
<element name="TCustomGrid.ImageIndexSortAsc">
<short>
Ordinal position for the image used when a column is sorted in ascending
order.
</short>
<descr>
<p>
<var>ImageIndexSortAsc</var> is a <var>TImageIndex</var> property with the
ordinal position in TitleImageList for the image drawn in the header for a
column sorted in ascending order. The default value for the property is -1
and indicates that a value has not been explicitly assigned for the property.
</p>
<p>
The property value is not used in the current LCL implementation. Use the
ImageIndex property in a TGridColumnTitle instance instead.
</p>
</descr>
<seealso>
<link id="TCustomGrid.TitleImageList"/>
<link id="TCustomGrid.Columns"/>
<link id="TGridColumn.Title"/>
<link id="TGridColumnTitle.ImageIndex"/>
<link id="#lcl.imglist.TImageIndex">TImageIndex</link>
</seealso>
</element>
<element name="TCustomGrid.ImageIndexSortDesc">
<short>
Ordinal position for the image used when a column is sorted in descending
order.
</short>
<descr>
<p>
<var>ImageIndexSortDesc</var> is a <var>TImageIndex</var> property with the
ordinal position in TitleImageList for the image drawn in the header for a
column sorted in descending order. The default value for the property is -1
and indicates that a value has not been explicitly assigned for the property.
</p>
<p>
The property value is not used in the current LCL implementation. Use the
ImageIndex property in a TGridColumnTitle instance instead.
</p>
</descr>
<seealso>
<link id="TCustomGrid.TitleImageList"/>
<link id="TCustomGrid.Columns"/>
<link id="TGridColumn.Title"/>
<link id="TGridColumnTitle.ImageIndex"/>
<link id="#lcl.imglist.TImageIndex">TImageIndex</link>
</seealso>
</element>
<element name="TCustomGrid.TabAdvance">
<short>Controls the behavior for Tab navigation in the grid control.</short>
<descr>
<p>
<var>TabAdvance</var> is a <var>TAutoAdvance</var> property used to determine
the behavior for Tab key navigation in the grid control. The default value
for the property is aaRightDown, and indicates the Tab key moves the selected
cell to the right and then to the first column in the next row. A Shift+Tab
key press results in the reverse of this behavior. See TAutoAdvance for the
other enumeration values and their usage.
</p>
<p>
TabAdvance is relevant when goTabs has been included in the Options for the
grid control. Otherwise, the Tab key causes the next control to become
focused.
</p>
<p>
TabAdvance is used in the implementation of the KeyDown method in TCustomGrid.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Options"/>
<link id="TCustomGrid.KeyDown"/>
<link id="TAutoAdvance"/>
</seealso>
</element>
<element name="TCustomGrid.TitleImageList">
<short>
The list with images displayed in column titles.
</short>
<descr>
<p>
<var>TitleImageList</var> is a <var>TCustomImageList</var> property which
contains images displayed in the title area for columns on the grid. It can
include images used for the ascending and descending column sort indicators
when <var>TitleStyle</var> is set to a value other than <var>tsNative</var>.
Use <var>ImageIndexSortAsc</var> and <var>ImageIndexSortDesc</var> to specify
the positions for sort images stored in TitleImageList.
</p>
<p>
Setting a new value for the property causes the <var>VisualChange</var>
method to be called to update column sizes and to redraw the control.
</p>
<p>
TitleImageList is used to get an image resolution with the width specified in
<var>TitleImageListWidth</var>. The images are used (when assigned) in
<var>DrawColumnTitleImage</var> and <var>DrawColumnText</var> to render the
<var>TGridColumn</var> instances defined in the <var>Columns</var> collection.
</p>
<p>
Use the <var>Title</var> property in the TGridColumn instance to assign the
<var>ImageIndex</var> and <var>ImageLayout</var> needed for the title image.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Columns"/>
<link id="TCustomGrid.TitleStyle"/>
<link id="TCustomGrid.TitleImageListWidth"/>
<link id="TCustomGrid.DrawColumnTitleImage"/>
<link id="TCustomGrid.DrawColumnText"/>
<link id="TCustomGrid.ImageIndexSortAsc"/>
<link id="TCustomGrid.ImageIndexSortDesc"/>
<link id="TCustomGrid.VisualChange"/>
<link id="TGridColumn.Title"/>
<link id="TGridColumnTitle.ImageIndex"/>
<link id="TGridColumnTitle.ImageLayout"/>
</seealso>
</element>
<element name="TCustomGrid.TitleImageListWidth">
<short>
Stores the default width for images used in the title area for fixed cells.
</short>
<descr>
<p>
<var>TitleImageListWidth</var> is an <var>Integer</var> which stores the
default width for images used in the title area for fixed cells. The default
value for the property is 0. Changing the value in TitleImageListWidth causes
the <var>VisualChange</var> method to be called to update the grid control.
</p>
<p>
The value in TitleImageListWidth is used in methods which draw fixed cells in
the grid, such as:
</p>
<ul>
<li>DrawColumnTitleImage</li>
<li>AutoAdjustColumn</li>
<li>GetSortTitleImageInfo</li>
</ul>
</descr>
<seealso>
<link id="TCustomGrid.DrawColumnTitleImage"/>
<link id="TCustomStringGrid.AutoAdjustColumn"/>
</seealso>
</element>
<element name="TCustomGrid.InplaceEditor">
<short>Cell editor for the grid control.</short>
<descr>
<p>
<var>InplaceEditor</var> is a read-only <var>TWinControl</var> property that
represents the cell <var>Editor</var> for the control. Read access is
redirected to the member variable used for the Editor property. It is
provided for Delphi code compatibility. Use the Editor property instead.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Editor"/>
</seealso>
</element>
<element name="TCustomGrid.IsCellSelected">
<short>
Provides indexed access to the selected state for a cell by its column and
row number.
</short>
<descr>
<p>
<var>IsCellSelected</var> is an indexed <var>Boolean</var> property which
provides access to the selected state for a cell using its column and row
number. <var>ACol</var> and <var>ARow</var> contain the column and row number
for the cell.
</p>
<p>
Compares the cell coordinates in ACol and ARow to the current selected range
on the grid control. The return value is <b>True</b> if the cell is in the
range for the selection on the control.
</p>
<p>
If <var>RangeSelectMode</var> is set to <var>rsmMulti</var>, all of the
existing range selections are examined for the specified cell. The property
value is <b>True</b> when the cell is located in the array of rectangles used
for multi-selections on the grid control.
</p>
<p>
Otherwise, the property value is set to <b>False</b>.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.IsCellSelected.Result">
<short>
<b>True</b> when the cell at the specified column and row is selected.
</short>
</element>
<element name="TCustomGrid.IsCellSelected.aCol">
<short>Column number for the cell examined in the method.</short>
</element>
<element name="TCustomGrid.IsCellSelected.aRow">
<short>Row number for the cell examined in the method.</short>
</element>
<element name="TCustomGrid.LeftCol">
<short>
Column number for the first visible column on the left edge of the grid.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.MouseWheelOption">
<short>Sets the mouse wheel behavior for the grid control.</short>
<descr>
<p>
<var>MouseWheelOption</var> is a <var>TMouseWheelOption</var> used to set the
mouse wheel behavior for the grid control. The default value for the property
is <var>mwCursor</var>, and indicates that mouse wheel movements change the
cursor position on the screen. Use <var>mwGrid</var> to cause mouse wheel
movements to change the active selection in the grid control.
</p>
</descr>
<seealso>
<link id="TMouseWheelOption"/>
<link id="TCustomGrid.DoMouseWheel"/>
</seealso>
</element>
<element name="TCustomGrid.Options">
<short>
Contains the set of optional features and/or behaviors enabled for the grid
control.
</short>
<descr>
<p>
<var>Options</var> is a <var>TGridOptions</var> property used to store the
options enabled for the grid control. Values from the <var>TGridOptions</var>
enumeration are included in the set type to enable specific features or
behaviors.
</p>
<p>
The set values can be included or excluded at design-time using the object
inspector in the Lazarus IDE. They can also be included or excluded in the
set at run-time using program code. The default value for the Options
property is defined in the <var>DefaultGridOptions</var> set constant.
</p>
<p>
Values present in the set cause the corresponding features or behaviors to be
enabled in the control at run-time. For the complete list of available
options and their usage, see <link id="TGridOption"/>.
</p>
<p>
Use <var>Options2</var> to set scrolling or cell editor behaviors enabled for
the grid control.
</p>
<p>
Use MouseWheelOption to control mouse wheel behavior in the grid control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Options2"/>
<link id="TCustomGrid.MouseWheelOption"/>
<link id="TGridOptions"/>
<link id="TGridOption"/>
<link id="DefaultGridOptions"/>
</seealso>
</element>
<element name="TCustomGrid.Options2">
<short>
Contains additional options for scrolling and editor behavior enabled in the
grid control.
</short>
<descr>
<p>
<var>Options2</var> is a <var>TGridOptions2</var> property which contains
options which control scrolling or cell editors in the grid control. It is a
set type which contains zero (0) or more values from the TGridOption2
enumeration.
</p>
<p>
See TGridOption2 for the values allowed in the set type. The default value
for the property is defined in the DefaultGridOptions2 constant (it is an
empty set).
</p>
<p>
The set values can be included or excluded at design-time using the object
inspector in the Lazarus IDE. They can also be included or excluded in the
set at run-time using program code.
</p>
<p>
Values present in the set cause the corresponding behaviors to be enabled in
the control at run-time. For example:
</p>
<dl>
<dt>goScrollToLastCol</dt>
<dd>
Allows columns to be scrolled until the last column is the LeftCol for the
grid control.
</dd>
<dt>goScrollToLastRow</dt>
<dd>
Allows rows to be scrolled until the last row is the TopRow for the grid
control.
</dd>
<dt>goEditorParentColor</dt>
<dd>
Sets the color in a cell editor to the color in the parent control (the
TCustomGrid instance). Changing the set member does not affect an existing
cell editor already visible on the control. The change is applied when the
next cell editor is created and displayed.
</dd>
<dt>goEditorParentFont</dt>
<dd>
Sets the font in a cell editor to the font in the parent control (the
TCustomGrid instance). Changing the set member does not affect an existing
cell editor already visible on the control. The change is applied when the
next cell editor is created, configured, and/or displayed.
</dd>
</dl>
<p>
Use Options to control the primary features and behaviors in the grid
control.
</p>
<p>
Use MouseWheelOption to control the mouse wheel behavior in the control.
</p>
</descr>
<version>
Modified in version 3.0 to include goEditorParentColor and goEditorParentFont
options.
</version>
<seealso>
<link id="TCustomGrid.Options"/>
<link id="TCustomGrid.MouseWheelOption"/>
<link id="TCustomGrid.CalcMaxTopLeft"/>
<link id="TCustomGrid.GetSBRanges"/>
<link id="TCustomGrid.GetSBVisibility"/>
<link id="TCustomGrid.SaveGridOptions"/>
<link id="TCustomGrid.LoadGridOptions"/>
<link id="TCustomGrid.DoEditorShow"/>
<link id="TGridOptions2"/>
<link id="TGridOption2"/>
<link id="DefaultGridOptions2"/>
</seealso>
</element>
<element name="TCustomGrid.RangeSelectMode">
<short>
Controls the range selection mode used for the grid.
</short>
<descr>
<p>
<var>RangeSelectMode</var> is a <var>TRangeSelectMode</var> property that
controls the range selection mode used for the grid. The default value for
the property is <var>rsmSingle</var>, and allows a selection to consist of a
single cell or a single cell range. Use <var>rsmMulti</var> to enable
selections that consist of multiple cells or multiple cell ranges.
</p>
<p>
Changing the value in RangeSelectMode causes the <var>ClearSelections</var>
method be called to remove existing selection(s) in the grid control.
</p>
<p>
RangeSelectMode is used in the implementation of methods like:
</p>
<ul>
<li>AddSelectedRange</li>
<li>GetIsCellSelected</li>
<li>MouseDown</li>
<li>InvalidateCell</li>
</ul>
</descr>
<seealso>
<link id="TRangeSelectMode"/>
<link id="TCustomGrid.ClearSelections"/>
<link id="TCustomGrid.AddSelectedRange"/>
<link id="TCustomGrid.GetIsCellSelected"/>
<link id="TCustomGrid.MouseDown"/>
<link id="TCustomGrid.InvalidateCell"/>
</seealso>
</element>
<element name="TCustomGrid.Row">
<short>
Row number for the selected grid cell.
</short>
<descr>
<p>
<var>Row</var> is an <var>Integer</var> property which contains the row index
for the currently selected cell in the grid control. The value in Row is
zero-based, and cannot exceed the value RowCount-1.
</p>
<p>
Setting a new value for the property causes the values in Col and Row to be
validated against the ColCount and RowCount for the grid. Error checking is
used, and an exception may be raised if the new property value is not in the
limits for the control. The selected cell in the control is changed to (or
extended to) the new values in the Col and Row properties. The Click method
is called to signal the OnClick event handler (when assigned) if the cell is
not already selected or displaying a cell editor.
</p>
<p>
Use Col to determine the column number for the currently selected cell in the
grid control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Col"/>
<link id="TCustomGrid.CheckLimitsWithError"/>
<link id="TCustomGrid.MoveExtend"/>
<link id="TCustomGrid.Click"/>
<link id="#lcl.controls.TControl.Click"/>
<link id="#lcl.controls.TControl.OnClick"/>
</seealso>
</element>
<element name="TCustomGrid.RowCount">
<short>Number of rows in the grid.</short>
<descr>
<p>
<var>RowCount</var> is an <var>Integer</var> property which contains the
number of rows in the grid control, including fixed and normal rows.
</p>
<p>
Changing the value in RowCount causes a visible Editor in the control to be
hidden, and EditorMode is set to <b>False</b>. When the Columns collection is
Enabled, the ColumnsChanged method is called. Setting RowCount to 0 (zero)
causes the ClearRows method to be called.
</p>
<p>
Use ColCount to access the number of columns for the grid control when
Columns has not been enabled.
</p>
<p>
Use Col and Row for the current cell selected in the control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Col"/>
<link id="TCustomGrid.Row"/>
<link id="TCustomGrid.RowHeights"/>
<link id="TCustomGrid.RowCount"/>
<link id="TCustomGrid.Columns"/>
<link id="TCustomGrid.Editor"/>
<link id="TCustomGrid.EditorMode"/>
<link id="TCustomGrid.ColumnsChanged"/>
<link id="TCustomGrid.ClearRows"/>
</seealso>
</element>
<element name="TCustomGrid.RowSizingCursor">
<short>Cursor shape displayed when the row height is resized.</short>
<descr>
<p>
<var>RowSizingCursor</var> is a <var>TCursor</var> property with the cursor
displayed when the vertical size for a row is changed. The default value for
the property is defined in the <var>crVSplit</var> constant.
</p>
<p>
It is displayed when a mouse down event causes the grid cursor state to be
changed to the value gcsRowHeightChanging.
</p>
<p>
Use ColSizingCursor to specify the cursor shape displayed when a column width
is resized.
</p>
</descr>
<seealso>
<link id="TCustomGrid.ColSizingCursor"/>
<link id="TCustomGrid.MouseDown"/>
<link id="#lcl.controls.crVSplit">crVSplit</link>
</seealso>
</element>
<element name="TCustomGrid.RowHeights">
<short>Provides indexed access to the height for each row in the grid.</short>
<descr>
<p>
The row is specified with the <var>aRow</var> parameter. The <var>aRow</var>
parameter must fall within the valid index range of 0 to <link
id="TCustomGrid.RowCount">RowCount</link>-1.
</p>
<p>
The return value of the is the height of this row, measured in pixels.
</p>
<p>
The initial height of a newly created row is specified with the <link
id="TCustomGrid.DefaultRowHeight">DefaultRowHeight</link> property. After
that the user may redefine this value. If the <link
id="TCustomGrid.Options">Options</link> includes the appropriate value, the
row height may also be changed by the user at run-time.
</p>
</descr>
<seealso>
<link id="TCustomGrid.RowCount"/>
<link id="TCustomGrid.DefaultRowHeight"/>
<link id="TCustomGrid.Options"/>
</seealso>
</element>
<element name="TCustomGrid.RowHeights.aRow">
<short>Row number affected in the method.</short>
</element>
<element name="TCustomGrid.SaveOptions">
<short>
Options which control the information saved and loaded for the grid control.
</short>
<descr>
<p>
<var>SaveOptions</var> is a <var>TSaveOptions</var> property with the set of
options enabled when saving values in the grid to a file or stream. The
options indicate whether design-time information, column attributes, cell
content and positions are included in the values save for the grid control.
The TSaveOption values included in or excluded from the property affect the
following:
</p>
<dl>
<dt>
soDesign
</dt>
<dd>
Design-time information for the control, including: column count, row count,
number of fixed columns and rows, default column width, default row width and
height, color, column definitions (when enabled in the control), and row
heights with non-default values. Also includes the settings in the Options
and Options2 properties for the control.
</dd>
<dt>
soPosition
</dt>
<dd>
Run-time values for the top and left coordinates for the grid, and the
current column and row number.
</dd>
<dt>
soRangeSelect
</dt>
<dd>
Requires the soPosition option. Stores the left, top, bottom, and right
coordinates for the range in the Selection property.
</dd>
<dt>
soContent
</dt>
<dd>
Stores the UTF-8-encoded text for each of the cells in the grid control.
</dd>
</dl>
<p>
The default values in SaveOptions are not assigned in TCustomGrid, and must
be provided in a descendent class like TCustomStringGrid.
</p>
<p>
SaveOptions also determines the data available and processed when loading
grid information in the LoadFromFile or LoadFromStream methods.
</p>
</descr>
<seealso>
<link id="TCustomGrid.SaveToFile"/>
<link id="TCustomGrid.SaveToStream"/>
<link id="TCustomGrid.LoadFromFile"/>
<link id="TCustomGrid.LoadFromStream"/>
</seealso>
</element>
<element name="TCustomGrid.SelectActive">
<short>Indicates if a Selection is active in the grid control.</short>
<descr>
<p>
<var>SelectActive</var> is a <var>Boolean</var> property which indicates if a
<var>Selection</var> range is active in the grid control. It is set to
<b>True</b> when a cell or range of cells is selected using the keyboard or
mouse navigation, or by assigning a value to the Selection property. It is
set to <b>False</b> in methods like <var>CancelSelection</var>,
<var>DoExit</var>, and <var>DoMouseWheel</var>.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.SelectedColor">
<short>Color used for selected cells in the grid.</short>
<descr>
<p>
<var>SelectedColor</var> is a <var>TColor</var> property which contains the
color used for the background in selected cell(s). SelectedColor is used in
<var>PrepareCanvas</var> to set the brush color for the control
<var>Canvas</var> when <var>IsSelected</var> is <b>True</b>. The default
value for the property is <var>clHighlight</var> as assigned in the
constructor for the class instance.
</p>
<p>
Changing the value in SelectedColor causes the <var>Invalidate</var> method
to be called to redraw the control.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.FadeUnfocusedSelection">
<short>
Indicates if a special color is used for selected cells when the control
loses focus.
</short>
<descr>
<p>
<var>FadeUnfocusedSelection</var> is a <var>Boolean</var> property which
indicates if inactive caption and text colors are used to draw the selected
cells in the grid when the control loses focus. It causes color values for
the Brush and Font on the Canvas to be updated.
</p>
<p>
When set to <b>True</b> and the control is not Focused, an sRGB color
difference between the Font color and the clBtnFace color is used to select
the color values applied to the Canvas. If the color distance at least 25%,
clBtnFace is used for the background and clBtnText is used for the text. For
a smaller color distance, clInactiveCaption is used for the background and
clInactiveCaptionText is used for the text.
</p>
<p>
When set to <b>False</b>, or when the control has Focus, the color in
SelectedColor is used for the background in selected cells and the color
assigned to Font is used for text.
</p>
<p>
The default value for the property is <b>False</b>. Changing the value for
the property causes the control to be redrawn.
</p>
<p>
FadeUnfocusedSelection has no effect on cells which use a button-style
editor; they are drawn using the style and color values needed for the button
control.
</p>
<p>
FadeUnfocusedSelection is used in the PrepareCanvas method to assign the
Brush and Font colors used on the Canvas.
</p>
</descr>
<seealso>
<link id="TCustomGrid.DisabledFontColor"/>
<link id="TCustomGrid.Focused"/>
<link id="TCustomGrid.FocusColor"/>
<link id="TCustomGrid.SelectedColor"/>
<link id="TCustomGrid.PrepareCanvas"/>
<link id="TCustomGrid.OnPrepareCanvas"/>
<link id="#lcl.controls.TCustomControl.Canvas">TCustomControl.Canvas</link>
<link id="#lcl.graphics.clBtnFace">clBtnFace</link>
<link id="#lcl.graphics.clBtnText">clBtnText</link>
<link id="#lcl.graphics.clInactiveCaption">clInactiveCaption</link>
<link id="#lcl.graphics.clInactiveCaptionText">clInactiveCaptionText</link>
</seealso>
</element>
<element name="TCustomGrid.SelectedColumn">
<short>
The column instance for the currently selected cell in the grid control.
</short>
<descr>
<p>
<var>SelectedColumn</var> is a read-only <var>TGridColumn</var> property
which contains the column instance for the current column. <var>Col</var>
contains the column number for the selected cell in the grid control, and is
used to located the column instance by calling
<var>ColumnFromGridColumn</var>. The property may contain <b>Nil</b> if
<var>Columns</var> has not been enabled in the control, or when a valid
column definition is not found for the current column number.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.Selection">
<short>Rectangle with the current cell selections in the grid control.</short>
<descr>
<p>
<var>Selection</var> is a <var>TGridRect</var> property with the column and
row numbers for the current cell selection in the grid control. The Left and
Right members in the property value are column numbers for the cells in the
selection. The Top and Bottom members in the property value are row numbers
for the cells in the selection.
</p>
<p>
Selection is used when <var>goRangeSelect</var> has been included in the
<var>Options</var> for the grid.
</p>
<p>
When a new grid rectangle is assigned for the property, the member values in
the rectangle are normalized to ensure they are in the acceptable range of
values for the grid control. If all four members have negative values, the
current Selection is cleared by calling <var>ClearSelection</var>.
</p>
<p>
Column or row numbers in the rectangle are adjusted to exclude
<var>FixedCols</var> and <var>FixedRows</var>.When
<var>goSelectionActive</var> has been included in the grid Options, the
current selection is extended to include the new selection range. The
<var>Invalidate</var> method is called to redraw the grid control with the
new Selection value.
</p>
<p>
A value assigned to Selection is ignored when <var>goRangeSelect</var> has
<b>not</b> been included in the <var>Options</var> for the grid.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.ScrollBars">
<short>Scrollbars displayed for the grid control.</short>
<descr>
<p>
<var>ScrollBars</var> is a <var>TScrollStyle</var> property which indicates
the scroll bars displayed for the grid control. The default value for the
property is <var>ssAutoBoth</var> and causes vertical and horizontal scroll
bars to be displayed when needed.
</p>
<p>
See <var>TScrollStyle</var> for more information about values in the
enumeration and their meanings.
</p>
</descr>
<seealso>
<link id="#lcl.stdctrls.TScrollStyle">TScrollStyle</link>
</seealso>
</element>
<element name="TCustomGrid.StrictSort">
<short>Indicates if strict sorting is used.</short>
<descr>
<p>
<var>StrictSort</var> controls whether the internal QuickSort routine can
skip exchanging the position for items when they have the same sort values.
It allows the sort routine operate more quickly. Set StrictSort to
<b>False</b> to skip calling the exchange routine for the items with the same
values. When set to <b>True</b>, the exchange operation is performed for all
sorted items.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.TitleFont">
<short>The font used for text in a column title.</short>
<descr>
<p>
TitleFont is a TFont property with the font used for the text in a fixed
column title. By default, TitleFont uses the same Font assigned to the grid
control.
</p>
<p>
The OnTitleFontChanged event handler is used as the OnChange event handler
for TitleFont, and ensures that updates to TitleFont are also applied to
TGridColumn instances in the Columns collection (when enabled). In addition,
the font in TitleFont is ignored when Columns has been Enabled; the Font
assigned to the Title property for the TGridColumn instance is used instead.
</p>
<p>
GetColumnFont is called from PrepareCanvas to determine whether TitleFont or
a font defined in the Columns collection is used to render the text in fixed
cells.
</p>
<p>
Assigning a new value to TitleFont causes the VisualChange method to be
called to recalculate column sizes in the grid control.
</p>
<p>
Font sizes (in both Font, TitleFont, and TGridColumn instances) may be scaled
at run-time to provide support for high density displays. See ScaleFontsPPI
for more information.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.TitleStyle">
<short>The drawing style used for the fixed column titles.</short>
<descr>
<p>
TitleStyle is a TTitleStyle property which contains the drawing style used
when rendering the fixed cells with the column titles. Changing the value in
TitleStyle cause the Invalidate method to be called to redraw the grid
control.
</p>
<p>
TitleStyle is used in the DrawCellGrid and DefaultDrawCell methods when Flat
is set to <b>False</b>, and controls the 3D appearance of the fixed cell.
</p>
<dl>
<dt>tsLazarus</dt>
<dd>Uses the default appearance common to the supported platforms in
Lazarus.</dd>
<dt>tsNative</dt>
<dd>Uses the drawing style for the current widgetset or theme.</dd>
<dt>tsStandard</dt>
<dd>Uses a more contrasted look similar to Delphi grids.</dd>
</dl>
<p>
Use TitleFont (or the definitions in the Columns collection) to control the
font used in fixed cells.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.TopRow">
<short>The first visible row in the grid.</short>
<descr>
<p>
<var>TopRow</var> is an <var>Integer</var> property with the position of the
first row visible in the control. Rows are numbered from 0 to RowCount-1 but
the first accessible row is at the ordinal position in FixedRows. In short:
when FixedRows is 1, row number 0 is not accessible. When FixedRows is 2, row
numbers 0 and 1 are not accessible. Ad infinitum.
</p>
<p>
Setting a new value for the property causes the grid to scroll until the
specified row number becomes visible. The current column a selection is not
affected. No actions are performed if the row is already visible (even if it
is not the first visible row).
</p>
<p>
The property value is read from and written to the cached internal TopLeft
member for the control.
</p>
<p>
Use ScrollToCell to make the cell at a specific column and row number become
visible in the grid control.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.UseXORFeatures">
<short>
When <b>True</b>, the dotted focus rectangle is painted using an XOR raster
operation.
</short>
<descr>
<p>
This controls how the dotted focus rectangle appears in the grid. When
<b>True</b>, the rectangle is painted using an XOR raster operation. This
allows the focus rectangle to be seen regardless of the cell background
color. When <b>False</b>, the user can control the color of the dotted focus
rectangle using the <var>FocusColor</var> property.
</p>
<p>
It also controls the look of column/row resizing operations. When
<b>True</b>, a line shows visually the size that the column or row will
have if the user ends the operation. When <b>False</b>, the column or row
resizing takes effect as the user drags the mouse.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.ValidateOnSetSelection">
<short>
Controls validation when the text for the selected cell is changed.
</short>
<descr>
<p>
<var>ValidateOnSetSelection</var> is a <var>Boolean</var> property used to
control validation performed when the text for the selected cell is changed
in the grid. The default value for ValidateOnSetSelection is <b>False</b>, as
assigned in the constructor for the class.
</p>
<p>
ValidateOnSetSelection is used in the <var>SelectionSetText</var> method to
determine if the <var>ValidateEntry</var> method is called to validate the
content in the cell.
</p>
</descr>
<seealso>
<link id="TCustomGrid.ValidateEntry"/>
<link id="TCustomGrid.OnValidateEntry"/>
</seealso>
</element>
<element name="TCustomGrid.VisibleColCount">
<short>The number of visible columns in the grid control.</short>
<descr>
<p>
<var>VisibleColCount</var> is a read-only <var>Integer</var> property with
the number of columns displayed in the visible area for the control. The
property value is derived using the cached VisibleGrid information in the
GCache property. It is not included in the LCL streaming mechanism, and is an
artifact from older LCL versions.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.VisibleRowCount">
<short>The number of visible rows in the grid control.</short>
<descr>
<p>
<var>VisibleRowCount</var> is a read-only <var>Integer</var> property with
the number of rows displayed in the visible area for the grid control. The
property value is calculated using the cached visible area in the GCache
property.
</p>
<p>
Use VisibleColCount for the number of columns displayed in the visible area
for the grid control.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.OnAfterSelection">
<short>
Event handler signalled after a new Selection is made in the grid.
</short>
<descr>
<p>
<var>OnAfterSelection</var> is a <var>TOnSelectEvent</var> property that is
the event handler signalled when the Selection for the control has been moved.
</p>
<p>
An application can implement and assign an object procedure using the event
signature to perform any action needed for the notification. The arguments
passed to the event handler include the column and row numbers <b>prior</b>
to moving the Selection .
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.OnBeforeSelection">
<short>
Event handler signalled before changing the Selection in the grid control.
</short>
<descr>
<p>
<var>OnBeforeSelection</var> is a <var>TOnSelectEvent</var> property with the
event handler signalled prior to changing the Selection for the grid control.
OnBeforeSelection can be used to perform actions needed before the Selection
is moved and an Editor is displayed for the newly selected cell.
</p>
<p>
OnBeforeSelection is triggered (when assigned) from the MoveExtend method,
and occurs when a new column or row is selected in the grid using keyboard
navigation, using the mouse, or by assigning values to the Col or Row
properties. It is also triggered when an explicit value is assigned to the
Selection property.
</p>
<p>
Use OnAfterSelection to performs actions needed <b>after</b> the Selection
has been changed and the Editor has been displayed.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.OnCheckboxToggled">
<short>
Event handler signalled when the value for a check box cell is toggled.
</short>
<descr>
<p>
<var>OnCheckboxToggled</var> is a <var>TToggledCheckboxEvent</var> property
with the event handler signalled when the value for a check box-style cell is
toggled. OnCheckboxToggled is triggered (when assigned) after the cell value
has been changed and stored. OnCheckboxToggled is used in descendent classes
which implement a method to toggle the value when the cell is clicked, like
TCustomDrawGrid.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.ToggleCheckbox"/>
<link id="TCustomDrawGrid.CellClick"/>
<link id="TToggledCheckboxEvent"/>
</seealso>
</element>
<element name="TCustomGrid.OnCompareCells">
<short>Event handler signalled to compare the content in grid cells.</short>
<descr>
<p>
<var>OnCompareCells</var> is a <var>TOnCompareCells</var> property with the
event handler signalled to compare two cell values in the grid control.
OnCompareCells is signalled (when assigned) by the DoCompareCells method, and
occurs when column or row values are examined in the Sort method. The Result
parameter contains the relative sort order for the compared cell values.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Sort"/>
<link id="TCustomGrid.DoCompareCells"/>
<link id="TOnCompareCells"/>
</seealso>
</element>
<element name="TCustomGrid.OnPrepareCanvas">
<short>Event handler signalled to prepare the Canvas to draw the grid.</short>
<descr>
<p>
<var>OnPrepareCanvas</var> is a <var>TOnPrepareCanvasEvent</var> property
with the event handler signalled to configure the control <var>Canvas</var>
to draw a cell at specified coordinates using a specific state.
OnPrepareCanvas is signalled (when assigned) from the
<var>DoPrepareCanvas</var> method.
</p>
<p>
OnPrepareCanvas allows the Pen, Brush, Font, and Color defaults assigned in
PrepareCanvas to be overridden for a specified column and row to use a
specific TGridDrawState value. It offers the last chance to change the
appearance of a cell before it is drawn in the DrawCell or ShowCellHintWindow
methods.
</p>
<p>
Use OnDrawCell (implemented in the TCustomDrawGrid descendant) to override
the actions performed in the DefaultDrawCell method when DefaultDrawing is
enabled.
</p>
</descr>
<seealso>
<link id="TCustomGrid.PrepareCanvas"/>
<link id="TCustomGrid.ShowCellHintWindow"/>
<link id="TCustomGrid.DrawCell"/>
<link id="TCustomDrawGrid.OnDrawCell"/>
<link id="TOnPrepareCanvasEvent"/>
<link id="TGridDrawState"/>
</seealso>
</element>
<element name="TCustomGrid.OnDrawCell">
<short>Event handler signalled to draw a cell in the grid control.</short>
<descr>
<p>
<var>OnDrawCell</var> is a <var>TOnDrawCell</var> property with the event
handler signalled to render a cell in the grid control. Parameters passed to
the event handler identify the column and row numbers for the cell, the
drawing rectangle, and the grid draw state for the cell.
</p>
<p>
OnDrawCell can be used to perform drawing operations which supplement or
override the default drawing mechanism in the grid control. When
<var>DefaultDrawing</var> property is <b>True</b>, the DefaultDrawCell method
is called to render the cell background, state, text and focus in the default
manner. Use OnDrawCell to perform drawing actions which differ from the
default for the specified cell.
</p>
<p>
OnDrawCell can be used to render all aspects of a cell when DefaultDrawing is
set to <b>False</b>. In this situation, the event handler must handle
rendering the background, state, text, and focus for the cell.
</p>
<p>
OnDrawCell is signalled (when assigned) from the <var>DrawCell</var> method
at run-time. It is not signalled at design-time. OnDrawCell occurs after the
canvas has been configured using <var>PrepareCanvas</var>, and after
<var>DefaultDrawCell</var> has been called (when DefaultDrawing is
<b>True</b>).
</p>
</descr>
<seealso>
<link id="TCustomGrid.PrepareCanvas"/>
<link id="TCustomGrid.DefaultDrawing"/>
<link id="TCustomGrid.DrawCell"/>
<link id="TCustomGrid.DrawCellGrid"/>
<link id="TOnDrawCell"/>
</seealso>
</element>
<element name="TCustomGrid.OnEditButtonClick">
<short>
Event handler signalled when the button in a cell Editor is clicked.
<b>Deprecated</b>.
</short>
<descr>
<p>
<b><i>Deprecated</i></b>. Use OnButtonClick instead.
</p>
</descr>
<seealso>
<link id="TCustomGrid.OnButtonClick"/>
</seealso>
</element>
<element name="TCustomGrid.OnButtonClick">
<short>
Event handler signalled when a button-style cell Editor control is clicked.
</short>
<descr>
<p>
<var>OnButtonClick</var> is a <var>TOnSelectEvent</var> property with the
event handler signalled when the button for a button-style Editor control is
clicked. It allows the application to perform actions needed when a mouse up
event occurs for a cell using the editor type.
</p>
<p>
OnButtonClick is signalled (when assigned) from the DoEditButtonClick method.
An application must implement and assign a handler routine using the
signature in TOnSelectEvent to respond to the event notification. Arguments
passed to the event handler include the current grid control, and the Column
and Row numbers where the click event occurred.
</p>
<p>
OnButtonClick is not signalled for mouse click events that occur in the
header zone for a column.
</p>
<p>
OnButtonClick is the replacement for the deprecated OnEditButtonClick event
handler.
</p>
</descr>
<seealso>
<link id="TCustomGrid.MouseUp"/>
<link id="TCustomGrid.OnEditButtonClick"/>
<link id="TOnSelectEvent"/>
</seealso>
</element>
<element name="TCustomGrid.OnPickListSelect">
<short>
Event handler signalled when an item is selected from a pick list-style
Editor control.
</short>
<descr>
<p>
<var>OnPickListSelect</var> is a <var>TNotifyEvent</var> property with the
event handler signalled when a value is selected from a pick list-style
Editor control. It is signalled (when assigned) from the PickListItemSelected
method, and occurs after the editor applies the modified value to the cell.
</p>
<p>
OnPickListSelect can be used to perform actions needed when the cell value is
changed as a result of the pick-list selection in the editor. An application
must implement and assign an object procedure to the handler to respond to
the event notification.
</p>
</descr>
<seealso>
<link id="TCustomGrid.PickListItemSelected"/>
<link id="TPickListCellEditor.Select"/>
<link id="#rtl.classes.TNotifyEvent">TNotifyEvent</link>
</seealso>
</element>
<element name="TCustomGrid.OnSelection">
<short>
Event handler signalled when an area is selected in the grid control.
</short>
<descr>
<p>
The <var>Col</var> and <var>Row</var> parameters contain the column and the
row of the highlighted cell.
</p>
<p>
Application developers can use the <var>OnSelection</var> and
<var>OnBeforeSelection</var> events to react to focus changes.
</p>
</descr>
<seealso>
<link id="TCustomGrid.OnBeforeSelection"/>
<link id="TCustomGrid.OnAfterSelection"/>
</seealso>
</element>
<element name="TCustomGrid.OnSelectEditor">
<short>
Event handler signalled to select an Editor control for the current grid cell.
</short>
<descr>
<p>
<var>OnSelectEditor</var> is a <var>TSelectEditorEvent</var> property with
the event handler signalled to select an editor control for a cell in the
grid. Arguments to the event handler contain the column and row numbers for
the cell, and a variable parameter used to return the editor control used for
the specified cell.
</p>
<p>
OnSelectEditor is signalled (when assigned) from the SelectEditor method. It
is not signalled if EditingAllowed returns <b>False</b> for the selected
column in Col. It allows the default cell editor for the column (returned
from GetDefaultEditor) to be overridden with a user-determined editor for a
specific cell.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Col"/>
<link id="TCustomGrid.EditingAllowed"/>
<link id="TCustomGrid.GetDefaultEditor"/>
<link id="TCustomGrid.SelectEditor"/>
<link id="TCustomGrid.SelectCell"/>
<link id="TSelectEditorEvent"/>
</seealso>
</element>
<element name="TCustomGrid.OnTopLeftChanged">
<short>
Event handler signalled when the top left cell in the visible area of the
control is changed.
</short>
<descr>
<p>
Signalled (when assigned) from the TopLeftChanged method. It occurs when the
origin cell is changed when the grid is scrolled, when the value in
AutoFillColumns is changed to True, or when the position for the cell editor
is updated.
</p>
</descr>
<seealso>
<link id="TCustomGrid.TopLeftChanged"/>
<link id="TCustomGrid.AutoFillColumns"/>
</seealso>
</element>
<element name="TCustomGrid.OnUserCheckboxBitmap">
<short>
Event handler signalled to get the user-defined bitmap used for a check box
cell.
</short>
<descr>
<p>
<var>OnUserCheckboxBitmap</var> is a <var>TUserCheckboxBitmapEvent</var>
property with the event handler used to get the user-specified bitmap drawn
for check box cell on the control. It is signalled from the
GetImageForCheckBox method (when assigned) with the control, column, row, and
check box state for the cell. Use the Bitmap argument to return the bitmap
image provided in the event handler routine.
</p>
<p>
Use the OnUserCheckboxImage to retrieve an image list and index position with
the graphical representation for a specific check box state.
</p>
</descr>
<seealso>
<link id="TCustomGrid.GetImageForCheckBox"/>
<link id="TCustomGrid.OnUserCheckBoxImage"/>
<link id="TCustomGrid.DrawGridCheckboxBitmaps"/>
<link id="TUserCheckboxBitmapEvent"/>
</seealso>
</element>
<element name="TCustomGrid.OnUserCheckboxImage">
<short>
Event handler signalled to get the user-defined image used for a check box
cell.
</short>
<descr>
<p>
<var>OnUserCheckboxImage</var> is a <var>TUserCheckBoxImageEvent</var>
property with the event handler signalled to get a user-specified image list
and index position for a check box cell with a give state. It is signalled
from the GetImageForCheckBox method (when assigned) with the control, column,
row, and check box state for the cell. Use the ImageList and ImageIndex
arguments to return the image and position provided in the event handler
routine.
</p>
<p>
Use the OnUserCheckboxBitmap event handler to get the check box image as a
TBitmap type.
</p>
</descr>
<seealso>
<link id="TCustomGrid.GetImageForCheckBox"/>
<link id="TCustomGrid.OnUserCheckBoxBitmap"/>
<link id="TCustomGrid.DrawGridCheckboxBitmaps"/>
<link id="TUserCheckboxImageEvent"/>
</seealso>
</element>
<element name="TCustomGrid.OnValidateEntry">
<short>Event handler signalled to perform validation for a cell value.</short>
<descr>
<p>
<var>OnValidateEntry</var> is a <var>TValidateEntryEvent</var> property with
the event handler signalled to perform validation for cells in the
<var>ValidateEntry</var> method. The OldValue argument contains the value
validated in the handler routine. Use the NewValue argument to return a
modified value from the handler routine.
</p>
<p>
The handler can raise an Exception if needed. It is caught in the calling
routine (ValidateEntry), and forwarded to the HandleException method in the
Application singleton.
</p>
<p>
Updated cell values are not validated if the event handler has not been
assigned.
</p>
</descr>
<seealso>
<link id="TCustomGrid.ValidateEntry"/>
<link id="TValidateEntryEvent"/>
<link id="#lcl.forms.TApplication.HandleException">TApplication.HandleException</link>
</seealso>
</element>
<element name="TCustomGrid.FlipRect">
<short>
Flips coordinates for the specified cell rectangle when BiDiMode or RTL
alignment is used.
</short>
<descr>
<p>
<var>FlipRect</var> causes the control display area in <var>ARect</var> to be
aligned to the opposite horizontal edge of the parent control when
UseRightToLeftAlignment is enabled. Values in the Left and Right members in
ARect are modified to reflect the new position / alignment.
</p>
<p>
FlipRect calls the BidiFlipRect routine to reposition the control on the
parent rectangle.
</p>
<p>
The return value is a <var>TRect</var> instance with modified Left and Right
coordinates for the repositioned control.
</p>
<p>
No actions are performed in the method when UseRightToLeftAlignment is set to
<b>False</b>, and the return value is set to ARect.
</p>
</descr>
<seealso>
<link id="#lcl.controls.BidiFlipRect">BidiFlipRect</link>
</seealso>
</element>
<element name="TCustomGrid.FlipRect.Result">
<short>
TRect instance with the updated display area for the control.
</short>
</element>
<element name="TCustomGrid.FlipRect.ARect">
<short>
Control display area examined and potentially updated in the method.
</short>
</element>
<element name="TCustomGrid.FlipPoint">
<short>
Flips cell coordinates for the specified point on the parent rectangle when
BiDiMode or RTL alignment is used.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.FlipPoint.Result">
<short>
TPoint instance with the updated cell coordinates.
</short>
</element>
<element name="TCustomGrid.FlipPoint.P">
<short>
TPoint instance where the cell coordinates are represented in the X and Y
members.
</short>
</element>
<element name="TCustomGrid.FlipX">
<short>
Flips the horizontal position in the client when BiDiMode or RTL alignment is
used.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.FlipX.Result">
<short>
Integer value with the adjusted X coordinate.
</short>
</element>
<element name="TCustomGrid.FlipX.X">
<short>
X coordinate examined and recalculated in the method.
</short>
</element>
<element name="TCustomGrid.OnGetCellHint">
<short>Gets the hint text for a cell.</short>
<descr>
<p>
<var>OnGetCellHint</var> is a <var>TGetCellHintEvent</var> with the event
handler signalled to get the hint text for a cell in the grid control.
OnGetCellHint is signalled when <var>goCellHints</var> or
<var>goTruncCellHints</var> enumeration values are included in the
<var>Options</var> property.
</p>
<p>
OnGetCellHint is signalled (when assigned) from the
<var>GetCellHintText</var> and <var>GetTruncCellHintText</var> methods called
when <var>ShowCellHintWindow</var> applies the <var>CellHintPriority</var>
for the grid control.
</p>
</descr>
<seealso>
<link id="TGridOption"/>
<link id="TCustomGrid.Options"/>
<link id="TCustomGrid.CellHintPriority"/>
<link id="TCustomGrid.GetCellHintText"/>
<link id="TCustomGrid.GetTruncCellHintText"/>
</seealso>
</element>
<element name="TCustomGrid.OnSaveColumn">
<short>
Event handler signalled when an entry in Columns is saved to a configuration
file using the SaveContent method.
</short>
<descr>
<p>
The APath argument contains the XPath-like notation, including the
column identifier, used to access the column definition. For example:
</p>
<code>
'grid/design/columns/column1'
</code>
</descr>
<seealso>
<link id="TCustomGrid.SaveContent"/>
<link id="TCustomGrid.SaveToFile"/>
<link id="TCustomGrid.SaveToStream"/>
<link id="TCustomGrid.DoSaveColumn"/>
<link id="TSaveColumnEvent"/>
</seealso>
</element>
<element name="TCustomGrid.OnLoadColumn">
<short>
Event handler signalled when a column is loaded in the LoadColumns method.
</short>
<descr/>
<seealso>
<link id="TCustomGrid.LoadFromFile"/>
<link id="TCustomGrid.LoadFromStream"/>
</seealso>
</element>
<!-- public -->
<element name="TCustomGrid.Create">
<short>Constructor for the class instance.</short>
<descr>
<p>
<var>Create</var> is the constructor for <var>TCustomGrid</var>. Create calls
the inherited <var>Create</var> method, allocates the lists with columns and
rows, initializes many visual properties and options, creates the various
cell editors, and loads any bitmaps required for the control.
</p>
<remark>
The inherited method calls SetBounds and VisualChange, so the grid needs to
be fully instantiated before the inherited method is called.
</remark>
</descr>
<seealso>
<link id="#lcl.controls.TCustomControl.Create">TCustomControl.Create</link>
</seealso>
</element>
<element name="TCustomGrid.Create.AOwner">
<short>
Owner of the class instance.
</short>
</element>
<element name="TCustomGrid.Destroy">
<short>Destructor for the class instance.</short>
<descr>
<p>
<var>Destroy</var> is the destructor for <var>TCustomGrid</var>. Destroy
frees various resources including editors, columns, rows, fonts, and the
internal TGridScroller used in the class instance. It calls the inherited
<var>Destroy</var> method prior to exit.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TCustomControl.Destroy">TCustomControl.Destroy</link>
</seealso>
</element>
<element name="TCustomGrid.Invalidate">
<short>
Performs a request to redraw the control.
</short>
<descr>
<p>
Invalidate is an overridden method in TCustomGrid. It ensures that the
internal update counter is at 0 before forcing the control to be redrawn. No
actions are performed in the method if the counter has a non-zero value.
</p>
<p>
Invalidate calls the inherited method where the paint request is performed
when the Handle for the control has been allocated.
</p>
<p>
Invalidate is called when color, style, or content changes occur in the grid
which require the control to be redrawn. For instance:
</p>
<ul>
<li>AltColorStartNormal</li>
<li>AlternateColor</li>
<li>BorderColor</li>
<li>Color</li>
<li>DefaultDrawing</li>
<li>DoOnChangeBounds</li>
<li>FadeUnfocusedSelection</li>
<li>FixedColor</li>
<li>FixedGridLineColor</li>
<li>FocusRectVisible</li>
<li>Flat</li>
<li>GridLineColor</li>
<li>GridLineStyle</li>
<li>GridLineWidth</li>
<li>InvalidateGrid</li>
<li>MouseDown</li>
<li>Notification</li>
<li>SelectedColor</li>
<li>Selection</li>
<li>TitleStyle</li>
<li>VisualChange</li>
<li>UseXORFeatures</li>
</ul>
</descr>
<seealso>
<link id="#lcl.controls.TWinControl.Invalidate">TWinControl.Invalidate</link>
</seealso>
</element>
<element name="TCustomGrid.EditingDone">
<short>
Signals the OnEditingDone event handler.
</short>
<descr>
<p>
<var>EditingDone</var> is an overridden method in <var>TCustomGrid</var>
called when the user has finished editing using the control. EditingDone
ensures that the Editor control is visible before calling the inherited
method. The inherited method signals the OnEditingDone event handler (when
assigned).
</p>
<p>
No actions are performed in the method when EditShowing is <b>False</b>.
</p>
</descr>
<seealso>
<link id="TCustomGrid.EditorShowing"/>
<link id="#lcl.controls.TControl.EditingDone">TControl.EditingDone</link>
<link id="#lcl.controls.TControl.OnEditingDone">TControl.OnEditingDone</link>
</seealso>
</element>
<element name="TCustomGrid.AdjustInnerCellRect">
<short>
Adjusts the cell rectangle to account for grid lines drawn around a cell.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.AdjustInnerCellRect.ARect">
<short>Cell rectangle adjusted in the method.</short>
</element>
<element name="TCustomGrid.AutoAdjustColumns">
<short>
Automatically adjusts columns sizes to the width of their content.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.BeginUpdate">
<short>Begins an update to the grid control.</short>
<descr>
<p>
<var>BeginUpdate</var> is a procedure used to start an update to the layout
or content in a grid control. BeginUpdate increments an internal member used
to prevent nested calls to the method. The protection remains in effect until
the <var>EndUpdate</var> method is called. BeginUpdate is used in the
implementation of methods that alter the physical appearance of the grid.
</p>
</descr>
<seealso>
<link id="TCustomGrid.EndUpdate"/>
<link id="TCustomGrid.VisualChange"/>
</seealso>
</element>
<element name="TCustomGrid.CellRect">
<short>
The coordinates for the specified cell (ACol, ARow) as a standard rectangle
(TRect).
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.CellRect.Result">
<short>TRect instance with the coordinates for the cell.</short>
</element>
<element name="TCustomGrid.CellRect.ACol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomGrid.CellRect.ARow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomGrid.CellToGridZone">
<short>Determines the grid zone for the specified cell.</short>
<descr>
<p>
<var>CellToGridZone</var> is a <var>TGridZone</var> function used to get the
grid zone where the specified cell is located. It is similar in nature to the
MouseToGridZone method, but uses grid coordinates instead of mouse
coordinates. The return value is one of the TGridZone enumeration values.
</p>
<dl>
<dt>gzInvalid</dt>
<dd>Returned when ACol or ARow contain a negative number.</dd>
<dt>gzFixedCells</dt>
<dd>
Returned when both ACol and ARow are in the FixedCols and FixedRows for the
grid.
</dd>
<dt>gzFixedCol</dt>
<dd>Returned when ACol is one of the FixedCols for the grid.</dd>
<dt>gzFixedRow</dt>
<dd>Returned when ARow is one of the FixedRows for the grid.</dd>
<dt>gzNormal</dt>
<dd>
Default value returned for a cell that is neither a fixed column nor a fixed
row.
</dd>
</dl>
<p>
CellToGridZone is used in the implementation of methods like MouseUp,
CacheMouseDown, Clean, and LoadContent.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.CellToGridZone.Result">
<short>TGridZone enumeration value for the cell.</short>
</element>
<element name="TCustomGrid.CellToGridZone.aCol">
<short>Column number examined in the method.</short>
</element>
<element name="TCustomGrid.CellToGridZone.aRow">
<short>Row number examined in the method.</short>
</element>
<element name="TCustomGrid.CheckPosition">
<short>
Determines if the cell can be selected, or finds a suitable position using
auto-advance.
</short>
<descr>
<p>
<var>CheckPosition</var> is a method used to determine if the cell in Col and
Row can be selected. The SelectCell method is called using values in Col and
Row as arguments. If the select is selected, no additional actions are
performed in the method.
</p>
<p>
If the cell cannot be selected because the position is invalid, another cell
is sought. The AutoAdvance feature is used to check adjacent cells - first,
by moving toward the right then downward, and finally by moving to left then
upward. GetDeltaMoveNext and MoveNextSelectable are used to find and select a
valid cell position.
</p>
<p>
In some cases, AutoAdvance and the current cell cannot be used to find an
available cell. For this case, a scan of all non-fixed columns an rows is
performed until a suitable column and row number are found, and
MoveNextSelectable is called. If this too fails, the cell position cannot be
determined.
</p>
<p>
CheckPosition is called from CreateWnd when the window handle is created (or
re-created) for the control. It is also called when a new value is assigned
to the ColCount or RowCount properties.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.ClearCols">
<short>Clears the values in the FixedCols and Cols properties.</short>
<descr>
<p>
<var>ClearCols</var> is a <var>Boolean</var> function used to reset values
stored in the FixedCols and Cols properties. No actions are performed in the
method when the Cols property is empty (Count=0). In this case, the return
value is <b>False</b>.
</p>
<p>
ClearCols ensures that values in EditorMode, ColCount, and FixedCols are
reset. For ColCount, this means the length of the internal Integer list is
set to 0. The top, left column offset for the visible area in the control is
also reset in GCache.
</p>
<p>
ClearCols is called from the Clear method prior to updating other visuals
aspects for the control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.ColCount"/>
<link id="TCustomGrid.FixedCols"/>
<link id="TCustomGrid.EditorMode"/>
<link id="TCustomGrid.Clear"/>
</seealso>
</element>
<element name="TCustomGrid.ClearCols.Result">
<short>
<b>True</b> if the vales are successfully cleared in the method.
</short>
</element>
<element name="TCustomGrid.ClearRows">
<short>
Clears the cached fixed rows and row count values for the grid control.
</short>
<descr>
<p>
<var>ClearRows</var> is a <var>Boolean</var> function used to remove all rows
in the grid control. This includes the fixed row for the control. The return
value is <b>True</b> if rows are successfully cleared in the method. It is
<b>False</b> if the grid is already empty.
</p>
<p>
ClearRows sets EditorMode to <b>False</b> if a cell editor is visible on the
grid control. It sets values in the FixedRows and and RowCount properties to 0 (zero).
</p>
<p>
It does not change values in the FixedCols or ColCount properties.
</p>
</descr>
<seealso>
<link id="TCustomGrid.RowCount"/>
<link id="TCustomGrid.ColCount"/>
<link id="TCustomGrid.FixedRows"/>
<link id="TCustomGrid.FixedCols"/>
<link id="TCustomGrid.EditorMode"/>
<link id="TCustomGrid.Clear"/>
</seealso>
</element>
<element name="TCustomGrid.ClearRows.Result">
<short><b>True</b> if the rows are cleared in the method.</short>
</element>
<element name="TCustomGrid.Clear">
<short>Clears all cells in the grid control.</short>
<descr>
<p>
<var>Clear</var> is a method used to removed the content in all areas of the
grid control.
</p>
<p>
EditorMode is set to <b>False</b> to remove an active Editor for the grid
control.
</p>
<p>
The ClearRows and ClearCols methods are called to reset the values in the
Cols, Rows, FixedCols, and FixedRows properties. If either method returns
<b>False</b>, the content had already been cleared and no additional actions
are performed in the method.
</p>
<p>
Clears resets the values in internal members that are used to track the top,
left visible cell in the control and the current selection range. Hot-lighted
(hovered) cells are also reset in the method.
</p>
<p>
Clear calls VisualChange to update the cached column and row sizes and redraw
the control. SizeChanged is also called to notify event handlers of changes
to RowCount or ColCount values.
</p>
<p>
Compatibility: This applies to Lazarus grids only; under Delphi/Kylix a grid
cannot be completely emptied.
</p>
<p>
Use FixedRows, FixedCols, RowCount, and ColCount to specify the number of rows
or columns on the grid.
</p>
</descr>
<seealso>
<link id="TCustomGrid.ClearCols"/>
<link id="TCustomGrid.ClearRows"/>
<link id="TCustomGrid.RowCount"/>
<link id="TCustomGrid.ColCount"/>
<link id="TCustomGrid.FixedCols"/>
<link id="TCustomGrid.FixedRows"/>
<link id="TCustomGrid.EditorMode"/>
<link id="TCustomGrid.VisualChange"/>
<link id="TCustomGrid.SizeChanged"/>
</seealso>
</element>
<element name="TCustomGrid.ClearSelections">
<short>
Clears the current range selection(s) and redraws the grid control.
</short>
<descr>
<p>
<var>ClearSelections</var> is a method used to remove all selection
rectangles in an internal member for the grid control. These are the values
stored using AddSelectedRange when multi-selection is enabled in the Options
for the control.
</p>
<p>
ClearSelections clears the internal storage for selection ranges and
calls UpdateSelectionRange to reset the current selection on the control.
The selected range is an empty rectangle (where Left, Top, Bottom, and Right
members are -1) when ColCount and RowCount contain 0 (zero).
</p>
<p>
When <var>goRowSelect</var> has been included in <var>Options</var>, a range
selection for all non-fixed cells in the current row is created. The pivot
point (selection anchor) for extending the range selection is set to the
values in Col and Row.
</p>
<p>
ClearSelections calls InvalidateGrid to redraw the grid control when another
update is not already in progress.
</p>
<p>
ClearSelections is called from the Clear method, and when a new value is
assigned to the RangeSelectMode property. It is also called from the MouseDown
method when a range selection is handled for the non-fixed area on the grid
control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Clear"/>
<link id="TCustomGrid.Options"/>
<link id="TCustomGrid.Col"/>
<link id="TCustomGrid.Row"/>
<link id="TCustomGrid.RangeSelectMode"/>
<link id="TCustomGrid.AddSelectedRange"/>
<link id="TCustomGrid.UpdateSelectionRange"/>
<link id="TCustomGrid.InvalidateGrid"/>
<link id="TCustomGrid.MouseDown"/>
</seealso>
</element>
<element name="TCustomGrid.EditorByStyle">
<short>Selects a cell Editor control with the specified style.</short>
<descr>
<p>
<var>EditorByStyle</var> is a <var>TWinControl</var> function used to select
the control used as the Editor for a cell using the style in the Style
argument.
</p>
<p>
Style contains a value from the TColumnButtonStyle enumeration, and
determines which of the internal pre-allocated editors is used in the return
value. Some of the values in Style do not require an editor control, like:
cbsNone, cbsCheckboxColumn, and cbsButtonColumn. For these values, the return
value is always <b>Nil</b>.
</p>
<p>
EditorByStyle is called from the GetDefaultEditor method when the grid allows
editing (goEditing in Options) and the Column collection has been enabled in
the control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Editor"/>
<link id="TCustomGrid.GetDefaultEditor"/>
<link id="TCustomGrid.Columns"/>
<link id="TCustomGrid.Options"/>
<link id="TGridColumn.ButtonStyle"/>
<link id="TGridColumn.ReadOnly"/>
<link id="TColumnButtonStyle"/>
</seealso>
</element>
<element name="TCustomGrid.EditorByStyle.Result">
<short>
Cell editor for the specified style, or Nil when an editor control is not
used for the style.
</short>
</element>
<element name="TCustomGrid.EditorByStyle.Style">
<short>
Editor style which determines the editor control selected in the method.
</short>
</element>
<element name="TCustomGrid.EditorKeyDown">
<short>Implements the OnKeyDown event handler for the cell editor.</short>
<descr>
<p>
<var>EditorKeydown</var> is assigned as the OnKeyDown event handler in the
Editor control when it is configure and assigned to the Editor property.
EditorKeydown calls the KeyDown method to apply the Key and Shift arguments.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Editor"/>
<link id="TCustomGrid.KeyDown"/>
<link id="#lcl.controls.TWinControl.OnKeyDown">TWinControl.OnKeyDown</link>
</seealso>
</element>
<element name="TCustomGrid.EditorKeyDown.Sender">
<short>Object (TCustomGrid) for the event notification.</short>
</element>
<element name="TCustomGrid.EditorKeyDown.Key">
<short>Key examined in the method.</short>
</element>
<element name="TCustomGrid.EditorKeyDown.Shift">
<short>Shift / Ctrl / Alt modifier for the Key.</short>
</element>
<element name="TCustomGrid.EditorKeyPress">
<short>Implements the OnKeyPress event handler for the cell editor.</short>
<descr>
<p>
EditorKeyPress is assigned as the OnKeyPress event handler when in the Editor
control when it is configured and stored in the Editor property.
EditorKeyPress calls the KeyPress method to apply the value in Key to the
grid control.
</p>
<p>
A value not handled in KeyPress is checked for a control or UTF-8-encoded
character value. When found, the following actions are performed:
</p>
<dl>
<dt>
^M (Enter or Shift+Enter)
</dt>
<dd>
Moves to the next (or previous) cell in the AutoAdvance direction, and Resets
the Editor control. Key is set to #0.
</dd>
<dt>
UTF-8-encoded characters
</dt>
<dd>
Calls EditorCanAcceptKey and EditorIsReadOnly. If Key cannot be handled, it
is set to #0. Otherwise, it is retained and passed as an editor key press.
</dd>
</dl>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.EditorKeyPress.Sender">
<short>Object (TCustomGrid) for the event notification.</short>
</element>
<element name="TCustomGrid.EditorKeyPress.Key">
<short>Key press examined in the method.</short>
</element>
<element name="TCustomGrid.EditorUTF8KeyPress">
<short>
Implements the UTF-8 key press handler for the editor in the grid control.
</short>
<descr>
<p>
<var>EditorUTF8KeyPress</var> is assigned as the <var>OnUTF8KeyPress</var>
event handler for the <var>Editor</var> in the grid control. It calls the
inherited <var>UTF8KeyPress</var> method, indicating that the value in
<var>UTF8Key</var> is targeted at the Editor control for the grid.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Editor"/>
<link id="TWinControl.UTF8KeyPress"/>
</seealso>
</element>
<element name="TCustomGrid.EditorUTF8KeyPress.Sender">
<short>Control for the event notification.</short>
</element>
<element name="TCustomGrid.EditorUTF8KeyPress.UTF8Key">
<short>UTF-8-encoded code point handled in the method.</short>
</element>
<element name="TCustomGrid.EditorKeyUp">
<short>Implements the OnKeyUp event handler for the cell editor.</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.EditorKeyUp.Sender">
<short>Object for the event notification.</short>
</element>
<element name="TCustomGrid.EditorKeyUp.key">
<short>Key examined in the method.</short>
</element>
<element name="TCustomGrid.EditorKeyUp.shift">
<short>Shift / Ctrl / Alt modifier for the Key.</short>
</element>
<element name="TCustomGrid.EditorTextChanged">
<short>
Updates the grid control when the value in a cell Editor is changed.
</short>
<descr/>
<seealso>
<link id="TCustomGrid.EditorTextChanged"/>
<link id="TStringCellEditor"/>
<link id="TPickListCellEditor"/>
</seealso>
</element>
<element name="TCustomGrid.EditorTextChanged.aCol">
<short>Column number for the modified cell.</short>
</element>
<element name="TCustomGrid.EditorTextChanged.aRow">
<short>Row number for the modified cell.</short>
</element>
<element name="TCustomGrid.EditorTextChanged.aText">
<short>New value for the cell.</short>
</element>
<element name="TCustomGrid.EndUpdate">
<short>
Finishes an active update to the grid control.
</short>
<descr>
<p>
<var>EndUpdate</var> is a method used to complete an update started by
calling the <var>BeginUpdate</var> method.
</p>
<p>
EndUpdate decrements the internal update counter used in the control. When
the counter reaches 0, there are no other updates active for the control. If
ARefresh is set to True, the VisualChange method is called to update the
cached sizes for the control and Invalidate the control display area.
</p>
<p>
BeginUpdate and EndUpdate are used to implement methods like:
</p>
<ul>
<li>Assign</li>
<li>AssignTo</li>
<li>Sort</li>
<li>ScrollToCell</li>
<li>DoAutoAdjustLayout</li>
<li>Clean</li>
<li>LoadFromCSVStream</li>
</ul>
</descr>
<seealso>
<link id="TCustomGrid.BeginUpdate"/>
<link id="TCustomGrid.VisualChange"/>
<link id="TCustomGrid.Invalidate"/>
</seealso>
</element>
<element name="TCustomGrid.EndUpdate.aRefresh">
<short>
<b>True</b> causes the grid control to be redrawn using Invalidate.
</short>
</element>
<element name="TCustomGrid.EraseBackground">
<short>Clears the background for the grid control.</short>
<descr>
<p>
EraseBackground is overridden in TCustomGrid, and has an empty implementation.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.EraseBackground.DC">
<short>Device context for the drawing operation.</short>
</element>
<element name="TCustomGrid.FixDesignFontsPPI">
<short>
Adjusts fonts in the control to the specified design-time PixelsPerInch.
</short>
<descr>
<p>
<var>FixDesignFontsPPI</var> is an overridden procedure used to adjust the
assigned font size for grid columns and their titles to the specified
design-time Pixels Per Inch (PPI). This is needed because the display density
(PPI) used for fonts is not stored in Form resource (.LFM) files. When the
design-time PPI is different than the run-time setting, font scaling issues
can occur.
</p>
<p>
FixDesignFontsPPI restores the design-time font PPI so it can be used in the
LCL Scaling mechanism. FixDesignFontsPPI calls the inherited method on entry,
and sets the value for the <var>PixelsPerInch</var> property in
<var>TitleFont</var> when needed. Column definitions stored in the
<var>Columns</var> property are also adjusted (when needed) by calling the
FixDesignFontsPPI method for each of the <var>TGridColumn</var> instances in
the container.
</p>
<p>
FixDesignFontsPPI is called when scaling is enabled, and the Form which hosts
the control calls its <var>Loaded</var> method during LCL streaming.
</p>
</descr>
<seealso>
<link id="TCustomGrid.ScaleFontsPPI"/>
<link id="TStringGrid.Columns"/>
<link id="TGridColumns"/>
<link id="TGridColumn.FixDesignFontsPPI"/>
<link id="TControl.FixDesignFontsPPI"/>
</seealso>
</element>
<element name="TCustomGrid.FixDesignFontsPPI.ADesignTime">
<short>Design-time PixelsPerInch needed for fonts in the control.</short>
</element>
<element name="TCustomGrid.Focused">
<short>
Indicates if the grid is focused or has an active focused cell Editor.
</short>
<descr>
<var>Focused</var> in an overridden method in <var>TCustomGrid</var>. It
re-implements the method from the ancestor class, and return <b>True</b> if
the control or an assigned cell editor for the control has input focus. It
does not call the inherited method.
</descr>
<seealso>
<link id="TCustomGrid.Editor"/>
<link id="TWinControl.CanTab"/>
<link id="TWinControl.HandleAllocated"/>
<link id="TWinControl.Focused"/>
<link id="TControl.Visible"/>
</seealso>
</element>
<element name="TCustomGrid.Focused.Result">
<short><b>True</b> when the grid or the cell Editor has focus.</short>
</element>
<element name="TCustomGrid.HasMultiSelection">
<short>
Indicates if multi-select range selection mode is enabled and in use for the
grid.
</short>
<descr>
<p>
<var>HasMultiSelection</var> is a <var>Boolean</var> function used to
determine if multi-select range selection mode is enabled and in use for the
grid. The return value is <b>True</b> when <var>Options</var> includes the
value <var>goRangeSelect</var>, <var>RangeSelectMode</var> contains
<var>rsmMulti</var>, and <var>Selections</var> contains selection cell
rectangles.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Options"/>
<link id="TCustomGrid.RangeSelectMode"/>
<link id="TRangeSelectMode"/>
<link id="TGridOptions"/>
<link id="TGridOption"/>
</seealso>
</element>
<element name="TCustomGrid.HasMultiSelection.Result">
<short>
<b>True</b> when multi-select range selection mode is enabled and in use for
the grid.
</short>
</element>
<element name="TCustomGrid.HideSortArrow">
<short>Hides the arrow drawn as the sort indicator for a column.</short>
<descr>
<p>
<var>HideSortArrow</var> is a procedure used to hide the arrow drawn for the
sort indicator defined in <var>SortColumn</var>. HideSortArrow sets the value
in SortColumn to <b>-1</b> to indicate that the sort column is not defined,
and calls <var>InvalidateGrid</var> to redraw the contents in the grid
control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.SortColumn"/>
<link id="TCustomGrid.InvalidateGrid"/>
<link id="TCustomGrid.Sort"/>
</seealso>
</element>
<element name="TCustomGrid.InvalidateCol">
<short>
Invalidates all cells in the specified column, and causes them to be redrawn.
</short>
<descr>
<p>
<var>InvalidateCol</var> is a method used to refresh all cells in the column
number specified in the ACol argument. InvalidateCol gets a TRect instance
with the bounds for cells in the specified column number. It calls the
InvalidateRect routine in the LCL interface using the Handle for the control
and the display rectangle as arguments.
</p>
<p>
No actions are performed in the method if a Handle has not been allocated in
the widgetset class instance for the control.
</p>
<remark>
InvalidateCol is not used in the current LCL version. Invalidate is called
instead.
</remark>
</descr>
<seealso>
<link id="TCustomGrid.Invalidate"/>
</seealso>
</element>
<element name="TCustomGrid.InvalidateCol.ACol">
<short>Column number for the cells invalidated in the method.</short>
</element>
<element name="TCustomGrid.InvalidateCell">
<short>Renders a cell invalid, and redraws the cell if required.</short>
<descr>
<p>
<var>InvalidateCell</var> is an overloaded method in <var>TCustomGrid</var>
used to invalidate the cell at the column and row numbers in ACol and ARow.
The Redraw argument is optional, and forces the cell to be re-drawn as soon
as it is invalidated. The default value for Redraw is <b>False</b>, and
defers the draw operation until the next time the control is updated.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.InvalidateCell.ACol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomGrid.InvalidateCell.aRow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomGrid.InvalidateCell.Redraw">
<short>
<b>True</b> to redraw the cell immediately, <b>False</b> to defer until the
next update for the control.
</short>
</element>
<element name="TCustomGrid.InvalidateFromCol">
<short>
Invalidates cells starting at the specified column number; all rows from the
start position are affected.
</short>
<descr>
<p>
Calls the InvalidateRect routine which causes the cells to be re-drawn. No
actions are performed in the method if a Handle has not been allocated for
the control.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.InvalidateFromCol.ACol">
<short>Initial column number updated in the method.</short>
</element>
<element name="TCustomGrid.InvalidateGrid">
<short>Invalidates the client area for the grid control.</short>
<descr>
<p>
Calls the Invalidate method when no other updates are active for the control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Invalidate"/>
<link id="TCustomGrid.BeginUpdate"/>
<link id="TCustomGrid.EndUpdate"/>
</seealso>
</element>
<element name="TCustomGrid.InvalidateFocused">
<short>Invalidates a focused or highlighted cell or row.</short>
<descr>
<p>
InvalidateFocused uses cached grid data in <var>GCache</var> to determine
whether the grid control has valid columns and rows. No actions are performed
in the method when columns and rows are not present in the cached grid
information.
</p>
<p>
The values in <var>Options</var> are used to determine whether row select or
row highlighting are enabled for the control. If either is present in
Options, the <var>InvalidateRow</var> method is called for the current
<var>Row</var> number. If neither option is used, the
<var>InvalidateCell</var> method is called for the current cell in
<var>Col</var> and <var>Row</var>.
</p>
<p>
InvalidateFocused is called from methods that respond to focus changes
involving the grid control, including: <var>WMKillFocus</var>,
<var>WMSetFocus</var>, <var>DoEnter</var>, and <var>DoExit</var>.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.InvalidateRange">
<short>
Invalidates a cell range in the grid and causes it to be redrawn.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.InvalidateRange.ARange">
<short>TRect with the range of cells affected in the method.</short>
</element>
<element name="TCustomGrid.InvalidateRow">
<short>Invalidates the drawing rectangle for the specified row number.</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.InvalidateRow.ARow">
<short>Row number affected in the method.</short>
</element>
<element name="TCustomGrid.IsCellVisible">
<short>Determines whether the specified cell is visible.</short>
<descr>
<p>
<var>IsCellVisible</var> is a <var>Boolean</var> function which indicates
whether the cell specified by <var>ACol</var> and <var>ARow</var> is in the
visible area for the grid control. IsCellVisible uses the internal cached
grid information to determine if the cell is within the cached visible
coordinates for the control.
</p>
<p>
IsCellVisible is used in methods like <var>DrawRow</var>, <var>DoEnter</var>,
and <var>InvalidateCell</var>.
</p>
<p>
Use <var>IsFixedCellVisible</var> to determine whether a specific fixed cell
is within the visible area for the control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.IsFixedCellVisible"/>
<link id="TCustomGrid.DrawRow"/>
<link id="TCustomGrid.InvalidateCell"/>
<link id="TGridDataCache"/>
</seealso>
</element>
<element name="TCustomGrid.IsCellVisible.Result">
<short>
<b>True</b> if the cell is in the visible area for the grid control.
</short>
</element>
<element name="TCustomGrid.IsCellVisible.aCol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomGrid.IsCellVisible.aRow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomGrid.IsFixedCellVisible">
<short>
Determines if the specified cell is a visible fixed header cell in the grid.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomGrid.IsFixedCellVisible.Result">
<short>
<b>True</b> if the specified cell is both fixed and visible in the control.
</short>
</element>
<element name="TCustomGrid.IsFixedCellVisible.ACol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomGrid.IsFixedCellVisible.ARow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomGrid.LoadFromFile">
<short>Loads grid data from a file with the specified file name.</short>
<descr>
<p>
FileName contains name of the file with the content loaded in the method, and
may included a fully qualified path. An Exception is raised with the message
in rsGridFileDoesNotExist if a file with the specified path and name is not
found.
</p>
<p>
LoadFromFile creates a temporary TXMLConfig instance that is used load the
content from the specified file. The private LoadSub method is called using
the configuration file instance to read the content in the file, and may
raise an exception if the XML content does not have a valid version element.
</p>
<p>
LoadFromFile reverses the actions performed in the SaveToFile method. Please
note that the SaveOptions property determines the information available to be
loaded from the file.
</p>
<p>
Use LoadFromStream to read the content in the grid from a TStream instance.
</p>
</descr>
<seealso>
<link id="TCustomGrid.LoadFromStream"/>
<link id="TCustomGrid.SaveToFile"/>
<link id="TCustomGrid.SaveOptions"/>
<link id="#lazutils.laz2_xmlcfg.TXMLConfig">TXMLConfig</link>
</seealso>
</element>
<element name="TCustomGrid.LoadFromFile.FileName">
<short>Name of the file with the content loaded in the method.</short>
</element>
<element name="TCustomGrid.LoadFromStream">
<short>Loads grid data from the specified stream.</short>
<descr>
<p>
<var>AStream</var> is the <var>TStream</var> instance with the content loaded
in the method. The stream must be positioned at the location where the
information for the grid begins. The stream position is not changed after its
content has been loaded.
</p>
<p>
<var>LoadFromStream</var> creates a temporary TXMLConfig instance that is
used load the content from the specified stream. The private LoadSub method
is called using the configuration file instance to read the content in the
file, and may raise an exception if the XML content does not have a valid
version element.
</p>
<p>
LoadFromStream reverses the actions performed in the SaveToStream method.
Please note that the SaveOptions property determines the information
available to be loaded from the stream.
</p>
<p>
Use LoadFromFile to read the content in the grid from a file on the local
file system.
</p>
</descr>
<seealso>
<link id="TCustomGrid.LoadFromFile"/>
<link id="TCustomGrid.SaveToStream"/>
<link id="TCustomGrid.SaveOptions"/>
<link id="#lazutils.laz2_xmlcfg.TXMLConfig">TXMLConfig</link>
</seealso>
</element>
<element name="TCustomGrid.LoadFromStream.AStream">
<short>TStream instance with values loaded in the method.</short>
</element>
<element name="TCustomGrid.MouseCoord">
<short>
Gets the cell coordinates for the specified mouse pointer position.
</short>
<descr>
<p>
<var>MouseCoord</var> is <var>TGridCoord</var> function used to get the
coordinates for the mouse pointer as cell coordinates. It calls the
MouseToCell method to get the TGridCoord (an alias to TPoint) instance used
in the return value.
</p>
</descr>
<seealso>
<link id="TCustomGrid.MouseToCell"/>
<link id="TGridCoord"/>
</seealso>
</element>
<element name="TCustomGrid.MouseCoord.Result">
<short>
TGridCood instance with the cell coordinates for the mouse pointer.
</short>
</element>
<element name="TCustomGrid.MouseCoord.X">
<short>
Horizontal screen coordinate for the mouse pointer.
</short>
</element>
<element name="TCustomGrid.MouseCoord.Y">
<short>
Vertical screen coordinate for the mouse pointer.
</short>
</element>
<element name="TCustomGrid.MouseToCell">
<short>
Converts the specified mouse screen coordinates to cell coordinates.
</short>
<descr>
<p>
<var>MouseToCell</var> is an overloaded method in <var>TCustomGrid</var> used
to convert screen coordinates for the mouse pointer to cell coordinates. One
variant returns the cell coordinates as a TGridCoord (an alias for TPoint)
instance. The other variant returns the cell coordinates as Integer output
parameters. MouseToCell calls the OffsetToColRow method to get the cell
coordinates.
</p>
</descr>
<seealso/>
<version>
ACol and ARow arguments were changed to output parameters in LCL version 2.1
(revision 65087).
</version>
</element>
<element name="TCustomGrid.MouseToCell.Result">
<short>TPoint instance with the grid coordinates for the cell.</short>
</element>
<element name="TCustomGrid.MouseToCell.Mouse">
<short>
TPoint instance with the mouse coordinates converted in the method.
</short>
</element>
<element name="TCustomGrid.MouseToCell.X">
<short>Horizontal coordinate for the mouse.</short>
</element>
<element name="TCustomGrid.MouseToCell.Y">
<short>Vertical coordinate for the mouse.</short>
</element>
<element name="TCustomGrid.MouseToCell.ACol">
<short>Column number for the mouse position.</short>
</element>
<element name="TCustomGrid.MouseToCell.ARow">
<short>Row number for the mouse position.</short>
</element>
<element name="TCustomGrid.MouseToLogCell">
<short>
Converts mouse coordinates to logical cell coordinates on the grid.
</short>
<descr>
<p>
<var>MouseToLogCell</var> is a <var>TPoint</var> function used to convert
physical mouse coordinates, represented using the X and Y members in
<var>Mouse</var>, to logical cell coordinates for the grid control. Logical
cell coordinates are relative to the origin cell displayed as the upper-left
non-fixed cell on the grid control.
</p>
<p>
MouseToGridZone is used to determine where the mouse coordinates are located
on the grid control. When the mouse coordinates are located in the non-fixed
cells (grid zone is gzNormal), the value from MouseToCell is used as the
return value.
</p>
<p>
For grid zones (like gzFixedRows, gzFixedCols, or gzFixedCells), the cell
coordinates in the return value are changed to the last fixed column and/or
row number(s) as needed. If the mouse coordinates are in one of several fixed
columns or rows, the last column or row is always used in the return value.
</p>
<p>
MouseToLogCell is used in the MouseMove method when the active cell selection
has been changed using the mouse.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.MouseToLogCell.Result">
<short>
TPoint instance with the logical cell coordinates in its X and Y members.
</short>
</element>
<element name="TCustomGrid.MouseToLogCell.Mouse">
<short>
TPoint instance with the physical mouse coordinates in its X and Y members.
</short>
</element>
<element name="TCustomGrid.MouseToGridZone">
<short>
Converts the specified coordinates for the mouse pointer to the grid zone
where they are located.
</short>
<descr>
<p>
<var>MouseToGridZone</var> is a <var>TGridZone</var> function used to get the
grid zone where the specified mouse pointer coordinates are located. The
<var>X</var> and <var>Y</var> arguments contain the screen coordinates where
the mouse pointer is located.
</p>
<p>
The return value is a <var>TGridZone</var> enumeration value determine by
comparing the screen coordinates to the cached sizes and offsets for the grid
control. The screen coordinates are converted to cell coordinates when
available, and used to the determine the return value.
</p>
<dl>
<dt>gzInvalid</dt>
<dd>
X and Y are located on the border or in a area not used for cells in the
client area for the control.
</dd>
<dt>gzFixedCells</dt>
<dd>
X and Y are located in the fixed header cell (column 0) on the control.
</dd>
<dt>gzFixedRows</dt>
<dd>
X and Y are located in a fixed header cell for a row on the control.
</dd>
<dt>gzFixedCols</dt>
<dd>
X and Y are located in a fixed header cell for a column on the control.
</dd>
<dt>gzNormal</dt>
<dd>
X and Y are located in a non-fixed cell in the display area for the control.
</dd>
</dl>
</descr>
<seealso>
<link id="TGridZone"/>
</seealso>
</element>
<element name="TCustomGrid.MouseToGridZone.Result">
<short>
Grid zone where the specified mouse pointer coordinates are located.
</short>
</element>
<element name="TCustomGrid.MouseToGridZone.X">
<short>
Horizontal screen coordinate for the mouse pointer.
</short>
</element>
<element name="TCustomGrid.MouseToGridZone.Y">
<short>
Vertical screen coordinate for the mouse pointer.
</short>
</element>
<element name="TCustomGrid.SaveToFile">
<short>Saves grid information to a file with the specified name.</short>
<descr>
<p>
SaveToFile is a method used to store information from a grid control the file
name specified in the FileName argument. FileName can include a
fully-qualified path to the file. If the file already exists on the local
file system, it is deleted and re-created before writing values.
</p>
<p>
SaveToFile creates a temporary TXMLConfig instance that is used to write XML
values to the specified file, and may include information about the text,
layout, cell display settings, grid options, and range selections for the
control.
</p>
<p>
SaveToFile calls the SaveContent method to write the needed values to the XML
configuration file.
Please note that the SaveOptions property determines the information stored
in the method.
</p>
<p>
Use LoadFromFile to load settings and content from the XML file into the grid
control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.SaveToStream"/>
<link id="TCustomGrid.SaveContent"/>
<link id="TCustomGrid.SaveOptions"/>
<link id="TCustomGrid.LoadFromFile"/>
<link id="#lazutils.laz2_xmlcfg.TXmlConfig">TXmlConfig</link>
</seealso>
</element>
<element name="TCustomGrid.SaveToFile.FileName">
<short>File name where the grid information is stored.</short>
</element>
<element name="TCustomGrid.SaveToStream">
<short>Saves grid information to the specified stream.</short>
<descr>
<p>
<var>SaveToStream</var> is a method used to store information from the grid
control to the <var>TStream</var> instance specified in <var>AStream</var>.
SaveToStream creates a <var>TXMLConfig</var> class instance that is used to
capture the layout, cell display settings, grid options, and range selections
for the control.
</p>
<p>
SaveToStream calls the <var>SaveContent</var> method to generate the XML
content for the grid control. The XML content is written to
<var>AStream</var> using the <var>WriteToStream</var> method in
<var>TXMLConfig</var>.
</p>
<p>
Use <var>LoadFromStream</var> to read the grid information stored in the
stream.
</p>
</descr>
<seealso>
<link id="TCustomGrid.SaveContent"/>
<link id="TCustomGrid.SaveGridOptions"/>
<link id="TCustomGrid.LoadFromStream"/>
<link id="#lazutils.laz2_xmlcfg.TXMLConfig.WriteToStream">TXMLConfig.WriteToStream</link>
</seealso>
</element>
<element name="TCustomGrid.SaveToStream.AStream">
<short>TStream instance where grid information is stored.</short>
</element>
<element name="TCustomGrid.ScaleFontsPPI">
<short>Resizes fonts using a target PPI and a scaling factor.</short>
<descr>
<p>
<var>ScaleFontsPPI</var> is an overridden procedure used to resize fonts in
the control to the specified display density (Pixels per Inch) using the
scaling factor in <var>AProportion</var>. This occurs when the run-time PPI
setting for a font differs from the design-time value stored in the component
resource.
</p>
<p>
ScaleFontsPPI is overridden to apply the scaling factor to the
<var>Font</var> and <var>TitleFont</var> for the control, and any fonts
assignments in the <var>Columns</var> collection. The inherited
<var>DoScaleFontsPPI</var> method is called to apply the scaling factor to
the TFont instance passed as an argument.
</p>
</descr>
<seealso>
<link id="TCustomGrid.TitleFont"/>
<link id="TCustomGrid.Columns"/>
<link id="TGridColumns"/>
<link id="TGridColumn"/>
<link id="#lcl.controls.TControl.Font">TControl.Font</link>
<link id="#lcl.controls.TControl.ScaleFontsPPI">TControl.ScaleFontsPPI</link>
</seealso>
</element>
<element name="TCustomGrid.ScaleFontsPPI.AToPPI">
<short>New PPI setting for the scaled font sizes.</short>
</element>
<element name="TCustomGrid.ScaleFontsPPI.AProportion">
<short>Scaling factor applied to the font sizes.</short>
</element>
<element name="TCustomGrid.SetFocus">
<short>Gives focus to the grid control.</short>
<descr>
<p>
<var>SetFocus</var> is an overridden procedure used to make the grid control
the currently focused control. SetFocus ensures that pending <b>Tab</b> key
navigation for an active cell editor is handled properly. If an Editor is
both available and visible, it calls its SetFocus method. Otherwise, the grid
control becomes the focused control.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.CursorState">
<short>Current cursor state for the grid control.</short>
<descr>
<p>
<var>CursorState</var> is a read-only <var>TGridCursorState</var> property
which contains the current cursor state for the grid control. The value in
CursorState is updated when methods are called which perform resizing or
moving/dragging for columns and rows.
</p>
<p>
Use the <var>ColRowDraggingCursor</var>, <var>ColSizingCursor</var>, or
<var>RowSizingCursor</var> properties to read or write the cursor shapes used
for the corresponding actions.
</p>
<p>
Use <var>RestoreCursor</var> to set the cursor state to its default value
(gcsDefault).
</p>
</descr>
<seealso>
<link id="TGridCursorState"/>
</seealso>
</element>
<element name="TCustomGrid.SelectedRange">
<short>
Provides indexed access to TGridRect values in the currently selected range.
</short>
<descr>
<p>
<var>SelectedRange</var> is a read-only indexed <var>TGridRect</var> property
used to get the cell rectangles in <var>Selections</var> for the grid
control. SelectedRange is applicable when multi-select range mode has been
enabled in the <var>RangeSelectMode</var> property. Otherwise, the current
cell selection at <var>Col</var> and <var>Row</var> is returned as the
selected range value.
</p>
<p>
Use <var>SelectedRangeCount</var> to get the number <var>TGridRect</var>
instances in <var>SelectedRange</var>.
</p>
<p>
Use <var>AddSelectedRange</var> to add the current cell selection to the
multi-select range in <var>Selections</var>.
</p>
<p>
Use <var>ClearSelections</var> to remove the cell rectangles stored in
<var>Selections</var>.
</p>
</descr>
<seealso>
<link id="TCustomGrid.RangeSelectMode"/>
<link id="TCustomGrid.AddSelectedRange"/>
<link id="TCustomGrid.ClearSelections"/>
<link id="TCustomGrid.Col"/>
<link id="TCustomGrid.Row"/>
</seealso>
</element>
<element name="TCustomGrid.SelectedRangeCount">
<short>
Number of cell rectangles in the selected range for the grid.
</short>
<descr>
<p>
<var>SelectedRangeCount</var> is a read-only <var>Integer</var> property with
the number of selected cell rectangles currently selected in the cells for
the control. The property value contains the length of the internal
TGridRectArray maintained in the control + 1 (for the current selected cell
not already in the array), or 0 when the grid is empty.
</p>
<p>
Use SelectedRange to access a selection rectangle by its ordinal position in the internal TGridRectArray instance.
</p>
<p>
Use AddSelectedRange to add a selection rectangle when RangeSelectMode is set
to rsmMulti.
</p>
<p>
Use ClearSelections to remove all selection rectangles and redraw the grid
control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.SelectedRange"/>
<link id="TCustomGrid.RangeSelectMode"/>
<link id="TCustomGrid.AddSelectedRange"/>
<link id="TCustomGrid.ClearSelections"/>
<link id="TRangeSelectMode"/>
<link id="TGridRectArray"/>
</seealso>
</element>
<element name="TCustomGrid.SortOrder">
<short>
Controls the order used for the sort column (ascending or descending).
</short>
<descr>
<p>
<var>SortOrder</var> is a <var>TSortOrder</var> property which indicates the
sort order used for the column specified in <var>SortColumn</var>. It is used
in the <var>DoCompareCells</var> method to determine the order for values
during the comparison.
</p>
<p>
SortOrder is used in the <var>HeaderClick</var> method to set or invert the
ordering when the column header is clicked. It is also used to determine the
image displayed in the column heading for the sort column.
</p>
<p>
The default value for the property is <var>soAscending</var>.
</p>
</descr>
<seealso>
<link id="TSortOrder"/>
</seealso>
</element>
<element name="TCustomGrid.SortColumn">
<short>Column number used to sort the rows in the grid.</short>
<descr>
<p>
<var>SortColumn</var> is a read-only <var>Integer</var> that contains the
column position used to sort content in the rows for the grid. SortColumn is
used in the <var>HeaderClick</var> method to determine if the click occurred
on the fixed header cell represented by the property. It is also used in the
<var>DrawColumnTitleImage</var> method if the header cell needs to render an
image representing the current sort order.
</p>
</descr>
<seealso>
<link id="TCustomGrid.HeaderClick"/>
<link id="TCustomGrid.DrawColumnTitleImage"/>
</seealso>
</element>
<element name="TCustomGrid.TabStop">
<short>
Indicates if keyboard navigation to/from the control is enabled using the Tab
or Shift+Tab keys.
</short>
<descr>
<p>
The default value for <var>TabStop</var> is <b>True</b> in <b>TCustomGrid</b>,
and allows the control to appear in the TabOrder for a Parent form. When
goTabs is enabled in Options, Tab and Shift+Tab cannot be used to exit the
control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Options"/>
<link id="#lcl.controls.TWinControl.TabStop">TWinControl.TabStop</link>
<link id="#lcl.controls.TWinControl.TabOrder">TWinControl.TabOrder</link>
</seealso>
</element>
<!-- protected -->
<element name="TCustomGrid.IMEStartComposition">
<short>Handles IME Composition start messages.</short>
<descr>
<p>
Defined for Windows platforms only.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.IMEStartComposition.Message">
<short>
Record with the arguments for the WM_IME_STARTCOMPOSITION message.
</short>
</element>
<element name="TCustomGrid.IMEComposition">
<short>Handles IME Composition messages.</short>
<descr>
<p>
Defined for Windows platforms only.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.IMEComposition.Msg">
<short>
Record with the arguments for the WM_IME_COMPOSITION message.
</short>
</element>
<element name="TCustomGrid.IMEEndComposition">
<short>Handles the WM_IME_ENDCOMPOSITION message.</short>
<descr>
<p>
Handles the Input Method Editor API WM_IME_ENDCOMPOSITION message.
</p>
<p>
Dispatches the message specified in <var>Msg</var> in the current visible and
active <var>Editor</var> for the control. Defined for the Windows platform
only.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomGrid.IMEEndComposition.Msg">
<short>Message handled in the method.</short>
</element>
<element name="TGetEditEvent">
<short>
Specifies an event handler used to get edit values or masks in a grid.
</short>
<descr>
<p>
<var>TGetEditEvent</var> is an object procedure type used for event handlers
which get edit values or masks in a grid control. TGetEditEvent is the type
used for the <var>OnGetEditMask</var> and <var>OnGetEditText</var> event
handlers in <var>TCustomDrawGrid</var>.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.OnGetEditMask"/>
<link id="TCustomDrawGrid.OnGetEditText"/>
</seealso>
</element>
<element name="TGetEditEvent.Sender">
<short>Object for the event notification.</short>
</element>
<element name="TGetEditEvent.ACol">
<short>Column number for the notification.</short>
</element>
<element name="TGetEditEvent.ARow">
<short>Row number for the notification.</short>
</element>
<element name="TGetEditEvent.Value">
<short>Value returned from the event handler.</short>
</element>
<element name="TSetEditEvent">
<short>
Specifies an event handler used to set the value for edit text in a grid.
</short>
<descr>
<p>
<var>TSetEditEvent</var> is an object procedure type used to implement event
handlers which set the edit value for a cell in a grid control. TSetEditEvent
is the type used for the <var>OnSetEditText</var> property in
<var>TCustomDrawGrid</var>.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.OnSetEditText"/>
</seealso>
</element>
<element name="TSetEditEvent.Sender">
<short>Object for the event notification.</short>
</element>
<element name="TSetEditEvent.ACol">
<short>Column number for the notification.</short>
</element>
<element name="TSetEditEvent.ARow">
<short>Row number for the notification.</short>
</element>
<element name="TSetEditEvent.Value">
<short>Value applied to the specified cell in the event handler.</short>
</element>
<element name="TGetCheckboxStateEvent">
<short>
Specifies an event handler signalled to get the state for a check box cell in
a grid.
</short>
<descr/>
<seealso/>
</element>
<element name="TGetCheckboxStateEvent.Sender">
<short>Object for the event notification.</short>
</element>
<element name="TGetCheckboxStateEvent.ACol">
<short>Column number for the cell.</short>
</element>
<element name="TGetCheckboxStateEvent.ARow">
<short>Row number for the cell.</short>
</element>
<element name="TGetCheckboxStateEvent.Value">
<short>Checkbox state retrieved for the cell.</short>
</element>
<element name="TSetCheckboxStateEvent">
<short>
Specifies an event handler signalled to set the state for a check box cell in
a grid.
</short>
<descr>
<p>
<var>TSetCheckboxStateEvent</var> is an object procedure type which specifies
an event handler signalled to set the state for a check box cell in a grid
control. TSetCheckboxStateEvent is the type used to implement the
<var>OnSetCheckboxState</var> property in <var>TCustomDrawGrid</var>.
</p>
<p>
See <var>TGetCheckboxStateEvent</var> for the event handler signalled to get
the value for a check box cell in a grid control.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.OnSetCheckboxState"/>
<link id="TGetCheckboxStateEvent"/>
</seealso>
</element>
<element name="TSetCheckboxStateEvent.Sender">
<short>Object for the event notification.</short>
</element>
<element name="TSetCheckboxStateEvent.ACol">
<short>Column number for the modified cell.</short>
</element>
<element name="TSetCheckboxStateEvent.ARow">
<short>Row number for the modified cell.</short>
</element>
<element name="TSetCheckboxStateEvent.Value">
<short>New check box state for the cell.</short>
</element>
<element name="TCustomDrawGrid">
<short>The base class for a custom-drawn grid control.</short>
<descr>
<p>
<var>TCustomDrawGrid</var> is a <var>TCustomGrid</var> descendant used as the
base class for custom-drawn grids including <var>TDrawGrid</var> and
<var>TStringGrid</var>. Applications should not create instance of
TCustomDrawGrid; use one of the descendent classes like <var>TDrawGrid</var>
or <var>TStringGrid</var>.
</p>
<p>
TCustomDrawGrid provides overridden methods needed to work with cells using
the TVirtualGrid class instance in the Grid property. It displays information
as a matrix of rows and columns, but unlike TStringGrid, it does not rely on
Cells which contain string values. Instead, a container is used to store the
data displayed and maintained using the draw grid control. Information
entered in a cell editor must update container items to reflect the changes
in the grid.
</p>
<p>
The OnDrawCell event handler is provided to render the cell content in the
grid, and can be used to render images or directly access the Canvas for the
control. Default cell drawing logic is also implemented using the properties
and methods from the ancestor class, and may be accessed from within the
OnDrawCell event handler.
</p>
<p>
Other event handlers can be used to perform actions needed when a column or
row value is accessed in the control. For instance: OnSelection,
OnSelectCell, OnGetEditText, OnSetEditText, et. al.
</p>
<p>
Additional information about grid usage is available on the Lazarus wiki in
the following pages:
</p>
<ul>
<li>
<url href="https://wiki.lazarus.freepascal.org/Grids_Reference_Page">
Grids Reference Page
</url>
</li>
<li>
<url href="https://wiki.lazarus.freepascal.org/TDrawGrid">
TDrawGrid
</url>
</li>
<li>
<url href="https://wiki.lazarus.freepascal.org/TStringGrid">
TStringGrid
</url>
</li>
</ul>
</descr>
<seealso>
<link id="TCustomGrid"/>
<link id="TDrawGrid"/>
<link id="TStringGrid"/>
<link id="TOnDrawCell"/>
<link id="HowToUseGrids"/>
</seealso>
</element>
<!-- private -->
<element name="TCustomDrawGrid.FEditorRow"/>
<element name="TCustomDrawGrid.FEditorCol"/>
<element name="TCustomDrawGrid.FOnColRowDeleted"/>
<element name="TCustomDrawGrid.FOnColRowExchanged"/>
<element name="TCustomDrawGrid.FOnColRowInserted"/>
<element name="TCustomDrawGrid.FOnColRowMoved"/>
<element name="TCustomDrawGrid.FOnGetCheckboxState"/>
<element name="TCustomDrawGrid.FOnGetEditMask"/>
<element name="TCustomDrawGrid.FOnGetEditText"/>
<element name="TCustomDrawGrid.FOnHeaderClick"/>
<element name="TCustomDrawGrid.FOnHeaderSizing"/>
<element name="TCustomDrawGrid.FOnSelectCell"/>
<element name="TCustomDrawGrid.FOnSetCheckboxState"/>
<element name="TCustomDrawGrid.FOnSetEditText"/>
<element name="TCustomDrawGrid.CellNeedsCheckboxBitmaps">
<short>
Determines if the cell is valid and enabled, and uses the check box button
style.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomDrawGrid.CellNeedsCheckboxBitmaps.Result">
<short>
<b>True</b> when the specified cell is valid, enabled, and uses the check box
button style.
</short>
</element>
<element name="TCustomDrawGrid.CellNeedsCheckboxBitmaps.ACol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomDrawGrid.CellNeedsCheckboxBitmaps.ARow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomDrawGrid.DrawCellCheckboxBitmaps">
<short>
Draws a cell value using the bitmaps for the check box button style.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomDrawGrid.DrawCellCheckboxBitmaps.ACol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomDrawGrid.DrawCellCheckboxBitmaps.ARow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomDrawGrid.DrawCellCheckboxBitmaps.ARect">
<short>Rectangle with the bounds for the cell.</short>
</element>
<element name="TCustomDrawGrid.GetEditorValue">
<short>
Posts a grid message to get the value from the Editor control in a cell.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomDrawGrid.GetEditorValue.Result">
<short>Value from the Editor control.</short>
</element>
<element name="TCustomDrawGrid.GetEditorValue.ACol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomDrawGrid.GetEditorValue.ARow">
<short>Row number for the cell.</short>
</element>
<!-- protected -->
<element name="TCustomDrawGrid.FGrid">
<short>Contains the virtual grid for the control.</short>
</element>
<element name="TCustomDrawGrid.CellClick">
<short>Performs actions to handle a mouse click in the specified cell.</short>
<descr>
<p>
<var>CellClick</var> is an overridden method used to handle a mouse click in
the cell specified by the values in <var>ACol</var> and <var>ARow</var>.
<var>Button</var> indicates the mouse button pressed for the click
notification.
</p>
<p>
CellClick ensures that a left mouse button click causes the cell value in a
column using the check box button style to be toggled. When Button contains
<var>mbLeft</var>, the column is examined to determine if it uses the check
box button style. When both conditions are met, the <var>ToggleCheckbox</var>
method is called to update the cell value and display the correct bitmap for
the check box state.
</p>
<p>
CellClick does not occur for a cell that is a fixed header for the column or
the row.
</p>
<p>
CellClick is called from the <var>MouseUp</var> method when a mouse click
occurs in a cell that has already been selected, or when AutoEdit has been
enabled in the grid Options.
</p>
</descr>
<seealso>
<link id="TCustomGrid.CellClick"/>
</seealso>
</element>
<element name="TCustomDrawGrid.CellClick.ACol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomDrawGrid.CellClick.ARow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomDrawGrid.CellClick.Button">
<short>Mouse button for the click notification.</short>
</element>
<element name="TCustomDrawGrid.ColRowDeleted">
<short>
Performs actions when a column or a row is deleted from the control.
</short>
<descr>
<p>
<var>ColRowDeleted</var> is an overridden method used to remove the specified
column or row, and perform a notification for the change.
</p>
<p>
<var>IsColumn</var> indicates whether a column or a row is affected in the
method. When set to <b>True</b>, a column is removed. Otherwise, a row is
removed.
</p>
<p>
<var>Index</var> contains the column or row number removed in the method.
</p>
<p>
ColRowDeleted calls the <var>DeleteColRow</var> method in <var>Grid</var> to
remove the pointers in the virtual grid for the column or row.
<var>NotifyColRowChange</var> is called to perform a notification for the
action by signalling the <var>OnColRowDeleted</var> event handler (when
assigned).
</p>
<p>
ColRowDeleted in called from the <var>DoOPDeleteColRow</var> method (in the
ancestor class) after removing the column or row in Index from the internal
list of column widths, and updating the cached grid information in
<var>GCache</var>.
</p>
</descr>
<seealso>
<link id="TCustomGrid.ColRowDeleted"/>
</seealso>
</element>
<element name="TCustomDrawGrid.ColRowDeleted.IsColumn">
<short>
<b>True</b> when a column is affected in the method. <b>False</b> when a row
is affected.
</short>
</element>
<element name="TCustomDrawGrid.ColRowDeleted.Index">
<short>
Ordinal position for the column or row deleted in the method.
</short>
</element>
<element name="TCustomDrawGrid.ColRowExchanged">
<short>
Performs actions needed when column or row data at the specified positions
are exchanged in the grid control.
</short>
<descr>
<p>
<var>ColRowExchanged</var> is overridden in <var>TCustomDrawGrid</var> and
implements the method defined in the ancestor class. It is used to perform
actions needed when column or row values are exchanged (swapped) in the grid
control.
</p>
<p>
IsColumn indicates whether columns or rows are affected in the method. When
set to <b>True</b>, column values at the specified positions are exchanged.
When set to <b>False</b>, row values are exchanged.
</p>
<p>
If the Columns property has not been enabled, ColRowExchanged calls the
ExchangeColRow method in the internal TVirtualGrid instance for the control.
</p>
<p>
ColRowExchanged signals the OnColRowExchanged event handler (when assigned).
</p>
<p>
ColRowExchanged is called from the DoOPExchangeColRow method in the ancestor
class.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.OnColRowExchanged"/>
<link id="#lcl.grids.TCustomGrid.ColRowExchanged">TCustomGrid.ColRowExchanged</link>
<link id="#lcl.grids.TCustomGrid.DoOPExchangeColRow">TCustomGrid.DoOPExchangeColRow</link>
</seealso>
</element>
<element name="TCustomDrawGrid.ColRowExchanged.IsColumn">
<short>
<b>True</b> if column values are affected. <b>False</b> if row values are
affected.
</short>
</element>
<element name="TCustomDrawGrid.ColRowExchanged.Index">
<short>
Position for the first column or row swapped in the method.
</short>
</element>
<element name="TCustomDrawGrid.ColRowExchanged.WithIndex">
<short>
Position for the other column or row swapped in the method.
</short>
</element>
<element name="TCustomDrawGrid.ColRowInserted">
<short>
Performs actions needed when a column or row is inserted at the specified
position in the grid control.
</short>
<descr>
<p>
<var>ColRowInserted</var> is overridden in <var>TCustomDrawGrid</var>, and
implements the method introduced in the ancestor class. It is used to perform
actions needed when column or row values are inserted into the grid control.
</p>
<p>
IsColumn indicates whether a column or a row is inserted in the method. When
set to <b>True</b>, a new column is inserted at the specified position. When
set to <b>False</b>, a new row is inserted.
</p>
<p>
Inserting a column when the Columns property has not been enabled causes the
InsertColRow method in the internal TVirtualGrid instance to be called.
</p>
<p>
The NotifyColRowChange method is called to signal the OnColRowInserted event
handler (when assigned).
</p>
</descr>
<seealso>
<link id="#lcl.grids.TCustomGrid.ColRowInserted">TCustomGrid.ColRowInserted</link>
</seealso>
</element>
<element name="TCustomDrawGrid.ColRowInserted.IsColumn">
<short>
<b>True</b> if a column is inserted in the method. <b>False</b> if a row is
inserted.
</short>
</element>
<element name="TCustomDrawGrid.ColRowInserted.Index">
<short>
Position where the new column or row is inserted in the control.
</short>
</element>
<element name="TCustomDrawGrid.ColRowMoved">
<short>
Performs actions when a column or row is moved in the grid.
</short>
<descr>
<p>
<var>ColRowMoved</var> is overridden in <var>TCustomDrawGrid</var> to
implement the virtual method defined in the ancestor class. It is used to
perform actions when a column or a row is moved in the grid control.
</p>
<p>
ColRowMoved calls the MoveColRow method in the internal virtual grid for the
class to change the position for the column or row. The OnColRowMoved event
handler is signalled (when assigned) prior to exiting from the method.
</p>
<p>
ColRowMoved is called from the DoOPMoveColRow method, and occurs after
Columns has been updated (when needed and enabled). It occurs before
VisualChange is called or the bounds for an editor control are adjusted.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.OnColRowMoved"/>
<link id="TCustomGrid.ColRowMoved"/>
<link id="TCustomGrid.DoOPMoveColRow"/>
</seealso>
</element>
<element name="TCustomDrawGrid.ColRowMoved.IsColumn">
<short>
<b>True</b> if a column is moved in the method. <b>False</b> if a row is
moved.
</short>
</element>
<element name="TCustomDrawGrid.ColRowMoved.FromIndex">
<short>
Position in the grid with the column or row values moved in the method.
</short>
</element>
<element name="TCustomDrawGrid.ColRowMoved.ToIndex">
<short>
Position in the grid where the values are stored after they have been moved.
</short>
</element>
<element name="TCustomDrawGrid.CreateVirtualGrid">
<short>
Creates and returns the internal virtual grid instance for the control.
</short>
<descr/>
<seealso>
<link id="TCustomDrawGrid.Create"/>
<link id="TVirtualGrid"/>
</seealso>
</element>
<element name="TCustomDrawGrid.CreateVirtualGrid.Result">
<short>
TVirtualGrid instance created for the control.
</short>
</element>
<element name="TCustomDrawGrid.DrawCell">
<short>
Draws the content for the cell specified in the ACol and ARow arguments.
</short>
<descr>
<p>
<var>DrawCell</var> is an overridden method in <var>TCustomDrawGrid</var>. It
re-implements the method from the ancestor class, and does <b>not</b> call
the inherited method. DrawCell is used to draw the content for the cell
specified in the ACol and ARow arguments at the position in the ARect
parameter. AState contains the grid drawing state applied to the cell.
</p>
<p>
DrawCell calls PrepareCanvas to initialize the Canvas for the control to the
state in AState. This includes setting the default Color, Pen, Brush, and
Font attributes used to render the cell content or editor control. The
OnPrepareCanvas event handler is signalled to allow the default canvas
settings to be overridden on a cell-by-cell basis.
</p>
<p>
At run-time, DefaultDrawCell is called to perform the default drawing routine
for the cell when DefaultDrawing is set to <b>True</b>. DefaultDrawCell is
always called at design-time.
</p>
<p>
At run-time, the OnDrawCell event handler is signalled (when assigned) to
render the cell to the Canvas for the control using the grid draw state in
the AState argument. When DefaultDrawing is <b>False</b>, OnDrawCell is
responsible for all actions performed to draw the cell.
</p>
<p>
DrawCellGrid is called prior to exit to draw grid lines around the cell (when
enabled).
</p>
<p>
DrawCell is called from the DrawRow method when it renders the visible cells
in the grid row.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.DefaultDrawing"/>
<link id="TCustomDrawGrid.DefaultDrawCell"/>
<link id="TCustomDrawGrid.OnDrawCell"/>
<link id="TCustomGrid.PrepareCanvas"/>
<link id="TCustomGrid.DrawCellGrid"/>
<link id="TCustomGrid.DrawRow"/>
<link id="TCustomGrid.DrawCell"/>
<link id="#lcl.controls.TCustomControl.Canvas">TCustomControl.Canvas</link>
</seealso>
</element>
<element name="TCustomDrawGrid.DrawCell.aCol">
<short>
Column number for the cell rendered in the method.
</short>
</element>
<element name="TCustomDrawGrid.DrawCell.aRow">
<short>
Row number for the cell rendered in the method.
</short>
</element>
<element name="TCustomDrawGrid.DrawCell.aRect">
<short>
Rectangle where the cell is drawn.
</short>
</element>
<element name="TCustomDrawGrid.DrawCell.aState">
<short>
Grid drawing state for the cell content, editor control, or borders.
</short>
</element>
<element name="TCustomDrawGrid.DrawCellAutonumbering">
<short>Draws a cell with auto-numbering.</short>
<descr>
<p>
<var>DrawCellAutonumbering</var> is a method used to draw the text in
<var>AValue</var> for the auto-numbered cell at the position in
<var>ACol</var> and <var>aRow</var>. DrawCellAutonumbering calls
<var>DrawCellText</var> to render the text using the parameter values.
</p>
<p>
DrawCellAutonumbering is called from the <var>DefaultDrawCell</var> method
using the relative non-fixed row number as the text for the cell.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomDrawGrid.DrawCellAutonumbering.ACol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomDrawGrid.DrawCellAutonumbering.ARow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomDrawGrid.DrawCellAutonumbering.ARect">
<short>Rectangle with the bounds for the cell.</short>
</element>
<element name="TCustomDrawGrid.DrawCellAutonumbering.AValue">
<short>Text drawn in the cell.</short>
</element>
<element name="TCustomDrawGrid.DrawFocusRect">
<short>Draws the focus rectangle for the control.</short>
<descr>
<p>
<var>DrawFocusRect</var> is an overridden method used to draw the focus
rectangle for the specified cell when the grid control or its cell
<var>Editor</var> is focused. No actions are performed in the method if
<var>DefaultDrawing</var> is set to <b>False</b>, or the grid is not
<var>Focused</var>. In addition, the focus rectangle cannot be displayed if
<var>goAlwaysShowEditor</var> has been enabled in <var>Options</var> and the
Editor is either unassigned (<b>Nil</b>) or not focused.
</p>
<p>
DrawFocusRect calls <var>CalcFocusRect</var> to apply the cached visual
information in <var>GCache</var> for the focused cell or row. This includes
adjustments for grid lines when enabled for the control.
</p>
<p>
When <var>UseXORFeatures</var> is <b>True</b>, the Pen mode in the
<var>Canvas</var> is updated to used the XOR drawing operator and the color
needed for the control. The Canvas state is restored prior to exiting from
the method.
</p>
<p>
<var>DrawRubberRect</var> is called to draw the rubber band rectangle with
the appropriate borders using the <var>FocusColor</var> in the control.
</p>
<p>
DrawFocusRect is called from the <var>DrawRow</var> method.
</p>
</descr>
<seealso>
<link id="TCustomGrid.DrawFocusRect"/>
<link id="TCustomGrid.DrawRow"/>
</seealso>
</element>
<element name="TCustomDrawGrid.DrawFocusRect.ACol">
<short>Column number for the cell with the focus rectangle.</short>
</element>
<element name="TCustomDrawGrid.DrawFocusRect.ARow">
<short>Row number for the cell with the focus rectangle.</short>
</element>
<element name="TCustomDrawGrid.DrawFocusRect.ARect">
<short>
TRect instance with the bounds for the cell with the focus rectangle.
</short>
</element>
<element name="TCustomDrawGrid.GetCells">
<short>Gets the value for the specified cell.</short>
<descr>
<p>
<var>GetCells</var> is an overridden method in <var>TCustomDrawGrid</var>
used to get the String value for the cell specified in the ACol and ARow
arguments. It calls the inherited method on entry - which always returns an
empty string ('') as the cell value.
</p>
<p>
When ACol and ARow contain the column and row coordinates for the cell
Editor, the value for the cell is retrieved by dispatching a GM_GETVALUE
message to the Editor control. This occurs when the control has been assigned
and its Visible property is True. The value returned in the grid message is
used as the return value for the method.
</p>
<p>
GetCells is called from EditorShow method.
</p>
</descr>
<seealso>
<link id="TCustomGrid.GetCells"/>
<link id="TCustomGrid.Editor"/>
<link id="TCustomGrid.EditorShow"/>
</seealso>
</element>
<element name="TCustomDrawGrid.GetCells.Result">
<short>Value for the specified cell.</short>
</element>
<element name="TCustomDrawGrid.GetCells.ACol">
<short>Column number for the cell value.</short>
</element>
<element name="TCustomDrawGrid.GetCells.ARow">
<short>Row number for the cell value.</short>
</element>
<element name="TCustomDrawGrid.GetCheckBoxState">
<short>
Gets the check box state for the cell at the specified coordinates.
</short>
<descr>
<p>
Signals the <var>OnGetCheckboxState</var> event handler (when assigned) to
get the value in <var>AState</var>. Called from <var>ToggleCheckbox</var> and
the private <var>DrawCellCheckboxBitmaps</var> method.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.OnGetCheckboxState"/>
<link id="TCustomDrawGrid.ToggleCheckbox"/>
</seealso>
</element>
<element name="TCustomDrawGrid.GetCheckBoxState.ACol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomDrawGrid.GetCheckBoxState.ARow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomDrawGrid.GetCheckBoxState.AState">
<short>Check box state for the cell.</short>
</element>
<element name="TCustomDrawGrid.GetEditMask">
<short>
Gets the edit mask for the specified cell.
</short>
<descr>
<p>
<var>GetEditMask</var> is an overridden method in <var>TCustomDrawGrid</var>.
It re-implements the method from the ancestor class, and does not call the
inherited method.
</p>
<p>
GetEditMask sets the return value to an empty string ('') by default. It
signals the OnGetEditMask event handler (when assigned) to get the edit mask
used in the editor for the grid cell.
</p>
<p>
GetEditMask is called from the EditorDoSetValue method in the ancestor class,
and occurs when the editor control retrieves and validates the value for the
specified cell.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.OnGetEditMask"/>
<link id="#lcl.grids.TCustomGrid.GetEditMask">TCustomGrid.GetEditMask</link>
<link id="#lcl.grids.TCustomGrid.EditorDoSetValue">TCustomGrid.EditorDoSetValue</link>
</seealso>
</element>
<element name="TCustomDrawGrid.GetEditMask.Result">
<short>Edit mask used for the specified cell.</short>
</element>
<element name="TCustomDrawGrid.GetEditMask.aCol">
<short>Column for the cell.</short>
</element>
<element name="TCustomDrawGrid.GetEditMask.aRow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomDrawGrid.GetEditText">
<short>Gets the text displayed in the Editor for the specified cell.</short>
<descr>
<p>
GetEditText is an overridden method used to get the text displayed in the
Editor for the specified cell. GetEditText signals the
<var>OnGetEditText</var> event handler (when assigned) to get the text
displayed in the Editor. The return value can be an empty string ('') when:
</p>
<ul>
<li>OnGetEditText is not assigned.</li>
<li>The cell at ACol and ARow is empty.</li>
<li>Or, a value in ACol or ARow is not valid for the grid.</li>
</ul>
<p>
GetEditText is called from the <var>EditorDoSetValue</var> method when
<var>TGridMessages</var> are dispatched to the <var>Editor</var> to set the
edit mask and value used in the control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.GetEditText"/>
</seealso>
</element>
<element name="TCustomDrawGrid.GetEditText.Result">
<short>Text used as the value in the Editor control.</short>
</element>
<element name="TCustomDrawGrid.GetEditText.ACol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomDrawGrid.GetEditText.ARow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomDrawGrid.GridMouseWheel">
<short>
Performs actions when the mouse wheel is scrolled in the grid control.
</short>
<descr>
<p>
<var>GridMouseWheel</var> is an overridden method in TCustomDrawGrid used to
perform actions when the mouse wheel is scrolled while the grid control has
focus. Mouse wheel behavior is determined by the <var>MouseWheelOption</var>
property.
</p>
<p>
When set to <var>mwCursor</var>, the mouse wheel controls the selected row or
column in the grid. It increases or decreases the selected row number in the
grid by default. Press <b>Ctrl + Mouse Wheel</b> to change the selected
column number in the grid.
</p>
<p>
When set to <var>mwGrid</var>, the mouse wheel scrolls the visible non-fixed
columns and rows in the grid control. It scrolls the visible rows up or down
by default. Press <b>Ctrl + MouseWheel</b> to scroll the visible columns in
the grid control. Mouse wheel movement has no affect when the number of
visible columns or rows is not larger than the non-fixed display area for the
grid control.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomDrawGrid.GridMouseWheel.shift">
<short>Shift state modifier in effect for the action.</short>
</element>
<element name="TCustomDrawGrid.GridMouseWheel.Delta">
<short>
Relative change in the current mouse wheel position for the action.
</short>
</element>
<element name="TCustomDrawGrid.HeaderClick">
<short>
Performs actions when a mouse click occurs in a header for a grid column.
</short>
<descr>
<p>
<var>HeaderClick</var> is an overridden method ensures that the
<var>SortOrder</var> for the grid is toggled when <var>Index</var> contains
the <var>SortColumn</var> defined for the grid control. HeaderClick calls the
inherited method in TCustomGrid to Sort the non-fixed rows in the grid
control.
</p>
<p>
HeaderClick signals the <var>OnHeaderClick</var> event handler (when
assigned) to performed any actions needed after the data has been sorted in
the method.
</p>
</descr>
<seealso>
<link id="TCustomGrid.HeaderClick"/>
<link id="TCustomGrid.SortColumn"/>
<link id="TCustomGrid.SortOrder"/>
<link id="TCustomGrid.Sort"/>
</seealso>
</element>
<element name="TCustomDrawGrid.HeaderClick.IsColumn">
<short><b>True</b> when a column has been clicked instead of a row.</short>
</element>
<element name="TCustomDrawGrid.HeaderClick.Index">
<short>Column or row number for the click notification.</short>
</element>
<element name="TCustomDrawGrid.HeaderSized">
<short>
Performs actions needed when a column or a row has been resized.
</short>
<descr>
<p>
<var>HeaderSized</var> is used to perform actions needed when the header for
a column or row has been resized in the grid control.
</p>
<p>
<var>IsColumn</var> indicates whether the sizing action applies to a column
or a row. When set to <b>True</b>, the column header has been resized. When
set to <b>False</b>, the row header was resized.
</p>
<p>
<var>Index</var> indicates the column or row number in the grid where the
resizing action occurred.
</p>
<p>
Calls the inherited method on entry. Signals the <var>OnHeaderSized</var>
event handler (when assigned).
</p>
<p>
HeaderSized is called from methods like <var>MouseUp</var> (when column or
row sizing is completed) and <var>DblClick</var> (when column sizing is
enabled in the grid <var>Options</var>).
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.OnHeaderSized"/>
<link id="TCustomGrid.HeaderSized"/>
</seealso>
</element>
<element name="TCustomDrawGrid.HeaderSized.IsColumn">
<short>
<b>True</b> if a column was resized, <b>False</b> if a Row was resize.
</short>
</element>
<element name="TCustomDrawGrid.HeaderSized.Index">
<short>Column or row number for the resize operation.</short>
</element>
<element name="TCustomDrawGrid.HeaderSizing">
<short>
Performs actions when resizing a column or row to the specified size.
</short>
<descr>
<p>
<var>HeaderSizing</var> is an overridden method used to perform actions when
a column or a row is being resized using the mouse. HeaderSizing calls the
inherited method on entry, and signals the <var>OnHeaderSizing</var> event
handler when assigned.
</p>
<p>
HeaderSizing is called from the <var>DoColSizing</var> and
<var>DoRowSizing</var> methods when <var>GridState</var> has the value
<var>gsColSizing</var> or <var>gsRowSizing</var>.
</p>
</descr>
<seealso>
<link id="TCustomGrid.HeaderSizing"/>
</seealso>
</element>
<element name="TCustomDrawGrid.HeaderSizing.IsColumn">
<short>
<b>True</b> when the resize action is for a column, or <b>False</b> for a row.
</short>
</element>
<element name="TCustomDrawGrid.HeaderSizing.AIndex">
<short>Column or row index resized in the method.</short>
</element>
<element name="TCustomDrawGrid.HeaderSizing.ASize">
<short>New size for the column or row.</short>
</element>
<element name="TCustomDrawGrid.KeyDown">
<short>Handles key down events for the grid control.</short>
<descr>
<p>
<var>KeyDown</var> is an overridden method in <var>TCustomDrawGrid</var>, and
calls the inherited method on entry. KeyDown ensures that the Space
(VK_SPACE) key code is properly applied to the control for a cell using the
check box button style.
</p>
<dl>
<dt>VK_SPACE (Space)</dt>
<dd>
Calls the ToggleCheckbox method to toggle the checked state for the cell at
Col and Row. Key is set to 0 (zero) to indicate that is has been handled in
the method.
</dd>
</dl>
<p>
Called from <var>EditorKeyDown</var> when key down events are enabled in the
<var>EditorOptions</var> for the control.
</p>
</descr>
<seealso>
<link id="TCustomGrid.KeyDown"/>
<link id="TCustomGrid.EditorKeyDown"/>
<link id="TCustomGrid.EditorOptions"/>
</seealso>
</element>
<element name="TCustomDrawGrid.KeyDown.Key">
<short>Key code examined in the method.</short>
</element>
<element name="TCustomDrawGrid.KeyDown.Shift">
<short>Shift, Alt, Ctrl modifier for the key code.</short>
</element>
<element name="TCustomDrawGrid.NotifyColRowChange">
<short>Performs a notification when a column or row has been changed.</short>
<descr>
<p>
<var>NotifyColRowChange</var> is a method used to signal an event handler
when a column or a row in the grid has been changed.
</p>
<p>
<var>WasInsert</var> determines the event handler signalled in the method.
When WasInsert is set to <b>True</b>, the <var>OnColRowInserted</var> event
handler is signalled (when assigned). When set to <b>False</b>, the
<var>OnColRowDeleted</var> event handler is signalled (when assigned).
</p>
<p>
<var>FromIndex</var> and <var>ToIndex</var> indicate the column(s) or row(s)
affected by the change. FromIndex has the column or row number where the
action was performed. When a column or row was inserted, ToIndex has the same
value as FromIndex. For changes to <var>ColCount</var> or
<var>RowCount</var>, FromIndex and ToIndex contain the column or row count
prior to and following the change.
</p>
<p>
NotifyColRowChange is called from methods like <var>ColRowInserted</var>,
<var>ColRowDeleted</var>, and <var>SizeChanged</var>.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomDrawGrid.NotifyColRowChange.WasInsert">
<short><b>True</b> if an insert triggered the notification.</short>
</element>
<element name="TCustomDrawGrid.NotifyColRowChange.IsColumn">
<short><b>True</b> if a column was affected by the change.</short>
</element>
<element name="TCustomDrawGrid.NotifyColRowChange.FromIndex">
<short>Column or row number affected by the change.</short>
</element>
<element name="TCustomDrawGrid.NotifyColRowChange.ToIndex">
<short>Column or row number affected by the change.</short>
</element>
<element name="TCustomDrawGrid.SelectCell">
<short>
Determines whether the specified cell can be selected in the grid control.
</short>
<descr>
<p>
<var>SelectCell</var> is an overridden <var>Boolean</var> function used to
determine whether the cell specified in <var>ACol</var> and <var>ARow</var>
can be selected in the grid control. It is used to respond to focus changes
for the control.
</p>
<p>
SelectCell calls the inherited method on entry to get the return value for
the method. The return value is <b>True</b> when both <var>ColWidths</var>
and <var>RowHeights</var> have positive non-zero values for the column and
row numbers where the cell is located.
</p>
<p>
SelectCell signals the <var>OnSelectCell</var> event handler (when assigned).
The event handler can be used to override the return value based on the
column and / or row number.
</p>
<p>
SelectCell is used in the implementation of methods like
<var>TryMoveSelection</var>, <var>CheckPosition</var>,
<var>SelectEditor</var>, and <var>GetDeltaMoveNext</var>.
</p>
</descr>
<seealso>
<link id="TCustomGrid.SelectCell"/>
<link id="TCustomDrawGrid.OnSelectCell"/>
</seealso>
</element>
<element name="TCustomDrawGrid.SelectCell.Result">
<short>
<b>True</b> when the specified cell can be selected in the grid.
</short>
</element>
<element name="TCustomDrawGrid.SelectCell.ACol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomDrawGrid.SelectCell.ARow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomDrawGrid.SetColor">
<short>Sets the value for the Color property.</short>
<descr>
<p>
Calls Invalidate to request the grid control to be redrawn.
</p>
</descr>
<seealso>
<link id="TCustomGrid.SetColor"/>
</seealso>
</element>
<element name="TCustomDrawGrid.SetColor.Value">
<short>New value for the Color property.</short>
</element>
<element name="TCustomDrawGrid.SetCheckboxState">
<short>
Sets the value for a check box in the specified cell to a given state.
</short>
<descr>
<p>
<var>SetCheckboxState</var> is a method used to set the checked, unchecked,
or grayed state for a check box in the cell specified by <var>ACol</var> and
<var>ARow</var>.<var> AState</var> contains the state value applied to the
cell.
</p>
<p>
SetCheckboxState signals the <var>OnSetCheckboxState</var> event handler
(when assigned) to perform the actions needed to change the value in the
cell. If <var>DefaultDrawing</var> is enabled for the control, the
<var>InvalidateCell</var> method is called and causes the cell to be redrawn.
</p>
<p>
No actions are performed in the method when OnSetCheckboxState has not been
assigned.
</p>
<p>
SetCheckboxState is called from the <var>ToggleCheckbox</var> method to apply
the new state value for the CheckBox.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.ToggleCheckbox"/>
<link id="TCustomDrawGrid.OnSetCheckboxState"/>
<link id="TCustomDrawGrid.DefaultDrawing"/>
<link id="TCheckboxState"/>
</seealso>
</element>
<element name="TCustomDrawGrid.SetCheckboxState.ACol">
<short>Column number for the cell with the CheckBox.</short>
</element>
<element name="TCustomDrawGrid.SetCheckboxState.ARow">
<short>Row number for the cell with the CheckBox.</short>
</element>
<element name="TCustomDrawGrid.SetCheckboxState.AState">
<short>State value for the CheckBox.</short>
</element>
<element name="TCustomDrawGrid.SetEditText">
<short>Sets the value used in the cell Editor to the specified text.</short>
<descr>
<p>
<var>SetEditText</var> is an overridden method used to set the text
displayed in the <var>Editor</var> for the cell specified in <var>ACol</var>
and <var>ARow</var>.
</p>
<p>
SetEditText signals the OnSetEditText event handler (when assigned) to get
the <var>Value</var> provided to the cell Editor. The inherited method is
called to apply the cell value to the editor control.
</p>
<p>
SetEditText is used in <var>KeyDown</var> when the <b>Escape</b> key
(<b>VK_ESCAPE</b>) is not handled by the grid control. It is called from the
<var>EditorGetValue</var> method when a visible cell Editor is updated. It is
called from <var>EditorTextChanged</var> method when the value in a cell
Editor has been altered using the <var>Change</var> or <var>Select</var>
methods in the editor control.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.OnSetEditText"/>
<link id="TCustomGrid.SetEditText"/>
</seealso>
</element>
<element name="TCustomDrawGrid.SetEditText.ACol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomDrawGrid.SetEditText.ARow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomDrawGrid.SetEditText.Value">
<short>New value for the cell Editor.</short>
</element>
<element name="TCustomDrawGrid.SizeChanged">
<short>
Performs actions needed when the number or columns or rows has been changed.
</short>
<descr>
<p>
<var>SizeChanged</var> is an overridden method in <var>TCustomDrawGrid</var>
used to perform actions needed when the number or columns or rows has been
changed for the grid control. SizeChanged ensures that the changed values are
recorded in the internal virtual grid for the control, and performs a
notification for the change.
</p>
<p>
When <var>OldColCount</var> differs from the value in <var>ColCount</var>,
the current ColCount is stored in the virtual grid.
<var>NotifyColRowChange</var> is called to generate an insert or a delete
notification for the change in ColCount.
</p>
<p>
When <var>OldRowCount</var> differs from the value in RowCount, the current
<var>RowCount</var> is stored in the virtual grid.
<var>NotifyColRowChange</var> is called to generate an insert or a delete
notification for the change in RowCount.
</p>
<p>
SizeChanged is called from the <var>AdjustCount</var> and <var>Clear</var>
methods.
</p>
</descr>
<seealso>
<link id="TCustomGrid.SizeChanged"/>
</seealso>
</element>
<element name="TCustomDrawGrid.SizeChanged.OldColCount">
<short>Previous number of columns.</short>
</element>
<element name="TCustomDrawGrid.SizeChanged.OldRowCount">
<short>Previous number of rows.</short>
</element>
<element name="TCustomDrawGrid.ToggleCheckbox">
<short>
Toggles the state for a check box cell between the checked and unchecked
values.
</short>
<descr>
<p>
<var>ToggleCheckbox</var> is a method used to toggle the state for a check
box located in the cell at <var>Col</var> and <var>Row</var> in the grid
control.
</p>
<p>
No actions are performed in the method when Col is not an editable column in
the grid. This can occur when <var>goEditing</var> has <b>not</b> been
included in the <var>Options</var> for the control. It can also occur if the
column definition in <var>Columns</var> has its <var>ReadOnly</var> property
set to <b>True</b>.
</p>
<p>
ToggleCheckbox determines the <var>TCheckboxState</var> value for the cell.
The default state is <var>cbGrayed</var>. <var>GetCheckboxState</var> is
called to get the current state using the <var>OnGetCheckboxState</var> event
handler (when assigned). The value is toggled (<var>cbChecked</var> becomes
<var>cbUnchecked</var>, and vice versa). <var>SetCheckboxState</var> is
called to apply the toggled value using the <var>OnSetCheckboxState</var>
event handler (when assigned), and to redraw the cell.
</p>
<p>
The <var>OnCheckboxToggled</var> event handler is signalled (when assigned)
prior to exiting from the method.
</p>
<p>
ToggleCheckbox is called from the <var>CellClick</var> method when a left
mouse button click occurs in the cell. It is also called from the
<var>KeyDown</var> method when the <b>Space (VK_SPACE)</b> key is applied for
the cell.
</p>
</descr>
<seealso>
<link id="TCustomGrid.OnCheckboxToggled"/>
</seealso>
</element>
<element name="TCustomDrawGrid.OnGetCheckboxState">
<short>Event handler signalled to get the state for a check box cell.</short>
<descr>
<p>
<var>OnGetCheckboxState</var> is a <var>TGetCheckboxStateEvent</var> property
with the event handler signalled to get the state for a check box cell. The
<var>ACol</var> and <var>ARow</var> parameters contain the position for the
cell. <var>Value</var> contains the <var>TCheckBoxState</var> value for the
cell as assigned in the event handler.
</p>
<p>
OnGetCheckboxState provides the only mechanism to get the state value for a
check box cell in <var>TCustomDrawGrid</var> / <var>TDrawGrid</var>. This
differs from <var>TCustomStringGrid</var> / <var>TStringGrid</var>, where the
<var>TGridColumn</var> instance in Columns can is used (when enabled) to get
the checked or unchecked value and determine the state for the cell. This
approach can be implemented in the event handler; it is not provided by
default.
</p>
<p>
OnGetCheckboxState is signalled (when assigned) from the GetCheckBoxState
method.
</p>
<p>
Use <var>OnSetCheckboxState</var> to set the state for the check box cell.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomDrawGrid.OnSetCheckboxState">
<short>Event handler signalled to set the state for a check box cell.</short>
<descr>
<p>
<var>OnSetCheckboxState</var> is a <var>TSetCheckboxStateEvent</var> property
with the event handler signalled to set the state for a check box cell. The
<var>ACol</var> and <var>ARow</var> parameters contain the position for the
cell. <var>Value</var> contains the <var>TCheckBoxState</var> value stored in
the cell.
</p>
<p>
OnSetCheckboxState provides the only mechanism to set the state value for a
check box cell in <var>TCustomDrawGrid</var> / <var>TDrawGrid</var>. This
differs from <var>TCustomStringGrid</var> / <var>TStringGrid</var>, where the
<var>TGridColumn</var> instance in Columns can is used (when enabled) to get
the checked or unchecked value and determine the state value stored in the
cell. This approach can be implemented in the event handler; it is not
provided by default.
</p>
<p>
OnSetCheckboxState is signalled (when assigned) from the SetCheckBoxState
method.
</p>
<p>
Use <var>OnGetCheckboxState</var> to get the state for the check box cell.
</p>
</descr>
<seealso/>
<seealso/>
</element>
<!-- public -->
<element name="TCustomDrawGrid.Create">
<short>Constructor for the class instance.</short>
<descr>
<p>
<var>Create</var> is the overridden constructor for
<var>TCustomDrawGrid</var>. Create allocates the virtual grid (TVirtualGrid)
instance used in the control, and calls the inherited constructor prior to
exiting from the method.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Create"/>
<link id="TVirtualGrid"/>
</seealso>
</element>
<element name="TCustomDrawGrid.Create.AOwner">
<short>Owner of the grid control.</short>
</element>
<element name="TCustomDrawGrid.Destroy">
<short>Destructor for the class instance.</short>
<descr>
<p>
<var>Destroy</var> is the overridden destructor for the class instance.
Destroy frees resources allocated to the member used for the internal virtual
grid in the control. Destroy calls the inherited destructor prior to exiting
from the method.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Destroy"/>
<link id="TVirtualGrid"/>
</seealso>
</element>
<element name="TCustomDrawGrid.DeleteColRow">
<short>Deletes a column or a row at the specified position.</short>
<descr>
<p>
DeleteColRow is a method used to delete the column or row at the specified
position.
</p>
<p>
IsColumn determines whether a column or a row is affected in the operation.
When set to <b>True</b>, a column is deleted. Otherwise, a row is deleted.
</p>
<p>
Index contains the column or row number deleted in the method. An exception
will be raised if Index contains an invalid value for the ColCount or
RowCount in the grid control.
</p>
<p>
DeleteColRow calls DoOPDeleteColRow with the parameter values to perform the
delete operation.
</p>
<p>
DeleteColRow is used in the implementation of the <var>DeleteCol</var> and
<var>DeleteRow</var> methods.
</p>
<p>
Use <var>InsertColRow</var> to insert a column or row at a given position in
the grid. Use <var>MoveColRow</var> to move a column or row to a new position
in the grid. Use <var>ExchangeColRow</var> to swap column or row values at
the specified positions in the grid.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomDrawGrid.DeleteColRow.IsColumn">
<short>
<b>True</b> to delete a column in the method, <b>False</b> for a row.
</short>
</element>
<element name="TCustomDrawGrid.DeleteColRow.Index">
<short>Column or row number deleted in the method.</short>
</element>
<element name="TCustomDrawGrid.DeleteCol">
<short>
Deletes the column at the specified position on the grid control.
</short>
<descr>
<p>
Calls <var>DeleteColRow</var> to delete the column number specified in
<var>Index</var>.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.DeleteColRow"/>
</seealso>
</element>
<element name="TCustomDrawGrid.DeleteCol.Index">
<short>Position for the column removed in the method.</short>
</element>
<element name="TCustomDrawGrid.DeleteRow">
<short>Deletes the row at the specified position on the grid control.</short>
<descr>
<p>
Calls <var>DeleteColRow</var> to delete the row number specified in
<var>Index</var>.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.DeleteColRow"/>
</seealso>
</element>
<element name="TCustomDrawGrid.DeleteRow.Index">
<short>Position for the row removed in the method.</short>
</element>
<element name="TCustomDrawGrid.ExchangeColRow">
<short>Exchanges column or row values at the specified positions.</short>
<descr/>
<seealso/>
</element>
<element name="TCustomDrawGrid.ExchangeColRow.IsColumn">
<short><b>True</b> when the index positions refer to columns.</short>
</element>
<element name="TCustomDrawGrid.ExchangeColRow.Index">
<short>Position for the first column in the exchange.</short>
</element>
<element name="TCustomDrawGrid.ExchangeColRow.WithIndex">
<short>Position for the second column in the exchange.</short>
</element>
<element name="TCustomDrawGrid.InsertColRow">
<short>Inserts a column or a row at the specified position.</short>
<descr/>
<seealso/>
</element>
<element name="TCustomDrawGrid.InsertColRow.IsColumn">
<short><b>True</b> when a column should be inserted in the method.</short>
</element>
<element name="TCustomDrawGrid.InsertColRow.Index">
<short>Position where the column or row is inserted in the grid.</short>
</element>
<element name="TCustomDrawGrid.MoveColRow">
<short>
Moves a column or a row from a specified position to a new position in the
grid.
</short>
<descr>
<p>
Implemented using the DoOPMoveColRow method.
</p>
<p>
Values in FromIndex and ToIndex must be valid column or row numbers for the
control. An EGridException is raised if either value is not valid.
</p>
<p>
No actions are performed in the method if FromIndex and ToIndex have the same
value.
</p>
<p>
No actions are performed in the method if IsColumn is <b>True</b> and columns
are locked using the GridFlags. This occurs when a column index is being
updated in the control.
</p>
<p>
Calls ColRowMoved to perform a notification when the column or row has been
moved.
</p>
<p>
Calls VisualChange if the Columns collection has not been enabled in the
control, or when IsColumn is <b>False</b>.
</p>
<p>
Updates the bounds for the cell editor when it is located in a column or row
affected in the method.
</p>
<p>
Updates the value in SortColumn if it is affected in the method.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomDrawGrid.MoveColRow.IsColumn">
<short><b>True</b> when a column is moved in the method.</short>
</element>
<element name="TCustomDrawGrid.MoveColRow.FromIndex">
<short>Position for the column or row moved in the moved.</short>
</element>
<element name="TCustomDrawGrid.MoveColRow.ToIndex">
<short>New position where the column or row is stored.</short>
</element>
<element name="TCustomDrawGrid.SortColRow">
<short>
Sorts the data in a column or row using the specified positions.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomDrawGrid.SortColRow.IsColumn">
<short>
<b>True</b> when values in a column are sorted, <b>False</b> to sort values
in a row.
</short>
</element>
<element name="TCustomDrawGrid.SortColRow.Index">
<short>Column or row number sorted in the method.</short>
</element>
<element name="TCustomDrawGrid.SortColRow.FromIndex">
<short>Starting position sorted in the column or row.</short>
</element>
<element name="TCustomDrawGrid.SortColRow.ToIndex">
<short>Ending position sorted in the column or row.</short>
</element>
<element name="TCustomDrawGrid.DefaultDrawCell">
<short>
The default method used to draw the cell at the given position using a
specific state.
</short>
<descr>
<p>
<var>DefaultDrawCell</var> is a method which provides the default drawing
routine for the cell at the position specified in <var>ACol</var> and
<var>ARow</var>. The bounds for the cell are provided in the <var>ARect</var>
parameter. <var>AState</var> contains the drawing state for the cell.
</p>
<p>
DefaultDrawCell handles the following drawing tasks when needed for the
specified cell:
</p>
<ul>
<li>
Draws fixed cells using the TitleStyle for the control. Calls DrawThemedCell
when TitleStyle is set to tsNative. Otherwise, DrawFillRect is used.
</li>
<li>
Draws the bitmap needed for a cell using the check box button style. Calls
DrawCellCheckboxBitmaps to render the bitmap for the check box control.
</li>
<li>
Draws a cell using the Button style. Calls DrawButtonCell to render the
button in the required state.
</li>
<li>
Draws auto-numbered fixed row headers when enabled in the Options for the
control. Calls DrawCellAutonumbering to render the relative non-fixed row
number.
</li>
<li>
Draws the text displayed in the cell. Calls DrawColumnText when the cell is a
fixed column header. Otherwise, the DrawTextInCell method is used.
</li>
</ul>
<p>
DefaultDrawCell is called from the DrawCell method. It is used when the
DefaultDrawing property is set to <b>True</b>, and occurs prior to signalling
the OnDrawCell event handler (when assigned). It is always called when
OnDrawCell has not been assigned.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.DrawCell"/>
<link id="TCustomDrawGrid.DefaultDrawing"/>
<link id="TCustomDrawGrid.OnDrawCell"/>
<link id="TCustomGrid.TitleStyle"/>
</seealso>
</element>
<element name="TCustomDrawGrid.DefaultDrawCell.ACol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomDrawGrid.DefaultDrawCell.ARow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomDrawGrid.DefaultDrawCell.ARect">
<short>Rectangle with the bounds for the cell.</short>
</element>
<element name="TCustomDrawGrid.DefaultDrawCell.AState">
<short>Drawing state for the cell.</short>
</element>
<element name="TCustomDrawGrid.AllowOutboundEvents" link="#lcl.grids.TCustomGrid.AllowOutboundEvents"/>
<element name="TCustomDrawGrid.BorderColor" link="#lcl.grids.TCustomGrid.BorderColor"/>
<element name="TCustomDrawGrid.Canvas" link="#lcl.controls.TCustomControl.Canvas"/>
<element name="TCustomDrawGrid.Col" link="#lcl.grids.TCustomGrid.Col"/>
<element name="TCustomDrawGrid.ColWidths" link="#lcl.grids.TCustomGrid.ColWidths"/>
<element name="TCustomDrawGrid.ColRow" link="#lcl.grids.TCustomGrid.ColRow"/>
<element name="TCustomDrawGrid.DisabledFontColor" link="#lcl.grids.TCustomGrid.DisabledFontColor"/>
<element name="TCustomDrawGrid.Editor" link="#lcl.grids.TCustomGrid.Editor"/>
<element name="TCustomDrawGrid.EditorBorderStyle" link="#lcl.grids.TCustomGrid.EditorBorderStyle"/>
<element name="TCustomDrawGrid.EditorMode" link="#lcl.grids.TCustomGrid.EditorMode"/>
<element name="TCustomDrawGrid.ExtendedColSizing" link="#lcl.grids.TCustomGrid.ExtendedColSizing"/>
<element name="TCustomDrawGrid.AltColorStartNormal" link="#lcl.grids.TCustomGrid.AltColorStartNormal"/>
<element name="TCustomDrawGrid.FastEditing" link="#lcl.grids.TCustomGrid.FastEditing"/>
<element name="TCustomDrawGrid.FixedGridLineColor" link="#lcl.grids.TCustomGrid.FixedGridLineColor"/>
<element name="TCustomDrawGrid.FocusColor" link="#lcl.grids.TCustomGrid.FocusColor"/>
<element name="TCustomDrawGrid.FocusRectVisible" link="#lcl.grids.TCustomGrid.FocusRectVisible"/>
<element name="TCustomDrawGrid.GridHeight" link="#lcl.grids.TCustomGrid.GridHeight"/>
<element name="TCustomDrawGrid.GridWidth" link="#lcl.grids.TCustomGrid.GridWidth"/>
<element name="TCustomDrawGrid.IsCellSelected" link="#lcl.grids.TCustomGrid.IsCellSelected"/>
<element name="TCustomDrawGrid.LeftCol" link="#lcl.grids.TCustomGrid.LeftCol"/>
<element name="TCustomDrawGrid.Row" link="#lcl.grids.TCustomGrid.Row"/>
<element name="TCustomDrawGrid.RowHeights" link="#lcl.grids.TCustomGrid.RowHeights"/>
<element name="TCustomDrawGrid.SaveOptions" link="#lcl.grids.TCustomGrid.SaveOptions"/>
<element name="TCustomDrawGrid.SelectedColor" link="#lcl.grids.TCustomGrid.SelectedColor"/>
<element name="TCustomDrawGrid.SelectedColumn" link="#lcl.grids.TCustomGrid.SelectedColumn"/>
<element name="TCustomDrawGrid.Selection" link="#lcl.grids.TCustomGrid.Selection"/>
<element name="TCustomDrawGrid.StrictSort" link="#lcl.grids.TCustomGrid.StrictSort"/>
<element name="TCustomDrawGrid.TopRow" link="#lcl.grids.TCustomGrid.TopRow"/>
<element name="TCustomDrawGrid.UseXORFeatures" link="#lcl.grids.TCustomGrid.UseXORFeatures"/>
<element name="TCustomDrawGrid.Align" link="#lcl.controls.TControl.Align"/>
<element name="TCustomDrawGrid.Anchors" link="#lcl.controls.TControl.Anchors"/>
<element name="TCustomDrawGrid.AutoAdvance" link="#lcl.grids.TCustomGrid.AutoAdvance" />
<element name="TCustomDrawGrid.AutoFillColumns" link="#lcl.grids.TCustomGrid.AutoFillColumns"/>
<element name="TCustomDrawGrid.BorderSpacing" link="#lcl.controls.TControl.BorderSpacing"/>
<element name="TCustomDrawGrid.BorderStyle" link="#lcl.controls.TWinControl.BorderStyle"/>
<element name="TCustomDrawGrid.Color" link="#lcl.controls.TControl.Color"/>
<element name="TCustomDrawGrid.ColCount" link="#lcl.grids.TCustomGrid.ColCount" />
<element name="TCustomDrawGrid.Columns" link="#lcl.grids.TCustomGrid.Columns"/>
<element name="TCustomDrawGrid.Constraints" link="#lcl.controls.TControl.Constraints"/>
<element name="TCustomDrawGrid.DefaultColWidth" link="#lcl.grids.TCustomGrid.DefaultColWidth"/>
<element name="TCustomDrawGrid.DefaultDrawing" link="#lcl.grids.TCustomGrid.DefaultDrawing"/>
<element name="TCustomDrawGrid.DefaultRowHeight" link="#lcl.grids.TCustomGrid.DefaultRowHeight"/>
<element name="TCustomDrawGrid.Enabled" link="#lcl.controls.TControl.Enabled"/>
<element name="TCustomDrawGrid.FadeUnfocusedSelection" link="#lcl.grids.TCustomGrid.FadeUnfocusedSelection"/>
<element name="TCustomDrawGrid.FixedColor" link="#lcl.grids.TCustomGrid.FixedColor"/>
<element name="TCustomDrawGrid.FixedCols" link="#lcl.grids.TCustomGrid.FixedCols"/>
<element name="TCustomDrawGrid.FixedHotColor" link="#lcl.grids.TCustomGrid.FixedHotColor"/>
<element name="TCustomDrawGrid.FixedRows" link="#lcl.grids.TCustomGrid.FixedRows"/>
<element name="TCustomDrawGrid.Flat" link="#lcl.grids.TCustomGrid.Flat"/>
<element name="TCustomDrawGrid.Font" link="#lcl.controls.TControl.Font"/>
<element name="TCustomDrawGrid.GridLineColor" link="#lcl.grids.TCustomGrid.GridLineColor"/>
<element name="TCustomDrawGrid.GridLineStyle" link="#lcl.grids.TCustomGrid.GridLineStyle"/>
<element name="TCustomDrawGrid.GridLineWidth" link="#lcl.grids.TCustomGrid.GridLineWidth" />
<element name="TCustomDrawGrid.Options" link="#lcl.grids.TCustomGrid.Options"/>
<element name="TCustomDrawGrid.Options2" link="#lcl.grids.TCustomGrid.Options2"/>
<element name="TCustomDrawGrid.ParentShowHint" link="#lcl.controls.TControl.ParentShowHint"/>
<element name="TCustomDrawGrid.PopupMenu" link="#lcl.controls.TControl.PopupMenu"/>
<element name="TCustomDrawGrid.RowCount" link="#lcl.grids.TCustomGrid.RowCount"/>
<element name="TCustomDrawGrid.ScrollBars" link="#lcl.grids.TCustomGrid.ScrollBars"/>
<element name="TCustomDrawGrid.ShowHint" link="#lcl.controls.TControl.ShowHint"/>
<element name="TCustomDrawGrid.TabAdvance" link="#lcl.grids.TCustomGrid.TabAdvance"/>
<element name="TCustomDrawGrid.TabOrder" link="#lcl.controls.TWinControl.TabOrder"/>
<element name="TCustomDrawGrid.TabStop" link="#lcl.controls.TWinControl.TabStop"/>
<element name="TCustomDrawGrid.Visible" link="#lcl.controls.TControl.Visible"/>
<element name="TCustomDrawGrid.VisibleColCount" link="#lcl.grids.TCustomGrid.VisibleColCount"/>
<element name="TCustomDrawGrid.VisibleRowCount" link="#lcl.grids.TCustomGrid.VisibleRowCount"/>
<element name="TCustomDrawGrid.OnAfterSelection" link="#lcl.grids.TCustomGrid.OnAfterSelection"/>
<element name="TCustomDrawGrid.OnBeforeSelection" link="#lcl.grids.TCustomGrid.OnBeforeSelection"/>
<element name="TCustomDrawGrid.OnClick" link="#lcl.controls.TControl.OnClick"/>
<element name="TCustomDrawGrid.OnColRowDeleted">
<short>Event handler signalled when a grid column or row is deleted.</short>
<descr>
<p>
Signalled from the NotifyColRowChange method (when assigned). It occurs after
the column or row has been removed from the internal virtual grid for the
class instance.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.NotifyColRowChange"/>
<link id="TCustomDrawGrid.ColRowDeleted"/>
<link id="TVirtualGrid.DeleteColRow"/>
</seealso>
</element>
<element name="TCustomDrawGrid.OnColRowExchanged">
<short>
Event handler signalled when a column or row has been exchanged with another.
</short>
<descr>
<p>
Signalled from the ColRowExchanged method (when assigned). It occurs after
the columns or rows have been swapped using the internal virtual grid for the
class instance.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.ColRowExchanged"/>
<link id="TVirtualGrid.ExchangeColRow"/>
</seealso>
</element>
<element name="TCustomDrawGrid.OnColRowInserted">
<short>
Event handler signalled when a column or row is inserted into the grid.
</short>
<descr>
<p>
Signalled from the NotifyColRowChange method (when assigned) when an insert
notification is performed. It occurs after the column or row has been
inserted by calling the InsertColRow method in the internal virtual grid for
the class instance.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.NotifyColRowChange"/>
<link id="TVirtualGrid.InsertColRow"/>
<link id="TGridOperationEvent"/>
</seealso>
</element>
<element name="TCustomDrawGrid.OnColRowMoved">
<short>
Event handler signalled when a column or row in the grid is moved.
</short>
<descr>
<p>
Signalled from the ColRowMoved method (when assigned). It occurs after the
column or row value have been moved using the MoveColRow method in the
internal virtual grid for the class instance.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.ColRowMoved"/>
<link id="TVirtualGrid.MoveColRow"/>
<link id="TGridOperationEvent"/>
</seealso>
</element>
<element name="TCustomDrawGrid.OnCompareCells">
<short>Event handler signalled to compare the content in cells </short>
<descr>
<p>
Signalled from the DoCompareCells method (when assigned) when the Sort method
is executed for the grid control. It occurs before the DoOPExchangeColRow
method has been called yo change the order for the Columns on the grid
control.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.ExchangeColRow"/>
<link id="TCustomGrid.DoOPExchangeColRow"/>
<link id="TCustomGrid.DoCompareCells"/>
<link id="TCustomGrid.Sort"/>
</seealso>
</element>
<element name="TCustomDrawGrid.OnContextPopup" link="#lcl.controls.TControl.OnContextPopup"/>
<element name="TCustomDrawGrid.OnDblClick" link="#lcl.controls.TControl.OnDblClick"/>
<element name="TCustomDrawGrid.OnDragDrop" link="#lcl.controls.TControl.OnDragDrop"/>
<element name="TCustomDrawGrid.OnDragOver" link="#lcl.controls.TControl.OnDragOver"/>
<element name="TCustomDrawGrid.OnDrawCell" link="#lcl.grids.TCustomGrid.OnDrawCell"/>
<element name="TCustomDrawGrid.OnEditButtonClick" link="#lcl.grids.TCustomGrid.OnEditButtonClick"/>
<element name="TCustomDrawGrid.OnButtonClick" link="#lcl.grids.TCustomGrid.OnButtonClick"/>
<element name="TCustomDrawGrid.OnEndDock" link="#lcl.controls.TControl.OnEndDock"/>
<element name="TCustomDrawGrid.OnEndDrag" link="#lcl.controls.TControl.OnEndDrag"/>
<element name="TCustomDrawGrid.OnEnter" link="#lcl.controls.TWinControl.OnEnter"/>
<element name="TCustomDrawGrid.OnExit" link="#lcl.controls.TWinControl.OnExit"/>
<element name="TCustomDrawGrid.OnGetEditMask">
<short>
Event handler signalled to get the edit mask used for a grid cell.
</short>
<descr>
<p>
Signalled from the GetEditMask method (when assigned). It provides the value
passed in a GM_SETMASK message to the cell Editor in the control when the
EditorGetValue method is executed.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.GetEditMask"/>
<link id="TCustomGrid.EditorDoSetValue"/>
</seealso>
</element>
<element name="TCustomDrawGrid.OnGetEditText">
<short>
Event handler signalled to get the value for a cell editor in the grid.
</short>
<descr>
<p>
<var>OnGetEditText</var> is a <var>TGetEditEvent</var> property with the
event handler signalled to get the value for a cell editor on the grid
control. It is signalled (when assigned) from the GetEditText method, and
provides the value dispatched in a GM_SETVALUE message to the Editor control.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.GetEditText"/>
<link id="TCustomGrid.EditorDoSetValue"/>
<link id="TGetEditEvent"/>
</seealso>
</element>
<element name="TCustomDrawGrid.OnHeaderClick">
<short>
Event handler signalled when the fixed header for a column or row is clicked.
</short>
<descr>
<p>
Signalled from the HeaderClick method (when assigned). It occurs when a mouse
up event or column accelerator key is handled for a header cell on the grid
control. It occurs after the SortOrder and SortColumn have been updated and
the Sort method has been called when ColumnClickSorts is enabled.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.HeaderClick"/>
<link id="TCustomGrid.HeaderClick"/>
<link id="TCustomGrid.ColumnClickSorts"/>
<link id="TCustomGrid.SortOrder"/>
<link id="TCustomGrid.SortColumn"/>
<link id="TCustomGrid.Sort"/>
<link id="THdrEvent"/>
</seealso>
</element>
<element name="TCustomDrawGrid.OnHeaderSized">
<short>
Event handler signalled when a column or row header has been resized.
</short>
<descr>
<p>
<var>OnHeaderSized</var> is a <var>THdrEvent</var> property with the event
handler signalled when a column or a row on the grid has been resized.
OnHeaderSized is signalled (when assigned) from the HeaderSized method. It
occurs when a mouse up event is handled while column or row sizing is active.
It occurs after ResizeColumn or ResizeRow has been called, and the scroll
bars have been adjusted for the control.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.HeaderSized"/>
<link id="TCustomGrid.MouseUp"/>
<link id="TCustomGrid.ResizeColumn"/>
<link id="TCustomGrid.ResizeRow"/>
</seealso>
</element>
<element name="TCustomDrawGrid.OnHeaderSizing">
<short>
Event handler signalled when a column or row header sizing action is started.
</short>
<descr>
<p>
<var>OnHeaderSizing</var> is a <var>THeaderSizingEvent</var> property with
the event handler signalled when a column or row header sizing action is
started. It is signalled (when assigned) from the HeaderSizing method, and
occurs when MouseMove events are handled when the internal grid state is set
to gsColSizing or gsRowSizing.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.HeaderSizing"/>
<link id="TCustomDrawGrid.OnHeaderSized"/>
<link id="TCustomGrid.MouseMove"/>
<link id="THeaderSizingEvent"/>
<link id="TGridState"/>
</seealso>
</element>
<element name="TCustomDrawGrid.OnKeyDown" link="#lcl.controls.TWinControl.OnKeyDown"/>
<element name="TCustomDrawGrid.OnKeyPress" link="#lcl.controls.TWinControl.OnKeyPress"/>
<element name="TCustomDrawGrid.OnKeyUp" link="#lcl.controls.TWinControl.OnKeyUp"/>
<element name="TCustomDrawGrid.OnMouseDown" link="#lcl.controls.TControl.OnMouseDown"/>
<element name="TCustomDrawGrid.OnMouseEnter" link="#lcl.controls.TControl.OnMouseEnter"/>
<element name="TCustomDrawGrid.OnMouseLeave" link="#lcl.controls.TControl.OnMouseLeave"/>
<element name="TCustomDrawGrid.OnMouseMove" link="#lcl.controls.TControl.OnMouseMove"/>
<element name="TCustomDrawGrid.OnMouseUp" link="#lcl.controls.TControl.OnMouseUp"/>
<element name="TCustomDrawGrid.OnMouseWheel" link="#lcl.controls.TControl.OnMouseWheel"/>
<element name="TCustomDrawGrid.OnMouseWheelDown" link="#lcl.controls.TControl.OnMouseWheelDown"/>
<element name="TCustomDrawGrid.OnMouseWheelUp" link="#lcl.controls.TControl.OnMouseWheelUp"/>
<element name="TCustomDrawGrid.OnPickListSelect" link="#lcl.grids.TCustomGrid.OnPickListSelect"/>
<element name="TCustomDrawGrid.OnPrepareCanvas" link="#lcl.grids.TCustomGrid.OnPrepareCanvas"/>
<element name="TCustomDrawGrid.OnSelectEditor" link="#lcl.grids.TCustomGrid.OnSelectEditor"/>
<element name="TCustomDrawGrid.OnSelection" link="#lcl.grids.TCustomGrid.OnSelection"/>
<element name="TCustomDrawGrid.OnSelectCell">
<short>Event handler signalled when a grid cell is selected.</short>
<descr>
<p>
<var>OnSelectCell</var> is a <var>TOnSelectCellEvent</var> property with the
event handler signalled when a cell is selected in the grid control.
OnSelectCell is signalled from the <var>SelectCell</var> method. It occurs
when a change in the current cell selection has been or is about to be
performed, or when a cell editor is selected for the grid control. The
<var>CanSelect</var> argument allows the event handler to control whether the
cell at <var>ACol</var> and <var>ARow</var> can be selected.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.SelectCell"/>
<link id="TCustomGrid.CheckPosition"/>
<link id="TCustomGrid.SelectEditor"/>
<link id="TOnSelectCellEvent"/>
</seealso>
</element>
<element name="TCustomDrawGrid.OnSetEditText">
<short>
Event handler signalled when the text in the cell Editor is assigned.
</short>
<descr>
<p>
<var>OnSetEditText</var> is a <var>TSetEditEvent</var> property with the
event handler signalled when the text in the cell Editor is assigned.
OnSetEditText is signalled from the <var>SetEditText</var> method immediately
before calling the inherited SetEditText method. The <var>Sender</var>
argument is the current grid instance for the notification.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.SetEditText"/>
<link id="TCustomGrid.EditorTextChanged"/>
<link id="TStringCellEditor.KeyDown"/>
<link id="TSetEditEvent"/>
</seealso>
</element>
<element name="TCustomDrawGrid.OnStartDock" link="#lcl.controls.TControl.OnStartDock"/>
<element name="TCustomDrawGrid.OnStartDrag" link="#lcl.controls.TControl.OnStartDrag"/>
<element name="TCustomDrawGrid.OnTopLeftChanged" link="#lcl.grids.TCustomGrid.OnTopLeftChanged"/>
<element name="TCustomDrawGrid.OnUTF8KeyPress" link="#lcl.controls.TWinControl.OnUTF8KeyPress"/>
<element name="TCustomDrawGrid.OnValidateEntry" link="#lcl.grids.TCustomGrid.OnValidateEntry"/>
<element name="TDrawGrid">
<short>Implements a custom-drawn grid control.</short>
<descr>
<p>
<var>TDrawGrid</var> is a <var>TCustomDrawGrid</var> descendant which
implements a custom-drawn grid control. The control represents it information
as a matrix of rows and columns, and is oriented towards rendering both
graphical information and textual content.
</p>
<p>
The <var>OnDrawCell</var> event handler is used to render the cell content in
the grid, and can be used to render images or directly access the
<var>Canvas</var> for the control. Default cell drawing logic is also
implemented using the properties and methods from the ancestor class.
</p>
<p>
TDrawGrid sets the visibility for properties introduced in the
<var>TCustomDrawGrid</var> ancestor, and does not provide any new
functionality.
</p>
<p>
Additional information about grid usage is available on the Lazarus wiki in
the following pages:
</p>
<ul>
<li>
<url href="https://wiki.lazarus.freepascal.org/Grids_Reference_Page">
Grids Reference Page
</url>
</li>
<li>
<url href="https://wiki.lazarus.freepascal.org/TDrawGrid">
TDrawGrid
</url>
</li>
<li>
<url href="https://wiki.lazarus.freepascal.org/TStringGrid">
TStringGrid
</url>
</li>
</ul>
</descr>
<seealso>
<link id="HowToUseGrids"/>
<link id="TCustomGrid"/>
<link id="TCustomDrawGrid"/>
<link id="TOnDrawCell"/>
</seealso>
</element>
<!-- public -->
<element name="TDrawGrid.InplaceEditor" link="#lcl.grids.TCustomGrid.InplaceEditor"/>
<!-- published -->
<element name="TDrawGrid.Align" link="#lcl.controls.TControl.Align"/>
<element name="TDrawGrid.AlternateColor" link="#lcl.grids.TCustomGrid.AlternateColor"/>
<element name="TDrawGrid.Anchors" link="#lcl.controls.TControl.Anchors"/>
<element name="TDrawGrid.AutoAdvance" link="#lcl.grids.TCustomGrid.AutoAdvance"/>
<element name="TDrawGrid.AutoEdit" link="#lcl.grids.TCustomGrid.AutoEdit"/>
<element name="TDrawGrid.AutoFillColumns" link="#lcl.grids.TCustomGrid.AutoFillColumns"/>
<element name="TDrawGrid.BorderSpacing" link="#lcl.controls.TControl.BorderSpacing"/>
<element name="TDrawGrid.BorderStyle" link="#lcl.controls.TWinControl.BorderStyle"/>
<element name="TDrawGrid.Color" link="#lcl.controls.TControl.Color"/>
<element name="TDrawGrid.ColCount" link="#lcl.grids.TCustomGrid.ColCount"/>
<element name="TDrawGrid.ColRowDraggingCursor" link="#lcl.grids.TCustomGrid.ColRowDraggingCursor"/>
<element name="TDrawGrid.ColRowDragIndicatorColor" link="#lcl.grids.TCustomGrid.ColRowDragIndicatorColor"/>
<element name="TDrawGrid.ColSizingCursor" link="#lcl.grids.TCustomGrid.ColSizingCursor"/>
<element name="TDrawGrid.ColumnClickSorts" link="#lcl.grids.TCustomGrid.ColumnClickSorts"/>
<element name="TDrawGrid.Columns" link="#lcl.grids.TCustomGrid.Columns"/>
<element name="TDrawGrid.Constraints" link="#lcl.controls.TControl.Constraints"/>
<element name="TDrawGrid.DefaultColWidth" link="#lcl.grids.TCustomGrid.DefaultColWidth"/>
<element name="TDrawGrid.DefaultDrawing" link="#lcl.grids.TCustomGrid.DefaultDrawing"/>
<element name="TDrawGrid.DefaultRowHeight" link="#lcl.grids.TCustomGrid.DefaultRowHeight"/>
<element name="TDrawGrid.DoubleBuffered" link="#lcl.controls.TWinControl.DoubleBuffered"/>
<element name="TDrawGrid.DragCursor" link="#lcl.controls.TControl.DragCursor"/>
<element name="TDrawGrid.DragKind" link="#lcl.controls.TControl.DragKind"/>
<element name="TDrawGrid.DragMode" link="#lcl.controls.TControl.DragMode"/>
<element name="TDrawGrid.Enabled" link="#lcl.controls.TControl.Enabled"/>
<element name="TDrawGrid.ExtendedSelect" link="#lcl.grids.TCustomGrid.ExtendedSelect"/>
<element name="TDrawGrid.FadeUnfocusedSelection" link="#lcl.grids.TCustomGrid.FadeUnfocusedSelection"/>
<element name="TDrawGrid.FixedColor" link="#lcl.grids.TCustomGrid.FixedColor"/>
<element name="TDrawGrid.FixedCols" link="#lcl.grids.TCustomGrid.FixedCols"/>
<element name="TDrawGrid.FixedRows" link="#lcl.grids.TCustomGrid.FixedRows"/>
<element name="TDrawGrid.Flat" link="#lcl.grids.TCustomGrid.Flat"/>
<element name="TDrawGrid.FocusColor" link="#lcl.grids.TCustomDrawGrid.FocusColor"/>
<element name="TDrawGrid.FocusRectVisible" link="#lcl.grids.TCustomDrawGrid.FocusRectVisible"/>
<element name="TDrawGrid.Font" link="#lcl.controls.TControl.Font"/>
<element name="TDrawGrid.GridLineColor" link="#lcl.grids.TCustomGrid.GridLineColor"/>
<element name="TDrawGrid.GridLineStyle" link="#lcl.grids.TCustomGrid.GridLineStyle"/>
<element name="TDrawGrid.GridLineWidth" link="#lcl.grids.TCustomGrid.GridLineWidth"/>
<element name="TDrawGrid.HeaderHotZones" link="#lcl.grids.TCustomGrid.HeaderHotZones"/>
<element name="TDrawGrid.HeaderPushZones" link="#lcl.grids.TCustomGrid.HeaderPushZones"/>
<element name="TDrawGrid.ImageIndexSortAsc" link="#lcl.grids.TCustomGrid.ImageIndexSortAsc"/>
<element name="TDrawGrid.ImageIndexSortDesc" link="#lcl.grids.TCustomGrid.ImageIndexSortDesc"/>
<element name="TDrawGrid.MouseWheelOption" link="#lcl.grids.TCustomGrid.MouseWheelOption"/>
<element name="TDrawGrid.Options" link="#lcl.grids.TCustomGrid.Options"/>
<element name="TDrawGrid.Options2" link="#lcl.grids.TCustomGrid.Options2"/>
<element name="TDrawGrid.ParentColor">
<short>
Uses the Color from the Parent control, when enabled.
</short>
<descr>
<p>
ParentColor determines if the control should use the Color from the Parent
control, when enabled. The default value for the property is <b>False</b> in
TDrawGrid.
</p>
<p>
When this property is <b>True</b>, all changes to the Color of the parent
will also be applied to the Color of the control, ensuring that they both
contain same value. If the Color of the control is changed by the
application, then ParentColor will be automatically set to <b>False</b>.
</p>
<p>
Using ParentColor when the Color value is clDefault can cause problems in
resolving the actual color value. To obtain the Color property of a control
while taking into account clDefault and ParentColor, use the
GetColorResolvingParent method. This method might return a non-RGB color, but
will never return clDefault. To obtain a purely RGB result use the
GetRGBColorResolvingParent method.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TControl.ParentColor">TControl.ParentColor</link>
<link id="#lcl.controls.TControl.Color">TControl.Color</link>
<link id="#lcl.controls.TControl.GetColorResolvingParent">TControl.GetColorResolvingParent</link>
<link id="#lcl.controls.TControl.GetRGBColorResolvingParent">TControl.GetRGBColorResolvingParent</link>
</seealso>
</element>
<element name="TDrawGrid.ParentDoubleBuffered" link="#lcl.controls.TWinControl.ParentDoubleBuffered"/>
<element name="TDrawGrid.ParentFont" link="#lcl.controls.TControl.ParentFont"/>
<element name="TDrawGrid.ParentShowHint" link="#lcl.controls.TControl.ParentShowHint"/>
<element name="TDrawGrid.PopupMenu" link="#lcl.controls.TControl.PopupMenu"/>
<element name="TDrawGrid.RangeSelectMode" link="#lcl.grids.TCustomGrid.RangeSelectMode"/>
<element name="TDrawGrid.RowCount" link="#lcl.grids.TCustomGrid.RowCount"/>
<element name="TDrawGrid.RowSizingCursor" link="#lcl.grids.TCustomGrid.RowSizingCursor"/>
<element name="TDrawGrid.ScrollBars" link="#lcl.grids.TCustomGrid.ScrollBars"/>
<element name="TDrawGrid.ShowHint" link="#lcl.controls.TControl.ShowHint"/>
<element name="TDrawGrid.TabAdvance" link="#lcl.grids.TCustomGrid.TabAdvance"/>
<element name="TDrawGrid.TabOrder" link="#lcl.controls.TWinControl.TabOrder"/>
<element name="TDrawGrid.TabStop" link="#lcl.controls.TWinControl.TabStop"/>
<element name="TDrawGrid.TitleFont" link="#lcl.grids.TCustomGrid.TitleFont"/>
<element name="TDrawGrid.TitleImageList" link="#lcl.grids.TCustomGrid.TitleImageList"/>
<element name="TDrawGrid.TitleImageListWidth" link="#lcl.grids.TCustomGrid.TitleImageListWidth"/>
<element name="TDrawGrid.TitleStyle" link="#lcl.grids.TCustomGrid.TitleStyle"/>
<element name="TDrawGrid.UseXORFeatures" link="#lcl.grids.TCustomGrid.UseXORFeatures"/>
<element name="TDrawGrid.Visible" link="#lcl.controls.TControl.Visible"/>
<element name="TDrawGrid.OnAfterSelection" link="#lcl.grids.TCustomGrid.OnAfterSelection"/>
<element name="TDrawGrid.OnBeforeSelection" link="#lcl.grids.TCustomGrid.OnBeforeSelection"/>
<element name="TDrawGrid.OnCheckboxToggled" link="#lcl.grids.TCustomGrid.OnCheckboxToggled"/>
<element name="TDrawGrid.OnClick" link="#lcl.controls.TControl.OnClick"/>
<element name="TDrawGrid.OnColRowDeleted" link="#lcl.grids.TCustomDrawGrid.OnColRowDeleted"/>
<element name="TDrawGrid.OnColRowExchanged" link="#lcl.grids.TCustomDrawGrid.OnColRowExchanged"/>
<element name="TDrawGrid.OnColRowInserted" link="#lcl.grids.TCustomDrawGrid.OnColRowInserted"/>
<element name="TDrawGrid.OnColRowMoved" link="#lcl.grids.TCustomDrawGrid.OnColRowMoved"/>
<element name="TDrawGrid.OnCompareCells" link="#lcl.grids.TCustomGrid.OnCompareCells"/>
<element name="TDrawGrid.OnContextPopup" link="#lcl.controls.TControl.OnContextPopup"/>
<element name="TDrawGrid.OnDblClick" link="#lcl.controls.TControl.OnDblClick"/>
<element name="TDrawGrid.OnDragDrop" link="#lcl.controls.TControl.OnDragDrop"/>
<element name="TDrawGrid.OnDragOver" link="#lcl.controls.TControl.OnDragOver"/>
<element name="TDrawGrid.OnDrawCell" link="#lcl.grids.TCustomGrid.OnDrawCell"/>
<element name="TDrawGrid.OnEditButtonClick" link="#lcl.grids.TCustomGrid.OnEditButtonClick"/>
<element name="TDrawGrid.OnButtonClick" link="#lcl.grids.TCustomGrid.OnButtonClick"/>
<element name="TDrawGrid.OnEditingDone" link="#lcl.controls.TControl.OnEditingDone"/>
<element name="TDrawGrid.OnEndDock" link="#lcl.controls.TControl.OnEndDock"/>
<element name="TDrawGrid.OnEndDrag" link="#lcl.controls.TControl.OnEndDrag"/>
<element name="TDrawGrid.OnEnter" link="#lcl.controls.TWinControl.OnEnter"/>
<element name="TDrawGrid.OnExit" link="#lcl.controls.TWinControl.OnExit"/>
<element name="TDrawGrid.OnGetCellHint" link="#lcl.grids.TCustomGrid.OnGetCellHint"/>
<element name="TDrawGrid.OnGetCheckboxState" link="#lcl.grids.TCustomDrawGrid.OnGetCheckboxState"/>
<element name="TDrawGrid.OnGetEditMask" link="#lcl.grids.TCustomDrawGrid.OnGetEditMask"/>
<element name="TDrawGrid.OnGetEditText" link="#lcl.grids.TCustomDrawGrid.OnGetEditText"/>
<element name="TDrawGrid.OnHeaderClick" link="#lcl.grids.TCustomDrawGrid.OnHeaderClick"/>
<element name="TDrawGrid.OnHeaderSized" link="#lcl.grids.TCustomDrawGrid.OnHeaderSized"/>
<element name="TDrawGrid.OnHeaderSizing" link="#lcl.grids.TCustomDrawGrid.OnHeaderSizing"/>
<element name="TDrawGrid.OnKeyDown" link="#lcl.controls.TWinControl.OnKeyDown"/>
<element name="TDrawGrid.OnKeyPress" link="#lcl.controls.TWinControl.OnKeyPress"/>
<element name="TDrawGrid.OnKeyUp" link="#lcl.controls.TWinControl.OnKeyUp"/>
<element name="TDrawGrid.OnMouseDown" link="#lcl.controls.TControl.OnMouseDown"/>
<element name="TDrawGrid.OnMouseEnter" link="#lcl.controls.TControl.OnMouseEnter"/>
<element name="TDrawGrid.OnMouseLeave" link="#lcl.controls.TControl.OnMouseLeave"/>
<element name="TDrawGrid.OnMouseMove" link="#lcl.controls.TControl.OnMouseMove"/>
<element name="TDrawGrid.OnMouseUp" link="#lcl.controls.TControl.OnMouseUp"/>
<element name="TDrawGrid.OnMouseWheel" link="#lcl.controls.TControl.OnMouseWheel"/>
<element name="TDrawGrid.OnMouseWheelDown" link="#lcl.controls.TControl.OnMouseWheelDown"/>
<element name="TDrawGrid.OnMouseWheelUp" link="#lcl.controls.TControl.OnMouseWheelUp"/>
<element name="TDrawGrid.OnMouseWheelHorz" link="#lcl.controls.TControl.OnMouseWheelHorz"/>
<element name="TDrawGrid.OnMouseWheelLeft" link="#lcl.controls.TControl.OnMouseWheelLeft"/>
<element name="TDrawGrid.OnMouseWheelRight" link="#lcl.controls.TControl.OnMouseWheelRight"/>
<element name="TDrawGrid.OnPickListSelect" link="#lcl.grids.TCustomGrid.OnPickListSelect"/>
<element name="TDrawGrid.OnPrepareCanvas" link="#lcl.grids.TCustomGrid.OnPrepareCanvas"/>
<element name="TDrawGrid.OnSelectEditor" link="#lcl.grids.TCustomGrid.OnSelectEditor"/>
<element name="TDrawGrid.OnSelection" link="#lcl.grids.TCustomGrid.OnSelection"/>
<element name="TDrawGrid.OnSelectCell" link="#lcl.grids.TCustomDrawGrid.OnSelectCell"/>
<element name="TDrawGrid.OnSetCheckboxState" link="#lcl.grids.TCustomDrawGrid.OnSetCheckboxState"/>
<element name="TDrawGrid.OnSetEditText" link="#lcl.grids.TCustomDrawGrid.OnSetEditText"/>
<element name="TDrawGrid.OnStartDock" link="#lcl.controls.TControl.OnStartDock"/>
<element name="TDrawGrid.OnStartDrag" link="#lcl.controls.TControl.OnStartDrag"/>
<element name="TDrawGrid.OnTopleftChanged" link="#lcl.grids.TCustomGrid.OnTopLeftChanged"/>
<element name="TDrawGrid.OnUserCheckboxBitmap" link="#lcl.grids.TCustomGrid.OnUserCheckboxBitmap"/>
<element name="TDrawGrid.OnUserCheckboxImage" link="#lcl.grids.TCustomGrid.OnUserCheckBoxImage"/>
<element name="TDrawGrid.OnUTF8KeyPress" link="#lcl.controls.TWinControl.OnUTF8KeyPress"/>
<element name="TDrawGrid.OnValidateEntry" link="#lcl.grids.TCustomGrid.OnValidateEntry"/>
<element name="TStringGridStrings">
<short>
Represents strings used as the cell values in TCustomStringGrid / TStringGrid.
</short>
<descr>
<p>
<var>TStringGridStrings</var> is a <var>TStrings</var> descendant that
implements the string container used to populate the cells in a
<var>TStringGrid</var> instance. A temporary TStringGridStrings instance is
created and used to store a new value assigned to the Cols or Rows property in
TStringGrid.
</p>
</descr>
<seealso>
<link id="TCustomStringGrid.Cols"/>
<link id="TCustomStringGrid.Rows"/>
<link id="TStringGrid"/>
</seealso>
</element>
<!-- private -->
<element name="TStringGridStrings.FAddedCount"/>
<element name="TStringGridStrings.FGrid"/>
<element name="TStringGridStrings.FIsCol"/>
<element name="TStringGridStrings.FIndex"/>
<element name="TStringGridStrings.FOwner"/>
<!-- private -->
<element name="TStringGridStrings.ConvertIndexLineCol">
<short>
Converts an index position to line and column numbers for the Cells in a grid.
</short>
<descr>
<p>
<var>ConvertIndexLineCol</var> is a <var>Boolean</var> function used to
convert the specified Index position to line and column numbers for the Cells
in the grid control. If the class instance was created to represent values in
a single column, Index represents a row number. Otherwise, it represents a
column number.
</p>
<p>
The <var>Line</var> and <var>Col</var> parameters are variable arguments used
to return the line number and column number represented by Index to the
caller. For row values in a single column, Line is set to the row number
passed to the constructor and Col is set to the value in Index. For column
values in a single row, Line is set to the value in Index and Col is set to
the column number passed to the constructor.
</p>
<p>
The return value is set to <b>True</b> when Index is valid for the column or
row, and the values in Line and Col arguments have been updated. Values in
Line and Col are not maintained when the return value is <b>False</b>.
</p>
</descr>
<seealso>
<link id="TStringGridStrings.Add"/>
<link id="TStringGridStrings.Get"/>
<link id="TStringGridStrings.Put"/>
<link id="TStringGridStrings.GetObject"/>
<link id="TStringGridStrings.PutObject"/>
</seealso>
</element>
<element name="TStringGridStrings.ConvertIndexLineCol.Result">
<short>
<b>True</b> when Index is valid, and both Line and Col have been updated.
</short>
</element>
<element name="TStringGridStrings.ConvertIndexLineCol.Index">
<short>
Ordinal position in the column or row values.
</short>
</element>
<element name="TStringGridStrings.ConvertIndexLineCol.Line">
<short>
Returns the line (row) number for requested Index.
</short>
</element>
<element name="TStringGridStrings.ConvertIndexLineCol.Col">
<short>
Returns the column number for requested Index.
</short>
</element>
<!-- protected -->
<element name="TStringGridStrings.Get">
<short>Gets the string at the specified index position.</short>
<descr/>
<seealso>
<link id="#rtl.classes.TStrings.Strings">TStrings.Strings</link>
</seealso>
</element>
<element name="TStringGridStrings.Get.Result">
<short>String value at the specified position.</short>
</element>
<element name="TStringGridStrings.Get.Index">
<short>Ordinal position for the string.</short>
</element>
<element name="TStringGridStrings.GetCount">
<short>Gets the value for the Count property.</short>
<descr/>
<seealso>
<link id="#rtl.classes.TStrings.Count">TStrings.Count</link>
</seealso>
</element>
<element name="TStringGridStrings.GetCount.Result">
<short>Value for the Count property.</short>
</element>
<element name="TStringGridStrings.GetObject">
<short>Gets the value for the indexed Objects property.</short>
<descr/>
<seealso>
<link id="TStringGridStrings.PutObject"/>
<link id="#rtl.classes.TStrings.Objects">TStrings.Objects</link>
</seealso>
</element>
<element name="TStringGridStrings.GetObject.Result">
<short>Value for the property.</short>
</element>
<element name="TStringGridStrings.GetObject.Index">
<short>Ordinal position for the property value.</short>
</element>
<element name="TStringGridStrings.Put">
<short>Sets the value for the indexed Strings property.</short>
<descr/>
<seealso>
<link id="TStringGridStrings.Get"/>
<link id="#rtl.classes.TStrings.Strings">TStrings.Strings</link>
</seealso>
</element>
<element name="TStringGridStrings.Put.Index">
<short>Ordinal position for the property value.</short>
</element>
<element name="TStringGridStrings.Put.S">
<short>New value for the indexed property.</short>
</element>
<element name="TStringGridStrings.PutObject">
<short>Sets the value for the indexed Objects property.</short>
<descr/>
<seealso>
<link id="TStringGridStrings.GetObject"/>
<link id="#rtl.classes.TStrings.Objects">TStrings.Objects</link>
</seealso>
</element>
<element name="TStringGridStrings.PutObject.Index">
<short>Ordinal position for the indexed property value.</short>
</element>
<element name="TStringGridStrings.PutObject.AObject">
<short>New value for the indexed property.</short>
</element>
<!-- public -->
<element name="TStringGridStrings.Create">
<short>Constructor for the class instance.</short>
<descr>
<p>
<var>Create</var> is the constructor for the class instance, and calls the
inherited constructor on entry. Create stores parameter values to the members
used for the associated grid and the map used in the class instance.
</p>
</descr>
<seealso/>
</element>
<element name="TStringGridStrings.Create.AGrid">
<short>Grid for the string values.</short>
</element>
<element name="TStringGridStrings.Create.OwnerMap">
<short>Map with the owner for the class instance.</short>
</element>
<element name="TStringGridStrings.Create.AIsCol">
<short>
<b>True</b> when the values represent a column for the associated grid;
<b>False</b> for a row.
</short>
</element>
<element name="TStringGridStrings.Create.AIndex">
<short>Column or row number in the grid for the data values.</short>
</element>
<element name="TStringGridStrings.Destroy">
<short>Destructor for the class instance.</short>
<descr/>
<seealso>
<link id="#rtl.classes.TStrings.Destroy">TStrings.Destroy</link>
</seealso>
</element>
<element name="TStringGridStrings.Add">
<short>Adds the specified string to the class instance.</short>
<descr/>
<seealso>
<link id="TCustomStringGrid.Cells"/>
<link id="#rtl.classes.TStrings.Add">TStrings.Add</link>
<link id="#rtl.classes.TStrings.Strings">TStrings.Strings</link>
<link id="#rtl.classes.TStrings.Values">TStrings.Values</link>
</seealso>
</element>
<element name="TStringGridStrings.Add.Result">
<short>
Ordinal position in the class instance where the value was stored.
</short>
</element>
<element name="TStringGridStrings.Add.S">
<short>String value added in the method.</short>
</element>
<element name="TStringGridStrings.Assign">
<short>
Stores property values from Source into the current class instance.
</short>
<descr/>
<seealso>
<link id="#rtl.classes.TStrings.Assign">TStrings.Assign</link>
</seealso>
</element>
<element name="TStringGridStrings.Assign.Source">
<short>
Persistent object with the property values copied in the method.
</short>
</element>
<element name="TStringGridStrings.Clear">
<short>
Removes all values for the column or row represented by the class instance.
</short>
<descr/>
<seealso>
<link id="#rtl.classes.TStrings.Clear">TStrings.Clear</link>
</seealso>
</element>
<element name="TStringGridStrings.Delete">
<short>Deletes a value stored in the class instance.</short>
<descr>
<p>
<var>Delete</var> is overridden to prevent removing entries in the
<var>Strings</var> property. It always raises an <var>EGridException</var>
exception.
</p>
</descr>
<errors>
Raises an <var>EGridException</var> exception with the message <b>'Cannot
delete value.'</b>
</errors>
<seealso>
<link id="#rtl.classes.TStrings.Delete">TStrings.Delete</link>
</seealso>
</element>
<element name="TStringGridStrings.Delete.Index">
<short>
Ordinal position for the value to be removed; not used in the method.
</short>
</element>
<element name="TStringGridStrings.Insert">
<short>Inserts a value in the class instance.</short>
<descr>
<p>
Insert is an overridden method in TStringGridStrings. It prevents an insert
using the class instance, and raises an <var>EGridException</var> exception
with the message <b>'Cannot insert value'</b>.
</p>
</descr>
<seealso>
<link id="#rtl.classes.TStrings.Insert">TStrings.Insert</link>
</seealso>
</element>
<element name="TStringGridStrings.Insert.Index">
<short>
Ordinal position where the string value would be inserted.
</short>
</element>
<element name="TStringGridStrings.Insert.S">
<short>
String value that would be inserted in the method.
</short>
</element>
<element name="TCustomStringGrid">
<short>The base class for TStringGrid.</short>
<descr>
<p>
<var>TCustomStringGrid</var> is a <var>TCustomDrawGrid</var> descendant which
implements the base class for <var>TStringGrid</var>.
</p>
<p>
TCustomStringGrid provides the familiar tabular format used in grid controls,
and is designed for use with string content stored in its cells. Internally,
columns and rows in the class are mapped to <var>TStringGridStrings</var>
instances used to store the values in the grid control. TCustomStringGrid
also allows a TObject instance to be stored for each cell in the grid using
the <var>Objects</var> property.
</p>
<p>
Additional information about grid usage is available on the Lazarus wiki in
the following pages:
</p>
<ul>
<li>
<url href="https://wiki.lazarus.freepascal.org/Grids_Reference_Page">
Grids Reference Page
</url>
</li>
<li>
<url href="https://wiki.lazarus.freepascal.org/TDrawGrid">
TDrawGrid
</url>
</li>
<li>
<url href="https://wiki.lazarus.freepascal.org/TStringGrid">
TStringGrid
</url>
</li>
</ul>
</descr>
<seealso>
<link id="TCustomStringGrid.Cells"/>
<link id="TCustomStringGrid.Cols"/>
<link id="TCustomStringGrid.Rows"/>
<link id="TCustomStringGrid.Objects"/>
<link id="TCustomStringGrid.OnCellProcess"/>
<link id="HowToUseGrids"/>
</seealso>
</element>
<!-- private -->
<element name="TCustomStringGrid.FModified"/>
<element name="TCustomStringGrid.FColsMap"/>
<element name="TCustomStringGrid.FRowsMap"/>
<element name="TCustomStringGrid.FOnCellProcess"/>
<element name="TCustomStringGrid.GetCols">
<short>
Gets the values in the specified column number as a TStrings instance.
</short>
<descr>
<p>
<var>GetCols</var> is the read access specifier for the indexed
<var>Cols</var> property.
</p>
</descr>
<seealso>
<link id="TCustomStringGrid.Cols"/>
</seealso>
</element>
<element name="TCustomStringGrid.GetCols.Result">
<short>TStrings with row values for the specified column number.</short>
</element>
<element name="TCustomStringGrid.GetCols.Index">
<short>Column number retrieved in the method.</short>
</element>
<element name="TCustomStringGrid.GetObjects">
<short>Gets the value for the indexed Objects property.</short>
<descr/>
<seealso>
<link id="TCustomStringGrid.Objects"/>
</seealso>
</element>
<element name="TCustomStringGrid.GetObjects.Result">
<short>Value for the indexed property.</short>
</element>
<element name="TCustomStringGrid.GetObjects.ACol">
<short>Column number for the object.</short>
</element>
<element name="TCustomStringGrid.GetObjects.ARow">
<short>Row number for the object.</short>
</element>
<element name="TCustomStringGrid.GetRows">
<short>Gets the value for the indexed Rows property.</short>
<descr/>
<seealso>
<link id="TCustomStringGrid.Rows"/>
</seealso>
</element>
<element name="TCustomStringGrid.GetRows.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomStringGrid.GetRows.Index">
<short>Ordinal position for the requested row.</short>
</element>
<element name="TCustomStringGrid.MapFree">
<short>Frees the TStringGridStrings instances in the specified Map.</short>
<descr/>
<seealso/>
</element>
<element name="TCustomStringGrid.MapFree.AMap">
<short>TMap instance examined and updated in the method.</short>
</element>
<element name="TCustomStringGrid.MapGetColsRows">
<short>
Gets the values for the specified column or row number.
</short>
<descr>
<p>
<var>IsCols</var> indicates whether column or row values are accessed and
returned in the method. When set to <b>True</b>, values for each of the rows
in the specified column number are returned as the result. Otherwise, values
for each of the columns in the specified row number are returned as the
result.
</p>
<p>
<var>Index</var> is the ordinal position in the grid with the column or row
values returned in the method.
</p>
<p>
<var>AMap</var> is a TMap instance with the values returned in the TStrings
result for the function. If a value has not been assigned to AMap, a new TMap
instance is created to store the TStringGridStrings instance used to represent
the specified column or row number.
</p>
<p>
The HasID method in the map is called to check for an existing node in the
map. The GetData method in the map is called to store the map data in the
return value. If the map does not contain the value in Index, a new
TStringGridStrings instance is created for the map, and assigned as the return
value.
</p>
<p>
MapGetColsRows is used to implement the read access specifiers for the Cols
and Rows properties.
</p>
</descr>
<seealso>
<link id="TCustomStringGrid.Cols"/>
<link id="TCustomStringGrid.GetCols"/>
<link id="TCustomStringGrid.Rows"/>
<link id="TCustomStringGrid.GetRows"/>
<link id="TStringGridStrings"/>
<link id="#lazutils.maps.TMap">TMap</link>
</seealso>
</element>
<element name="TCustomStringGrid.MapGetColsRows.Result">
<short>
TStrings instance with the values in the specified column or row.
</short>
</element>
<element name="TCustomStringGrid.MapGetColsRows.IsCols">
<short><b>True</b> when columns are returned, <b>False</b> for rows.</short>
</element>
<element name="TCustomStringGrid.MapGetColsRows.Index">
<short>Column or row number for the values retrieved in the method.</short>
</element>
<element name="TCustomStringGrid.MapGetColsRows.AMap">
<short>Map instance used (or created) in the method.</short>
</element>
<element name="TCustomStringGrid.ReadCells">
<short>
Reads string values for the Cells property using a TReader instance.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomStringGrid.ReadCells.Reader">
<short>TReader instance used to read values during LCL streaming.</short>
</element>
<element name="TCustomStringGrid.SetCols">
<short>Sets the value for the indexed Cols property.</short>
<descr/>
<seealso>
<link id="TCustomStringGrid.Cols"/>
</seealso>
</element>
<element name="TCustomStringGrid.SetCols.Index">
<short>Ordinal position for the affected column </short>
</element>
<element name="TCustomStringGrid.SetCols.AValue">
<short>New value for the indexed property.</short>
</element>
<element name="TCustomStringGrid.SetObjects">
<short>Sets the value for the indexed Objects property.</short>
<descr/>
<seealso>
<link id="TCustomStringGrid.Objects"/>
</seealso>
</element>
<element name="TCustomStringGrid.SetObjects.ACol">
<short>Ordinal position for the column.</short>
</element>
<element name="TCustomStringGrid.SetObjects.ARow">
<short>Ordinal position for the row.</short>
</element>
<element name="TCustomStringGrid.SetObjects.AValue">
<short>New value for the indexed property.</short>
</element>
<element name="TCustomStringGrid.SetRows">
<short>Sets the value for the indexed Rows property.</short>
<descr/>
<seealso>
<link id="TCustomStringGrid.Rows"/>
</seealso>
</element>
<element name="TCustomStringGrid.SetRows.Index">
<short>Ordinal position for the row affected.</short>
</element>
<element name="TCustomStringGrid.SetRows.AValue">
<short>New value for the indexed property.</short>
</element>
<element name="TCustomStringGrid.WriteCells">
<short>
Writes the string values in the Cells property using the specified TWriter
instance.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomStringGrid.WriteCells.Writer">
<short>
TWriter instance used to write values to the LCL resource stream for the
component.
</short>
</element>
<element name="TCustomStringGrid.CopyCellRectToClipboard">
<short>
Copies the content from cell(s) in the specified selection rectangle to the
clipboard.
</short>
<descr>
<remark>
Only visible cells in the selection rectangle are included in the copied
values. Others are quietly discarded. HTML TABLE syntax is used to store the
cell values copied in the method. LineEnd and HTML reserved characters are
translated into HTML-safe tags or HTML character entities.
</remark>
<p>
Include goCopyWithoutTrailingLinebreak in the Options2 property to discard
a trailing end-of-line sequence at the end of rows in the copied cell
rectangle.
</p>
</descr>
<version>
Modified in LCL version 4.0 to trim trailing line breaks when enabled.
</version>
<seealso/>
</element>
<element name="TCustomStringGrid.CopyCellRectToClipboard.R">
<short>Cell selection rectangle with values copied in the method.</short>
</element>
<!-- protected -->
<element name="TCustomStringGrid.AssignTo">
<short>
Assigns values from the current class instance to the target class instance.
</short>
<descr/>
<seealso>
<link id="TCustomGrid.AssignTo"/>
</seealso>
</element>
<element name="TCustomStringGrid.AssignTo.Dest" link="#lcl.grids.TCustomGrid.AssignTo.Dest"/>
<element name="TCustomStringGrid.AutoAdjustColumn">
<short>
Adjusts the column size for the font, text length, and images used in the
specified column.
</short>
<descr>
<p>
Adjusts the column specified in <var>ACol</var> to use the width needed for
the font and image(s) for the column. No actions are performed in the method
when ACol is not a valid column index.
</p>
<p>
<var>AutoAdjustColumn</var> calculates the width need for the image (if any)
used in the column header, and adds the padding specified in the
DEFIMAGEPADDING constant. If a sort indicator is used, the same actions are
performed for the sort image. The image widths may be scaled to the current
display density if the PPI for the control Font differs from the value in
TitleImageList.
</p>
<p>
AutoAdjustColumn visits the rows in the grid to calculate the maximum width
required for the text in each. A temporary Canvas instance is used to
calculate the width for the text. When Columns has been enabled, fonts
assigned to the TGridColumn instance are used. When Columns has not been
enabled, TitleFont is used for fixed rows or columns. Otherwise, the Font
for the grid is used.
</p>
<p>
For multi-line columns, the DrawText routine is called to calculate the text
rectangle. For single-line columns, the TextExtent method in the canvas is
used. Cell padding is added to the calculated column width using the value
in varCellPadding. The derived column width is stored in the ColWidths
property for the column specified in ACol.
</p>
<p>
AutoAdjustColumn is called from the DblClick method when column auto-sizing
<b>and</b> double click auto-sizing have been enabled in the Options for the
grid. It is also called from the AutoAdjustColumns, AutoSizeColumns, and
AutoSizeColumn methods.
</p>
</descr>
<seealso>
<link id="TCustomGrid.AutoAdjustColumn"/>
<link id="TCustomGrid.IsColumnIndexValid"/>
</seealso>
</element>
<element name="TCustomStringGrid.AutoAdjustColumn.ACol">
<short>Column number for values examined in the method.</short>
</element>
<element name="TCustomStringGrid.CalcCellExtent">
<short>Deprecated in the ancestor class.</short>
<descr>
<remark>
CalcCellExtent is marked as deprecated in the ancestor class.
</remark>
</descr>
<seealso>
<link id="#lcl.grids.TCustomGrid.CalcCellExtent">TCustomGrid.CalcCellExtent</link>
</seealso>
</element>
<element name="TCustomStringGrid.CalcCellExtent.ACol"/>
<element name="TCustomStringGrid.CalcCellExtent.ARow"/>
<element name="TCustomStringGrid.CalcCellExtent.ARect"/>
<element name="TCustomStringGrid.DefineProperties">
<short>
Defines non-published properties included in LCL component streaming.
</short>
<descr>
<p>
<var>DefineProperties</var> is an overridden method used to define
non-published properties which are read and written using LCL component
streaming. In <var>TCustomStringGrid</var>, it adds read and write routines
for the <var>Cells</var> property to the <var>TFiler</var> instance.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomStringGrid.DefineProperties.Filer">
<short>
TFIler instance used to read or write values for the class type.
</short>
</element>
<element name="TCustomStringGrid.DefineCellsProperty">
<short>
Defines the reader and writer for the Cells property in a TFiler instance.
</short>
<descr>
<p>
Called from the DefineProperties method.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomStringGrid.DefineCellsProperty.Filer">
<short>TFiler instance updated in the method.</short>
</element>
<element name="TCustomStringGrid.DoCompareCells">
<short>
Performs a comparison between the specified cells in the grid control.
</short>
<descr>
<p>
<var>DoCompareCells</var> is an overridden method used to compare cell
values in the Sort method. It calls the inherited method when the
OnCompareCells event handler has been assigned. The return value from the
event handler contains the relative sort order for the compared cells, and
uses the following values:
</p>
<dl>
<dt>-1</dt>
<dd>The cell at ACol and ARow occurs comes before the cell at BCol and
BRow.</dd>
<dt>0</dt>
<dd>The specified cells have the same value.</dd>
<dt>1</dt>
<dd>The cell at ACol and ARow occurs comes after the cell at BCol and
BRow.</dd>
</dl>
<p>
When OnCompareCells is not assigned, the <var>AnsiCompareText</var>
routine is called to perform the cell comparison and provide the return
value for the method. When SortOrder is set to soDescending, the return
value is negated.
</p>
</descr>
<seealso>
<link id="TCustomGrid.DoCompareCells"/>
<link id="TCustomGrid.OnCompareCells"/>
<link id="#rtl.sysutils.AnsiCompareText">AnsiCompareText</link>
</seealso>
</element>
<element name="TCustomStringGrid.DoCompareCells.Result">
<short>Relative sort order for the compared cell values.</short>
</element>
<element name="TCustomStringGrid.DoCompareCells.Acol">
<short>Column number for the first cell value in the comparison.</short>
</element>
<element name="TCustomStringGrid.DoCompareCells.ARow">
<short>Row number for the first cell value in the comparison.</short>
</element>
<element name="TCustomStringGrid.DoCompareCells.Bcol">
<short>Column number for the second cell value in the comparison.</short>
</element>
<element name="TCustomStringGrid.DoCompareCells.BRow">
<short>Row number for the second cell value in the comparison.</short>
</element>
<element name="TCustomStringGrid.DoCopyToClipboard" link="#lcl.grids.TCustomGrid.DoCopyToClipboard"/>
<element name="TCustomStringGrid.DoCutToClipboard" link="#lcl.grids.TCustomGrid.DoCutToClipboard"/>
<element name="TCustomStringGrid.DoPasteFromClipboard" link="#lcl.grids.TCustomGrid.DoPasteFromClipboard"/>
<element name="TCustomStringGrid.DoCellProcess">
<short>
Performs actions needed when cell values are copied or pasted using the
clipboard.
</short>
<descr>
<p>
Signals the OnCellProcess event handler when assigned.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomStringGrid.DoCellProcess.ACol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomStringGrid.DoCellProcess.ARow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomStringGrid.DoCellProcess.processType">
<short>Process performed in the method.</short>
</element>
<element name="TCustomStringGrid.DoCellProcess.AValue">
<short>Contains the value after performing the specified process.</short>
</element>
<element name="TCustomStringGrid.DrawColumnText">
<short>
Draws the text and image for a grid column title at the specified cell
coordinates.
</short>
<descr>
<p>
<var>DrawColumnText</var> is an overridden method used to draw the text and
image for a grid column title at the cell coordinates specified in
<var>ACol</var> and <var>ARow</var>. When Columns has been enabled, the
inherited method is called to draw the image, sort indicator, and text when
needed. When Columns has not been enabled, the DrawColumnTitleImage and
DrawCellText methods are called to draw the sort indicator and text for the
column.
</p>
<p>
DrawColumnText is called from the <var>DefaultDrawCell</var> method for
cells which contain fixed column titles.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomStringGrid.DrawColumnText.ACol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomStringGrid.DrawColumnText.ARow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomStringGrid.DrawColumnText.ARect">
<short>Rectangle with the bounds for the cell.</short>
</element>
<element name="TCustomStringGrid.DrawColumnText.AState">
<short>Drawing state for the cell.</short>
</element>
<element name="TCustomStringGrid.DrawTextInCell">
<short>
Draws the text for the specified cell in a given drawing state.
</short>
<descr>
<p>
<var>DrawTextInCell</var> is a method used to draw the text for the cell
specified in <var>ACol</var> and <var>ARow</var>. It calls the
<var>DrawCellText</var> method using the specified arguments.
</p>
<p>
DrawTextInCell is called from the <var>DefaultDrawCell</var> method.
</p>
</descr>
<seealso>
<link id="TCustomGrid.DrawTextInCell"/>
</seealso>
</element>
<element name="TCustomStringGrid.DrawTextInCell.ACol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomStringGrid.DrawTextInCell.ARow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomStringGrid.DrawTextInCell.ARect">
<short>Rectangle with the bounds for the cell.</short>
</element>
<element name="TCustomStringGrid.DrawTextInCell.AState">
<short>Drawing state for the cell.</short>
</element>
<element name="TCustomStringGrid.DrawCellAutonumbering">
<short>Performs auto-numbering for a cell in the grid.</short>
<descr>
<p>
Renders the row number for non-fixed rows in the grid control. Calls the
inherited DrawCellAutoNumbering method when the cell at ACol and ARow
contains an empty string ('').
</p>
<p>
Called from the DefaultDrawCell method when goFixedRowNumbering is included
in Options.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomStringGrid.DrawCellAutonumbering.aCol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomStringGrid.DrawCellAutonumbering.aRow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomStringGrid.DrawCellAutonumbering.aRect">
<short>Rectangle where the cell is drawn.</short>
</element>
<element name="TCustomStringGrid.DrawCellAutonumbering.aValue">
<short>Text to display as the auto-numbering value.</short>
</element>
<element name="TCustomStringGrid.GetCells">
<short>Gets the value for the indexed Cells property.</short>
<descr/>
<seealso/>
</element>
<element name="TCustomStringGrid.GetCells.Result">
<short>Value for the indexed Cells property.</short>
</element>
<element name="TCustomStringGrid.GetCells.ACol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomStringGrid.GetCells.ARow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomStringGrid.GetCheckBoxState">
<short>Gets the state for a cell displayed as a Checkbox.</short>
<descr/>
<seealso/>
</element>
<element name="TCustomStringGrid.GetCheckBoxState.aCol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomStringGrid.GetCheckBoxState.aRow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomStringGrid.GetCheckBoxState.aState">
<short>Checkbox state derived for the specified cell.</short>
</element>
<element name="TCustomStringGrid.GetEditText">
<short>Gets the text displayed in the Editor for the specified cell.</short>
<descr>
<p>
<var>GetEditText</var> is an overridden method used to get the text
displayed in the Editor for the cell with the specified column and row
numbers. GetEditText re-implements the method defined in the ancestor class.
</p>
<p>
The return value contains the string stored in <var>Cells</var> at the
specified column and row numbers.
</p>
<p>
GetEditText signals the <var>OnGetEditText</var> event handler (when
assigned) to validate or modify the return value for the method.
</p>
</descr>
<seealso>
<link id="TCustomGrid.GetEditText"/>
<link id="TCustomDrawGrid.GetEditText"/>
</seealso>
</element>
<element name="TCustomStringGrid.GetEditText.Result">
<short>
Textual content for the cell at the specified column and row number.
</short>
</element>
<element name="TCustomStringGrid.GetEditText.aCol">
<short>Column number for the cell value.</short>
</element>
<element name="TCustomStringGrid.GetEditText.aRow">
<short>Row number for the cell value.</short>
</element>
<element name="TCustomStringGrid.LoadContent">
<short>
Loads configuration settings from the specified XML configuration file.
</short>
<descr>
<p>
Loads values for the <var>Cells</var> property when enabled in the
configuration file.
</p>
</descr>
<seealso>
<link id="TCustomGrid.LoadContent"/>
</seealso>
</element>
<element name="TCustomStringGrid.LoadContent.cfg" link="#lcl.grids.TCustomGrid.LoadContent.cfg"/>
<element name="TCustomStringGrid.LoadContent.Version" link="#lcl.grids.TCustomGrid.LoadContent.Version"/>
<element name="TCustomStringGrid.Loaded">
<short>
Performs actions when LCL component streaming has been completed.
</short>
<descr>
<p>
Calls the inherited method on entry, and sets the value for the
<var>Modified</var> property to <b>False</b>.
</p>
</descr>
<seealso>
<link id="TCustomGrid.Loaded"/>
</seealso>
</element>
<element name="TCustomStringGrid.SaveContent">
<short>
Saves configuration settings from SaveOptions and optionally values from
Cells in the specified XML configuration file.
</short>
<descr/>
<seealso>
<link id="TCustomGrid.SaveContent"/>
</seealso>
</element>
<element name="TCustomStringGrid.SaveContent.cfg" link="#lcl.grids.TCustomGrid.SaveContent.cfg"/>
<element name="TCustomStringGrid.SelectionSetText">
<short>
Stores the specified Tab-separated values to the Selection in the grid.
</short>
<descr/>
<seealso>
<link id="TCustomDrawGrid.Selection"/>
</seealso>
</element>
<element name="TCustomStringGrid.SelectionSetText.TheText">
<short>
Text with the tab-separated values stored to the cells in Selection.
</short>
</element>
<element name="TCustomStringGrid.SelectionSetHTML">
<short>
Sets the value for the current Selection to the specified HTML content.
</short>
<descr>
<p>
Extracts text for rows and columns in the grid from the HTML-tagged content
in TheHTML. Recognizes and converts the following HTML tags:
</p>
<ul>
<li>BR</li>
<li>TR</li>
<li>TD</li>
</ul>
<p>
Converts HTML numeric character entities to their UTF-8-encoded character
equivalent. Unrecognized character entities are converted to a Question Mark
character (?).
</p>
<p>
Calls DoCellProcess to paste the values extracted from the HTML content. The
value in TheText is used when TheHTML does not contain valid HTML that can
be handled in the method. Cells affected in the method are assigned as the
current Selection in the grid control prior to exit.
</p>
<p>
Called from the DoPasteFromClipboard method when the clipboard supports the
HTML format.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomStringGrid.SelectionSetHTML.TheHTML">
<short>HTML stored in the current selection.</short>
</element>
<element name="TCustomStringGrid.SelectionSetHTML.TheText">
<short>Textual representation for the HTML content.</short>
</element>
<element name="TCustomStringGrid.SetCells">
<short>Sets the value for the indexed Cells property.</short>
<descr/>
<seealso/>
</element>
<element name="TCustomStringGrid.SetCells.ACol">
<short>Column number for the affected cell.</short>
</element>
<element name="TCustomStringGrid.SetCells.ARow">
<short>Row number for the affected cell.</short>
</element>
<element name="TCustomStringGrid.SetCells.AValue">
<short>New value for the indexed Cells property.</short>
</element>
<element name="TCustomStringGrid.SetCheckboxState">
<short>Sets the checked state for a check box in the specified cell.</short>
<descr/>
<seealso/>
</element>
<element name="TCustomStringGrid.SetCheckboxState.aCol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomStringGrid.SetCheckboxState.aRow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomStringGrid.SetCheckboxState.aState">
<short>Checked state for the cell.</short>
</element>
<element name="TCustomStringGrid.SetEditText">
<short>
Locks, updates, and unlocks the editor and cell text at the specified
coordinates.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomStringGrid.SetEditText.aCol">
<short>Column number for the modified cell.</short>
</element>
<element name="TCustomStringGrid.SetEditText.aRow">
<short>Row number or the modified cell.</short>
</element>
<element name="TCustomStringGrid.SetEditText.aValue">
<short>New value for the modified cell.</short>
</element>
<element name="TCustomStringGrid.Modified">
<short>
Indicates whether the content in the grid cells has been changed.
</short>
<descr>
<p>
<var>Modified</var> is a <var>Boolean</var> property which indicates whether
the cell content in the grid control has been changed. Modified is set to
<b>True</b> when the <var>Cells</var> property is updated and the
<var>SetCells</var> method is called to apply the new value. This occurs when
a cell is edited using a built-in cell editor, or when a value is directly
assigned to the Cells property.
</p>
<p>
<var>Modified</var> is set to <b>False</b> when the control is Loaded using
the LCL streaming mechanism.
</p>
<p>
Methods which use Cells to indirectly assign value(s) also set Modified to
<b>True</b>. These include: AssignTo, SelectionSetText, SelectionSetHTML,
SetCheckBoxState, SetEditText, LoadContent, Clean, InsertRowWithValues,
LoadContent, LoadFromFile, LoadFromStream, LoadFromCSVFile and
LoadFromCSVStream.
</p>
<p>
In contrast, methods which perform row or column operations without changing
Cells do <b>not</b> cause the Modified property to be set. These are generally
methods from an ancestor class where Modified does not exist, and include:
ClearCols, ClearRows, DeleteColRow, DeleteCol, DeleteRow, ExchangeColRow,
InsertColRow, MoveColRow, SortColRow, DoOPDeleteColRow, DoOPExchangeColRow,
DoOPInsertColRow, and DoOPMoveColRow.
</p>
<p>
The event handlers signalled from these methods can be used to update the
value in Modified, including: OnColRowDeleted, OnColRowExchanged,
OnColRowInserted, OnColRowMoved, and OnCompareCells. Or, as an alternative,
update Modified from an event handler like OnClick assigned to the control
which triggers one of these operations.
</p>
<p>
Methods which save the grid content do <b>not</b> reset the value in Modified
when the operation is completed. These include: SaveContent, SaveToFile,
SaveToCSVFile, SaveToStream, and SaveToCSVStream. These actions are triggered
by a control in the application, and its OnClick or OnExecute handler can be
used to set the value in Modified.
</p>
</descr>
<seealso>
<link id="TCustomStringGrid.Cells"/>
<link id="TCustomStringGrid.SetCells"/>
</seealso>
</element>
<element name="TCustomStringGrid.OnCellProcess">
<short>
Event handler signalled when copying or pasting content for Cells in the grid.
</short>
<descr>
<p>
Allows the textual value for the clipboard operation (not the HTML
interchange data) to be changed before it is applied. Signalled from the
DoCellProcess method when assigned.
</p>
</descr>
<seealso/>
</element>
<!-- public -->
<element name="TCustomStringGrid.Create">
<short>Constructor for the class instance.</short>
<descr>
<p>
<var>Create</var> -is the constructor for <var>TCustomStringGrid</var>. It
calls the inherited <var>Create</var> method, and sets default styles,
layout and alignment used in the class instance.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.Create"/>
</seealso>
</element>
<element name="TCustomStringGrid.Create.AOwner">
<short>Owner of the class instance.</short>
</element>
<element name="TCustomStringGrid.Destroy">
<short>Destructor for the class instance.</short>
<descr>
<p>
<var>Destroy</var> is the destructor for <var>TCustomStringGrid</var>. It
frees maps of columns and rows, and calls the inherited <var>Destroy</var>
method.
</p>
</descr>
<seealso>
<link id="TCustomDrawGrid.Destroy"/>
</seealso>
</element>
<element name="TCustomStringGrid.AutoSizeColumn">
<short>
Automatically adjusts the width of a column to accommodate the widest text
value in the column.
</short>
<descr>
<p>
<var>AutoSizeColumn</var> sets the column width to the length of the widest
text found in the column specified by <var>ACol</var>.
</p>
<p>
AutoAdjustColumn is called to determine the width needed for the specified
column number. The measurement includes optional title images and sort
indicators for column headers, the text displayed for the cells using the
Font or TitleFont for the control, and cell padding. Each row is visited to
measure the content displayed in the column.
</p>
<p>
The calculated width is stored in ColWidths at the position in ACol.
</p>
<p>
Use AutoSizeColumns to calculated the sizes for all Columns on the grid
control.
</p>
<p>
Include <var>goDblClickAutoSize</var> in the Options property to allow
columns to be automatically resized when a mouse double Click occurs on the
border in a cell header. In other words, when the resize cursor is visible.
</p>
</descr>
<seealso>
<link id="TCustomStringGrid.AutoAdjustColumn"/>
<link id="TCustomStringGrid.AutoSizeColumns"/>
<link id="TCustomStringGrid.Cells"/>
<link id="TCustomDrawGrid.ColWidths"/>
<link id="TCustomGrid.Columns"/>
<link id="TCustomGrid.Options"/>
<link id="TGridColumn"/>
<link id="TGridOptions"/>
<link id="TGridOption"/>
</seealso>
</element>
<element name="TCustomStringGrid.AutoSizeColumn.aCol">
<short>Column number resized in the method.</short>
</element>
<element name="TCustomStringGrid.AutoSizeColumns">
<short>
Resizes all columns to accommodate the longest text value in each column.
</short>
<descr>
<p>
Automatically resizes all columns by adjusting them to fit in the longest
text in each column. This is a quick way to perform the
<var>AutoAdjustColumn</var> method for every column in the grid.
</p>
<p>
AutoSizeColumns calls the AutoAdjustColumn method for column numbers in the
range 0..ColCount-1. Calculated column widths are stored at the corresponding
positions in the ColWidths property.
</p>
<p>
Use AutoSizeColumn to adjust the width for a single column on the grid
control.
</p>
</descr>
<seealso>
<link id="TCustomStringGrid.AutoAdjustColumn"/>
<link id="TCustomStringGrid.AutoSizeColumn"/>
<link id="TCustomStringGrid.Cells"/>
<link id="TCustomDrawGrid.ColWidths"/>
<link id="TCustomGrid.Columns"/>
<link id="TCustomGrid.Options"/>
<link id="TGridColumn"/>
</seealso>
</element>
<element name="TCustomStringGrid.Clean">
<short>
Removes cell content which match the specified options.
</short>
<descr>
<p>
Cleans all cells in the grid subject to the given <var>CleanOptions</var>,
optionally specifying a range of cells or a rectangular region. See <link
id="TGridZoneSet"/> for more information.
</p>
<p>
The cleaning operation does not change the number of rows and columns on the
grid control. It replaces the content for the affected cells with empty
strings ('').
</p>
<p>
Some examples:
</p>
<p>
<b>Clean all cells:</b>
</p>
<code>
// the same as grid.clean
grid.Clean([]);
</code>
<p>
<b>Clean all non-fixed cells:</b>
</p>
<p>
text
</p>
<code>
grid.Clean([gzNormal]);
</code>
<p>
<b>Clean all cells except fixed grid columns:</b>
</p>
<code>
// leaves cell content in fixed columns
grid.Clean([gzNormal, gzFixedRows]);
</code>
<p>
<b>Clean non-fixed cells in a rectangular region:</b>
</p>
<code>
// 4x3 cell area after fixed columns and rows
grid.Clean(grid.FixedCols, grid.FixedRows, grid.FixedCols+3,
grid.FixedRols+2, [gzNormal])
</code>
<p>
Use Clear to remove all columns and rows on the grid.
</p>
<p>
Use ColCount, FixedCols, RowCount, and FixedRows to adjust the number of
columns or rows for the specific types.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomStringGrid.Clean.CleanOptions">
<short>Set with the grid zones affected in the method.</short>
</element>
<element name="TCustomStringGrid.Clean.aRect">
<short>Rectangle with the bounds for the affected cells.</short>
</element>
<element name="TCustomStringGrid.Clean.StartCol">
<short>Starting column number for the operation.</short>
</element>
<element name="TCustomStringGrid.Clean.StartRow">
<short>Starting row number for the operation.</short>
</element>
<element name="TCustomStringGrid.Clean.EndCol">
<short>Ending column number for the operation.</short>
</element>
<element name="TCustomStringGrid.Clean.EndRow">
<short>Ending row number for the operation.</short>
</element>
<element name="TCustomStringGrid.CopyToClipboard">
<short>Copies the current Selection range to the clipboard.</short>
<descr>
<p>
<var>CopyToClipboard</var> will copy a range of cells into the clipboard. The
cell values are stored in a Tab-delimited format. The cell selection range is
based on the optional <var>AUseSelection</var> parameter (which is
<b>False</b> by default) and indicates the range is set to the whole grid,
including fixed columns and rows. If <var>AUseSelection</var> is <b>True</b>,
the range of cells is set to the current values in the <link
id="TCustomGrid.Selection"/> property.
</p>
<remark>
TCustomStringGrid provides run-time support for pasting cell values from the
clipboard, but is limited to a single selection range. Pasting
multi-selections is problematic since the ranges can represent non-adjacent
cell areas. For this reason, a PasteFromClipboard method is not implemented
in TCustomStringGrid. No actions are performed when Ctrl+V is pressed and
HasMultiSelection returns <b>True</b>.
</remark>
</descr>
<seealso>
<link id="TCustomGrid.Selection"/>
<link id="TCustomStringGrid.DoPasteFromClipboard"/>
<link id="TCustomGrid.HasMultiSelection"/>
</seealso>
</element>
<element name="TCustomStringGrid.InsertRowWithValues">
<short>
Inserts a row at the specified row position with the specified cell values.
</short>
<descr>
<p>
<var>InsertRowWithValues</var> is a method used to insert a row at the
position in <var>Index</var> with the cell content in <var>Values</var>.
</p>
<p>
InsertRowWithValues examines Values to determine whether the grid has a
column for each of the string values. When Values has more entries than
columns available in ColCount, new columns are added to the grid. When
Columns has been Enabled, the Add method in Columns is called to create any
missing column definitions. The title for a column added to the collection is
set to an empty string (''). When Columns has not been enabled, the value in
ColCount is set to the length of the Values array.
</p>
<p>
InsertRowWithValues calls InsertColRow to increment the row count for the
grid, and assigns each String in Values to the corresponding Cells in the
grid control.
</p>
<p>
Use DeleteRow to remove a row at a specific row number in the grid.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomStringGrid.InsertRowWithValues.Index">
<short>Row where the values are inserted.</short>
</element>
<element name="TCustomStringGrid.InsertRowWithValues.Values">
<short>Array with string values inserted in the method.</short>
</element>
<element name="TCustomStringGrid.LoadFromCSVStream">
<short>
Loads the grid content from the delimited values in AStream.
</short>
<descr>
<p>
<var>LoadFromCSVStream</var> is a method used to load content in the grid
from comma-separated values stored in the specified stream.
</p>
<p>
<var>AStream</var> is the TStream instance where the delimited values are
stored.
</p>
<p>
<var>ADelimiter</var> is a character which identifies the delimiter used
between column values on a row. Its default value is ',' (Comma) (decimal
44), but can be changed to another character value if needed.
</p>
<p>
Each row of values is terminated by a Carriage Return (Decimal 13) or Line
Feed (Decimal 10) character. CR+LF may also be used. When LoadFromCSVStream
encounters either of the characters, it is processed as an end-of-line
marker.
</p>
<p>
<var>UseTitles</var> indicates whether the first row of values in the stream
are treated as fixed column titles in the grid. When set to <b>True</b>,
each column value is stored as the caption for the corresponding entry in
the Columns collection (when enabled). If Columns are not used, the values
are stored as Cell data in row number 0. When set to <b>False</b>, the first
row is treated as cell data. The default value is <b>True</b>.
</p>
<p>
<var>FromLine</var> indicates the ordinal line number in AStream that is the
first row loaded in the method. The default value is 0, and causes stream
processing to begin at the first line. When a positive non-zero value is
used, the lines are skipped by reading the corresponding number of
end-of-line sequences from the stream.
</p>
<p>
<var>SkipEmptyLines</var> indicates whether blank lines are skipped when the
row and column values are loaded in the method. The default value is
<b>True</b>, and causes any row with a single empty column value to be
skipped.
</p>
<p>
LoadFromCSVStream calls the LoadFromCSVStream routine in the
<file>LCSVUtils</file> unit to load values from the stream. This routine
provides support for converting character encodings when needed.
</p>
<p>
LoadFromCSVStream ensures that the grid control has enough columns to
represent the values read for each record or row in the stream. When Columns is
enabled (i. e. Columns.Count has a non-zero value), the Delete and Add methods
in Columns are called to recreate column definitions for the number of
delimited values read from the stream. If this occurs on the first line and
UseTitles is enabled, each value in the row is stored as the Title for the
corresponding TGridColumn instance in Columns. If Columns is not enabled, the
value in ColCount is updated with the number of columns read from the stream
and the values are stored in the first row (0) in the Cells property.
</p>
<p>
Please note that updates to the control occur in a BeginUpdate..EndUpdate
block. This suppresses redrawing the control until all columns and rows in
the stream have been loaded.
</p>
<p>
Use LoadFromCSVFile to load grid content from a file containing the
comma-separated values.
</p>
<p>
Use SaveToCSVFile or SaveToCSVStream to store the content in the grid as
comma-separated values.
</p>
</descr>
<seealso>
<link id="TCustomStringGrid.LoadFromCSVFile"/>
<link id="TCustomStringGrid.SaveToCSVFile"/>
<link id="TCustomStringGrid.SaveToCSVStream"/>
<link id="TCustomStringGrid.Cells"/>
<link id="TCustomDrawGrid.Columns"/>
<link id="TCustomDrawGrid.ColCount"/>
<link id="TCustomDrawGrid.FixedRows"/>
<link id="TGridColumns"/>
<link id="TGridColumn.Title"/>
<link id="#lazutils.lcsvutils.LoadFromCSVStream">LoadFromCSVStream</link>
</seealso>
</element>
<element name="TCustomStringGrid.LoadFromCSVStream.AStream">
<short>Stream with the content loaded in the method.</short>
</element>
<element name="TCustomStringGrid.LoadFromCSVStream.ADelimiter">
<short>
Delimiter between cell data in the stream; default is Comma (',').
</short>
</element>
<element name="TCustomStringGrid.LoadFromCSVStream.UseTitles">
<short>
Indicates if Column captions are loaded from values in the stream.
</short>
</element>
<element name="TCustomStringGrid.LoadFromCSVStream.FromLine">
<short>
Initial line number in the stream included in the grid content; default is 0.
</short>
</element>
<element name="TCustomStringGrid.LoadFromCSVStream.SkipEmptyLines">
<short>
Indicates if empty lines in the stream are ignored in the method.
</short>
</element>
<element name="TCustomStringGrid.LoadFromCSVFile">
<short>
Loads the grid from a file with delimited values for the columns and rows.
</short>
<descr>
<p>
LoadFromCSVFile is a method used to delimited values from the file name in
<var>AFilename</var>. It creates a temporary <var>TFileStream</var> instance
that is used to load values from the file by calling the
<var>LoadFromCSVStream</var> method.
</p>
<p>
<var>ADelimiter</var> is a character which identifies the delimiter used
between column values on a row. Its default value is ',' (Comma) (decimal
44), but can be changed to another character value if needed.
</p>
<p>
Each row of values is terminated by a Carriage Return (Decimal 13) or Line
Feed (Decimal 10) character. CR+LF may also be used. When either of the
characters is encountered, they are processed as an end-of-line
marker.
</p>
<p>
<var>UseTitles</var> indicates whether the first row of values in the file
are treated as fixed column titles in the grid. When set to <b>True</b>,
each column value is stored as the caption for the corresponding entry in
the Columns collection (when enabled). The Columns collection is enabled when
its Count property has a positive non-zero value. If Columns are not used, the
values are stored as Cell data in row 0. If UseTitles is set to <b>False</b>,
the first row is treated as Cell data in row 0. The default value for UseTitles
is <b>True</b>.
</p>
<p>
<var>FromLine</var> indicates the ordinal line number that is the first row
loaded in the method. The default value is 0, and causes processing to begin
at the first line. When a positive non-zero value is used, the specified number
of lines are skipped by reading the corresponding number of end-of-line
sequences.
</p>
<p>
<var>SkipEmptyLines</var> indicates whether blank lines are skipped when the
row and column values are loaded in the method. The default value is
<b>True</b>, and causes any row with a single empty column value to be
skipped.
</p>
<p>
Use LoadFromCSVStream to load delimited row and column values from a TStream
instance.
</p>
<p>
Use SaveToCSVFile or SaveToCSVStream to store the content in the grid as
comma-separated values.
</p>
</descr>
<seealso>
<link id="TCustomStringGrid.LoadFromCSVStream"/>
<link id="TCustomStringGrid.SaveToCSVFile"/>
<link id="TCustomStringGrid.SaveToCSVStream"/>
<link id="TCustomStringGrid.Cells"/>
<link id="TCustomDrawGrid.Columns"/>
<link id="TCustomDrawGrid.ColCount"/>
<link id="TCustomDrawGrid.FixedRows"/>
<link id="TGridColumns"/>
<link id="TGridColumn.Title"/>
<link id="#lazutils.lcsvutils.LoadFromCSVFile">LoadFromCSVFile</link>
</seealso>
</element>
<element name="TCustomStringGrid.LoadFromCSVFile.AFilename">
<short>File name with the content loaded in the method.</short>
</element>
<element name="TCustomStringGrid.LoadFromCSVFile.ADelimiter">
<short>
Delimiter between cell values in the file; default is Comma (',').
</short>
</element>
<element name="TCustomStringGrid.LoadFromCSVFile.UseTitles">
<short>
Indicates if column captions are loaded from values in the file.
</short>
</element>
<element name="TCustomStringGrid.LoadFromCSVFile.FromLine">
<short>
Initial line number from the file loaded in the method.
</short>
</element>
<element name="TCustomStringGrid.LoadFromCSVFile.SkipEmptyLines">
<short>
Indicates if empty lines in the file are ignored in the method.
</short>
</element>
<element name="TCustomStringGrid.SaveToCSVStream">
<short>
Saves grid content as comma-separated values in the specified stream
instance.
</short>
<descr>
<p>
<var>SaveToCSVStream</var> is a method used to save values in the grid as
comma-separated values in the specified stream instance.
</p>
<p>
<var>AStream</var> is the TStream instance where the grid content is written
in the method.
</p>
<p>
<var>ADelimiter</var> is the character used as the delimiter between cell
values on each row. The default value is ',' (Comma)(Decimal 44), but can be
changed to another value if needed.
</p>
<p>
<var>WriteTitles</var> indicates whether column titles are written at the
beginning of the stream. When set to <b>True</b>, column headers are
included in the output. If the Columns collection has been enabled, the
titles are read from the TGridColumn instances in the collection. If Columns
has not been enabled, the cells in the FixedRows are written. When set to
<b>False</b>, titles are omitted from the values output to the stream. The
default value for the property is <b>True</b>.
</p>
<p>
<var>VisibleColumnsOnly</var> indicates whether the CSV output contains only
visible columns on the grid. This capability is enabled when the Columns
collection is used to defined the columns and their visibility. When set to
<b>True</b>, any TGridColumn instance with its Visible property set to
<b>True</b> is included in the output.
</p>
<p>
If Columns has not been enabled, all of the columns are by default visible
and written to the stream - regardless of the value in the argument. The
default value for the argument is <b>False</b>, and allows all columns to be
written to the output stream.
</p>
<p>
SaveToCSVStream processes values in the grid in row order. Each column
included in the output is written using the value in ADelimiter to separate
the adjacent column values. A column value is enclosed by quote characters
if its content contains whitespace or the delimiter character defined in
ADelimiter. Each row is terminated with the end-of-line sequence used in the
LCL platform.
</p>
<p>
No actions are performed in the method if either RowCount or ColCount are
set to 0.
</p>
<p>
Please note: the stream position in AStream is not changed after values are
written to the stream. It is positioned at the end of the stream. Use the
Seek method or the Position property in AStream to change the stream
position when needed.
</p>
<p>
Use SaveToCSVFile to save the grid content as comma-separated values to a
given file name.
</p>
<p>
Use LoadFromCSVStream or LoadFromCSVFile to load the content in the grid
control from comma-separated values in a stream or file.
</p>
</descr>
<seealso>
<link id="TCustomStringGrid.SaveToCSVFile"/>
<link id="TCustomStringGrid.Rows"/>
<link id="TCustomDrawGrid.FixedRows"/>
<link id="TCustomDrawGrid.Columns"/>
<link id="TGridColumns.Enabled"/>
<link id="TGridColumn.Title"/>
<link id="#rtl.classes.TStream">TStream</link>
</seealso>
</element>
<element name="TCustomStringGrid.SaveToCSVStream.AStream">
<short>Stream where the grid content is stored.</short>
</element>
<element name="TCustomStringGrid.SaveToCSVStream.ADelimiter">
<short>
Delimiter between cell values on the same row; default is Comma (',').
</short>
</element>
<element name="TCustomStringGrid.SaveToCSVStream.WriteTitles">
<short>
Indicates that column titles are stored as the first row in the
comma-separated values. <b>False</b> omits column titles in the output.
</short>
</element>
<element name="TCustomStringGrid.SaveToCSVStream.VisibleColumnsOnly">
<short>
Indicates if only visible columns are included in the CSV output.
</short>
</element>
<element name="TCustomStringGrid.SaveToCSVFile">
<short>
Saves grid content as comma-separated values in the specified file name.
</short>
<descr>
<p>
<var>SaveToCSVFile</var> is a method used to store the contents of the grid
control as comma-separated values in the specified file name.
</p>
<p>
<var>AFileName</var> contains the qualified path and file name where the CSV
data is stored.
</p>
<p>
<var>ADelimiter</var> is the character used as the delimiter between cell
values on each row. The default value is ',' (Comma)(Decimal 44), but can be
changed to another value if needed.
</p>
<p>
<var>WriteTitles</var> indicates whether column titles are written at the
beginning of the file. When set to <b>True</b>, column headers are included
in the output. If the Columns collection has been enabled, the titles are
read from the TGridColumn instances in the collection. If Columns has not
been enabled, the cells in the FixedRows are written. When set to
<b>False</b>, titles are omitted from the values output to the file. The
default value for the property is <b>True</b>.
</p>
<p>
<var>VisibleColumnsOnly</var> indicates whether the CSV output contains only
visible columns on the grid. This capability is enabled when the Columns
collection is used to defined the columns and their visibility. When set to
<b>True</b>, any TGridColumn instance with its Visible property set to
<b>True</b> is included in the output.
</p>
<p>
If Columns has not been enabled, all of the columns are by default visible
and written to the file - regardless of the value in the argument. The
default value for the argument is <b>False</b>, and allows all columns to be
written to the output file.
</p>
<p>
SaveToCSVFile creates a temporary TFileStream instance and calls
SaveToCSVStream to process rows the and columns in the grid.
</p>
<p>
Use SaveToCSVStream to save the grid content as comma-separated values to a
TStream instance.
</p>
<p>
Use LoadFromCSVStream or LoadFromCSVFile to load the content in the grid
control from comma-separated values in a stream or file.
</p>
</descr>
<seealso>
<link id="TCustomStringGrid.SaveToCSVStream"/>
<link id="TCustomStringGrid.LoadFromCSVStream"/>
<link id="TCustomStringGrid.LoadFromCSVFile"/>
<link id="TCustomStringGrid.Rows"/>
<link id="TCustomStringGrid.Cells"/>
<link id="TCustomDrawGrid.FixedRows"/>
<link id="TCustomDrawGrid.Columns"/>
<link id="TGridColumns.Enabled"/>
<link id="TGridColumn.Title"/>
</seealso>
</element>
<element name="TCustomStringGrid.SaveToCSVFile.AFileName">
<short>File name (with optional path) where CSV data is stored.</short>
</element>
<element name="TCustomStringGrid.SaveToCSVFile.ADelimiter">
<short>
Delimiter used between cell values in CSV output; default is Comma (',').
</short>
</element>
<element name="TCustomStringGrid.SaveToCSVFile.WriteTitles">
<short>
Indicates if column captions are written as the first row of CSV data in the
file. <b>False</b> omits column titles in the output.
</short>
</element>
<element name="TCustomStringGrid.SaveToCSVFile.VisibleColumnsOnly">
<short>
Indicates if only visible columns are included in the CSV output.
</short>
</element>
<element name="TCustomStringGrid.Cells">
<short>
Provides indexed access to a cell value by its column and row number.
</short>
<descr>
<p>
<var>Cells</var> is an indexed <var>String</var> property used to read or
write the content for a cell in the grid. The ACol and ARow indexes are used
the access a value stored at the requested column and row position.
</p>
<p>
Reading the value causes the pointer to the cell in <var>Celda</var> to
return its Text value.
</p>
<p>
Setting the value causes the pointer to the cell in Celda to be updated for
the specified coordinates. An active cell editor will be cancelled if it is
not locked, and the value in <var>Modified</var> is reset to <b>False</b>.
</p>
<p>
Use Objects to read or write an associated TObject instance for a given cell.
</p>
</descr>
<seealso>
<link id="TCustomStringGrid.Modified"/>
<link id="TVirtualGrid.Celda"/>
</seealso>
</element>
<element name="TCustomStringGrid.Cells.ACol">
<short>Column number for the cell value.</short>
</element>
<element name="TCustomStringGrid.Cells.ARow">
<short>Row number for the cell value.</short>
</element>
<element name="TCustomStringGrid.Cols">
<short>
Provides indexed access to the list of values for the specified column number.
</short>
<descr>
<p>
<var>Cols</var> is an indexed <var>TStrings</var> property which provides
access to the list of values for the column number specified in Index. Read
access calls MapGetColsRows to retrieve the TStrings instance used as the
value for the property.
</p>
<p>
The Cols implementation in Lazarus is different than the one in Delphi. In
Lazarus, a new TStrings instance is created and used to retrieve the cell
content. The programmer is responsible for freeing the object after use.
Failure to do so will result in a memory leak.
</p>
<p>
Cast the property value to TStringList to use the features introduced in the
descendent class. For example:
</p>
<p>
<b>Avoid a memory leak when updating column content:</b>
</p>
<code>
// this will cause a memory leak because the returned TStrings is not freed
Grid.Cols[1].CommaText := '1,2,3,4,5';
Grid.Cols[2].Text := 'a'+#13#10+'s'+#13#10+'d'+#13#10+'f'+#13#10+'g';
// avoids the memory leak from above
Lst := TStringList.Create;
Lst.CommaText := '1,2,3,4,5';
Grid.Cols[1] := Lst;
Lst.Free;
Lst := TStringList.Create;
Grids.Text := 'a'+#13#10+'s'+#13#10+'d'+#13#10+'f'+#13#10+'g';
Grid.Cols[2] := Lst;
Lst.Free;
</code>
<p>
<b>Store values from a string grid column to a list box:</b>
</p>
<code>
procedure TForm1.FillListBox1;
var
StrTempList: TStringList;
begin
StrTempList := TStringList(Grid.Cols[4]);
if StrTempList <> nil then
begin
ListBox1.Items.Assign(StrTempList);
StrTempList.Free;
end;
end;
</code>
</descr>
<seealso/>
</element>
<element name="TCustomStringGrid.Cols.Index">
<short>Column number for the values.</short>
</element>
<element name="TCustomStringGrid.DefaultTextStyle" link="#lcl.grids.TCustomGrid.DefaultTextStyle"/>
<element name="TCustomStringGrid.EditorMode" link="#lcl.grids.TCustomGrid.EditorMode"/>
<element name="TCustomStringGrid.ExtendedSelect" link="#lcl.grids.TCustomGrid.ExtendedSelect"/>
<element name="TCustomStringGrid.Objects">
<short>
Provides indexed access to a TObject instance associated with the cell.
</short>
<descr/>
<p>
<var>Objects</var> is an indexed <var>TObject</var> property which is used
to associate an object instance with the cell specified in the ACol and ARow
index values. The property value can be any TObject descendant. The
application must allocate and free the object instance, and must ensure it
is cast to the correct type when retrieved.
</p>
<p>
While values in Cells and Objects are related, they are handled
independently. The value in Objects is not changed when a new value is
assigned to Cells.
</p>
<p>
Values stored in Objects are set to Nil when the Clean method is called to
remove content in the grid. The application is responsible for allocating
and freeing resources in Objects.
</p>
<p>
Values for the Objects property are not included in the grid data read and
written during LCL component streaming. They are not handled by the
LoadContent and SaveContent either. The property values are available at
run-time only.
</p>
<seealso/>
</element>
<element name="TCustomStringGrid.Objects.ACol">
<short>Column number for the cell with the object instance.</short>
</element>
<element name="TCustomStringGrid.Objects.ARow">
<short>Row number for the cell with the object instance.</short>
</element>
<element name="TCustomStringGrid.Rows">
<short>
Provides indexed access to the list of column values for the specified row
number.
</short>
<descr>
<p>
<var>Rows</var> is an indexed <var>TStrings</var> property which provides
access to the list with the String values for the columns in the row number
specified in <var>Index</var>. Calls <var>MapGetColsRows</var> to retrieve
the <var>TStrings</var> instance used as the value for the property.
</p>
<p>
The Rows implementation in Lazarus is different than the one in Delphi. In
Lazarus, a new TStrings instance is created and used to retrieve the cell
content. The programmer is responsible for freeing the object after use.
Failure to do so will result in a memory leak.
</p>
<p>
Cast the property value to TStringList to use the features introduced in the
descendent class. For example:
</p>
<p>
<b>Avoid a memory leak when updating column content:</b>
</p>
<code>
// this will cause a memory leak because the returned TStrings is not freed
Grid.Rows[1].CommaText := '1,2,3,4,5';
Grid.Rows[2].Text := 'a'+#13#10+'s'+#13#10+'d'+#13#10+'f'+#13#10+'g';
// avoids the memory leak from above
Lst := TStringList.Create;
Lst.CommaText := '1,2,3,4,5';
Grid.Rows[1] := Lst;
Lst.Free;
Lst := TStringList.Create;
Grids.Text := 'a'+#13#10+'s'+#13#10+'d'+#13#10+'f'+#13#10+'g';
Grid.Rows[2] := Lst;
Lst.Free;
</code>
<p>
<b>Store values from a string grid row to a list box:</b>
</p>
<code>
procedure TForm1.FillListBox1;
var
StrTempList: TStringList;
begin
StrTempList := TStringList(Grid.Rows[4]);
if StrTempList <> nil then
begin
ListBox1.Items.Assign(StrTempList);
StrTempList.Free;
end;
end;
</code>
</descr>
<seealso/>
</element>
<element name="TCustomStringGrid.Rows.Index">
<short>Row number for the values.</short>
</element>
<element name="TCustomStringGrid.UseXORFeatures" link="#lcl.grids.TCustomGrid.UseXORFeatures"/>
<element name="TCustomStringGrid.ValidateOnSetSelection" link="#lcl.grids.TCustomGrid.ValidateOnSetSelection"/>
<element name="TStringGrid">
<short>
Implements a grid specialized for textual content.
</short>
<descr>
<p>
<var>TStringGrid</var> is a <var>TCustomStringGrid</var> descendant which
implements a specialized grid for displaying textual content in a matrix of
columns and rows.
</p>
<p>
TStringGrid is designed for use with string content stored in its cells.
Internally, columns and rows in the class are mapped to
<var>TStringGridStrings</var> instances used to store the values in the grid
control. TStringGrid also allows a <var>TObject</var> instance to be stored
for each cell in the grid using the <var>Objects</var> property.
</p>
<p>
TStringGrid sets the visibility for properties defined in the ancestor
class. It has an overridden <var>WSRegisterClass</var> method to register
properties (from older LCL versions) which are no longer used in LCL
component streaming.
</p>
<p>
<b>Key properties:</b>
</p>
<p>
The <link id="TCustomGrid.ColCount">ColCount</link> and <link
id="TCustomGrid.RowCount">RowCount</link> properties contain the column and
row count of the grid.
</p>
<p>
The <link id="TCustomGrid.FixedCols">FixedCols</link> and <link
id="TCustomGrid.FixedRows">FixedRows</link> properties specify the count of
fixed columns or rows that are used for headings.
</p>
<p>
The column widths and row heights of the grid are accessible with the <link
id="TCustomGrid.ColWidths">ColWidths</link> and <link
id="TCustomGrid.RowHeights">RowHeights</link> properties.
</p>
<p>
The <link id="TCustomGrid.DefaultColWidth">DefaultColWidth</link> and <link
id="TCustomGrid.DefaultRowHeight">DefaultRowHeight</link> properties are used
to specify default column widths or row heights respectively.
</p>
<p>
The colors used for the cells and other grid elements are specified in the
following properties:
</p>
<ul>
<li><link id="TCustomGrid.AlternateColor">AlternateColor</link></li>
<li><link id="TCustomGrid.BorderColor">BorderColor</link></li>
<li><link id="TCustomGrid.FixedColor">FixedColor</link></li>
<li><link id="TCustomGrid.FixedHotColor">FixedHotColor</link></li>
<li><link id="TCustomGrid.FocusColor">FocusColor</link></li>
<li><link id="TCustomGrid.GridLineColor">GridLineColor</link></li>
</ul>
<p>
The <link id="TCustomGrid.GridWidth">GridWidth</link> and <link
id="TCustomGrid.GridHeight">GridHeight</link> properties contain the
dimension of the entire grid.
</p>
<p>
The <link id="TCustomGrid.ScrollBars">ScrollBars</link> controls the creation
of scroll bars for the grid.
</p>
<p>
The <link id="TCustomGrid.LeftCol">LeftCol</link>, <link
id="TCustomGrid.TopRow">TopRow</link>, <link
id="TCustomGrid.VisibleColCount">VisibleColCount</link> and <link
id="TCustomGrid.VisibleRowCount">VisibleRowCount</link> properties contain
information about the visible area of the grid.
</p>
<p>
The <link id="TCustomGrid.Options">Options</link> controls options for the
grid.
</p>
<p>
<b>Key methods and events:</b>
</p>
<p>
If the user highlights a cell of the grid, the <link
id="TCustomGrid.SelectCell">SelectCell</link> method is called that triggers
the OnSelectCell event. The position of the highlighted cell is stored within
the <link id="TCustomGrid.Col">Col</link> and <link
id="TCustomGrid.Row">Row</link> property.
</p>
<p>
The <link id="TCustomGrid.MouseToCell">MouseToCell</link> method calculates a
grid cell from a given screen position.
</p>
<p>
Huge changes to the grid should be encapsulated in calls to <link
id="TCustomGrid.BeginUpdate">BeginUpdate</link> and <link
id="TCustomGrid.EndUpdate">EndUpdate</link> to speed up the application.
</p>
<p>
Component developers must override the <link
id="TCustomGrid.DrawCell">DrawCell</link> method in customized grid controls.
</p>
<p>
<b>Grid cell selection</b>
</p>
<p>
The location of the current (focused) cell (or row) can be changed using
keyboard, mouse or through code. In order to change cell focus successfully to
another position, we must test the target position to see if it is allowed to
receive cell focus. When using keyboard, the property AutoAdvance performs
part of the process by finding what should be the next focused cell. When
using mouse clicks or moving by code, focus will not move from the current
cell unless the target cell is permitted to receive focus.
</p>
<p>
The grid calls the SelectCell function to see if a cell is focusable: if this
function returns true, then the target cell identified with arguments aCol and
aRow is focusable (the current implementation of TCustomGrid simply returns
true). TCustomDrawGrid and hence TDrawGrid and TStringGrid override this
method to check first if cell is any wider than 0; normally you don't want a 0
width cell selected so a cell with these characteristics is skipped
automatically in the process of finding a suitable cell. The other thing the
overridden method SelectCell does is to call the user configurable event
OnSelectCell: this event receives the cell coordinates as arguments and always
returns a default result value of true.
</p>
<p>
Once a cell is known to be focusable and we are sure a movement will take
place, first the method BeforeMoveSelection is called; this in turns triggers
the OnBeforeSelection event. This method's arguments are the coordinates for
the new focused cell. At this point any visible editor is hidden too. The
"before" word means that selection is not yet changed and current focused
coordinates can be accessed with grid.Col and grid.Row properties.
</p>
<p>
After that, the internal focused cell coordinates are changed and then
MoveSelection method is called; this method's purpose is to trigger the
OnSelection event if set (this is a notification that the focused cell has, by
this time, already changed and cell coordinates are now available through
grid.row and grid.col properties).
</p>
<p>
Note that is not good to use OnSelectCell event to detect cell focus changes,
as this event will be triggered several times even for the same cell in the
process of finding a suitable cell. Is better to use OnBeforeSelection or
OnSelection events for this purpose.
</p>
<p>
<b>Multi-selection</b>
</p>
<p>
The Lazarus grids are able to extend the selection to multiple cells. The
Option goRangeSelect must be active for this purpose: Now you can drag the
mouse over a rectangle on the grid to select all the cells included or
intersected by this rectangle. Or you can click on the cell in one corner,
hold SHIFT down and either click on the opposite corner of the selection, or
press the arrow keys to extend the selection in the corresponding direction.
</p>
<p>
In the default setting of the RangeSelectMode property, rsmSingle, only a
single cell or cell range (rectangle of cells) can be selected, as described.
The rsmMulti mode, however, allows selection of multiple and even
discontiguous cells or ranges. After selecting the first cell/range as already
described, hold the CTRL key down and click on the next cell or drag over the
next range to be selected. Instead of dragging you can also select an
additional range by pressing SHIFT (in addition to CTRL) and clicking on the
opposite corner of the range or pressing the arrow keys.
</p>
<p>
The selected cells are highlighted by a different color. Note, however, that
the currently focused cell has the default background color of the grid unless
you set the Option goDrawFocusSelected.
</p>
<p>
Clicking somewhere on an unselected cell unselects the selected cell(s)/range(
s).
</p>
<p>
If you need to access selections by code you can do this by using these
TCustomGrid properties:
</p>
<dl>
<dt>SelectedRange[AIndex: Integer]: TGridRect:</dt>
<dd>
Returns the column/row coordinates of the corner cells of the selected range
at the specified index (type TGridRect = TRect). A single selected cell is
considered to be a block with equal Left and Right column and equal Top and
Bottom row coordinates.
</dd>
<dt>SelectedRangeCount: Integer:</dt>
<dd>The number of selected blocks. </dd>
</dl>
<p>
Note that these are read-only properties, you can add and change selections
only by user interaction. But you can call ClearSelections to unselect
everything.
</p>
<p>
Your selection handling code must be prepared that a selected cell could be
found in another selected block again. Normally this situation is prohibited
in the user interface, but there are scenarios where a selection could be
extended into another range so that the overlapping cells are "selected twice".
</p>
<p>
Additional information about grid usage is available on the Lazarus wiki in
the following pages:
</p>
<ul>
<li>
<url href="https://wiki.lazarus.freepascal.org/Grids_Reference_Page">
Grids Reference Page
</url>
</li>
<li>
<url href="https://wiki.lazarus.freepascal.org/TDrawGrid">
TDrawGrid
</url>
</li>
<li>
<url href="https://wiki.lazarus.freepascal.org/TStringGrid">
TStringGrid
</url>
</li>
</ul>
</descr>
<seealso>
<link id="TCustomStringGrid"/>
<link id="HowToUseGrids"/>
</seealso>
</element>
<!-- protected -->
<element name="TStringGrid.WSRegisterClass" link="#lcl.lclclasses.TLCLComponent.WSRegisterClass"/>
<!-- public -->
<element name="TStringGrid.Modified" link="#lcl.grids.TCustomStringGrid.Modified"/>
<element name="TStringGrid.InplaceEditor" link="#lcl.grids.TCustomGrid.InplaceEditor"/>
<!-- published -->
<element name="TStringGrid.Align" link="#lcl.controls.TControl.Align"/>
<element name="TStringGrid.AlternateColor" link="#lcl.grids.TCustomGrid.AlternateColor"/>
<element name="TStringGrid.Anchors" link="#lcl.controls.TControl.Anchors"/>
<element name="TStringGrid.AutoAdvance" link="#lcl.grids.TCustomGrid.AutoAdvance"/>
<element name="TStringGrid.AutoEdit" link="#lcl.grids.TCustomGrid.AutoEdit"/>
<element name="TStringGrid.AutoFillColumns" link="#lcl.grids.TCustomGrid.AutoFillColumns"/>
<element name="TStringGrid.BiDiMode" link="#lcl.controls.TControl.BiDiMode"/>
<element name="TStringGrid.BorderSpacing" link="#lcl.controls.TControl.BorderSpacing"/>
<element name="TStringGrid.BorderStyle" link="#lcl.controls.TWinControl.BorderStyle"/>
<element name="TStringGrid.CellHintPriority" link="#lcl.grids.TCustomGrid.CellHintPriority"/>
<element name="TStringGrid.Color" link="#lcl.controls.TControl.Color"/>
<element name="TStringGrid.ColCount" link="#lcl.grids.TCustomGrid.ColCount"/>
<element name="TStringGrid.ColRowDraggingCursor" link="#lcl.grids.TCustomGrid.ColRowDraggingCursor"/>
<element name="TStringGrid.ColRowDragIndicatorColor" link="#lcl.grids.TCustomGrid.ColRowDragIndicatorColor"/>
<element name="TStringGrid.ColSizingCursor" link="#lcl.grids.TCustomGrid.ColSizingCursor"/>
<element name="TStringGrid.ColumnClickSorts" link="#lcl.grids.TCustomGrid.ColumnClickSorts"/>
<element name="TStringGrid.Columns" link="#lcl.grids.TCustomGrid.Columns"/>
<element name="TStringGrid.Constraints" link="#lcl.controls.TControl.Constraints"/>
<element name="TStringGrid.DefaultColWidth" link="#lcl.grids.TCustomGrid.DefaultColWidth"/>
<element name="TStringGrid.DefaultDrawing" link="#lcl.grids.TCustomGrid.DefaultDrawing"/>
<element name="TStringGrid.DefaultRowHeight" link="#lcl.grids.TCustomGrid.DefaultRowHeight"/>
<element name="TStringGrid.DoubleBuffered" link="#lcl.controls.TWinControl.DoubleBuffered"/>
<element name="TStringGrid.DragCursor" link="#lcl.controls.TControl.DragCursor"/>
<element name="TStringGrid.DragKind" link="#lcl.controls.TControl.DragKind"/>
<element name="TStringGrid.DragMode" link="#lcl.controls.TControl.DragMode"/>
<element name="TStringGrid.Enabled" link="#lcl.controls.TControl.Enabled"/>
<element name="TStringGrid.ExtendedSelect" link="#lcl.grids.TCustomGrid.ExtendedSelect"/>
<element name="TStringGrid.FadeUnfocusedSelection" link="#lcl.grids.TCustomGrid.FadeUnfocusedSelection"/>
<element name="TStringGrid.FixedColor" link="#lcl.grids.TCustomGrid.FixedColor"/>
<element name="TStringGrid.FixedCols" link="#lcl.grids.TCustomGrid.FixedCols"/>
<element name="TStringGrid.FixedRows" link="#lcl.grids.TCustomGrid.FixedRows"/>
<element name="TStringGrid.Flat" link="#lcl.grids.TCustomGrid.Flat"/>
<element name="TStringGrid.FocusColor" link="#lcl.grids.TCustomDrawGrid.FocusColor"/>
<element name="TStringGrid.FocusRectVisible" link="#lcl.grids.TCustomDrawGrid.FocusRectVisible"/>
<element name="TStringGrid.Font" link="#lcl.controls.TControl.Font"/>
<element name="TStringGrid.GridLineColor" link="#lcl.grids.TCustomGrid.GridLineColor"/>
<element name="TStringGrid.GridLineStyle" link="#lcl.grids.TCustomGrid.GridLineStyle"/>
<element name="TStringGrid.GridLineWidth" link="#lcl.grids.TCustomGrid.GridLineWidth"/>
<element name="TStringGrid.HeaderHotZones" link="#lcl.grids.TCustomGrid.HeaderHotZones"/>
<element name="TStringGrid.HeaderPushZones" link="#lcl.grids.TCustomGrid.HeaderPushZones"/>
<element name="TStringGrid.ImageIndexSortAsc" link="#lcl.grids.TCustomGrid.ImageIndexSortAsc"/>
<element name="TStringGrid.ImageIndexSortDesc" link="#lcl.grids.TCustomGrid.ImageIndexSortDesc"/>
<element name="TStringGrid.MouseWheelOption" link="#lcl.grids.TCustomGrid.MouseWheelOption"/>
<element name="TStringGrid.Options" link="#lcl.grids.TCustomGrid.Options"/>
<element name="TStringGrid.Options2" link="#lcl.grids.TCustomGrid.Options2"/>
<element name="TStringGrid.ParentBiDiMode" link="#lcl.controls.TControl.ParentBiDiMode"/>
<element name="TStringGrid.ParentColor">
<short>
Uses the Color from the Parent control when enabled.
</short>
<descr>
<p>
ParentColor determines if the control should use the Color from the Parent
control, when enabled. The default value for the property is <b>False</b> in
TStringGrid.
</p>
<p>
When this property is <b>True</b>, all changes to the Color of the parent
will also be applied to the Color of the control, ensuring that they both
contain same value. If the Color of the control is changed by the
application, then ParentColor will be automatically set to <b>False</b>.
</p>
<p>
Using ParentColor when the Color value is clDefault can cause problems in
resolving the actual color value. To obtain the Color property of a control
while taking into account clDefault and ParentColor, use the
GetColorResolvingParent method. This method might return a non-RGB color,
but will never return clDefault. To obtain a purely RGB result use the
GetRGBColorResolvingParent method.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TControl.ParentColor">TControl.ParentColor</link>
<link id="#lcl.controls.TControl.Color">TControl.Color</link>
<link id="#lcl.controls.TControl.GetColorResolvingParent">TControl.GetColorResolvingParent</link>
<link id="#lcl.controls.TControl.GetRGBColorResolvingParent">TControl.GetRGBColorResolvingParent</link>
</seealso>
</element>
<element name="TStringGrid.ParentDoubleBuffered" link="#lcl.controls.TWinControl.ParentDoubleBuffered"/>
<element name="TStringGrid.ParentFont" link="#lcl.controls.TControl.ParentFont"/>
<element name="TStringGrid.ParentShowHint" link="#lcl.controls.TControl.ParentShowHint"/>
<element name="TStringGrid.PopupMenu" link="#lcl.controls.TControl.PopupMenu"/>
<element name="TStringGrid.RangeSelectMode" link="#lcl.grids.TCustomGrid.RangeSelectMode"/>
<element name="TStringGrid.RowCount" link="#lcl.grids.TCustomGrid.RowCount"/>
<element name="TStringGrid.RowSizingCursor" link="#lcl.grids.TCustomGrid.RowSizingCursor"/>
<element name="TStringGrid.ScrollBars" link="#lcl.grids.TCustomGrid.ScrollBars"/>
<element name="TStringGrid.ShowHint" link="#lcl.controls.TControl.ShowHint"/>
<element name="TStringGrid.TabAdvance" link="#lcl.grids.TCustomGrid.TabAdvance"/>
<element name="TStringGrid.TabOrder" link="#lcl.controls.TWinControl.TabOrder"/>
<element name="TStringGrid.TabStop" link="#lcl.controls.TWinControl.TabStop"/>
<element name="TStringGrid.TitleFont" link="#lcl.grids.TCustomGrid.TitleFont"/>
<element name="TStringGrid.TitleImageList" link="#lcl.grids.TCustomGrid.TitleImageList"/>
<element name="TStringGrid.TitleStyle" link="#lcl.grids.TCustomGrid.TitleStyle"/>
<element name="TStringGrid.UseXORFeatures" link="#lcl.grids.TCustomGrid.UseXORFeatures"/>
<element name="TStringGrid.Visible" link="#lcl.controls.TControl.Visible"/>
<element name="TStringGrid.OnAfterSelection" link="#lcl.grids.TCustomGrid.OnAfterSelection"/>
<element name="TStringGrid.OnBeforeSelection" link="#lcl.grids.TCustomGrid.OnBeforeSelection"/>
<element name="TStringGrid.OnCellProcess" link="#lcl.grids.TCustomStringGrid.OnCellProcess"/>
<element name="TStringGrid.OnChangeBounds" link="#lcl.controls.TControl.OnChangeBounds"/>
<element name="TStringGrid.OnCheckboxToggled" link="#lcl.grids.TCustomGrid.OnCheckboxToggled"/>
<element name="TStringGrid.OnClick" link="#lcl.controls.TControl.OnClick"/>
<element name="TStringGrid.OnColRowDeleted" link="#lcl.grids.TCustomDrawGrid.OnColRowDeleted"/>
<element name="TStringGrid.OnColRowExchanged" link="#lcl.grids.TCustomDrawGrid.OnColRowExchanged"/>
<element name="TStringGrid.OnColRowInserted" link="#lcl.grids.TCustomDrawGrid.OnColRowInserted"/>
<element name="TStringGrid.OnColRowMoved" link="#lcl.grids.TCustomDrawGrid.OnColRowMoved"/>
<element name="TStringGrid.OnCompareCells" link="#lcl.grids.TCustomDrawGrid.OnCompareCells"/>
<element name="TStringGrid.OnContextPopup" link="#lcl.controls.TControl.OnContextPopup"/>
<element name="TStringGrid.OnDragDrop" link="#lcl.controls.TControl.OnDragDrop"/>
<element name="TStringGrid.OnDragOver" link="#lcl.controls.TControl.OnDragOver"/>
<element name="TStringGrid.OnDblClick" link="#lcl.controls.TControl.OnDblClick"/>
<element name="TStringGrid.OnDrawCell" link="#lcl.grids.TCustomGrid.OnDrawCell"/>
<element name="TStringGrid.OnEditButtonClick">
<short>Deprecated. Use <var>OnButtonClick</var> instead.</short>
<descr>
<p>
Deprecated. Use <var>OnButtonClick</var> instead.
</p>
</descr>
<seealso>
<link id="TCustomGrid.OnButtonClick"/>
</seealso>
</element>
<element name="TStringGrid.OnButtonClick" link="#lcl.grids.TCustomGrid.OnButtonClick"/>
<element name="TStringGrid.OnEditingDone" link="#lcl.controls.TControl.OnEditingDone"/>
<element name="TStringGrid.OnEndDock" link="#lcl.controls.TControl.OnEndDock"/>
<element name="TStringGrid.OnEndDrag" link="#lcl.controls.TControl.OnEndDrag"/>
<element name="TStringGrid.OnEnter" link="#lcl.controls.TWinControl.OnEnter"/>
<element name="TStringGrid.OnExit" link="#lcl.controls.TWinControl.OnExit"/>
<element name="TStringGrid.OnGetCellHint" link="#lcl.grids.TCustomGrid.OnGetCellHint"/>
<element name="TStringGrid.OnGetCheckboxState" link="#lcl.grids.TCustomDrawGrid.OnGetCheckboxState"/>
<element name="TStringGrid.OnGetEditMask" link="#lcl.grids.TCustomDrawGrid.OnGetEditMask"/>
<element name="TStringGrid.OnGetEditText" link="#lcl.grids.TCustomDrawGrid.OnGetEditText"/>
<element name="TStringGrid.OnHeaderClick" link="#lcl.grids.TCustomDrawGrid.OnHeaderClick"/>
<element name="TStringGrid.OnHeaderSized" link="#lcl.grids.TCustomDrawGrid.OnHeaderSized"/>
<element name="TStringGrid.OnHeaderSizing" link="#lcl.grids.TCustomDrawGrid.OnHeaderSizing"/>
<element name="TStringGrid.OnKeyDown" link="#lcl.controls.TWinControl.OnKeyDown"/>
<element name="TStringGrid.OnKeyPress" link="#lcl.controls.TWinControl.OnKeyPress"/>
<element name="TStringGrid.OnKeyUp" link="#lcl.controls.TWinControl.OnKeyUp"/>
<element name="TStringGrid.OnMouseDown" link="#lcl.controls.TControl.OnMouseDown"/>
<element name="TStringGrid.OnMouseEnter" link="#lcl.controls.TControl.OnMouseEnter"/>
<element name="TStringGrid.OnMouseLeave" link="#lcl.controls.TControl.OnMouseLeave"/>
<element name="TStringGrid.OnMouseMove" link="#lcl.controls.TControl.OnMouseMove"/>
<element name="TStringGrid.OnMouseUp" link="#lcl.controls.TControl.OnMouseUp"/>
<element name="TStringGrid.OnMouseWheel" link="#lcl.controls.TControl.OnMouseWheel"/>
<element name="TStringGrid.OnMouseWheelDown" link="#lcl.controls.TControl.OnMouseWheelDown"/>
<element name="TStringGrid.OnMouseWheelUp" link="#lcl.controls.TControl.OnMouseWheelUp"/>
<element name="TStringGrid.OnMouseWheelHorz" link="#lcl.controls.TControl.OnMouseWheelHorz"/>
<element name="TStringGrid.OnMouseWheelLeft" link="#lcl.controls.TControl.OnMouseWheelLeft"/>
<element name="TStringGrid.OnMouseWheelRight" link="#lcl.controls.TControl.OnMouseWheelRight"/>
<element name="TStringGrid.OnPickListSelect" link="#lcl.grids.TCustomGrid.OnPickListSelect"/>
<element name="TStringGrid.OnPrepareCanvas" link="#lcl.grids.TCustomGrid.OnPrepareCanvas"/>
<element name="TStringGrid.OnResize" link="#lcl.controls.TControl.OnResize"/>
<element name="TStringGrid.OnSelectEditor" link="#lcl.grids.TCustomGrid.OnSelectEditor"/>
<element name="TStringGrid.OnSelection" link="#lcl.grids.TCustomGrid.OnSelection"/>
<element name="TStringGrid.OnSelectCell" link="#lcl.grids.TCustomDrawGrid.OnSelectCell"/>
<element name="TStringGrid.OnSetCheckboxState" link="#lcl.grids.TCustomDrawGrid.OnSetCheckboxState"/>
<element name="TStringGrid.OnSetEditText" link="#lcl.grids.TCustomDrawGrid.OnSetEditText"/>
<element name="TStringGrid.OnShowHint" link="#lcl.controls.TControl.OnShowHint"/>
<element name="TStringGrid.OnStartDock" link="#lcl.controls.TControl.OnStartDock"/>
<element name="TStringGrid.OnStartDrag" link="#lcl.controls.TControl.OnStartDrag"/>
<element name="TStringGrid.OnTopLeftChanged" link="#lcl.grids.TCustomGrid.OnTopLeftChanged"/>
<element name="TStringGrid.OnUserCheckboxBitmap" link="#lcl.grids.TCustomGrid.OnUserCheckboxBitmap"/>
<element name="TStringGrid.OnUserCheckboxImage" link="#lcl.grids.TCustomGrid.OnUserCheckboxImage"/>
<element name="TStringGrid.OnUTF8KeyPress" link="#lcl.controls.TWinControl.OnUTF8KeyPress"/>
<element name="TStringGrid.OnValidateEntry" link="#lcl.grids.TCustomGrid.OnValidateEntry"/>
<element name="DrawRubberRect">
<short>Draws a rubber banding rectangle.</short>
<descr>
<p>
Draws a dotted rubber banding rectangle around the provided cell rectangle.
</p>
<p>
<var>DrawBits</var> contains a <var>Byte</var> value that indicates the
rectangle sides drawn in the routine. By default, all sides for the
rectangle are drawn. Use the following byte values OR-ed together in
<var>DrawBits</var> to specify the sides drawn:
</p>
<dl>
<dt>BF_LEFT</dt>
<dd>Draws the left side of the rectangle.</dd>
<dt>BF_RIGHT</dt>
<dd>Draws the right side of the rectangle.</dd>
<dt>BF_TOP</dt>
<dd>Draws the top of the rectangle.</dd>
<dt>BF_BOTTOM</dt>
<dd>Draws the bottom of the rectangle.</dd>
</dl>
</descr>
<seealso>
</seealso>
</element>
<element name="DrawRubberRect.Canvas">
<short>Canvas where the rubber band rectangle is drawn.</short>
</element>
<element name="DrawRubberRect.aRect">
<short>Coordinates for the rubber band rectangle.</short>
</element>
<element name="DrawRubberRect.Color">
<short>Color for the rubber band rectangle.</short>
</element>
<element name="DrawRubberRect.DrawBits">
<short>Sides drawn for the rubber band rectangle.</short>
</element>
<element name="GetWorkingCanvas">
<short>
Ensures that a valid handle for a device context exists for the canvas.
</short>
<descr/>
<seealso/>
</element>
<element name="GetWorkingCanvas.Result">
<short>The canvas instance with a valid handle.</short>
</element>
<element name="GetWorkingCanvas.Canvas">
<short>Canvas examined in the routine.</short>
</element>
<element name="FreeWorkingCanvas">
<short>Ensures a canvas handle for a device context is freed.</short>
<descr/>
<seealso/>
</element>
<element name="FreeWorkingCanvas.canvas">
<short>Canvas examined in the routine.</short>
</element>
<element name="Register">
<short>Registers components in the Lazarus IDE.</short>
<descr>
<p>
<var>Register</var> is the procedure used to register components for use in
the Lazarus IDE. Register calls the <var>RegisterComponents</var> routine to
add the <var>TStringGrid</var> and <var>TDrawGrid</var> components to the
<b>Additional</b> tab in the Lazarus IDE.
</p>
</descr>
<seealso/>
</element>
<topic name="HowToUseGrids">
<short>
How to use <var>Grids</var> including <var>StringGrids</var>,
<var>DrawGrids</var> and <var>DbGrids</var>.
</short>
<descr>
<p>
<b>Customizing Grids</b>
</p>
<p>
Grids are components derived from the <var>TCustomControl</var> class and do
not have a native widget associated with them. So they are not restricted by
the look of the current interface theme. This can be both an advantage and a
disadvantage: usually programmers want to create a uniform-look application.
Lazarus grids are flexible enough to allow programmers to make them look
similar to other native controls; alternatively they can customize the grid
to obtain almost the same look in any platform or widget interface (with the
exception of scroll bars, whose look is still determined by the current
theme).
</p>
<p>
Some properties can affect the way the grid looks by acting when the cell is
about to be painted in <var>PrepareCanvas/OnPrepareCanvas</var> by changing
default canvas properties like brush color or font. Following is a list of
such properties:
</p>
<table>
<caption>Properties and Events for Customizing Grids</caption>
<th>
<td>Property</td>
<td>Meaning</td>
</th>
<tr>
<td>AlternateColor</td>
<td>The user can change the background color that appears on alternate rows.
This is to allow easy reading of grid rows data.</td>
</tr>
<tr>
<td>Color</td>
<td>Sets the primary color used to draw non fixed cells' background.</td>
</tr>
<tr>
<td>FixedColor</td>
<td>The color used to draw fixed cells' background.</td>
</tr>
<tr>
<td>Flat</td>
<td>Eliminates the 3d look of fixed cells.</td>
</tr>
<tr>
<td>TitleFont</td>
<td>Font used to draw the text in fixed cells.</td>
</tr>
<tr>
<td>TitleStyle</td>
<td>
<p>Changes the 3D look of fixed cells. There are 3 settings:</p>
<dl>
<dt>tsLazarus</dt>
<dd>The default look</dd>
<dt>tsNative</dt>
<dd>Tries to use an appearance that is in concordance with the current
widgetset theme</dd>
<dt>tsStandard</dt>
<dd>A more contrasted look, like Delphi grids</dd>
</dl>
</td>
</tr>
<tr>
<td>AltColorStartNormal</td>
<td>
If <b>True</b>, alternate color is always in the second row after fixed
rows; the first row after fixed rows will always be the default color. If
<b>False</b>, default color is set to the first row as if there were no
fixed rows.
</td>
</tr>
<tr>
<td>BorderColor</td>
<td>
Sets the grid's border color used when <var>Flat</var>=<b>True</b> and
<var>BorderStyle</var> is bsSingle.
</td>
</tr>
<tr>
<td>EditorBorderStyle</td>
<td>
If set to <var>bsNone</var> under Windows the cell editors will not have the
border, like in Delphi; set to <var>bsSingle</var> by default because the
border can be theme specific in some widgetsets and to allow a uniform look.
</td>
</tr>
<tr>
<td>FocusColor</td>
<td>
The color used to draw the current focused cell if <var>UseXORFeatures</var>
is not set; by default this is <var>clRed</var>.
</td>
</tr>
<tr>
<td>FocusRectVisible</td>
<td>Turns on/off the drawing of focused cell.</td>
</tr>
<tr>
<td>GridLineColor</td>
<td>Color of grid lines in non fixed area.</td>
</tr>
<tr>
<td>GridLineStyle</td>
<td>
Pen style used to draw lines in non fixed area, possible choices are:
<var>psSolid</var>, <var>psDash</var>, <var>psDot</var>,
<var>psDashDot</var>, <var>psDashDotDot</var>, <var>psinsideFrame</var>,
<var>psPattern</var>, <var>psClear</var>; default is <var>psSolid</var>.
</td>
</tr>
<tr>
<td>SelectedColor</td>
<td>Color used to draw cell background on selected cells.</td>
</tr>
<tr>
<td>UseXORFeatures</td>
<td>
If set, focus rect is drawn using XOR mode so it should make visible the
focus rect in combination with any cell color background. It also affects
the way that moving columns look
</td>
</tr>
<tr>
<td>DefaultDrawing</td>
<td>
Normally the grid prepares its grid canvas using properties according to the
kind of cell that is being painted. If the user has written an
<var>OnDrawCell</var> event handler, it is used to perform specified drawing
operations for a given cell. <var>DefaultDrawing</var> (if set) also paints
the cell background; if the user is taking full responsibility for drawing
the cell it is better to turn off this so painting is not duplicated. In a
StringGrid, if DefaultDrawing is set it draws the text in each cell.
</td>
</tr>
<tr>
<td>AutoAdvance</td>
<td>Where the cell cursor will go when pressing enter or tab/shift tab, or
after editing.</td>
</tr>
<tr>
<td>ExtendedColSizing</td>
<td>
If <b>True</b>, the user can resize columns, not just at the headers, but
anywhere along the column's height.
</td>
</tr>
</table>
<p>
<b>Other Properties that Affect Grid Appearance:</b>
</p>
<p>
<var>Options</var>
</p>
<p>
This is a set of zero or more choices, with some elements that enable
diverse functionality but others that are related directly with grid's look.
Options can be set at design-time or run-time.
</p>
<dl>
<dt>
<var>goFixedVertLine, goFixedHorzLine</var>
</dt>
<dd>
Draws a vertical or horizontal line respectively, delimiting cells or
columns in the fixed area; active by default.
</dd>
<dt>
<var>goVertLine, goHorzLine</var>
</dt>
<dd>
The same as previous, but for the normal browsable area. A grid can be made
to simulate the visual appearance of a list box by removing both of these
options.
</dd>
<dt>
<var>goDrawFocusSelected</var>
</dt>
<dd>
If this option is enabled, a selection background is painted in the focused
cell in addition to the focused dotted rectangle. Please note: this doesn't
work when the <var>goRowSelect</var> option is set; in such case the row is
always painted as if <var>goDrawFocusSelected</var> is set.
</dd>
<dt>
<var>goRowSelect</var>
</dt>
<dd>
Selects the full row instead of individual cells.
</dd>
<dt>
<var>goFixedRowNumbering</var>
</dt>
<dd>
If set, grid will do numbering of rows in first fixed column.
</dd>
<dt>
<var>goHeaderHotTracking</var>
</dt>
<dd>
If set, the grid will try to show a different look when the mouse cursor is
over any fixed cell. In order for this to work, desired cell zone needs to
be enabled with the <var>HeaderHotZones</var>. Try combining this option
with <var>TitleStyle</var>= <var>tsNative</var> to get themed hot tracking
look.
</dd>
<dt>
<var>goHeaderPushedLook</var>
</dt>
<dd>
If set, this option enables a pushed look when clicking any fixed cell. The
zone of "pushable" cells is enabled using <var>HeaderPushedZones</var>
property.
</dd>
</dl>
<p>
<b>Description of the Grid Drawing Process</b>
</p>
<p>
Like other custom controls, the grid is drawn using the paint method. In
general terms the grid is drawn by painting all rows, and each row by
painting its individual cells. The process is as follows:
</p>
<ul>
<li>
First, the visible cells area is determined: each row is tested to see if it
intersects the canvas clipping region; if it's OK, then the visible area is
painted by drawing columns of each row.
</li>
<li>
The column and row values are used to identify the cell that is about to be
painted and again each column is tested for intersection with the clipping
region; if everything is OK, some additional properties like the cell's
rectangular extent and visual state are passed as arguments to the DrawCell
method.
</li>
<li>
<p>
As the drawing process is running, the visual state of each cell is adjusted
according to grid options and position within grid. The visual state is
retained in a variable of type <var>TGridDrawState</var> which is a set with
following elements:
</p>
<table>
<tr>
<td>gdSelected</td>
<td>The cell will have a selected look.</td>
</tr>
<tr>
<td>gdFocused</td>
<td>The cell will have a focused look.</td>
</tr>
<tr>
<td>gdFixed</td>
<td>Cell have to be painted with fixed cell look.</td>
</tr>
<tr>
<td>gdHot</td>
<td>the mouse is over this cell, so paint it with hot tracking look</td>
</tr>
<tr>
<td>gdPushed</td>
<td>the cell is being clicked, paint it with pushed look </td>
</tr>
</table>
</li>
<li>
<p>
<var>DrawCell</var> - The DrawCell method is virtual and may be overridden
in descendent grids to do custom drawing. The information passed to
<var>DrawCell</var> helps to identify which particular cell is being
painted, the physical area occupied on the screen and its visible status.
See <link id="TCustomGrid.DrawCell">DrawCell</link> reference for details.
For each cell the following occurs:
</p>
<ul>
<li>
<b>PrepareCanvas</b> - If DefaultDrawing is <b>True</b>, the grid canvas is
setup with default properties for brush and font based on current visual
state. For several design and run-time properties, the text alignment is set
to match programmer selection in custom columns if they exists. If
DefaultDrawing is <b>False</b>, brush color is set to clWindow and Font
color to clWindowText, the text alignment is set to the DefaultTextStyle
value.
</li>
<li>
<b>OnPrepareCanvas</b> - If the programmer wrote an event handler for the
<var>OnPrepareCanvas</var> event, it is called at this point. This event can
be used for doing simple customization like changing a cell's background
color, font's properties like color, font face and style, Text layout like
different combinations of left, center, top, bottom, right alignment, etc.
Any change made to the canvas for a particular cell in this event would be
lost, because the next cell drawing will reset canvas again to a default
state. So it's safe doing changes only for a particular cell or cells and
forget about it for the rest. Using this event sometimes helps to avoid
using the <var>OnDrawCell</var> grid event, where users would be forced to
duplicate the grid's drawing code.
</li>
<li>
<b>OnDrawCell</b> - Next, if no handler for the <var>OnDrawCell</var> event
was specified, the grid calls the <var>DefaultDrawCell</var> method which
simply paints the cell background using the current canvas brush color and
style. If the <var>OnDrawCell</var> handler exists, the grid first paints
the cell background, but only if the <var>DefaultDrawing</var> was set; then
it calls the <var>OnDrawCell</var> event to do custom cell painting. Usually
programmers want to do custom drawing only for particular cells, but
standard drawing for others: in this case, they can restrict custom
operation to certain cell or cells by looking into <var>ACol, ARow</var> and
<var>AState</var> arguments, and for other cells simply call the
<var>DefaultDrawCell</var> method and let the grid to take care of it.
</li>
<li>
<b>Text</b> - At this point, if the <var>DefaultDrawing</var> is
<b>True</b>, the cell's text content is painted (only for
<var>TStringGrid</var>).
</li>
<li>
<b>Grid lines</b> - The last step for each cell is to paint the grid lines:
if grid options <var>goVertLine, goHorzLine, goFixedVertLine</var> and
<var>goFixedHorzLine</var> are specified the cell grid is drawn at this
point. Grids with only rows or only cols can be obtained by changing these
options. If the programmer elected to have a "themed" look it is done at
this point also (see TitleStyle).
</li>
<li>
<b>FocusRect</b> - When all columns of the current row have been painted it
is time to draw the focus rectangle for the current selected cell or for the
whole row if the <var>goRowSelect</var> option is set.
</li>
</ul>
</li>
</ul>
<p>
<b>Grid Cell Selection</b>
</p>
<p>
The location of a grid's current (focused) cell (or row) can be changed
using keyboard, mouse or through code. In order to change cell focus
successfully to another position, we must test the target position to see if
it is allowed to receive cell focus. When using the keyboard,
<var>AutoAdvance</var> performs part of the process by finding what should
be the next focused cell. When using mouse clicks or moving by code, focus
will not move from the current cell unless the target cell is permitted to
receive focus.
</p>
<p>
The grid calls <var>SelectCell</var> to see if a cell can be focused: if
this function returns <b>True</b>, then the target cell identified with
arguments <var>aCol</var> and <var>aRow</var> can be focused (the current
implementation of <var>TCustomGrid</var> simply returns <b>True</b>).
<var>TCustomDrawGrid</var> and hence <var>TDrawGrid</var> and
<var>TStringGrid</var> override this method and check first if a cell is any
wider than 0; normally you don't want a 0 width cell selected so a cell with
this characteristics is skipped automatically in the process of finding a
suitable cell. The overridden method <var>SelectCell</var> also calls the
user configurable event <var>OnSelectCell</var>: this event receives the
cell coordinates as arguments and always returns a default result of
<b>True</b>.
</p>
<p>
If a cell can be focused and we are sure a movement will take place, the
method <var>BeforeMoveSelection</var> is called; this in turns triggers the
<var>OnBeforeSelection</var> event. This method's arguments are the
coordinates for the new focused cell; at this point any visible editor is
hidden too. The "before" word means that selection is not yet changed and
current focused coordinates can be accessed with <var>grid.Col</var> and
<var>grid.Row</var> properties.
</p>
<p>
After that, the internal focused cell coordinates are changed and
<var>MoveSelection</var> is called; this method's purpose (if set) is to
trigger the <var>OnSelection</var> event (this is a notification that the
focused cell has changed and the new cell coordinates are available through
grid.row and grid.col properties).
</p>
<p>
Note that is not good to use the <var>OnSelectCell</var> event to detect cell
focus changes, as this event will be triggered several times even for the
same cell in the process of finding a suitable cell. Is better to use
<var>OnBeforeSelection</var> or <var>OnSelection</var> events for this
purpose.
</p>
<p>
<b>Using Cell Editors</b>
</p>
<p>
Users can specify what editor will be used for a cell using one of two
methods.
</p>
<ol>
<li>
<b>Using a custom column and selecting the ButtonStyle of the column.</b> In
this method the user can select the style of the editor that will be shown.
Available values are: <var>cbsAuto, cbsEllipsis, cbsNone, cbsPickList,
cbsCheckboxColumn</var>.
</li>
<li>
<p>
<b>Using the OnSelectEditor Grid Event</b>
</p>
<p>
Here the user specifies in the <var>Editor</var> parameter which editor to
use for a cell identified by <var>aCol</var>, <var>ARow</var> in a
<var>TCustomDrawGrid</var> derived grid or <var>TColumn</var> in
<var>TCustomDBGrid</var>. The public <var>EditorByStyle()</var> function
takes as parameter one of the following values: <var>cbsAuto, cbsEllipsis,
cbsNone, cbsPickList, cbsCheckboxColumn</var>.
</p>
<p>
This method takes precedence over the first one using custom columns. A
Custom cell editor can be specified here, with values specific to the cell,
row or column.
</p>
</li>
</ol>
<p>
<b>Description of Editor Styles</b>
</p>
<p>
The following is a description of the editor styles. They are enumerated
values of type <var>TColumnButtonStyle</var> and so they are prefixed by
'cbs'. This type was used to remain compatible with Delphi's
<var>DBGrid</var>.
</p>
<ul>
<li>
<b>cbsAuto</b> - This is the default editor style for TCustomGrid derived
grids. The TStringCellEditor derived from TCustomMaskEdit is specialized to
edit single line strings and is used by default in TStringGrid and
TDrawGrid. When using Custom Columns, if the programmer filled the Column's
PickList property, this behaves as if cbsPickList editor style was set. For
a TCustomDBGrid that has a field of type Boolean, it behaves as if
cbsCheckBoxColumn editor style was specified. This is the recommended value
for custom cell editors.
</li>
<li>
<p>
<b>cbsEllipsis</b> - This editor style is the most generic one. A button
with ellipsis (...) appears in the editing cell and the programmer can use
the OnEditButtonClick grid event to take any programmed action when the user
presses the button. For example a calendar dialog could pop up to allow the
user to select a specific date, a file open dialog could appear to find
files, or a calculator could appear so the user could enter the numeric
result of calculations, etc.
</p>
<ul>
<li>
OnEditButtonClick is just a notification, to find out in which cell a button
has been clicked by taking a look at the grid.Row and grid.Col properties.
</li>
<li>
A DBGrid has specific properties to retrieve the active column or field and
because this event occurs in the active record, it could update the
information in the active field.
</li>
<li>
This editor style is implemented using TButtonCellEditor, a direct
descendant of TButton.
</li>
</ul>
</li>
<li>
<b>cbsNone</b> - This editor style instructs the grid not to use any editor
for a specific column; it behaves as if the cell were read-only.
</li>
<li>
<p>
<b>cbsPickList</b> - Used to present the user with a list of values that can
be entered. This editor style is implemented using TPickListCellEditor, a
component derived from TCustomComboBox. The list of values that are shown is
filled in one of two ways depending on the method used to select the editor
style.
</p>
<p>
When using custom columns, programmers can enter a list of values using the
PickList property for the column.
</p>
</li>
<li>
<p>
<b>cbsCheckboxColumn</b> - This editor style is at the moment only available
in TDBGrid. If a field's contents associated with the column are restricted
to a pair of values, for example, yes-no, <b>True</b>-false, on-off, 1-0,
etc. then cbsCheckboxColumn is used to modify the appearance of a column by
using a check box representation that the user can toggle by using a mouse
click or pressing the SPACE key.
</p>
<ul>
<li>
If a ButtonStyle for a column is set to cbsAuto and DBGrid detects that the
field associated with the column is a Boolean field, then the grid uses this
editor style automatically. This automatic selection can be disabled or
enabled using the DBGrid OptionsExtra property; setting dgeCheckboxColumn
element to <b>False</b> disables this feature.
</li>
<li>
The values that are used to recognize the checked or unchecked states are
set in a column's properties ValueChecked and ValueUnchecked.
</li>
<li>
At any moment, the field value can be in one of three states: Unchecked,
Checked or Grayed.
</li>
</ul>
</li>
</ul>
</descr>
</topic>
</module>
<!-- Grids -->
</package>
</fpdoc-descriptions>
|