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
|
<?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">
<!-- Buttons -->
<module name="Buttons">
<short>
Contains types and classes used to implement specialized buttons.
</short>
<descr>
<p>
<file>buttons.pp</file> contains classes, types, and routines used to
implements specialized button controls. It registers the following components
in the Lazarus IDE component palette:
</p>
<p>
<b>Additional</b> Tab
</p>
<ul>
<li>TBitBtn</li>
<li>TSpeedButton</li>
</ul>
<p>
<file>buttons.pp</file> is part of the Lazarus Component Library (<b>LCL</b>).
</p>
</descr>
<!-- unresolved references -->
<element name="Types"/>
<element name="Classes"/>
<element name="SysUtils"/>
<element name="Math"/>
<element name="LCLType"/>
<element name="LCLProc"/>
<element name="LCLIntf"/>
<element name="LCLStrConsts"/>
<element name="LResources"/>
<element name="Graphics"/>
<element name="ImgList"/>
<element name="ActnList"/>
<element name="Controls"/>
<element name="StdCtrls"/>
<element name="LMessages"/>
<element name="Forms"/>
<element name="Themes"/>
<element name="Menus"/>
<element name="ImageListCache"/>
<element name="GraphType"/>
<element name="LazUtilities"/>
<element name="TButtonLayout">
<short>
Enumerated type which defines the position for a glyph on a button.
</short>
<descr>
<p>
<var>TButtonLayout</var> is an enumerated type which contains constants that
define the position for a glyph on a button. It is used to implement the
<var>Layout</var> property in <var>TBitBtn</var> and <var>TSpeedButton</var>
classes. It is also used to control the layout of images drawn in the columns
for <var>TGrid</var> and <var>TStringGrid</var>.
</p>
</descr>
<seealso>
<link id="TBitBtn.Layout"/>
<link id="TSpeedButton.Layout"/>
<link id="#lcl.grids.TCustomGrid">TCustomGrid</link>
<link id="#lcl.grids.TCustomStringGrid">TCustomStringGrid</link>
<link id="#lcl.grids.TGridColumn">TGridColumn</link>
<link id="#lcl.grids.TGridColumnTitle.ImageLayout">TGridColumnTitle.ImageLayout</link>
</seealso>
</element>
<element name="TButtonLayout.blGlyphLeft">
<short>Image is drawn aligned to the left.</short>
</element>
<element name="TButtonLayout.blGlyphRight">
<short>Image is drawn aligned to the right.</short>
</element>
<element name="TButtonLayout.blGlyphTop">
<short>Image is drawn aligned to the top.</short>
</element>
<element name="TButtonLayout.blGlyphBottom">
<short>Image is drawn aligned to the bottom.</short>
</element>
<element name="TButtonState">
<short>A set of constants to define the state of a SpeedButton.</short>
<descr>
<p>
<var>TButtonState</var> is an enumerated type with constants that define the
drawing state for a button. <var>TButtonState</var> is the type used to
implement the internal State member in <var>TCustomSpeedButton</var>. It is
also used to access bitmap images in <var>TButtonGlyph</var> drawn for the
corresponding state using its Draw method.
</p>
</descr>
<seealso>
<link id="TButtonGlyph.Draw"/>
</seealso>
</element>
<element name="TButtonState.bsUp">
<short>Draw the button in its up state.</short>
</element>
<element name="TButtonState.bsDisabled">
<short>Draw the button in its disabled state.</short>
</element>
<element name="TButtonState.bsDown">
<short>Draw the button in its down state.</short>
</element>
<element name="TButtonState.bsExclusive">
<short>Draw the button as the only one down in its group.</short>
</element>
<element name="TButtonState.bsHot">
<short>
Draw the button when the mouse cursor is hovered over the control.
</short>
</element>
<element name="TButtonImage">
<short>
Represents button identifiers defined in the <file>lcltype.pp</file> unit.
</short>
<descr>
<p>
<var>TButtonImage</var> is a range type used to represent the button
identifier constants defined in the <file>lcltype.pp</file> unit, like:
idButtonOk, idButtonCancel, idButtonHelp, idButtonYes, idButtonNo, et. al.
TButtonImage is the type passed as an argument to routines like:
GetButtonImageIndex, BitBtnResNames, and LoadGlyphFromResource. It is also
passed as an argument to the TCustomBitBtn.LoadGlyphFromResource method.
</p>
</descr>
<seealso>
<link id="TCustomBitBtn.LoadGlyphFromResource"/>
<link id="GetButtonImageIndex"/>
<link id="BitBtnResNames"/>
<link id="LoadGlyphFromResource"/>
</seealso>
</element>
<element name="TNumGlyphs">
<short>Defines the range of values available to access button glyphs.</short>
<descr>
<p>
<var>TNumGlyphs</var> is an <var>Integer</var> range constant which defines
the minimum and maximum number of glyphs available for buttons.
<var>TNumGlyphs</var> is the type used to implement the <var>NumGlyphs</var>
property in <var>TButtonGlyph</var>, <var>TCustomBitBtn</var>, and
<var>TCustomSpeedButton</var>.
</p>
</descr>
<seealso>
<link id="TButtonGlyph.NumGlyphs"/>
<link id="TCustomBitBtn.NumGlyphs"/>
<link id="TCustomSpeedButton.NumGlyphs"/>
</seealso>
</element>
<element name="TGlyphTransparencyMode">
<short>
Enumerated type with transparency mode values for button glyphs.
</short>
<descr>
<p>
<var>TGlyphTransparencyMode</var> is an enumerated type which contains values
representing the transparency modes used for button glyphs.
TGlyphTransparencyMode is the type used to implement the
<var>TransparentMode</var> property in <var>TButtonGlyph</var>.
</p>
</descr>
<seealso>
<link id="TButtonGlyph.TransparentMode"/>
</seealso>
</element>
<element name="TGlyphTransparencyMode.gtmGlyph">
<short>Transparency is defined in the glyph.</short>
</element>
<element name="TGlyphTransparencyMode.gtmOpaque">
<short>Transparent is not used, as defined by the owner of the glyph.</short>
</element>
<element name="TGlyphTransparencyMode.gtmTransparent">
<short>Glyph is drawn with transparency.</short>
</element>
<element name="TButtonGlyph">
<short>Represents an image that can be attached to a button.</short>
<descr>
<p>
<var>TButtonGlyph</var> is a <var>TObject</var> descendant used to represent
the image with the symbol or pictograph displayed on a button, or in a column
in a grid. Use the properties and methods in the class to specify the image
displayed in the glyph, and the display settings required for the image.
</p>
<p>
<var>Images</var> and <var>ExternalImages</var> are image lists with the
content that can be displayed in the glyph. <var>Glyph</var> contains the
bitmap, scaled to the necessary display density, used in the class instance.
<var>Width</var> and <var>Height</var> represent the dimensions for the
<var>Glyph</var>.
</p>
<p>
<var>ShowMode</var> determines when the image is displayed, just like its
usage in <var>TMenu</var> and <var>TMenuItem</var>.
</p>
<p>
<var>TransparentMode</var> indicates whether the glyph image is drawn with
transparency, as works in conjunction with the <var>Transparent</var>
property in the parent control.
</p>
<p>
<var>TButtonGlyph</var> implements the <var>IImageCacheListener</var>
interface used to provide support for cached images in <var>TImageList</var>.
<var>TButtonGlyph</var> also implements the <var>IUnknown</var> interface to
support the <var>QueryInterface</var> method and reference counting.
</p>
<p>
<var>TButtonGlyph</var> is the type used to implement the
<var>ButtonGlyph</var> property in <var>TCustomBitBtn</var> and
<var>TCustomSpeedButton</var>.
</p>
</descr>
<seealso>
<link id="TCustomSpeedButton.ButtonGlyph"/>
<link id="#lcl.menus.TMenu">TMenu</link>
<link id="#lcl.menus.TMenuItem">TMenuItem</link>
</seealso>
</element>
<element name="TButtonGlyph.FIsDesigning"/>
<element name="TButtonGlyph.FShowMode"/>
<element name="TButtonGlyph.FImageIndexes"/>
<element name="TButtonGlyph.FImages"/>
<element name="TButtonGlyph.FExternalImages"/>
<element name="TButtonGlyph.FExternalImageIndexes"/>
<element name="TButtonGlyph.FExternalImageWidth"/>
<element name="TButtonGlyph.FLCLGlyphResourceName"/>
<element name="TButtonGlyph.FOriginal"/>
<element name="TButtonGlyph.FNumGlyphs"/>
<element name="TButtonGlyph.FOnChange"/>
<element name="TButtonGlyph.FImagesCache"/>
<element name="TButtonGlyph.FTransparentMode"/>
<element name="TButtonGlyph.FLCLGlyphName"/>
<element name="TButtonGlyph.GetExternalImageIndex">
<short>Gets the value for the ExternalImageIndex property.</short>
<descr/>
<seealso>
<link id="TButtonGlyph.ExternalImageIndex"/>
</seealso>
</element>
<element name="TButtonGlyph.GetExternalImageIndex.Result">
<short>Value for the ExternalImageIndex property.</short>
</element>
<element name="TButtonGlyph.GetExternalImageIndex.AState">
<short>
Ordinal position in the array of image indexes accessed for the property
value.
</short>
</element>
<element name="TButtonGlyph.GetHeight">
<short>Gets the value for the Height property.</short>
<descr/>
<seealso>
<link id="TButtonGlyph.Height"/>
</seealso>
</element>
<element name="TButtonGlyph.GetHeight.Result">
<short>Value for the property.</short>
</element>
<element name="TButtonGlyph.GetNumGlyphs">
<short>Gets the value for the NumGlyphs property.</short>
<descr/>
<seealso>
<link id="TButtonGlyph.NumGlyphs"/>
</seealso>
</element>
<element name="TButtonGlyph.GetNumGlyphs.Result">
<short>Value for the property.</short>
</element>
<element name="TButtonGlyph.GetWidth">
<short>Gets the value for the Width property.</short>
<descr/>
<seealso>
<link id="TButtonGlyph.Width"/>
</seealso>
</element>
<element name="TButtonGlyph.GetWidth.Result">
<short>Value for the property.</short>
</element>
<element name="TButtonGlyph.ResetExternalImageIndexes">
<short>
Initializes values in the internal array of image indexes used in property
values.
</short>
<descr>
<p>
Sets all byte values in the storage for an internal array of image indexes to
the value $FF. Called from the Create constructor, and when a new bitmap is
assigned to the Glyph property.
</p>
</descr>
<version>
Added in LCL version 2.3.0. Available since version 3.0.
</version>
<seealso>
<link id="TButtonGlyph.Create"/>
<link id="TButtonGlyph.Glyph"/>
</seealso>
</element>
<element name="TButtonGlyph.SetExternalImageIndex">
<short>Sets the value for the ExternalImageIndex property.</short>
<descr/>
<seealso>
<link id="TButtonGlyph.ExternalImageIndex"/>
</seealso>
</element>
<element name="TButtonGlyph.SetExternalImageIndex.AState">
<short>
Ordinal position in the array of image indexes updated with the new value for
the property.
</short>
</element>
<element name="TButtonGlyph.SetExternalImageIndex.AExternalImageIndex">
<short>New value for the ExternalImageIndex property.</short>
</element>
<element name="TButtonGlyph.SetExternalImages">
<short>Sets the value for the ExternalImages property.</short>
<descr/>
<seealso>
<link id="TButtonGlyph.SetExternalImages"/>
</seealso>
</element>
<element name="TButtonGlyph.SetExternalImages.AExternalImages">
<short>New value for the property.</short>
</element>
<element name="TButtonGlyph.SetExternalImageWidth">
<short>Sets the value for the ExternalImageWidth property.</short>
<descr/>
<seealso>
<link id="TButtonGlyph.ExternalImageWidth"/>
</seealso>
</element>
<element name="TButtonGlyph.SetExternalImageWidth.AExternalImageWidth">
<short>New value for the property.</short>
</element>
<element name="TButtonGlyph.SetGlyph">
<short>Sets the value for the Glyph property.</short>
<descr/>
<seealso>
<link id="TButtonGlyph.Glyph"/>
</seealso>
</element>
<element name="TButtonGlyph.SetGlyph.Value">
<short>New value for the property.</short>
</element>
<element name="TButtonGlyph.SetNumGlyphs">
<short>Sets the value for the NumGlyphs property.</short>
<descr/>
<seealso>
<link id="TButtonGlyph.NumGlyphs"/>
</seealso>
</element>
<element name="TButtonGlyph.SetNumGlyphs.Value">
<short>New value for the property.</short>
</element>
<element name="TButtonGlyph.SetShowMode">
<short>Sets the value for the ShowMode property.</short>
<descr/>
<seealso>
<link id="TButtonGlyph.ShowMode"/>
</seealso>
</element>
<element name="TButtonGlyph.SetShowMode.AValue">
<short>New value for the property.</short>
</element>
<element name="TButtonGlyph.ClearImages">
<short>Removes the references to Images for the button states.</short>
<descr>
<p>
<var>ClearImages</var> is a procedure used to remove index references to
Images used for button states in the glyph. ClearImages sets the values in an
internal member to -1 to indicate that the image for the corresponding
TButtonState is not used.
</p>
</descr>
<seealso>
<link id="TButtonGlyph.Images"/>
<link id="TButtonGlyph.SetImageIndex"/>
<link id="TButtonGlyph.SetExternalImageIndex"/>
<link id="TButtonGlyph.CanShowGlyph"/>
<link id="TButtonState"/>
</seealso>
</element>
<element name="TButtonGlyph.ClearLCLGlyph">
<short>
Removes the name for the LCL Glyph resource used in the class instance.
</short>
<descr></descr>
<seealso></seealso>
</element>
<element name="TButtonGlyph.SetLCLGlyphName">
<short>
Sets the value for the LCLGlyphName property.
</short>
<descr/>
<seealso>
<link id="TButtonGlyph.LCLGlyphName"/>
</seealso>
</element>
<element name="TButtonGlyph.SetLCLGlyphName.ALCLGlyphName">
<short>New value for the LCLGlyphName property.</short>
</element>
<element name="TButtonGlyph.QueryInterface">
<short>Implements the method from IUnknown.</short>
<descr></descr>
<seealso></seealso>
</element>
<element name="TButtonGlyph.QueryInterface.iid">
<short>Interface identifier for the specified object.</short>
</element>
<element name="TButtonGlyph.QueryInterface.obj">
<short>Object examined for the specified interface.</short>
</element>
<element name="TButtonGlyph._AddRef">
<short>Implements the method from IUnknown.</short>
<descr></descr>
<seealso></seealso>
</element>
<element name="TButtonGlyph._AddRef.Result">
<short>Always contains -1.</short>
</element>
<element name="TButtonGlyph._Release">
<short>Implements the method from IUnknown.</short>
<descr></descr>
<seealso></seealso>
</element>
<element name="TButtonGlyph._Release.Result">
<short>Always contains -1.</short>
</element>
<element name="TButtonGlyph.CacheSetImageList">
<short>Stores the specified Image list in the Images property.</short>
<descr>
<p>
Implements the <var>IImageCacheListener</var> interface method used to
receive changes to the cached image list. Stores the image list specified in
<var>AImageList</var> to the <var>Images</var> property.
</p>
</descr>
<seealso>
<link id="TButtonGlyph.Images"/>
</seealso>
</element>
<element name="TButtonGlyph.CacheSetImageList.AImageList">
<short>Image list stored to the Images property.</short>
</element>
<element name="TButtonGlyph.CacheSetImageIndex">
<short>
Sets the button state for the image in AIndex to the value specified in
AImageIndex.
</short>
<descr></descr>
<seealso></seealso>
</element>
<element name="TButtonGlyph.CacheSetImageIndex.AIndex">
<short>Position of the Button state applied to the specified image.</short>
</element>
<element name="TButtonGlyph.CacheSetImageIndex.AImageIndex">
<short>Position of the Image updated in the method.</short>
</element>
<element name="TButtonGlyph.CanShow">
<short>Indicates if the glyph image can be drawn for the button glyph.</short>
<descr>
<p>
<var>CanShow</var> is a <var>Boolean</var> function which indicates if the
glyph can be drawn for the button glyph. The return value is determined by
examining the value in the <var>ShowMode</var> property. Values in the
TGlyphShowMode enumeration determine the return value using the following
logic:
</p>
<dl>
<dt>gsmAlways</dt>
<dd>Return value is <b>True</b></dd>
<dt>gsmNever</dt>
<dd>Return value is <b>False</b></dd>
<dt>gsmApplication</dt>
<dd>
Uses the Application.ShowButtonGlyphs property to determine the return value
</dd>
<dt>gsmSystem</dt>
<dd>Uses the value from SystemShowButtonGlyphs as the return value</dd>
</dl>
<remark>
The return value is always <b>True</b> at design-time.
</remark>
<p>
Use CanShowGlyph to determine if an image is available to be drawn on the
button.
</p>
</descr>
<seealso>
<link id="TButtonGlyph.ShowMode"/>
<link id="TGlyphShowMode"/>
<link id="TButtonGlyph.CanShowGlyph"/>
</seealso>
</element>
<element name="TButtonGlyph.CanShow.Result">
<short><b>True</b> when the glyph can be displayed on the button.</short>
</element>
<element name="TButtonGlyph.CanShowGlyph">
<short>Determines if an image is available for the button glyph.</short>
<descr>
<p>
CanShowGlyph is a Boolean function used to determine if an image is available
for the button glyph. The return value is <b>True</b> when an image has been
specified using one of the following mechanisms (in the order of precedence):
</p>
<ul>
<li>Images is assigned and contains valid button state images</li>
<li>LCLGlyphName contains a non-empty resource name</li>
<li>ExternalImages is assigned and contains a valid ExternalImageIndex
value</li>
</ul>
</descr>
<seealso>
<link id="TButtonGlyph.Images"/>
<link id="TButtonGlyph.ExternalImages"/>
<link id="TButtonGlyph.LCLGlyphName"/>
</seealso>
</element>
<element name="TButtonGlyph.CanShowGlyph.Result">
<short><b>True</b> when a glyph image is available.</short>
</element>
<element name="TButtonGlyph.DoChange">
<short>
Performs actions needed when the glyph image has been changed for the class
instance.
</short>
<descr>
<p>
<var>DoChange</var> is a procedure used to performs actions needed when the
glyph image has been changed for the class instance. <var>DoChange</var>
signals the <var>OnChange</var> event handler (when assigned).
</p>
</descr>
<seealso>
<link id="TButtonGlyph.OnChange"/>
<link id="TButtonGlyph.GlyphChanged"/>
</seealso>
</element>
<element name="TButtonGlyph.GlyphChanged">
<short>
Provides a default implementation for the OnChange event handler.
</short>
<descr>
<p>
GlyphChanged is procedure which provides the default implementation for the
OnChange event handler. Sender is the TObject instance for the change
notification, and normally receives a reference to the current TButtonGlyph
class instance.
</p>
<p>
GlyphChanged ensures that the internal ImagesCache member is set to
<b>Nil</b>, and the ClearImages methods is called to remove images stored in
the Images property. When CanShow returns <b>True</b>, the internal
ImagesCache member is re-populated and registered to listen for changes to
the Glyph property.
</p>
<p>
GlyphChanged is assigned to the OnChange event handler when the class
instance is created, and when a bitmap is assigned to the Glyph property.
</p>
</descr>
<seealso>
<link id="TButtonGlyph.OnChange"/>
<link id="TButtonGlyph.CanShow"/>
<link id="TButtonGlyph.Glyph"/>
<link id="TButtonGlyph.Create"/>
</seealso>
</element>
<element name="TButtonGlyph.GlyphChanged.Sender">
<short>Button glyph for the change notification.</short>
</element>
<element name="TButtonGlyph.SetTransparentMode">
<short>Sets the value for the TransparentMode property.</short>
<descr>
<p>
<var>SetTransparentMode</var> is a procedure used to set the value in the
<var>TransparentMode</var> property to the specified
<var>TGlyphTransparencyMode</var> value. <var>SetTransparentMode</var>
ensures that the bitmap in the <var>Glyph</var> property is updated to use
the same transparency mode.
</p>
<remark>
<var>SetTransparentMode</var> is <b>not</b> the write access specifier for
<var>TransparentMode</var>, which is a read-only property.
</remark>
</descr>
<seealso>
<link id="TButtonGlyph.TransparentMode"/>
<link id="TButtonGlyph.Glyph"/>
<link id="TGlyphTransparencyMode"/>
</seealso>
</element>
<element name="TButtonGlyph.SetTransparentMode.AValue">
<short>Value stored in the TransparentMode property.</short>
</element>
<element name="TButtonGlyph.TransparentMode">
<short>Indicates the transparency mode used to render the glyph image.</short>
<descr>
<p>
<var>TransparentMode</var> is a read-only <var>TGlyphTransparencyMode</var>
property used to indicate the transparency mode applied when the glyph image
is drawn.
</p>
<p>
Use <var>SetTransparentMode</var> to change the value for the property.
</p>
</descr>
<seealso>
<link id="TButtonGlyph.SetTransparentMode"/>
<link id="TGlyphTransparencyMode"/>
</seealso>
</element>
<element name="TButtonGlyph.Create">
<short>
<var>Create</var> - constructor for <var>TButtonGlyph</var>: frees the Images
cache then creates a Glyph Bitmap.
</short>
<descr>
<p>
If you drop a component on the form in the form editor, you don't need to add
code to explicitly create it. The component is automatically created together
with the form, and destroyed when the form is destroyed.
</p>
<p>
However, if you create the component by code, don't forget to free it when it
is no longer needed. Constructors allocate memory and system resources needed
by the object. They also call the constructor for any sub-objects present in
the class.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TButtonGlyph.Destroy">
<short>
<var>Destroy</var> - destructor for <var>TButtonGlyph</var>: frees caches and
calls inherited <var>Destroy</var>.
</short>
<descr>
<p>
If you call <var>Destroy</var> for an object which hasn't been initialized
yet, it will generate an error. Always use the <var>Free</var> method to
deallocate objects, because it verifies that the object does not contain the
value <b>Nil</b>.
</p>
<p>
Take the following precautions when creating your own <var>Destroy</var>
method:
</p>
<ul>
<li>
Declare <var>Destroy</var> with the override directive, because it is a
virtual method.
</li>
<li>
Always call the inherited <var>Destroy</var> method as the last action in the
destructor code.
</li>
<li>
An exception may be raised in the constructor if there is not enough memory
to create an object, or something else goes wrong. If the exception is not
handled inside the constructor, the object will be only partially built. In
this case <var>Destroy</var> will be called, so your destructor must check if
the resources were really allocated before the are released.
</li>
<li>
Remember to call <var>Free</var> for all objects created on the constructor.
</li>
</ul>
</descr>
<seealso>
<link id="#rtl.system.TObject.Destroy">TObject.Destroy</link>
</seealso>
</element>
<element name="TButtonGlyph.GetImageIndexAndEffect">
<short>
Gets the index for a button image using a given state, and the effect used to
draw it.
</short>
<descr>
<p>
<var>GetImageIndexAndEffect</var> is a procedure used to get the ordinal
position for the image used to render the <var>Glyph</var> for the class
instance. In addition, it returns the image resolution for the specified
display density and the drawing effect for the button <var>State</var>.
</p>
<p>
<var>GetImageIndexAndEffect</var> uses <var>ThemeServices</var> to determine
if drawing effects are automatically applied to glyph images, and captures
the effect in the <var>AEffect</var> output argument.
</p>
<p>
<var>GetImageIndexAndEffect</var> determines the image source and the ordinal
position for the image used for the button glyph. <var>ExternalImages</var>
and <var>ExternalImageIndex</var> are used (when assigned). The next
available source is the resource name specified in
<var>LCLGlyphResourceName</var> (when specified). Finally, the
<var>Images</var> property is used (when assigned). When the image source has
been determined, the correct image resolution for the value in
<var>APPI</var> is selected and stored in <var>AImageResolution</var>.
<var>ImageIndexes</var> is used to get the position for the image with the
specified button <var>State</var>.
</p>
<p>
<var>GetImageIndexAndEffect</var> is used in in the implementation of the
<var>Draw</var> method in <var>TButtonGlyph</var>, and in the
<var>GetGlyphSize</var> method in <var>TCustomSpeedButton</var>.
</p>
</descr>
<seealso>
<link id="TButtonGlyph.ExternalImages"/>
<link id="TButtonGlyph.ExternalImageIndex"/>
<link id="TButtonGlyph.LCLGlyphName"/>
<link id="TButtonGlyph.Images"/>
<link id="TButtonGlyph.Draw"/>
<link id="TCustomSpeedButton.GetGlyphSize"/>
</seealso>
</element>
<element name="TButtonGlyph.GetImageIndexAndEffect.State">
<short>Drawing state for the button glyph.</short>
</element>
<element name="TButtonGlyph.GetImageIndexAndEffect.APPI">
<short>
Pixels per inch for the image resolution with the button glyphs.
</short>
</element>
<element name="TButtonGlyph.GetImageIndexAndEffect.ACanvasScaleFactor">
<short>Canvas scaling factor applied to the image resolution.</short>
</element>
<element name="TButtonGlyph.GetImageIndexAndEffect.AImageResolution">
<short>Returns the scaled image resolution with the button glyphs.</short>
</element>
<element name="TButtonGlyph.GetImageIndexAndEffect.AIndex">
<short>
Returns the index for the glyph image selected from Images or LCL glyph
resources
</short>
</element>
<element name="TButtonGlyph.GetImageIndexAndEffect.AEffect">
<short>
Returns the drawing effect needed for the glyph image with the specified
state.
</short>
</element>
<element name="TButtonGlyph.Draw">
<short>
Draws the glyph for the button using the specified settings and state.
</short>
<descr>
<p>
<var>Draw</var> is a method used to draw the glyph for the button using the
target and configuration specified in the arguments. Draw is overloaded to
provide a variant which uses a scaling factor for the glyph image.
</p>
<p>
<var>Canvas</var> is the TCanvas instance where the glyph is rendered.
</p>
<p>
<var>Client</var> is a TRectangle instance with the client coordinates for
the drawing operation.
</p>
<p>
<var>Offset</var> is a TPoint instance which contains the offset where the
glyph is drawn in the Client rectangle.
</p>
<p>
<var>State</var> contains the button drawing state and is used to get both
the glyph image and graphic drawing effect applied in the method.
</p>
<p>
<var>Transparent</var> indicates if the glyph is draw transparently.
</p>
<p>
<var>PPI</var> indicates the display density for the image resolution
requested in the method.
</p>
<p>
<var>ScaleFactor</var> is the canvas scaling factor applied when the image is
drawn.
</p>
<p>
Images used for button glyphs can be loaded from three (3) different sources.
</p>
<ul>
<li>LCLGlyphResourceName property</li>
<li>ExternalImages property</li>
<li>Images property</li>
</ul>
<p>
By default, the LCL Glyph resource is used when the button is created.
Setting values for the corresponding properties changes the source for the
glyph image.
</p>
<p>
Draw calls <var>GetImageIndexAndEffect</var> to get the image resolution
needed for the value in PPI, and the index for the image drawn in the method.
The <var>TScaledImageListResolution.Draw</var> method is called to render the
selected glyph in the resolution to the Canvas using the Client, Offset, and
derived graphics drawing effect.
</p>
<p>
No actions are performed in the method when an bitmap has not been assigned
to the Glyph property, when the coordinates in Client are invalid, or when an
image resolution / image index was not found.
</p>
<p>
The return value is a TRectangle instance with the original value passed in
Client. Please note, this is different than the Delphi VCL; it returns the
text rectangle.
</p>
</descr>
<seealso>
<link id="TButtonGlyph.LCLGlyphName"/>
<link id="TButtonGlyph.ExternalImages"/>
<link id="TButtonGlyph.Images"/>
<link id="TButtonGlyph.GetImageIndexAndEffect"/>
<link id="#lcl.imglist.TScaledImageListResolution">TScaledImageListResolution</link>
</seealso>
</element>
<element name="TButtonGlyph.Draw.Result">
<short>Rectangle where the glyph was drawn.</short>
</element>
<element name="TButtonGlyph.Draw.Canvas">
<short>Canvas where the glyph is rendered.</short>
</element>
<element name="TButtonGlyph.Draw.Client">
<short>Client coordinates for the drawing operation.</short>
</element>
<element name="TButtonGlyph.Draw.Offset">
<short>Offset in the client coordinates where the glyph is drawn.</short>
</element>
<element name="TButtonGlyph.Draw.State">
<short>Button state.</short>
</element>
<element name="TButtonGlyph.Draw.Transparent">
<short><b>True</b> if the glyph is drawn transparently.</short>
</element>
<element name="TButtonGlyph.Draw.BiDiFlags">
<short>Not used in the current implementation.</short>
</element>
<element name="TButtonGlyph.Draw.PPI">
<short>
Pixels Per Inch for the image resolution requested in the method.
</short>
</element>
<element name="TButtonGlyph.Draw.ScaleFactor">
<short>Canvas scaling factor used in the method.</short>
</element>
<element name="TButtonGlyph.Refresh">
<short>Updates the button glyph after changes to property values.</short>
<descr></descr>
<seealso></seealso>
</element>
<element name="TButtonGlyph.Glyph">
<short>The bitmap image drawn as the glyph on the button.</short>
<descr>
<p>
<var>Glyph</var> is a <var>TBitmap</var> property with the bitmap image drawn
as the glyph for the class instance. The value in Glyph is created/loaded
when a bitmap is assigned directly to the property, or when loaded from a
Lazarus resource or stock icon.
</p>
<p>
Assigning a new TBitmap value to Glyph causes the reference in
<var>ExternalImages</var> to be discarded. The <var>GlyphChanged</var> method
is assigned to the <var>OnChange</var> event handler in the bitmap to track
changes to the image. If the Bitmap contains multiple adjacent images
(determined using Width and Height), the <var>NumGlyphs</var> property is
updated to contain the number of glyphs stored in the bitmap. The
<var>Refresh</var> method is called to update the button glyph following
changes to its property values.
</p>
</descr>
<seealso>
<link id="TButtonGlyph.GlyphChanged"/>
<link id="TButtonGlyph.ExternalImages"/>
<link id="TButtonGlyph.NumGlyphs"/>
<link id="TButtonGlyph.Refresh"/>
</seealso>
</element>
<element name="TButtonGlyph.IsDesigning">
<short>
Indicates whether change notifications are suppressed while editing property
values.
</short>
<descr>
<p>
<var>IsDesigning</var> is a <var>Boolean</var> property which indicates
whether change notifications are suppressed while editing property values for
the button glyph. The default value for the property is <b>False</b>, as
assigned in the <var>Create</var> constructor.
</p>
<p>
Set <var>IsDesigning</var> to <b>True</b> to prevent calls to the
<var>Refresh</var> method following a change to the <var>ShowMode</var>
property, or when getting/setting the image for the button <var>Glyph</var>.
Controls which use <var>TButtonGlyph</var>, like <var>TBitBtn</var> and
<var>TSpeedButton</var>, will update the property to indicate whether the
<var>ComponentState</var> for the control includes the <var>csDesigning</var>
enumeration value. This has the net effect of disabling <var>OnChange</var>
notifications at design-time.
</p>
</descr>
<seealso>
<link id="TButtonGlyph.ShowMode"/>
<link id="TButtonGlyph.Glyph"/>
<link id="TButtonGlyph.OnChange"/>
<link id="TButtonGlyph.Create"/>
<link id="TBitBtn"/>
<link id="TSpeedButton"/>
</seealso>
</element>
<element name="TButtonGlyph.NumGlyphs">
<short>The number of glyphs available for button states.</short>
<descr>
<p>
<var>NumGlyphs</var> is a <var>TNumGlyphs</var> property which indicates the
number of glyphs available for its button states. The default value for the
property is <b>1</b> (the low value for the range), and indicates that a
single image is used for all button states in the <var>TButtonGlyph</var>.
</p>
<p>
The value in <var>NumGlyphs</var> is updated when a <var>TBitmap</var>
instance is directly assigned to the <var>Glyph</var> property, and when
<var>GetImageIndexAndEffect</var> retrieves the Images and drawing effect(s)
for a given display density (PPI).
</p>
<p>
Reading the value in <var>NumGlyphs</var> causes the
<var>ExternalImages</var> property to be examined; when it is assigned, the
value for the property is always <b>1</b> (corresponding to the
<var>ExternalImageIndex</var>). Otherwise, the value in the internal member
is used.
</p>
<p>
Changing the value in <var>NumGlyphs</var> causes the <var>Refresh</var>
method to be called.
</p>
</descr>
<seealso>
<link id="TButtonGlyph.Glyph"/>
<link id="TButtonGlyph.ExternalImages"/>
<link id="TButtonGlyph.ExternalImageIndex"/>
<link id="TButtonGlyph.Refresh"/>
<link id="TNumGlyphs"/>
</seealso>
</element>
<element name="TButtonGlyph.Images">
<short>The list of available images for the button glyph.</short>
<descr>
<p>
<var>Images</var> is a read-only <var>TCustomImageList</var> property which
contains the images available for the <var>Glyph</var> in the class instance.
The values in Images come from ExternalImages (when an image list has been
assigned to its button control). The values may come from the list of bitmaps
loaded from the glyph resource with the name in LCLGlyphName.
</p>
<p>
ExternalImages (when assigned) is used as the source for the Images in the
class instance. The images with the resolution needed for the display density
(PPI) are scaled to the <var>ExternalImageWidth</var> and stored in Images.
<var>LCLGlyphName</var> (when assigned) is used to retrieve a resource in
LCLGlyphs when ExternalImages are unassigned.
</p>
<p>
See <link id="TButtonGlyph.GetImageIndexAndEffect"/> for more information
about image retrieval for the button glyph with a given state.
</p>
</descr>
<seealso>
<link id="TButtonGlyph.LCLGlyphName"/>
<link id="TButtonGlyph.ExternalImages"/>
<link id="TButtonGlyph.ExternalImageIndex"/>
<link id="TButtonGlyph.ExternalImageWidth"/>
<link id="TButtonGlyph.GetImageIndexAndEffect"/>
</seealso>
</element>
<element name="TButtonGlyph.LCLGlyphName">
<short>
Stores the standard LCL resource name used for the Glyph in the class
instance.
</short>
<descr>
<p>
<var>LCLGlyphName</var> is a <var>String</var> property used to store the
name for the LCL resource used as the <var>Glyph</var> for the class
instance. Changing the value in LCLGlyphName causes existing entries in
<var>Images</var> and <var>ExternalImages</var> to be removed, and the
<var>OnChange</var> event handler to be signalled. The Image lists are not
modified when the property is set to an empty string (<b>''</b>).
</p>
<p>
LCLGlyphName normally contains a value like those in
<var>BitBtnResNames</var>, and represents a standard resource name used in
the LCL.
</p>
</descr>
<seealso>
<link id="TButtonGlyph.Glyph"/>
<link id="TButtonGlyph.Images"/>
<link id="TButtonGlyph.ExternalImages"/>
<link id="TButtonGlyph.ExternalImageIndex"/>
<link id="TButtonGlyph.ExternalImageWidth"/>
<link id="TButtonGlyph.OnChange"/>
<link id="BitBtnResNames"/>
</seealso>
</element>
<element name="TButtonGlyph.ExternalImages">
<short>
Contains a reference to an external list of images that can be used as the
Glyph image,
</short>
<descr>
<p>
<var>ExternalImages</var> is a <var>TCustomImageList</var> property with the
list of images that can be displayed as a glyph for the class instance.
ExternalImages represents an image list assigned to the Images property for a
button control, like TBitBtn or TSpeedButton. The image list contains bitmaps
displayed for the various states for an associated button; i. e. Up, Pressed,
Hot, Disabled, or Selected. The image used for a given button state is
indicated in the properties: ExternalImageIndex, ExternalHotImageIndex,
ExternalDisabledImageIndex, ExternalPressedImageIndex, and
ExternalSelectedImageIndex.
</p>
<p>
Values in ExternalImages are used when a glyph bitmap has not been allocated
in the Glyph property.
Setting a new value for ExternalImages causes the Glyph property to be
cleared, and the OnChange event handler is signalled. Conversely, setting a
value for the LCLGlyphName property causes the reference in ExternalImages to
be discarded.
</p>
<p>
Bitmaps in ExternalImages (or Glyph) are stored in the Images property, and
used in the GetImageIndexAndEffect method to determine the image resolution
and bitmap used for the glyph and the button state.
</p>
<p>
Use ExternalImageWidth to specify the Width of the images in the
ExternalImages container.
</p>
</descr>
<seealso>
<link id="TButtonGlyph.ExternalImageIndex"/>
<link id="TButtonGlyph.ExternalPressedImageIndex"/>
<link id="TButtonGlyph.ExternalDisabledImageIndex"/>
<link id="TButtonGlyph.ExternalHotImageIndex"/>
<link id="TButtonGlyph.ExternalSelectedImageIndex"/>
<link id="TButtonGlyph.ExternalImageWidth"/>
<link id="TButtonGlyph.GetImageIndexAndEffect"/>
<link id="TButtonGlyph.Images"/>
<link id="TButtonGlyph.Glyph"/>
<link id="TButtonGlyph.NumGlyphs"/>
<link id="TButtonGlyph.GlyphChanged"/>
<link id="TButtonGlyph.CanShowGlyph"/>
</seealso>
</element>
<element name="TButtonGlyph.ExternalImageWidth">
<short>Width for the images in the ExternalImages property.</short>
<descr>
<p>
<var>ExternalImageWidth</var> is an <var>Integer</var> property with the
Width for the images in the ExternalImages property. The property value is
used to determine the image resolution needed for the Images displayed in the
GetImageIndexAndEffect method.
</p>
<p>
Changing the value for the property causes the OnChange event handler to be
signalled (when assigned).
</p>
</descr>
<seealso>
<link id="TButtonGlyph.ExternalImages"/>
<link id="TButtonGlyph.Glyph"/>
<link id="TButtonGlyph.Images"/>
<link id="TButtonGlyph.GetImageIndexAndEffect"/>
</seealso>
</element>
<element name="TButtonGlyph.ExternalImageIndex">
<short>
Ordinal position for the bitmap in ExternalImages displayed when the button
is Up (not pressed).
</short>
<descr>
<p>
<var>ExternalImageIndex</var> is a <var>Integer</var> property with the
ordinal position for the bitmap drawn on the control when the button is in
the Up (not pressed) state. ExternalImageIndex is an indexed property which
accesses the value stored in an internal array of image indexes for each of
the button states. The property value contains the ordinal position in
ExternalImages with the bitmap used for the button state. -1 indicates that
an explicit value has not been assigned for the property.
</p>
</descr>
<version>
Modified in LCL version 2.3.0 to use an internal array of button states for
the property value.
</version>
<seealso>
<link id="TButtonGlyph.ExternalImages"/>
<link id="TButtonGlyph.ExternalHotImageIndex"/>
<link id="TButtonGlyph.ExternalDisabledImageIndex"/>
<link id="TButtonGlyph.ExternalPressedImageIndex"/>
<link id="TButtonGlyph.ExternalSelectedImageIndex"/>
</seealso>
</element>
<element name="TButtonGlyph.ExternalHotImageIndex">
<short>
Ordinal position in ExternalImages for the image displayed when the button is
Hot (hovered).
</short>
<descr>
<p>
ExternalHotImageIndex is an indexed property which accesses the value stored
in an internal array of image indexes for each of the button states. The
property value contains the ordinal position in ExternalImages with the
bitmap used for the button state. -1 indicates that an explicit value has not
been assigned for the property.
</p>
</descr>
<version>
Added in LCL version 2.3.0. Available since version 3.0.
</version>
<seealso>
<link id="TButtonGlyph.ExternalImages"/>
<link id="TButtonGlyph.ExternalImageIndex"/>
<link id="TButtonGlyph.ExternalDisabledImageIndex"/>
<link id="TButtonGlyph.ExternalPressedImageIndex"/>
<link id="TButtonGlyph.ExternalSelectedImageIndex"/>
</seealso>
</element>
<element name="TButtonGlyph.ExternalDisabledImageIndex">
<short>
Ordinal position in ExternalImages for the image displayed when the button is
Disabled.
</short>
<descr>
<p>
ExternalDiasabledImageIndex is an indexed property which accesses the value
stored in an internal array of image indexes for each of the button states.
The property value contains the ordinal position in ExternalImages with the
bitmap used for the button state. -1 indicates that an explicit value has not
been assigned for the property.
</p>
</descr>
<version>
Added in LCL version 2.3.0. Available since version 3.0.
</version>
<seealso>
<link id="TButtonGlyph.ExternalImages"/>
<link id="TButtonGlyph.ExternalImageIndex"/>
<link id="TButtonGlyph.ExternalHotImageIndex"/>
<link id="TButtonGlyph.ExternalPressedImageIndex"/>
<link id="TButtonGlyph.ExternalSelectedImageIndex"/>
</seealso>
</element>
<element name="TButtonGlyph.ExternalPressedImageIndex">
<short>
Ordinal position in ExternalImages for the image displayed when the button is
Pressed (down).
</short>
<descr>
<p>
ExternalPressedImageIndex is an indexed property which accesses the value
stored in an internal array of image indexes for each of the button states.
The property value contains the ordinal position in ExternalImages with the
bitmap used for the button state. -1 indicates that an explicit value has not
been assigned for the property.
</p>
</descr>
<version>
Added in LCL version 2.3.0. Available since version 3.0.
</version>
<seealso>
<link id="TButtonGlyph.ExternalImages"/>
<link id="TButtonGlyph.ExternalImageIndex"/>
<link id="TButtonGlyph.ExternalHotImageIndex"/>
<link id="TButtonGlyph.ExternalDisabledImageIndex"/>
<link id="TButtonGlyph.ExternalSelectedImageIndex"/>
</seealso>
</element>
<element name="TButtonGlyph.ExternalSelectedImageIndex">
<short>
Ordinal position in ExternalImages for the image displayed when the button is
Selected (has focus).
</short>
<descr>
<p>
ExternalSelectedImageIndex is an indexed property which accesses the value
stored in an internal array of image indexes for each of the button states.
The property value contains the ordinal position in ExternalImages with the
bitmap used for the button state. -1 indicates that an explicit value has not
been assigned for the property.
</p>
</descr>
<version>
Added in LCL version 2.3.0. Available since version 3.0.
</version>
<seealso>
<link id="TButtonGlyph.ExternalImages"/>
<link id="TButtonGlyph.ExternalImageIndex"/>
<link id="TButtonGlyph.ExternalHotImageIndex"/>
<link id="TButtonGlyph.ExternalDisabledImageIndex"/>
<link id="TButtonGlyph.ExternalPressedImageIndex"/>
</seealso>
</element>
<element name="TButtonGlyph.Width">
<short>The Width of the Glyph image.</short>
<descr>
<p>
<var>Width</var> is an <var>Integer</var> property with the Width for bitmaps
displayed in the class instance. When Images has been assigned, its Width is
used as the property value. Otherwise, the property value is 0.
</p>
<p>
Width is used when a value is assigned to the Glyph property, and determines
if multiple images are present in the bitmap loaded into the Images property.
</p>
</descr>
<seealso>
<link id="TButtonGlyph.Height"/>
<link id="TButtonGlyph.Images"/>
<link id="TButtonGlyph.Glyph"/>
<link id="TButtonGlyph.NumGlyphs"/>
</seealso>
</element>
<element name="TButtonGlyph.Height">
<short>The height of the glyph image.</short>
<descr>
<p>
<var>Height</var> is an <var>Integer</var> property with the height for
bitmaps displayed in the class instance. When Images has been assigned, its
Height is used as the property value. Otherwise, the property value is 0.
</p>
<p>
Height is used when a value is assigned to the Glyph property, and determines
if multiple images are present in the bitmap loaded into the Images property.
</p>
</descr>
<seealso>
<link id="TButtonGlyph.Height"/>
<link id="TButtonGlyph.Images"/>
<link id="TButtonGlyph.Glyph"/>
<link id="TButtonGlyph.NumGlyphs"/>
</seealso>
</element>
<element name="TButtonGlyph.ShowMode">
<short>
Indicates the logic used to display the Glyph image for the class instance.
</short>
<descr>
<p>
<var>ShowMode</var> is a <var>TGlyphShowMode</var> property which indicates
logic used to display the <var>Glyph</var> image for the class instance.
</p>
<p>
The default value for the property is <var>gsmApplication</var>, and
indicates that <var>ShowButtonGlyphs</var> in <var>TApplication</var>
determines the visibility of the button Glyph. See <link
id="TButtonGlyph.CanShow"/> for more information about
<var>TGlyphShowMode</var> enumeration values and their usage in
<var>TButtonGlyph</var>.
</p>
<p>
Changing the value for the property causes the <var>Refresh</var> method to
be called at run-time (<var>IsDesigning</var> contains <b>False</b>).
</p>
</descr>
<seealso>
<link id="TButtonGlyph.Glyph"/>
<link id="TButtonGlyph.CanShow"/>
<link id="TButtonGlyph.IsDesigning"/>
<link id="TButtonGlyph.Refresh"/>
<link id="TGlyphShowMode"/>
</seealso>
</element>
<element name="TButtonGlyph.OnChange">
<short>
Event handler signalled when the bitmap in Glyph has been changed.
</short>
<descr>
<p>
<var>OnChange</var> is a <var>TNotifyEvent</var> property with the event
handler signalled when the image used in the Glyph property is changed.
OnChange is signalled from the DoChange method, and occurs after Glyph has
been loaded using the resource or image lists available to the class instance.
</p>
<p>
TButtonGlyph provides a default implementation for the event handler in its
GlyphChanged method.
</p>
</descr>
<seealso>
<link id="TButtonGlyph.GlyphChanged"/>
<link id="TButtonGlyph.Glyph"/>
<link id="TButtonGlyph.Images"/>
<link id="TButtonGlyph.ExternalImages"/>
<link id="TButtonGlyph.Refresh"/>
</seealso>
</element>
<element name="TBitBtnKind">
<short>
<var>TBitBtnKind</var> - enumerated type of possible kinds of BitButtons.
</short>
<descr>
<p>
<var>TBitBtnKind</var> is an enumerated type with values which indicate the
intended use for a TCustomBitBtn / TBitBtn instance. Values in
<var>TBitBtnKind</var> are used to select the appropriate image displayed as
the glyph for <var>TBitBtn</var> class instances. <var>TBitBtnKind</var> is
the type used to implement the <var>Kind</var> property in
<var>TCustomBitBtn</var>.
</p>
</descr>
<seealso>
<link id="TCustomBitBtn.Kind"/>
</seealso>
</element>
<element name="TBitBtnKind.bkCustom">
<short>Uses a custom image on a button.</short>
</element>
<element name="TBitBtnKind.bkOK">
<short>Uses the OK button image.</short>
</element>
<element name="TBitBtnKind.bkCancel">
<short>Uses the CANCEL button image.</short>
</element>
<element name="TBitBtnKind.bkHelp">
<short>Uses the HELP button image.</short>
</element>
<element name="TBitBtnKind.bkYes">
<short>Uses the YES button image.</short>
</element>
<element name="TBitBtnKind.bkNo">
<short>Uses the NO button image.</short>
</element>
<element name="TBitBtnKind.bkClose">
<short>Uses the CLOSE button image.</short>
</element>
<element name="TBitBtnKind.bkAbort">
<short>Uses the ABORT button image.</short>
</element>
<element name="TBitBtnKind.bkRetry">
<short>Uses the RETRY button image.</short>
</element>
<element name="TBitBtnKind.bkIgnore">
<short>Uses the IGNORE button image.</short>
</element>
<element name="TBitBtnKind.bkAll">
<short>Uses the ALL button image.</short>
</element>
<element name="TBitBtnKind.bkNoToAll">
<short>Uses the NO TO ALL button image.</short>
</element>
<element name="TBitBtnKind.bkYesToAll">
<short>Uses the YES TO ALL button image.</short>
</element>
<element name="TBitBtnKinds">
<short>
<var>TBitBtnKinds</var> - set of <var>TBitBtnKind</var>.
</short>
<descr>
<p>
Not used in the current LCL implementation.
</p>
</descr>
</element>
<element name="TCustomBitBtn">
<short>
<var>TCustomBitBtn</var> - the ancestor class for <var>TBitBtn</var>.
</short>
<descr>
<p>
<var>TCustomBitBtn</var> is a <var>TCustomButton</var> descendant, and the
ancestor for <var>TBitBtn</var>. It provides the interface used to display a
button with a glyph (or image) and a caption. It performs an action when the
button is clicked.
</p>
<p>
If you want to define your own bitmap button class, you should derive it from
this class.
</p>
</descr>
</element>
<element name="TCustomBitBtn.FDefaultCaption"/>
<element name="TCustomBitBtn.FKind"/>
<element name="TCustomBitBtn.FLayout"/>
<element name="TCustomBitBtn.FMargin"/>
<element name="TCustomBitBtn.FSpacing"/>
<element name="TCustomBitBtn.FImageChangeLink"/>
<element name="TCustomBitBtn.GetGlyph">
<short>Gets the value for the Glyph property.</short>
<descr></descr>
<seealso>
<link id="TCustomBitBtn.Glyph"/>
</seealso>
</element>
<element name="TCustomBitBtn.GetGlyph.Result">
<short>Value for the Glyph property.</short>
</element>
<element name="TCustomBitBtn.GetGlyphShowMode">
<short>Gets the value for the GlyphShowMode property.</short>
<descr></descr>
<seealso>
<link id="TCustomBitBtn.GlyphShowMode"/>
</seealso>
</element>
<element name="TCustomBitBtn.GetGlyphShowMode.Result">
<short>Value for the GlyphShowMode property.</short>
</element>
<element name="TCustomBitBtn.GetNumGlyphs">
<short>Gets the value for the NumGlyphs property.</short>
<descr></descr>
<seealso>
<link id="TCustomBitBtn.NumGlyphs"/>
</seealso>
</element>
<element name="TCustomBitBtn.GetNumGlyphs.Result">
<short>Value for the NumGlyphs property.</short>
</element>
<element name="TCustomBitBtn.ImageListChange">
<short>
Performs a change notification when Images for the control are updated.
</short>
<descr>
<p>
<var>ImageListChange</var> is a procedure used to perform a change
notification when the <var>Images</var> for the control have been updated.
</p>
<p>
<var>Sender</var> is the <var>TObject</var> instance generating the change
notification. <var>ImageListChange</var> compares Sender to the object in the
Images property, and calls the <var>GlyphChanged</var> method when they are
the same instance.
</p>
<p>
<var>ImageListChange</var> is assigned to the <var>OnChange</var> event
handler in the internal <var>TChangeLink</var> member used in the class.
</p>
</descr>
<seealso>
<link id="TCustomBitBtn.Images"/>
<link id="TCustomBitBtn.GlyphChanged"/>
<link id="TChangeLink.OnChange"/>
</seealso>
</element>
<element name="TCustomBitBtn.ImageListChange.Sender">
<short>Object generating the change notification.</short>
</element>
<element name="TCustomBitBtn.IsGlyphStored">
<short>Gets the storage specifier for the Glyph property.</short>
<descr>
<p>
<var>IsGlyphStored</var> is a <var>Boolean</var> function used to get the
storage specifier for the <var>Glyph</var> property. The return value is
<b>True</b> when an image has not already been assigned in the
<var>Action</var> property, or in the <var>TButtonGlyph</var> constructed for
the control. This ensures that the image is included in processing that
occurs for the LCL component streaming mechanism.
</p>
</descr>
<seealso>
<link id="TCustomBitBtn.Glyph"/>
<link id="TCustomButton.Action"/>
<link id="TButtonGlyph"/>
</seealso>
</element>
<element name="TCustomBitBtn.IsGlyphStored.Result">
<short>
<b>True</b> when the glyph image is stored in the LCL component stream.
</short>
</element>
<element name="TCustomBitBtn.SetGlyph">
<short>Sets the value for the Glyph property.</short>
<descr></descr>
<seealso>
<link id="TCustomBitBtn.Glyph"/>
</seealso>
</element>
<element name="TCustomBitBtn.SetGlyph.AValue">
<short>New value for the Glyph property.</short>
</element>
<element name="TCustomBitBtn.SetGlyphShowMode">
<short>Sets the value for the GlyphShowMode property.</short>
<descr></descr>
<seealso>
<link id="TCustomBitBtn.GlyphShowMode"/>
</seealso>
</element>
<element name="TCustomBitBtn.SetGlyphShowMode.AValue">
<short>New value for the GlyphShowMode property.</short>
</element>
<element name="TCustomBitBtn.SetKind">
<short>Sets the value for the Kind property.</short>
<descr></descr>
<seealso>
<link id="TCustomBitBtn.Kind"/>
</seealso>
</element>
<element name="TCustomBitBtn.SetKind.AValue">
<short>New value for the Kind property.</short>
</element>
<element name="TCustomBitBtn.SetLayout">
<short>Sets the value for the Layout property.</short>
<descr></descr>
<seealso>
<link id="TCustomBitBtn.Layout"/>
</seealso>
</element>
<element name="TCustomBitBtn.SetLayout.AValue">
<short>New value for the Layout property.</short>
</element>
<element name="TCustomBitBtn.SetMargin">
<short>Sets the value for the Margin property.</short>
<descr></descr>
<seealso>
<link id="TCustomBitBtn.Margin"/>
</seealso>
</element>
<element name="TCustomBitBtn.SetMargin.AValue">
<short>New value for the Margin property.</short>
</element>
<element name="TCustomBitBtn.SetNumGlyphs">
<short>Sets the value for the NumGlyphs property.</short>
<descr></descr>
<seealso>
<link id="TCustomBitBtn.NumGlyphs"/>
</seealso>
</element>
<element name="TCustomBitBtn.SetNumGlyphs.AValue">
<short>New value for the NumGlyphs property.</short>
</element>
<element name="TCustomBitBtn.SetSpacing">
<short>Sets the value for the Spacing property.</short>
<descr></descr>
<seealso>
<link id="TCustomBitBtn.Spacing"/>
</seealso>
</element>
<element name="TCustomBitBtn.SetSpacing.AValue">
<short>New value for the Spacing property.</short>
</element>
<element name="TCustomBitBtn.RealizeKind">
<short>
Loads and configures properties for the Kind value in the control.
</short>
<descr>
<p>
<var>RealizeKind</var> is a procedure used to load and configure properties
for the control. <var>RealizeKind</var> ensures that the <var>Glyph</var>
displayed on the control contains a valid image for the value in the
<var>Kind</var> property. When <var>Kind</var> contains <b>bkCustom</b>, it
is assumed that the image was assigned directly to the <var>Glyph</var>
property. For all other values, the following logic is used to derive the
<var>Glyph</var> image:
</p>
<ol>
<li>
Call <var>GetDefaultBitBtnGlyph</var> to get a user-supplied bitmap for the
glyph (when available).
</li>
<li>
Use <var>ThemeServices</var> to get a "stock" image supplied by the widget
set (when available).
</li>
<li>
Use the graphic stored in <var>Images</var> at the position in
<var>ImageIndex</var> (when assigned).
</li>
<li>
Load the <var>Glyph</var> image from a LCL resource for the specified
<var>Kind</var>.
</li>
</ol>
<p>
<var>ForceDefaults</var> indicates if default values are applied to
properties in the control. When it contains <b>True</b>, the following
properties are updated:
</p>
<ul>
<li>Caption</li>
<li>ModalResult</li>
<li>Default</li>
<li>Cancel</li>
</ul>
<p>
<var>RealizeKind</var> is called when the value in the <var>Kind</var>
property is changed, and when the control has been <var>Loaded</var> using
the LCL component streaming mechanism.
</p>
</descr>
<seealso>
<link id="TCustomBitBtn.Glyph"/>
<link id="TCustomBitBtn.Kind"/>
<link id="TCustomBitBtn.Caption"/>
<link id="TCustomBitBtn.ModalResult"/>
<link id="TCustomBitBtn.Default"/>
<link id="TCustomBitBtn.Cancel"/>
<link id="TBitBtnKind"/>
<link id="GetDefaultBitBtnGlyph"/>
<link id="BitBtnModalResults"/>
<link id=" #lcl.themes.TThemeServices.GetStockImage"/>
</seealso>
</element>
<element name="TCustomBitBtn.RealizeKind.ForceDefaults">
<short>
<b>True</b> if the default values for properties are used in the control.
</short>
</element>
<element name="TCustomBitBtn.SetDefaultCaption">
<short>Sets the value for the DefaultCaption property.</short>
<descr>
<p>
<var>SetDefaultCaption</var> is the write access specifier for the
<var>DefaultCaption</var> property. <var>AValue</var> contains the new value
assigned to the property.
</p>
<p>
When <var>AValue</var> is <b>True</b>, and <var>Kind</var> contains a value
other than <var>bkCustom</var>, the <var>Caption</var> property is updated to
use the value returned from <var>GetCaptionOfKind</var>. This also causes the
<var>TextChanged</var> method to be called when the Caption property is
updated.
</p>
</descr>
<seealso>
<link id="TCustomBitBtn.DefaultCaption"/>
<link id="TCustomBitBtn.Caption"/>
<link id="TCustomBitBtn.Kind"/>
<link id="TCustomBitBtn.GetCaptionOfKind"/>
<link id="TCustomBitBtn.TextChanged"/>
</seealso>
</element>
<element name="TCustomBitBtn.SetDefaultCaption.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomBitBtn.GetCaptionOfKind">
<short>Gets the default Caption value for the button Kind.</short>
<descr></descr>
<seealso>
</seealso>
</element>
<element name="TCustomBitBtn.GetCaptionOfKind.Result">
<short>Default value for the Caption property.</short>
</element>
<element name="TCustomBitBtn.GetCaptionOfKind.AKind">
<short>Enumeration value that identifies the kind of BitButton.</short>
</element>
<element name="TCustomBitBtn.GetImages">
<short>Gets the value for the Images property.</short>
<descr></descr>
<seealso>
<link id="TCustomBitBtn.Images"/>
</seealso>
</element>
<element name="TCustomBitBtn.GetImages.Result">
<short>Value for the Images property.</short>
</element>
<element name="TCustomBitBtn.SetImages">
<short>Sets the value for the Images property.</short>
<descr></descr>
<seealso>
<link id="TCustomBitBtn.Images"/>
</seealso>
</element>
<element name="TCustomBitBtn.SetImages.AImages">
<short>New value for the Images property.</short>
</element>
<element name="TCustomBitBtn.GetImageIndex">
<short>Gets the value for the ImageIndex property.</short>
<descr></descr>
<seealso>
<link id="TCustomBitBtn.ImageIndex"/>
</seealso>
</element>
<element name="TCustomBitBtn.GetImageIndex.Result">
<short>Value for the ImageIndex property.</short>
</element>
<element name="TCustomBitBtn.GetImageIndex.AState">
<short>Drawing state for the requested button glyph.</short>
</element>
<element name="TCustomBitBtn.SetImageIndex">
<short>Sets the value for the ImageIndex property.</short>
<descr></descr>
<seealso>
<link id="TCustomBitBtn.ImageIndex"/>
</seealso>
</element>
<element name="TCustomBitBtn.SetImageIndex.AImageIndex">
<short>New value for the ImageIndex property.</short>
</element>
<element name="TCustomBitBtn.SetImageIndex.AState">
<short>Identifies the drawing State for the specified image index.</short>
</element>
<element name="TCustomBitBtn.GetImageWidth">
<short>Gets the value for the ImageWidth property.</short>
<descr></descr>
<seealso>
<link id="TCustomBitBtn.ImageWidth"/>
</seealso>
</element>
<element name="TCustomBitBtn.GetImageWidth.Result">
<short>Value for the ImageWidth property.</short>
</element>
<element name="TCustomBitBtn.SetImageWidth">
<short>Sets the value for the ImageWidth property.</short>
<descr></descr>
<seealso>
<link id="TCustomBitBtn.ImageWidth"/>
</seealso>
</element>
<element name="TCustomBitBtn.SetImageWidth.AImageWidth">
<short>New value for the ImageWidth property.</short>
</element>
<element name="TCustomBitBtn.FButtonGlyph">
<short>
An internal member which contains the TButtonGlyph instance for the control.
</short>
<descr></descr>
<seealso>
<link id="TButtonGlyph"/>
<link id="TCustomBitBtn.Create"/>
<link id="TCustomBitBtn.Create"/>
<link id="TCustomBitBtn.LoadGlyphFromResourceName"/>
<link id="TCustomBitBtn.LoadGlyphFromLazarusResource"/>
<link id="TCustomBitBtn.LoadGlyphFromStock"/>
</seealso>
</element>
<element name="TCustomBitBtn.WSRegisterClass" link="#lcl.lclclasses.TLCLComponent.WSRegisterClass"/>
<element name="TCustomBitBtn.ActionChange">
<short>
Performs action when a new value is assigned to the Action property for the
control.
</short>
<descr>
<p>
<var>ActionChange</var> is overridden in TCustomBitBtn to ensure that values
from the new action instance in Sender are stored to properties in the
control. ActionChange is the routine which implements the OnChange event
handler for the ActionLink in the control. It is signalled (from TControl)
when a new value is assigned to the Action property, or when the control is
loaded using LCL component streaming.
</p>
<p>
Sender is the new action instance for the event, or <b>Nil</b> when the value
in Action has been removed (set to <b>Nil</b>).
</p>
<p>
CheckDefaults indicates whether existing properties values in the control are
used as default values. When set to <b>False</b>, the values from the action
instance are applied to the control. Values from the action may be used (when
assigned) if the properties in the control are unassigned - even when
CheckDefaults is <b>True</b>.
</p>
<p>
ActionChange calls the inherited method to update property values like
Caption, Enabled, Hint, Visible, HelpContext and HelpKeyword. When Sender is
a TCustomAction instance, the values in ImageIndex and Images are also
updated with the values from the action (when assigned).
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomBitBtn.ActionChange.Sender">
<short>New action instance for the event.</short>
</element>
<element name="TCustomBitBtn.ActionChange.CheckDefaults">
<short>
<b>True</b> to use existing properties as default values, <b>False</b> to use
properties from the new action.
</short>
</element>
<element name="TCustomBitBtn.GlyphChanged">
<short>
Performs actions needed when the value in Glyph has been changed.
</short>
<descr>
<p>
Ensures that the widget set class is notified of a change in the value for
the Glyph property. Calls InvalidatePreferredSize and AdjustSize to resize
the control for the new Glyph image.
</p>
<p>
Assigned to the OnChange event handler in the TButtonGlyph instance for the
control, and called directly from the ImageListChange method.
</p>
</descr>
<seealso>
<link id="TCustomBitBtn.Glyph"/>
<link id="TButtonGlyph.OnChange"/>
</seealso>
</element>
<element name="TCustomBitBtn.GlyphChanged.Sender">
<short>TObject instance for the change notification.</short>
</element>
<element name="TCustomBitBtn.InitializeWnd" link="#lcl.controls.TWinControl.InitializeWnd"/>
<element name="TCustomBitBtn.IsCaptionStored">
<short>Gets the storage specifier for the Caption property.</short>
<descr></descr>
<seealso></seealso>
</element>
<element name="TCustomBitBtn.IsCaptionStored.Result">
<short>
<b>True</b> when a value for the property is included in the LCL component
streaming mechanism.
</short>
</element>
<element name="TCustomBitBtn.Loaded">
<short>
Performs actions needed when the component has been loaded using LCL
component streaming.
</short>
<descr>
<p>
<var>Loaded</var> is an overridden method in <var>TCustomBitBtn</var>, and
calls the inherited method on entry. It ensures that properties in the class
instance are updated when a value other than bkCustom is used in the Kind
property. This includes loading the Glyph image and setting values in
Caption, ModalResult, Default, Cancel, ImageIndex, and DefaultCaption.
</p>
</descr>
<seealso>
<link id="TCustomBitBtn.Kind"/>
<link id="#lcl.stdctrls.TCustomButton.Loaded">TCustomButton.Loaded</link>
</seealso>
</element>
<element name="TCustomBitBtn.Notification">
<short>
Performs actions needed when a sub-component is added or removed in the class
instance.
</short>
<descr>
<p>
Ensures that a TCustomImageList reference in the button glyph is <b>Nil</b>'d
when the image list is freed.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TControl.Notification">TControl.Notification</link>
</seealso>
</element>
<element name="TCustomBitBtn.Notification.AComponent">
<short>Component for the notification message.</short>
</element>
<element name="TCustomBitBtn.Notification.Operation">
<short>Operation performed for the notification message.</short>
</element>
<element name="TCustomBitBtn.TextChanged">
<short>
Performs actions needed when the CM_TEXTCHANGED control message is handled
for the control.
</short>
<descr>
<p>
<var>TextChanged</var> is an overridden method in <var>TCustomBitBtn</var>.
It ensures that the control is updated when the value in the Caption property
has been changed. AdjustSize is called to auto-size a visible control and its
parent. The value in DefaultCaption is set to <b>False</b> after the new
value has been assigned for the Caption property.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TControl.TextChanged">TControl.TextChanged</link>
</seealso>
</element>
<element name="TCustomBitBtn.GetControlClassDefaultSize" link="#lcl.controls.TControl.GetControlClassDefaultSize"/>
<element name="TCustomBitBtn.GetControlClassDefaultSize.Result"/>
<element name="TCustomBitBtn.CMAppShowBtnGlyphChanged">
<short>Handles the CM_APPSHOWBTNGLYPHCHANGED message for the control.</short>
<descr>
<p>
<var>CMAppShowBtnGlyphChanged</var> is a method used to handle the
<b>CM_APPSHOWBTNGLYPHCHANGED</b> control message for the control. It ensures
that the bitmap in <var>Glyph</var> is refreshed when the value in the
<var>GlyphShowMode</var> property is set to <var>gsmApplication</var>.
</p>
</descr>
<seealso>
<link id="TCustomBitBtn.Glyph"/>
<link id="TCustomBitBtn.GlyphShowMode"/>
<link id="TButtonGlyph.Refresh"/>
<link id="#lcl.menus.TGlyphShowMode">TGlyphShowMode</link>
</seealso>
</element>
<element name="TCustomBitBtn.CMAppShowBtnGlyphChanged.Message">
<short>Control message handled in the method.</short>
</element>
<element name="TCustomBitBtn.Create">
<short>Constructor for the class instance.</short>
<descr>
<p>
<var>Create</var> is the constructor for the class instance.
<var>Create</var> calls the inherited constructor, and initializes the
layout, style, spacing, and Button Glyph for the control.
</p>
</descr>
<seealso>
<link id="#rtl.classes.TComponent.Create">TComponent.Create</link>
<link id="#LCL.StdCtrls.TCustomButton.Create">TCustomButton.Create</link>
</seealso>
</element>
<element name="TCustomBitBtn.Create.TheOwner">
<short>Owner of the class instance.</short>
</element>
<element name="TCustomBitBtn.Destroy">
<short>Destructor for the class instance.</short>
<descr>
<p>
<var>Destroy</var> is the overridden destructor for the class instance. It
ensures that resource allocated for the internal button glyph and image
change link are freed. It calls the inherited destructor prior to exiting
from the method.
</p>
</descr>
<seealso>
<link id="#rtl.Classes.TComponent.Destroy">TComponent.Destroy</link>
</seealso>
</element>
<element name="TCustomBitBtn.Click">
<short>
Performs actions needed when the button is clicked.
</short>
<descr>
<p>
<var>Click</var> is an overridden method in TCustomBitBtn. It ensures that
the correct actions are performed based on the value in the Kind property.
When Kind is set to bkClose, the non-nested parent form is closed for the
following conditions:
</p>
<ul>
<li>ModalResult is set to mrNone, or</li>
<li>
ModalResult is mrCancel and the parent form is displayed as a modal dialog.
</li>
</ul>
<p>
If Kind has any other value, the inherited Click method is called to
determine the ModalResult and signal the OnChange event handler (when
assigned).
</p>
<p>
Click is called when the DialogChar method handles an accelerator key for the
control, when the Action for the control is executed, and when a mouse click
event is handled for the control.
</p>
</descr>
<seealso>
<link id="#lcl.stdctrls.TCustomButton.Click">TCustomButton.Click</link>
<link id="#lcl.stdctrls.TButtonControl.Click">TButtonControl.Click</link>
<link id="#lcl.controls.TControl.Click">TControl.Click</link>
</seealso>
</element>
<element name="TCustomBitBtn.LoadGlyphFromResourceName">
<short>
Loads the Glyph image with the specified named from a resource instance.
</short>
<descr>
<p>
Calls the LoadGlyphFromLazarusResource routine in <file>buttons.pas</file> to
load the bitmap for the specified resource name into the Glyph for the button
control.
</p>
</descr>
<version>
Modified in LCL version 4.0 to use the TLCLHandle type for the Instance
argument instead of the deprecated THandle type.
</version>
<seealso>
<link id="TCustomBitBtn.Glyph"/>
<link id="LoadGlyphFromLazarusResource"/>
<link id="#lcl.lcltype.TLCLHandle">TLCLHandle</link>
</seealso>
</element>
<element name="TCustomBitBtn.LoadGlyphFromResourceName.Instance">
<short>
Handle for the resource instance where the glyph image is stored.
</short>
</element>
<element name="TCustomBitBtn.LoadGlyphFromResourceName.AName">
<short>
Resource name for the glyph loaded in the method.
</short>
</element>
<element name="TCustomBitBtn.LoadGlyphFromLazarusResource">
<short>
Loads a glyph image from the Lazarus resource file (.lrs).
</short>
<descr></descr>
<seealso></seealso>
</element>
<element name="TCustomBitBtn.LoadGlyphFromLazarusResource.AName">
<short>Name for the resource loaded from the Lazarus resource file.</short>
</element>
<element name="TCustomBitBtn.LoadGlyphFromStock">
<short>Loads a stock glyph image for the specified button identifier.</short>
<descr></descr>
<seealso></seealso>
</element>
<element name="TCustomBitBtn.LoadGlyphFromStock.idButton">
<short>
Button identifier used to determine the image loaded in the Glyph.
</short>
</element>
<element name="TCustomBitBtn.LoadGlyphFromResource">
<short>
Loads the glyph image for the specified button identifier from the internal LCL
resource.
</short>
<descr>
<p>
<var>LoadGlyphFromResource</var> is a method used to load the glyph for the
specified button identifier from the internal LCL resource with the button
images. <var>idButton</var> contains a value in the TButtonImage range for the
button identifier. No actions are performed in the method if idButton is not in
the TButtonImage range.
</p>
<p>
LoadGlyphFromResource calls the LoadGlyphFromResource routine using the
resource name in BitBtnResNames for the button identifier.
</p>
</descr>
<seealso>
<link id="LoadGlyphFromResource"/>
<link id="BitBtnResNames"/>
<link id="TButtonImage"/>
</seealso>
</element>
<element name="TCustomBitBtn.LoadGlyphFromResource.idButton">
<short>
Button identifier for glyph image loaded in the method.
</short>
</element>
<element name="TCustomBitBtn.CanShowGlyph">
<short>Indicates if the Glyph for the button can be displayed.</short>
<descr>
<p>
<var>CanShowGlyph</var> is a <var>Boolean</var> function which indicates if
the <var>Glyph</var> for the button can be displayed. The return value
contains the result from the <var>CanShowGlyph</var> method in the internal
<var>TButtonGlyph</var> member.
</p>
<p>
<var>AWithShowMode</var> indicates whether the <var>ShowMode</var> property
for the button glyph is examined in the method by calling the
<var>CanShow</var> method in <var>TButtonGlyph</var>.
</p>
</descr>
<seealso>
<link id="TButtonGlyph.Glyph"/>
<link id="TButtonGlyph.CanShowGlyph"/>
<link id="TButtonGlyph.CanShow"/>
<link id="TButtonGlyph.ShowMode"/>
</seealso>
</element>
<element name="TCustomBitBtn.CanShowGlyph.Result">
<short>
<b>True</b> when the Glyph image can be displayed for the control.
</short>
</element>
<element name="TCustomBitBtn.CanShowGlyph.AWithShowMode">
<short>
Indicates if the ShowMode for the glyph is examined in the method.
</short>
</element>
<element name="TCustomBitBtn.Caption">
<short>
Contains the descriptive text displayed for the Bitmap button control.
</short>
<descr>
<p>
<var>Caption</var> is a public <var>TCaption</var> property which contains
the descriptive text displayed for the Bitmap button control. Assign a value
to Caption when the <var>Kind</var> property is set to <var>bkCustom</var>.
When Kind contains one of the other <var>TBitBtnKind</var> enumeration
values, the Caption is normally set using the <var>GetCaptionOfKind</var>
method.
</p>
<p>
Use <var>DefaultCaption</var> to determine if the value in Caption is the
default one for the control.
</p>
</descr>
<seealso>
<link id="TCustomBitBtn.DefaultCaption"/>
<link id="TCustomBitBtn.Kind"/>
<link id="TBitBtnKind"/>
<link id="#lcl.controls.TControl.Caption">TControl.Caption</link>
</seealso>
</element>
<element name="TCustomBitBtn.DefaultCaption">
<short>
Indicates if Caption contains the default value for the button Kind.
</short>
<descr>
<p>
Changing the property value to <b>True</b> causes a resource string with the
caption text for the button ID to be assigned to the Caption property when
Kind is not bkCustom.
</p>
</descr>
<seealso>
<link id="TCustomBitBtn.Caption"/>
<link id="TCustomBitBtn.Kind"/>
</seealso>
</element>
<element name="TCustomBitBtn.DisabledImageIndex">
<short>
Ordinal position for the image displayed when the button is Disabled.
</short>
<descr>
<p>
<var>DisabledImageIndex</var> is a <var>TImageIndex</var> property with the
ordinal position for the bitmap displayed on the button when it is Disabled.
It refers to the position in the Images property where the associated image
data is stored. The default value for the property is -1, and indicates that
an explicit value has not been assigned to the property.
</p>
<p>
The Lazarus IDE provides a property editor that allows selection of one of the
Images from a drop-down image list. The position for the selected image is
stored as the property value in the Object Inspector.
</p>
</descr>
<version>
Added in LCL version 2.3.0. Available since version 3.0.
</version>
<seealso/>
</element>
<element name="TCustomBitBtn.Glyph">
<short>Bitmap with the Glyph displayed on the control.</short>
<descr>
<p>
<var>Glyph</var> is a <var>TBitmap</var> property with bitmap(s) displayed on
the button control. The bitmap is stored internally in a TButtonGlyph
instance that is populated when a glyph resource is used for image(s) on the
control. A bitmap can be assigned directly to the property. Or, it can be
loaded when the LoadGlyphFromResourceName, LoadGlyphFromLazarusResource, or
LoadGlyphFromStock method is called.
</p>
<p>
Glyph can contain a bitmap with multiple adjacent images representing the
states for the button control. Use ImageWidth to define the Width for
individual images in the combined bitmap. If the bitmap has a Width that is
larger than ImageWidth, it is split into separate bitmaps for use in the
internal TButtonGlyph instance. Use ImageIndex, DisabledImageIndex,
HotImageIndex, and PressedImageIndex to indicate which bitmap is used for the
corresponding button state.
</p>
<remark>
Unlike TCustomSpeedButton, SelectedImageIndex is not available in
TCustomBitBtn; it cannot receive input focus, so a selected image is neither
needed nor implemented.
</remark>
</descr>
<seealso>
<link id="TCustomBitBtn.Images"/>
<link id="TCustomBitBtn.ImageIndex"/>
<link id="TCustomBitBtn.ImageWidth"/>
<link id="TCustomBitBtn.Kind"/>
<link id="TCustomBitBtn.LoadGlyphFromResourceName"/>
<link id="TCustomBitBtn.LoadGlyphFromLazarusResource"/>
<link id="TCustomBitBtn.LoadGlyphFromStock"/>
</seealso>
</element>
<element name="TCustomBitBtn.NumGlyphs">
<short>The number of glyph bitmaps available for the control.</short>
<descr>
<p>
<var>NumGlyphs</var> is a <var>TNumGlyphs</var> property with the number of
images in the bitmap assigned to the Glyph property. The property value is
read from and written to the internal TButtonGlyph instance for the control.
Changing the value for the property causes the original image to be
re-examined and split into separate images based on the Width specified in
the ImageWidth property.
</p>
</descr>
<seealso>
<link id="TCustomBitBtn.Glyph"/>
<link id="TCustomBitBtn.ImageWidth"/>
<link id="TButtonGlyph.NumGlyphs"/>
</seealso>
</element>
<element name="TCustomBitBtn.HotImageIndex">
<short>
Ordinal position for the bitmap displayed when the button control is hot
(hovered).
</short>
<descr>
<p>
<var>HotImageIndex</var> is a <var>TImageIndex</var> property with the
ordinal position for the bitmap displayed on the button when it is hot (under
the mouse cursor - hovered). It refers to the position in the Images property
where the associated image data is stored. The default value for the property
is -1, and indicates that an explicit value has not been assigned to the
property.
</p>
<p>
The Lazarus IDE provides a property editor that allows selection of one of the
Images from a drop-down image list. The position for the selected image is
stored as the property value in the Object Inspector.
</p>
</descr>
<version>
Added in LCL version 2.3.0. Available since version 3.0.
</version>
<seealso/>
</element>
<element name="TCustomBitBtn.Images">
<short>
Contains the list of images available for use as the glyph on a custom button
control.
</short>
<descr>
<p>
<var>Images</var> is a <var>TCustomImageList</var> property with the images
which can be displayed as the glyph for the various states on the button
control. Images provides an alternative to assigning a bitmap to the Glyph
property, and is used when the Kind property is set to bkCustom.
</p>
<p>
Use ImageWidth to set the image resolution size used when a value is
retrieved from the Images property.
</p>
<p>
Use ImageIndex to specify the ordinal position for the value in Images
displayed as the glyph for the button control.
</p>
<p>
Use the HotImageIndex, PressedImageIndex, and DisabledImageIndex properties
to specify the position for the image displayed for the corresponding button
states.
</p>
</descr>
<seealso>
<link id="TCustomBitBtn.Glyph"/>
<link id="TCustomBitBtn.Kind"/>
<link id="TCustomBitBtn.ImageWidth"/>
<link id="TCustomBitBtn.ImageIndex"/>
<link id="TCustomBitBtn.HotImageIndex"/>
<link id="TCustomBitBtn.PressedImageIndex"/>
<link id="TCustomBitBtn.DisabledImageIndex"/>
<link id="#lcl.imglist.TCustomImageList">TCustomImageList</link>
</seealso>
</element>
<element name="TCustomBitBtn.ImageIndex">
<short>
Ordinal position for the default bitmap displayed when the button control is
up (not pressed).
</short>
<descr>
<p>
<var>ImageIndex</var> is a <var>TImageIndex</var> property with the ordinal
position for the bitmap displayed on the button when it is in its default
state (up). It refers to the position in the Images property where the
associated image data is stored. The default value for the property is -1,
and indicates that an explicit value has not been assigned to the property.
</p>
</descr>
<version>
Added in LCL version 2.3.0. Available since version 3.0.
</version>
<seealso></seealso>
</element>
<element name="TCustomBitBtn.ImageWidth">
<short>
Width for the value in Images displayed on the button control.
</short>
<descr>
<p>
<var>ImageWidth</var> is an <var>Integer</var> property with the Width in
pixels for the TCustomImage instances stored in the Images property. The
default value for the property is 0, and indicates that an explicit value has
not been assigned for the property. This causes the Width property in the
TCustomImageList to be used for an image retrieved from the list.
</p>
<p>
Changing the property value causes the internal TButtonGlyph instance in the
class to be updated with the new value. InvalidatePreferredSize is called to
recalculate the preferred dimensions for the class instance. AdjustSize is
called to auto-size a visible control and its parent.
</p>
</descr>
<seealso>
<link id="TCustomBitBtn.Images"/>
<link id="TCustomBitBtn.ImageIndex"/>
<link id="TCustomBitBtn.Glyph"/>
<link id="TButtonGlyph"/>
</seealso>
</element>
<element name="TCustomBitBtn.Kind">
<short>
Specifies the button kind including the default bitmap and caption for the
button control.
</short>
<descr>
<p>
<var>Kind</var> is a <var>TBitBtnKind</var> property which identifies the
intended usage for the button control. The enumeration value indicates the
default values used in the Glyph and Caption for the control. The default
value for the property is bkCustom, and causes values in Glyph (or the image
in ImageIndex) and Caption to be displayed on the button surface.
</p>
<p>
Changing the property value causes other values in the class instance to be
updated. When Kind has a value other than bkCustom, the default Glyph is
retrieved and stored using the GetDefaultBitBtnGlyph, ThemeServices, or
resources from BitBtnImages and BitBtnResNames. Values in Caption,
ModalResult, Default, Cancel and DefaultCaption are updated as needed for the
new value in Kind.
</p>
</descr>
<seealso>
<link id="TBitBtnKind"/>
</seealso>
</element>
<element name="TCustomBitBtn.Layout">
<short>
Layout or alignment for the glyph bitmap and caption on the control.
</short>
<descr>
<p>
<var>Layout</var> is a <var>TButtonLayout</var> property which indicates the
alignment used for the Glyph (or image) and the Caption on the button
control. The default value for the property is blGlyphLeft. It causes the
Margin, Glyph (or image), Spacing, and Caption to be aligned to the left edge
of the button surface.
</p>
<p>
Changing the property value causes the widgetset class instance to be updated
when its handle has been allocated. InvalidatePreferredSize is called to
recalculate the preferred dimensions for the control. AdjustSize is called to
auto-size a visible control and its parent.
</p>
<p>
The property value is used in the InitializeWnd method to set the initial
value in the widget class instance.
</p>
<p>
Use Margin to set the space reserved prior to the glyph bitmap on the aligned
edge of the control. Use Spacing to set the space reserved between the Glyph
image and the Caption relative to the aligned edge of the control.
</p>
</descr>
<seealso>
<link id="TCustomBitBtn.Caption"/>
<link id="TCustomBitBtn.Glyph"/>
<link id="TCustomBitBtn.Images"/>
<link id="TCustomBitBtn.ImageIndex"/>
<link id="TCustomBitBtn.Margin"/>
<link id="TCustomBitBtn.Spacing"/>
<link id="TButtonLayout"/>
</seealso>
</element>
<element name="TCustomBitBtn.Margin">
<short>
The space prior to the glyph bitmap on the aligned edge of the button layout.
</short>
<descr>
<p>
<var>Margin</var> is an <var>Integer</var> property with the space reserved
prior to the Glyph or image displayed on the button control. It occurs on the
aligned edge specified in Layout, and refers to a number of pixels. The value
-1 has special meaning; it causes the glyph and caption to be centered on the
button surface.
</p>
<p>
The default value for the property is -1. Changing the property value causes
the widgetset class instance to be updated when its handle has been
allocated. AdjustSize is called to auto-size a visible control and its
parent. At design-time, the Invalidate method is called to redraw the control.
</p>
<p>
The property value is used in the InitializeWnd method to set the initial
value in the widget class.
</p>
<p>
Use Layout to specify the edge on the button control to which the glyph
bitmap and caption are aligned.
</p>
<p>
Use Spacing to set the space reserved between the glyph bitmap and the
caption for the control.
</p>
</descr>
<seealso>
<link id="TCustomBitBtn.Caption"/>
<link id="TCustomBitBtn.Glyph"/>
<link id="TCustomBitBtn.Images"/>
<link id="TCustomBitBtn.ImageIndex"/>
<link id="TCustomBitBtn.Layout"/>
<link id="TCustomBitBtn.Spacing"/>
</seealso>
</element>
<element name="TCustomBitBtn.PressedImageIndex">
<short>
Ordinal position for the bitmap displayed when the button control is pressed
(down).
</short>
<descr>
<p>
<var>PressedImageIndex</var> is a <var>TImageIndex</var> property with the
ordinal position for the bitmap displayed on the button when it is pressed
(down). It refers to the position in the Images property where the associated
image data is stored. The default value for the property is -1, and indicates
that an explicit value has not been assigned to the property.
</p>
<p>
The Lazarus IDE provides a property editor that allows selection of one of the
Images from a drop-down image list. The position for the selected image is
stored as the property value in the Object Inspector.
</p>
</descr>
<version>
Added in LCL version 2.3.0. Available since version 3.0.
</version>
<seealso>
<link id="TCustomBitBtn.Images"/>
<link id="TCustomBitBtn.ImageIndex"/>
</seealso>
</element>
<!--
currently commented out in TCustomBitBtn
<element name="TCustomBitBtn.SelectedImageIndex">
<short>Ordinal position for the image displayed on the control.</short>
<descr>
<p>
SelectedImageIndex is a TImageIndex property.
The default value for the property is -1, and indicates that an explicit
value has not been assigned to the property.
</p>
</descr>
<version>
Added in LCL version 2.3.0.
</version>
<seealso></seealso>
</element>
-->
<element name="TCustomBitBtn.Spacing">
<short>
The space reserved between the bitmap and the caption on the button control.
</short>
<descr>
<p>
<var>Spacing</var> is an <var>Integer</var> property with the number of
pixels used to separate the Glyph (or image) displayed on the button and its
Caption. The default value for the property is 4 pixels.
</p>
<p>
The number of pixels in Spacing is always displayed - even when the Caption
is an empty string. To suppress drawing of the additional space, set the
property to 0.
</p>
<p>
Changing the value for the property causes the widgetset instance to be
updated when its handle has been allocated. AdjustSize is called to auto-size
a visible control and its parent. At design-time, the Invalidate method is
called to redraw the control.
</p>
<p>
The property value is used in the InitializeWnd method to set the initial
value in the widget class.
</p>
<p>
Use Layout to specify the edge on the button control to which the glyph
bitmap is aligned.
</p>
<p>
Use Margin to set the space reserved on the aligned edge prior to the glyph
bitmap.
</p>
<remark>
For the macOS Carbon widgetset, the Spacing property is not supported. Layout
and alignment is determined by the native control for the platform.
</remark>
</descr>
<seealso>
<link id="TCustomBitBtn.Caption"/>
<link id="TCustomBitBtn.Glyph"/>
<link id="TCustomBitBtn.Images"/>
<link id="TCustomBitBtn.ImageIndex"/>
<link id="TCustomBitBtn.Layout"/>
<link id="TCustomBitBtn.Margin"/>
</seealso>
</element>
<element name="TCustomBitBtn.GlyphShowMode">
<short>
Indicates the policy for showing or hiding the glyph image for the button.
</short>
<descr></descr>
<seealso>
<link id="#lcl.menus.TGlyphShowMode">TGlyphShowMode</link>
<link id="#lcl.forms.TApplication.ShowMenuGlyphs">TApplication.ShowMenuGlyphs</link>
</seealso>
</element>
<element name="TBitBtn">
<short>A button with a small image attached.</short>
<descr>
<p>
<var>TBitBtn</var> is a <var>TCustomBitBtn</var> descendant which provides
the interface used to display a button with a glyph (or image) and a caption.
It performs an action when the button is clicked.
</p>
<p>
TBitBtn sets the visibility for properties introduced in ancestor classes.
</p>
</descr>
<seealso>
<link id="#lcl.stdctrls.HowToUseStdCtrls">How To Use Standard Controls</link>
</seealso>
</element>
<element name="TBitBtn.Action" link="#lcl.controls.TControl.Action"/>
<element name="TBitBtn.Align" link="#lcl.controls.TControl.Align"/>
<element name="TBitBtn.Anchors" link="#lcl.controls.TControl.Anchors"/>
<element name="TBitBtn.AutoSize" link="#lcl.controls.TControl.AutoSize"/>
<element name="TBitBtn.BidiMode" link="#lcl.controls.TControl.BidiMode"/>
<element name="TBitBtn.BorderSpacing" link="#lcl.controls.TControl.BorderSpacing"/>
<element name="TBitBtn.Cancel" link="#lcl.stdctrls.TCustomButton.Cancel"/>
<element name="TBitBtn.Caption" link="#lcl.buttons.TCustomBitBtn.Caption"/>
<element name="TBitBtn.Color" link="#lcl.controls.TControl.Color"/>
<element name="TBitBtn.Constraints" link="#lcl.controls.TControl.Constraints"/>
<element name="TBitBtn.Default" link="#lcl.stdctrls.TCustomButton.Default"/>
<element name="TBitBtn.DefaultCaption" link="#lcl.buttons.TCustomBitBtn.DefaultCaption"/>
<element name="TBitBtn.DisabledImageIndex" link="#lcl.buttons.TCustomBitBtn.DisabledImageIndex"/>
<element name="TBitBtn.DragCursor" link="#lcl.controls.TControl.DragCursor"/>
<element name="TBitBtn.DragKind" link="#lcl.controls.TControl.DragKind"/>
<element name="TBitBtn.DragMode" link="#lcl.controls.TControl.DragMode"/>
<element name="TBitBtn.Enabled" link="#lcl.controls.TControl.Enabled"/>
<element name="TBitBtn.Font" link="#lcl.controls.TControl.Font"/>
<element name="TBitBtn.Glyph" link="#lcl.buttons.TCustomBitBtn.Glyph"/>
<element name="TBitBtn.GlyphShowMode" link="#lcl.buttons.TCustomBitBtn.GlyphShowMode"/>
<element name="TBitBtn.HotImageIndex" link="#lcl.buttons.TCustomBitBtn.HotImageIndex"/>
<element name="TBitBtn.Kind" link="#lcl.buttons.TCustomBitBtn.Kind"/>
<element name="TBitBtn.Layout" link="#lcl.buttons.TCustomBitBtn.Layout"/>
<element name="TBitBtn.Margin" link="#lcl.buttons.TCustomBitBtn.Margin"/>
<element name="TBitBtn.ModalResult" link="#lcl.stdctrls.TCustomButton.ModalResult"/>
<element name="TBitBtn.NumGlyphs" link="#lcl.buttons.TCustomBitBtn.NumGlyphs"/>
<element name="TBitBtn.Images" link="#lcl.buttons.TCustomBitBtn.Images"/>
<element name="TBitBtn.ImageIndex" link="#lcl.buttons.TCustomBitBtn.ImageIndex"/>
<element name="TBitBtn.ImageWidth" link="#lcl.buttons.TCustomBitBtn.ImageWidth"/>
<element name="TBitBtn.ParentBidiMode" link="#lcl.controls.TControl.ParentBidiMode"/>
<element name="TBitBtn.ParentFont" link="#lcl.controls.TControl.ParentFont"/>
<element name="TBitBtn.ParentShowHint" link="#lcl.controls.TControl.ParentShowHint"/>
<element name="TBitBtn.PopupMenu" link="#lcl.controls.TControl.PopupMenu"/>
<element name="TBitBtn.PressedImageIndex" link="#lcl.buttons.TCustomBitBtn.PressedImageIndex"/>
<!--
<element name="TBitBtn.SelectedImageIndex" link="#lcl.buttons.TCustomBitBtn.SelectedImageIndex"/>
-->
<element name="TBitBtn.ShowHint" link="#lcl.controls.TControl.ShowHint"/>
<element name="TBitBtn.Spacing" link="#lcl.buttons.TCustomBitBtn.Spacing"/>
<element name="TBitBtn.TabOrder" link="#lcl.controls.TWinControl.TabOrder"/>
<element name="TBitBtn.TabStop" link="#lcl.controls.TWinControl.TabStop"/>
<element name="TBitBtn.Visible">
<short>Indicates if the control is visible on its parent.</short>
<descr>
<p>
The <var>Visible</var> property indicates the ability to see a visual
control. If <var>Visible</var> is <b>True</b>, the control is shown,
otherwise it is hidden. Calling <var>Show</var> sets <var>Visible</var> to
<b>True</b>. Setting <var>Visible</var> to <b>False</b> is equivalent to
calling the <var>Hide</var> method.
</p>
<remark>
The <var>Visible</var> property does not depend on the visibility of a parent
control. Use <var>IsVisible</var> method to consider this, and get the real
visibility for a control in its parent container.
</remark>
</descr>
<seealso>
<link id="#lcl.controls.TControl.Visible">TControl.Visible</link>
</seealso>
</element>
<element name="TBitBtn.OnChangeBounds" link="#lcl.controls.TControl.OnChangeBounds"/>
<element name="TBitBtn.OnClick" link="#lcl.controls.TControl.OnClick"/>
<element name="TBitBtn.OnContextPopup" link="#lcl.controls.TControl.OnContextPopup"/>
<element name="TBitBtn.OnDragDrop" link="#lcl.controls.TControl.OnDragDrop"/>
<element name="TBitBtn.OnDragOver" link="#lcl.controls.TControl.OnDragOver"/>
<element name="TBitBtn.OnEndDrag" link="#lcl.controls.TControl.OnEndDrag"/>
<element name="TBitBtn.OnEnter" link="#lcl.controls.TWinControl.OnEnter"/>
<element name="TBitBtn.OnExit" link="#lcl.controls.TWinControl.OnExit"/>
<element name="TBitBtn.OnKeyDown">
<short>
Event handler signalled when a key is down while the control has focus.
</short>
<descr>
<p>
<var>OnKeyDown</var> differs from <link
id="#lcl.controls.TWinControl.OnKeyPress">OnKeyPress</link> in that the key
may have already been down when the control received focus; with
<var>OnKeyPress</var> the key needs to become pressed while the control has
focus.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TWinControl.OnKeyDown">TWinControl.OnKeyDown</link>
</seealso>
</element>
<element name="TBitBtn.OnKeyPress">
<short>
Event handler signalled when a key is pressed while the control has focus.
</short>
<descr>
<p>
<var>OnKeyPress</var> differs from <link
id="#lcl.controls.TWinControl.OnKeyDown">OnKeyDown</link> in that the key
needs to become pressed while the control has focus; with
<var>OnKeyDown</var> the key may have already been down when the control
received focus.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TWinControl.OnKeyPress">TWinControl.OnKeyPress</link>
</seealso>
</element>
<element name="TBitBtn.OnKeyUp">
<short>
Event handler signalled when a key is released while the control has focus.
</short>
<descr>
<p>
In <var>OnKeyUp</var>, the key may already have been up when the control
received focus, or a pressed key may become released during the time the
control has focus.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TWinControl.OnKeyUp">TWinControl.OnKeyUp</link>
</seealso>
</element>
<element name="TBitBtn.OnMouseDown" link="#lcl.controls.TControl.OnMouseDown"/>
<element name="TBitBtn.OnMouseEnter" link="#lcl.controls.TControl.OnMouseEnter"/>
<element name="TBitBtn.OnMouseLeave" link="#lcl.controls.TControl.OnMouseLeave"/>
<element name="TBitBtn.OnMouseMove" link="#lcl.controls.TControl.OnMouseMove"/>
<element name="TBitBtn.OnMouseUp" link="#lcl.controls.TControl.OnMouseUp"/>
<element name="TBitBtn.OnMouseWheel" link="#lcl.controls.TControl.OnMouseWheel"/>
<element name="TBitBtn.OnMouseWheelDown" link="#lcl.controls.TControl.OnMouseWheelDown"/>
<element name="TBitBtn.OnMouseWheelUp" link="#lcl.controls.TControl.OnMouseWheelUp"/>
<element name="TBitBtn.OnResize" link="#lcl.controls.TControl.OnResize"/>
<element name="TBitBtn.OnStartDrag" link="#lcl.controls.TControl.OnStartDrag"/>
<element name="TBitBtn.OnUTF8KeyPress" link="#lcl.controls.TWinControl.OnUTF8KeyPress"/>
<element name="TSpeedButtonActionLink">
<short>Links a TSpeedButton with a TAction instance.</short>
</element>
<element name="TSpeedButtonActionLink.AssignClient" link="#rtl.classes.TBasicActionLink.AssignClient"/>
<element name="TSpeedButtonActionLink.AssignClient.AClient"/>
<element name="TSpeedButtonActionLink.SetGroupIndex">
<short>
Sets the group index for the speed button in the action link.
</short>
<descr>
<p>
<var>SetGroupIndex</var> is an overridden method in
<var>TSpeedButtonActionLink</var>. It implements the empty virtual method
from the ancestor class. SetGroupIndex call IsGroupIndexLinked to determine
if the action link has an assigned speed button instance. When assigned, the
GroupIndex property in the client control is set to Value.
</p>
<p>
SetGroupIndex is called when a TCustomAction instance notifies each of its
client controls of a new value for the group index property in the class
instance.
</p>
</descr>
<seealso>
<link id="#lcl.actnlist.TCustomAction.GroupIndex">TCustomAction.GroupIndex</link>
<link id="#lcl.actnlist.TCustomActionList">TCustomActionList</link>
</seealso>
</element>
<element name="TSpeedButtonActionLink.SetGroupIndex.Value">
<short>
New value for the group index in the linked speed button.
</short>
</element>
<element name="TSpeedButtonActionLink.SetChecked">
<short>
Sets the Checked state for the control in the action link.
</short>
<descr></descr>
<seealso></seealso>
</element>
<element name="TSpeedButtonActionLink.SetChecked.Value">
<short>
New value for the Checked state in the linked speed button control.
</short>
</element>
<element name="TSpeedButtonActionLink.SetImageIndex">
<short>
Sets the image index in the control for the action link when enabled.
</short>
<descr>
<p>
<var>SetImageIndex</var> is an overridden method used to change the selected
image in the associated <var>TSpeedButton</var> control for the action link.
SetImageIndex uses the value from <var>IsImageIndexLinked</var> to determine
if the image can be changed by the action link. When IsImageIndexLinked
returns <b>False</b>, no actions are performed in the method.
</p>
<p>
SetImageIndex accesses the internal <var>TSpeedButton</var> control for the
action link, and sets its <var>ImageIndex</var> property to the ordinal
position specified in <var>Value</var>.
</p>
</descr>
<seealso>
<link id="TSpeedButtonActionLink.IsImageIndexLinked"/>
<link id="TSpeedButton.ImageIndex"/>
<link id="TSpeedButton.Images"/>
<link id="#lcl.actnlist.TActionLink.SetImageIndex">TActionLink.SetImageIndex</link>
</seealso>
</element>
<element name="TSpeedButtonActionLink.SetImageIndex.Value">
<short>
Ordinal position for the image selected in the speed button control.
</short>
</element>
<element name="TSpeedButtonActionLink.IsCheckedLinked" link="#lcl.actnlist.TActionLink.IsCheckedLinked"/>
<element name="TSpeedButtonActionLink.IsCheckedLinked.Result"/>
<element name="TSpeedButtonActionLink.IsGroupIndexLinked" link="#lcl.actnlist.TActionLink.IsGroupIndexLinked"/>
<element name="TSpeedButtonActionLink.IsGroupIndexLinked.Result"/>
<element name="TSpeedButtonActionLink.IsImageIndexLinked">
<short>
Determines whether the action link can update the image index for the
associated control.
</short>
<descr>
<p>
<var>IsImageIndexLinked</var> is an overridden <var>Boolean</var> function
used to determine if the Action Link can update the image in its associated
<var>TSpeedButton</var> control. The return value is <b>True</b> when the
<var>Action</var> is derived from <var>TCustomAction</var> and the
<var>ImageIndex</var> values in the TSpeedButton and the Action currently
have the same values.
</p>
<p>
IsImageIndexLinked is called from the <var>SetImageIndex</var> method before
updating the value in the ImageIndex for the TSpeedButton control.
</p>
</descr>
<seealso>
<link id="TSpeedButtonActionLink.SetImageIndex"/>
<link id="#rtl.classes.TBasicActionLink.Action">TBasicActionLink.Action</link>
</seealso>
</element>
<element name="TSpeedButtonActionLink.IsImageIndexLinked.Result">
<short>
Returns <b>True</b> when the action is can update the image in the associated
control.
</short>
</element>
<element name="TCustomSpeedButton">
<short>The ancestor for the <var>TSpeedButton</var> class.</short>
<descr>
<p>
<var>TCustomSpeedButton</var> is a <var>TGraphicControl</var> descendant, and
the ancestor for <var>TSpeedButton</var>. If you want to define your own
speed button class, you should derive it from TCustomSpeedButton.
</p>
<p>
A speed button is designed to automatically perform a process when it is
pressed or clicked. The user can push the button to start an action or set a
mode. When a user clicks on a speed button, focus is not shifted; a speed
button never receives focus. The button may have a descriptive glyph (symbol
or pictograph), and has state (checked, unchecked, Up, Down, Hovered,
Selected, Disabled).
</p>
</descr>
</element>
<element name="TCustomSpeedButton.FGlyph"/>
<element name="TCustomSpeedButton.FGroupIndex"/>
<element name="TCustomSpeedButton.FImageChangeLink"/>
<element name="TCustomSpeedButton.FLastDrawDetails"/>
<element name="TCustomSpeedButton.FLayout"/>
<element name="TCustomSpeedButton.FMargin"/>
<element name="TCustomSpeedButton.FSpacing"/>
<element name="TCustomSpeedButton.FShortcut"/>
<element name="TCustomSpeedButton.FShowAccelChar"/>
<element name="TCustomSpeedButton.FShowCaption"/>
<element name="TCustomSpeedButton.FAllowAllUp"/>
<element name="TCustomSpeedButton.FDown"/>
<element name="TCustomSpeedButton.FDownLoaded"/>
<element name="TCustomSpeedButton.FDragging"/>
<element name="TCustomSpeedButton.FFlat"/>
<element name="TCustomSpeedButton.FMouseInControl"/>
<element name="TCustomSpeedButton.FAlignment"/>
<element name="TCustomSpeedButton.GetGlyph">
<short>Gets the value for the Glyph property.</short>
<descr></descr>
<seealso>
<link id="TCustomSpeedButton.Glyph"/>
</seealso>
</element>
<element name="TCustomSpeedButton.GetGlyph.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomSpeedButton.ImageListChange">
<short>Performs actions needed when the value in Images is changed.</short>
<descr>
<p>
<var>ImageListChange</var> implements a handler routine assigned to the
OnChange event handler in the internal image change link for the speed
button. It is assigned in the Create method when the TChangeLink is created
for the control.
</p>
</descr>
<seealso>
<link id="TCustomSpeedButton.Images"/>
<link id="TCustomSpeedButton.Create"/>
<link id="#lcl.imglist.TChangeLink.OnChange">TChangeLink.OnChange</link>
</seealso>
</element>
<element name="TCustomSpeedButton.ImageListChange.Sender">
<short>Object for the event notification.</short>
</element>
<element name="TCustomSpeedButton.IsGlyphStored">
<short>Gets the storage specifier for the Glyph property.</short>
<descr></descr>
<seealso></seealso>
</element>
<element name="TCustomSpeedButton.IsGlyphStored.Result">
<short>
<b>True</b> when a value for the Glyph property is included in the LCL
component streaming mechanism.
</short>
</element>
<element name="TCustomSpeedButton.SetShowCaption">
<short>Sets the value for the ShowCaption property.</short>
<descr></descr>
<seealso>
<link id="TCustomSpeedButton.ShowCaption"/>
</seealso>
</element>
<element name="TCustomSpeedButton.SetShowCaption.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomSpeedButton.UpdateExclusive">
<short>
Sends a message to the parent control when the value in AllowAllUp,
GroupIndex, or Down is changed.
</short>
<descr></descr>
<seealso>
<link id="TCustomSpeedButton.AllowAllUp"/>
<link id="TCustomSpeedButton.GroupIndex"/>
<link id="TCustomSpeedButton.Down"/>
</seealso>
</element>
<element name="TCustomSpeedButton.GetTransparent">
<short>Gets the value for the Transparent property.</short>
<descr/>
<seealso/>
</element>
<element name="TCustomSpeedButton.GetTransparent.Result">
<short>Value for the Transparent property.</short>
</element>
<element name="TCustomSpeedButton.SetAlignment">
<short>Sets the value for the Alignment property.</short>
<descr/>
<seealso/>
</element>
<element name="TCustomSpeedButton.SetAlignment.Value">
<short>New value for the Alignment property.</short>
</element>
<element name="TCustomSpeedButton.SetAllowAllUp">
<short>Sets the value for the AllowAllUp property.</short>
<descr></descr>
<seealso>
<link id="TCustomSpeedButton.AllowAllUp"/>
</seealso>
</element>
<element name="TCustomSpeedButton.SetAllowAllUp.Value">
<short>New value for the property.</short>
</element>
<element name="TCustomSpeedButton.SetGlyph">
<short>Sets the value for the Glyph property.</short>
<descr></descr>
<seealso>
<link id="TCustomSpeedButton.Glyph"/>
</seealso>
</element>
<element name="TCustomSpeedButton.SetGlyph.Value">
<short>New value for the property.</short>
</element>
<element name="TCustomSpeedButton.SetLayout">
<short>
Sets the value for the Layout property.
</short>
<descr>
<p>
Calls InvalidatePreferredSize to reset control flags which cause the preferred
size to be recalculated. Calls AdjustSize to apply smart (delayed) resizing for
the control.
</p>
</descr>
<seealso>
<link id="TCustomSpeedButton.Layout"/>
</seealso>
</element>
<element name="TCustomSpeedButton.SetLayout.Value">
<short>New value for the property.</short>
</element>
<element name="TCustomSpeedButton.SetShowAccelChar">
<short>Sets the value for the ShowAccelChar property.</short>
<descr></descr>
<seealso>
<link id="TCustomSpeedButton.ShowAccelChar"/>
</seealso>
</element>
<element name="TCustomSpeedButton.SetShowAccelChar.Value">
<short>New value for the property.</short>
</element>
<element name="TCustomSpeedButton.SetTransparent">
<short>Sets the value for the Transparent property.</short>
<descr></descr>
<seealso>
<link id="TCustomSpeedButton.Transparent"/>
</seealso>
</element>
<element name="TCustomSpeedButton.SetTransparent.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomSpeedButton.CMButtonPressed">
<short>Handles the Control message passed when the button is pressed.</short>
<descr>
<p>
<var>CMButtonPressed</var> is a method used to handle a
<var>CM_BUTTONPRESSED</var> control message received for the control.
CMButtonPressed ensures that the Down property is set to <b>False</b> when
another speed button with the same GroupIndex is pressed. AllowAllUp is
updated and the control is redrawn.
</p>
<p>
No actions are performed in the method when the control in Message does not
have the same GroupIndex value.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomSpeedButton.CMButtonPressed.Message">
<short>TLMessage instance examined in the method.</short>
</element>
<element name="TCustomSpeedButton.CMEnabledChanged">
<short>
Handles the Control message passed when the Enabled state is changed.
</short>
<descr>
<p>
<var>CMEnabledChanged</var> is a method used to handle the CM_ENABLEDCHANGED
control message. It re-implements the method from the ancestor class, and
does not call the inherited method. CMEnabledChanged calls UpdateState to
(re-)create the glyph using the new state for the speed button and to
invalidate the drawing area for the control.
</p>
</descr>
<seealso>
<link id="TCustomSpeedButton.UpdateState"/>
<link id="TButtonState"/>
<link id="#lcl.controls.TControl.CMEnabledChanged">TControl.CMEnabledChanged</link>
</seealso>
</element>
<element name="TCustomSpeedButton.CMEnabledChanged.Message">
<short>Message handled in the method.</short>
</element>
<element name="TCustomSpeedButton.WMLButtonDown" link="#lcl.controls.TControl.WMLButtonDown"/>
<element name="TCustomSpeedButton.WMLButtonDown.Message"/>
<element name="TCustomSpeedButton.WMLButtonUp" link="#lcl.controls.TControl.WMLButtonUp"/>
<element name="TCustomSpeedButton.WMLButtonUp.Message"/>
<element name="TCustomSpeedButton.WMLButtonDBLCLK" link="#lcl.controls.TControl.WMLButtonDBLCLK"/>
<element name="TCustomSpeedButton.WMLButtonDBLCLK.Message"/>
<element name="TCustomSpeedButton.GetImages">
<short>Gets the value for the Images property.</short>
<descr></descr>
<seealso>
<link id="TCustomSpeedButton.Images"/>
</seealso>
</element>
<element name="TCustomSpeedButton.GetImages.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomSpeedButton.SetImages">
<short>Sets the value for the Images property.</short>
<descr></descr>
<seealso>
<link id="TCustomSpeedButton.Images"/>
</seealso>
</element>
<element name="TCustomSpeedButton.SetImages.AImages">
<short>New value for the property.</short>
</element>
<element name="TCustomSpeedButton.GetImageIndex">
<short>Gets the value for the ImageIndex property.</short>
<descr></descr>
<seealso>
<link id="TCustomSpeedButton.ImageIndex"/>
</seealso>
</element>
<element name="TCustomSpeedButton.GetImageIndex.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomSpeedButton.GetImageIndex.AState">
<short>Drawing state for the requested glyph image.</short>
</element>
<element name="TCustomSpeedButton.SetImageIndex">
<short>Sets the value for the ImageIndex property.</short>
<descr></descr>
<seealso>
<link id="TCustomSpeedButton.ImageIndex"/>
</seealso>
</element>
<element name="TCustomSpeedButton.SetImageIndex.AState">
<short>Drawing state for the specified glyph image.</short>
</element>
<element name="TCustomSpeedButton.SetImageIndex.AImageIndex">
<short>New value for the property.</short>
</element>
<element name="TCustomSpeedButton.GetImageWidth">
<short>Gets the value for the ImageWidth property.</short>
<descr></descr>
<seealso>
<link id="TCustomSpeedButton.ImageWidth"/>
</seealso>
</element>
<element name="TCustomSpeedButton.GetImageWidth.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomSpeedButton.SetImageWidth">
<short>Sets the value for the ImageWidth property.</short>
<descr></descr>
<seealso>
<link id="TCustomSpeedButton.ImageWidth"/>
</seealso>
</element>
<element name="TCustomSpeedButton.SetImageWidth.AImageWidth">
<short>New value for the property.</short>
</element>
<element name="TCustomSpeedButton.FState">
<short>
Internal member used to store the TButtonState for the control.
</short>
<descr></descr>
<seealso></seealso>
</element>
<element name="TCustomSpeedButton.WSRegisterClass" link="#lcl.lclclasses.TLCLComponent.WSRegisterClass"/>
<element name="TCustomSpeedButton.ButtonGlyph">
<short>Gets the TButtonGlyph used for the control.</short>
<descr></descr>
<seealso></seealso>
</element>
<element name="TCustomSpeedButton.ButtonGlyph.Result">
<short>TButtonGlyph instance used for the control </short>
</element>
<element name="TCustomSpeedButton.GetNumGlyphs">
<short>Gets the value for the NumGlyphs property.</short>
<descr></descr>
<seealso>
<link id="TCustomSpeedButton.NumGlyphs"/>
</seealso>
</element>
<element name="TCustomSpeedButton.GetNumGlyphs.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomSpeedButton.GlyphChanged">
<short>
Performs actions needed when the value in the Glyph property has been changed.
</short>
<descr>
<p>
<var>GlyphChanged</var> implements the handler routine used for the OnChange
event handler in the Glyph for the control. It is assigned in the Create
constructor. GlyphChanged calls Invalidate to request the control to be
redrawn when the glyph image is updated.
</p>
</descr>
<seealso>
<link id="TCustomSpeedButton.Create"/>
<link id="TButtonGlyph.OnChange"/>
<link id="#lcl.controls.TControl.Invalidate">TControl.Invalidate</link>
</seealso>
</element>
<element name="TCustomSpeedButton.GlyphChanged.Sender">
<short>TObject instance for the change notification.</short>
</element>
<element name="TCustomSpeedButton.DialogChar" link="#lcl.controls.TControl.DialogChar"/>
<element name="TCustomSpeedButton.CalculatePreferredSize">
<short>
Calculates the default height and Width required for the control.
</short>
<descr>
<p>
CalculatePreferredSize is an overridden method in TCustomSpeedButton. It calls
MeasureDraw to gets the values for the variable parameters in PreferredWidth
and PreferredHeight. If WithThemeSpace is enabled, additional spacing is
reserved in PreferredWidth and PreferredHeight for theme element details; both
arguments are increased by six (6) pixels.
</p>
<p>
CalculatePreferredSize is called from the GetPreferredSize method (in TControl)
when control flags indicate the value has not already been determined.
</p>
<remark>
In previous LCL versions, CalculatePreferredSize did not use the WithThemeSpace
argument or adjust the preferred size when it was enabled. As a result an
auto-sized control would truncate the Caption displayed for a TSpeedButton
control. This behavior has been changed in LCL version 4.0. An auto-sized speed
button is now increased in size for theme spacing. This can lead to misaligned
buttons in applications or descendent classes which handled the condition
independently. Descendent classes may need to implement an overridden
CalculatePreferredSize method and reduce the preferred size by the pixels added
in the base class. Applications can use anchoring or aligning to align the
borders on speed button controls.
</remark>
</descr>
<version>
Modified in LCL version 4.0 to include support the WithThemeSpace argument.
</version>
<seealso>
<link id="#lcl.controls.TControl.GetPreferredSize">TControl.GetPreferredSize</link>
</seealso>
</element>
<element name="TCustomSpeedButton.CalculatePreferredSize.PreferredWidth">
<short>
Preferred width for the control.
</short>
</element>
<element name="TCustomSpeedButton.CalculatePreferredSize.PreferredHeight">
<short>
Preferred height for the control.
</short>
</element>
<element name="TCustomSpeedButton.CalculatePreferredSize.WithThemeSpace">
<short>
Indicates if additional space is reserved in PreferredWidth and PreferredHeight
for theme element details.
</short>
</element>
<element name="TCustomSpeedButton.MeasureDraw">
<short>
Calculates the Width and Height for the layout used on the speed button and
optionally renders the control.
</short>
<descr>
<p>
<var>MeasureDraw</var> determines the space needed to draw the content for the
speed button control. Values in the Caption, ShowCaption, Glyph, Margin,
Spacing, and Layout properties are used to determine the layout for the control
elements and the space needed to draw the control without clipping.
</p>
<p>
When Draw is enabled, the control is rendered to its Canvas using the State,
Transparent and Layout settings. Otherwise, only measurements are performed in
the method.
</p>
<p>
No actions are performed in the method if the Glyph property has not been
assigned for the control; in this case, the output parameters in
PreferredWidth and PreferredHeight are unchanged from their default values.
</p>
<p>
PaintRect contains the area where the control is drawn on its Canvas, and
provides the bounds for the background on the control.
</p>
<p>
GetGlyphSize is called to get the dimensions for the glyph bitmap including
any drawing effect applied in ThemeServices for the control State.
</p>
<p>
When Caption has been assigned and ShowCaption is enabled, the text size is
included in the calculated space requirements. The values in Margins and
Spacing are included in the horizontal or vertical size based on the value in
Layout. Values in Alignment and UseRightToLeftReading are used when the text
rectangle is calculated. If the Font matches the default System font settings,
ThemeServices.DrawText is called to measure/render the text for the control.
</p>
<p>
Values in PreferredWidth and PreferredHeight are updated and returned to the
calling routine in the output parameters.
</p>
<p>
Used in the implementation of the CalculatePreferredSize and Paint methods.
</p>
</descr>
<seealso>
<link id="TCustomSpeedButton.Glyph"/>
<link id="TCustomSpeedButton.Margin"/>
<link id="TCustomSpeedButton.Spacing"/>
<link id="TCustomSpeedButton.Layout"/>
<link id="TCustomSpeedButton.ShowCaption"/>
<link id="TCustomSpeedButton.Alignment"/>
<link id="TCustomSpeedButton.FState"/>
<link id="TCustomSpeedButton.Transparent"/>
<link id="TCustomSpeedButton.CalculatePreferredSize"/>
<link id="TCustomSpeedButton.PaintBackground"/>
<link id="TCustomSpeedButton.Paint"/>
<link id="TCustomSpeedButton.GetDrawDetails"/>
<link id="TCustomSpeedButton.GetGlyphSize"/>
<link id="TCustomSpeedButton.GetTextSize"/>
<link id="#lcl.controls.TGraphicControl.Canvas">TGraphicControl.Canvas</link>
<link id="#lcl.controls.TControl.Caption">TControl.Caption</link>
<link id="#lcl.controls.TControl.UseRightToLeftReading">TControl.UseRightToLeftReading</link>
<link id="#lcl.themes.TThemeServices.DrawText">TThemeServices.DrawText</link>
</seealso>
</element>
<element name="TCustomSpeedButton.MeasureDraw.Draw">
<short>
<b>True</b> if the background and content for the control are drawn.
<b>False</b> to calculate the preferred width and height only.
</short>
</element>
<element name="TCustomSpeedButton.MeasureDraw.PaintRect">
<short>
Drawing area on the canvas where the content is positioned.
</short>
</element>
<element name="TCustomSpeedButton.MeasureDraw.PreferredWidth">
<short>
Returns the preferred width calculated for the control.
</short>
</element>
<element name="TCustomSpeedButton.MeasureDraw.PreferredHeight">
<short>
Returns the preferred height calculated for the control.
</short>
</element>
<element name="TCustomSpeedButton.MouseEnter" link="#lcl.controls.TControl.MouseEnter"/>
<element name="TCustomSpeedButton.MouseLeave" link="#lcl.controls.TControl.MouseLeave"/>
<element name="TCustomSpeedButton.MouseDown">
<short>
Performs actions needed for a mouse down event on the control.
</short>
<descr>
<p>
<var>MouseDown</var> is an overridden method in
<var>TCustomSpeedButton</var>. It calls the inherited MouseDown method on
entry to signal the OnEditingDone event for the active control on the Parent
form. It also updates the DragManager coordinates when a drag operation is
already active.
</p>
<p>
No additional actions are performed in the method at design-time.
</p>
<p>
If the Left mouse button was pressed when the control is Enabled, Down is set
to <b>True</b> (when needed) and the Action for the control is unchecked. An
internal flag for a pending drag operation in MouseMove is set prior to
exiting from the method.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TControl.MouseDown">TControl.MouseDown</link>
</seealso>
</element>
<element name="TCustomSpeedButton.MouseDown.Button">
<short>Button for the mouse event.</short>
</element>
<element name="TCustomSpeedButton.MouseDown.Shift">
<short>Shift, Ctrl, or Alt modifier for the mouse event.</short>
</element>
<element name="TCustomSpeedButton.MouseDown.X">
<short>Horizontal coordinate for the mouse pointer.</short>
</element>
<element name="TCustomSpeedButton.MouseDown.Y">
<short>Vertical coordinate for the mouse pointer.</short>
</element>
<element name="TCustomSpeedButton.MouseMove">
<short>
Performs actions needed for a mouse move message received for the control.
</short>
<descr>
<p>
<var>MouseMove</var> calls the inherited method on entry to update the
pointer position for the DragManager (when active) and to signal the
OnMouseMove event handler (when assigned).
</p>
<p>
No additional actions are performed in the method at design-time.
</p>
<p>
if a drag operation has been started in MouseDown, the internal TButtonState
for the control is updated to reflect the values in AllowAllUp and Down. When
the button state has changed, the control is redrawn.
</p>
</descr>
<seealso>
<link id="TCustomSpeedButton.MouseDown"/>
<link id="TButtonState"/>
<link id="#lcl.controls.TControl.OnMouseMove">TControl.OnMouseMove</link>
<link id="#lcl.controls.TControl.MouseMove">TControl.MouseMove</link>
<link id="#lcl.controls.TControl.WMMouseMove">TControl.WMMouseMove</link>
</seealso>
</element>
<element name="TCustomSpeedButton.MouseMove.Shift">
<short>Shift, Ctrl, or Alt modifier for the mouse move event.</short>
</element>
<element name="TCustomSpeedButton.MouseMove.X">
<short>Horizontal coordinate where the mouse pointer was moved.</short>
</element>
<element name="TCustomSpeedButton.MouseMove.Y">
<short>Vertical coordinate where the mouse pointer was moved.</short>
</element>
<element name="TCustomSpeedButton.MouseUp" link="#lcl.controls.TControl.MouseUp"/>
<element name="TCustomSpeedButton.MouseUp.Button">
<short>Button for the mouse event.</short>
</element>
<element name="TCustomSpeedButton.MouseUp.Shift">
<short>Shift, Ctrl, or Alt modifier for the mouse up event.</short>
</element>
<element name="TCustomSpeedButton.MouseUp.X">
<short>Horizontal coordinate for the mouse pointer.</short>
</element>
<element name="TCustomSpeedButton.MouseUp.Y">
<short>Vertical coordinate for the mouse pointer.</short>
</element>
<element name="TCustomSpeedButton.Notification">
<short>
Performs actions needed when a sub-component is added or removed for the
control.
</short>
<descr></descr>
<seealso></seealso>
</element>
<element name="TCustomSpeedButton.Notification.AComponent">
<short>Component for the notification message.</short>
</element>
<element name="TCustomSpeedButton.Notification.Operation">
<short>Action performed for the notification message.</short>
</element>
<element name="TCustomSpeedButton.Paint">
<short>
Updates the state for the control, and paints it to the control Canvas.
</short>
<descr>
<p>
<var>Paint</var> is an overridden method in <var>TCustomSpeedButton</var>
used to draw the control to its <var>Canvas</var>.
</p>
<p>
Paint calls UpdateState to ensure that the internal TButtonState for the
control is updated to reflect its current condition. No additional actions
are performed in the method when a bitmap has not been assigned in the Glyph
property.
</p>
<p>
When a Glyph is available, additional actions are performed to draw the
control to its client rectangle. MeasureDraw is called to draw the
background, Glyph, and Caption using the layout and state for the control.
</p>
<p>
Paint calls the inherited method prior to exit to signal the OnPaint event
handler (when assigned).
</p>
</descr>
<seealso>
<link id="#lcl.controls.TGraphicControl.Paint">TGraphicControl.Paint</link>
</seealso>
</element>
<element name="TCustomSpeedButton.PaintBackground">
<short>
Paints the background for the control to the specified rectangle.
</short>
<descr>
<p>
<var>PaintBackground</var> is a method used to draw the background for the
speed button control on its Canvas. When Transparent is <b>True</b> and the
theme element has transparent areas, the value in Color is used to fill the
drawing area in PaintRect.
</p>
<p>
The DrawElement method in ThemeServices is called to render the drawing area
to the Canvas for the control. PaintRect is updated following the drawing
operation with the reduced content rectangle (the button surface without
borders/edges) needed for the control.
</p>
<p>
PaintBackground is called when the MeasureDraw method is used to render the
control. The adjusted rectangle is later used in the method to calculate the
drawing areas for the glyph bitmap and caption text.
</p>
</descr>
<seealso>
<link id="TCustomSpeedButton.Color"/>
<link id="TCustomSpeedButton.MeasureDraw"/>
<link id="TCustomSpeedButton.Paint"/>
<link id="TCustomSpeedButton.Transparent"/>
<link id="#lcl.themes.ThemeServices">ThemeServices</link>
<link id="#lcl.controls.TGraphicControl.Canvas">TGraphicControl.Canvas</link>
</seealso>
</element>
<element name="TCustomSpeedButton.PaintBackground.PaintRect">
<short>Rectangle where the control is drawn.</short>
</element>
<element name="TCustomSpeedButton.SetDown">
<short>Sets the value for the Down property.</short>
<descr>
<var>SetDown</var> - specifies the Boolean value of <var>Down</var> (i.e.
whether or not button was pressed)
</descr>
<seealso>
<link id="TCustomSpeedButton.Down"/>
</seealso>
</element>
<element name="TCustomSpeedButton.SetDown.Value">
<short>New value for the property.</short>
</element>
<element name="TCustomSpeedButton.SetGroupIndex">
<short>Sets the value for the GroupIndex property.</short>
<descr>
<var>SetGroupIndex</var> - specifies the value of the Group Index.
</descr>
<seealso>
<link id="TCustomSpeedButton.GroupIndex"/>
</seealso>
</element>
<element name="TCustomSpeedButton.SetGroupIndex.Value">
<short>New value for the property.</short>
</element>
<element name="TCustomSpeedButton.SetFlat">
<short>Sets the value for the Flat property.</short>
<descr>
<var>SetFlat</var> - specifies whether or not the button is displayed
<var>Flat</var>
</descr>
<seealso>
<link id="TCustomSpeedButton.Flat"/>
</seealso>
</element>
<element name="TCustomSpeedButton.SetFlat.Value">
<short>New value for the property.</short>
</element>
<element name="TCustomSpeedButton.SetMargin">
<short>Sets the value for the Margin property.</short>
<descr>
<p>
<var>SetMargin</var> sets the size of the Margin used on the control. Calls
InvalidatePreferredSize to update control flags which cause the preferred
height and width for the control to be recalculated using the new Margin value.
Calls adjust size to perform smart (delayed) resizing when needed. Calls
Invalidate to redraw the control.
</p>
</descr>
<version>
Modified in LCL version 4.0 to recalculate the size and redisplay the control
when Margin is changed.
</version>
<seealso>
<link id="TCustomSpeedButton.Margin"/>
<link id="#lcl.controls.TControl.InvalidatePreferredSize">TControl.InvalidatePreferredSize</link>
<link id="#lcl.controls.TControl.AdjustSize">TControl.AdjustSize</link>
<link id="#lcl.controls.TControl.Invalidate">TControl.Invalidate</link>
</seealso>
</element>
<element name="TCustomSpeedButton.SetMargin.Value">
<short>New value for the property.</short>
</element>
<element name="TCustomSpeedButton.SetNumGlyphs">
<short>Sets the value for the NumGlyphs property.</short>
<descr>
<var>SetNumGlyphs</var> - specifies the number of glyphs.
</descr>
<seealso>
<link id="TCustomSpeedButton.NumGlyphs"/>
</seealso>
</element>
<element name="TCustomSpeedButton.SetNumGlyphs.Value">
<short>New value for the property.</short>
</element>
<element name="TCustomSpeedButton.SetSpacing">
<short>
Sets the value for the Spacing property.
</short>
<descr>
<p>
<var>SetSpacing</var> specifies the spacing used between adjacent controls.
Calls InvalidatePreferredSize to recalculate the preferred height and width for
the control. AdjustSize is called to perform smart (delayed) resizing when
needed. Invalidate is called to redraw the control.
</p>
</descr>
<version>
Modified in LCL version 4.0 to recalculate preferred size and resize the
control when the property is changed.
</version>
<seealso>
<link id="TCustomSpeedButton.Spacing"/>
<link id="#lcl.controls.TControl.InvalidatePreferredSize">TControl.InvalidatePreferredSize</link>
<link id="#lcl.controls.TControl.AdjustSize">TControl.AdjustSize</link>
<link id="#lcl.controls.TControl.Invalidate">TControl.Invalidate</link>
</seealso>
</element>
<element name="TCustomSpeedButton.SetSpacing.Value">
<short>New value for the property.</short>
</element>
<element name="TCustomSpeedButton.RealSetText" link="#lcl.controls.TControl.RealSetText">
<descr>
<p>
Used by SetTextBuf to store a text string rather than performing read/write
using a PChar buffer
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomSpeedButton.RealSetText.Value">
<short>Value stored in the method.</short>
</element>
<element name="TCustomSpeedButton.UpdateState">
<short>
Updates internal members used to track state changes in the control.
</short>
<descr>
<p>
<var>UpdateState</var> brings the state up to date, implementing any pending
changes, and rendering non-valid if <var>InvalidateOnChange</var> is
<b>True</b>.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomSpeedButton.UpdateState.InvalidateOnChange">
<short>
Indicates if the control is invalidated following a change in state.
</short>
</element>
<element name="TCustomSpeedButton.GetDrawDetails">
<short>
Gets the theme element details used to draw the control.
</short>
<descr>
<p>
Called from the <var>MeasureDraw</var> method. The return value can be an
enumeration value from either <var>TThemedToolBar</var> or
<var>TThemedButton</var> depending on the value in the <var>Flat</var>
property.
</p>
<p>
When Flat is <b>True</b>, one of the following TThemedToolBar values is
returned:
</p>
<dl>
<dt>ttbButtonDisabled</dt>
<dd>Used when IsEnabled is <b>False</b>.</dd>
<dt>ttbButtonChecked</dt>
<dd>Used when Down is <b>True</b> and the mouse pointer is not over the
control.</dd>
<dt>ttbButtonCheckedHot</dt>
<dd>Used when Down is <b>True</b> and the mouse pointer is hovered over the
control.</dd>
<dt>ttbButtonPressed</dt>
<dd>
Used when Down is <b>False</b> and the mouse is hovered over a grouped button
control.
</dd>
<dt>ttbButtonHot</dt>
<dd>
Used when Down is <b>False</b> and the mouse is hovered over a non-grouped
button control.
</dd>
<dt>ttbButtonNormal</dt>
<dd>Default state for the control.</dd>
</dl>
<p>
When Flat is <b>False</b>, one of the following TThemedButton values is
returned:
</p>
<dl>
<dt>tbPushButtonDisabled</dt>
<dd>Used when IsEnabled is <b>False</b>.</dd>
<dt>tbPushButtonPressed</dt>
<dd>Used when a grouped button control is Down.</dd>
<dt>tbPushButtonHot</dt>
<dd>Used when a grouped button control is under the mouse pointer.</dd>
<dt>tbPushButtonNormal</dt>
<dd>Default state for the control.</dd>
</dl>
</descr>
</element>
<element name="TCustomSpeedButton.GetDrawDetails.Result">
<short>
Theme element detail used to draw the control in its current state.
</short>
</element>
<element name="TCustomSpeedButton.MouseInControl">
<short>
Returns <b>True</b> if the mouse pointer is in the display area for the
control.
</short>
<descr>
<p>
The property value is updated in the <var>MouseEnter</var> and
<var>MouseLeave</var> methods when the mouse pointer enters or leaves the
control area. The property value is used in the <var>UpdateState</var> method
to determine if the button control is drawn using the "up" or "hot" states.
It is used in the <var>GetDrawDetails</var> method to selected the theme
element detail needed to draw the control in its current state.
</p>
</descr>
<seealso>
<link id="TCustomSpeedButton.MouseEnter"/>
<link id="TCustomSpeedButton.MouseLeave"/>
<link id="TCustomSpeedButton.UpdateState"/>
<link id="TCustomSpeedButton.GetDrawDetails"/>
</seealso>
</element>
<element name="TCustomSpeedButton.ActionChange">
<short>
Performs action when a new value is assigned to the Action property for the
control.
</short>
<descr>
<p>
<var>ActionChange</var> is overridden in <var>TCustomSpeedButton</var> to
ensure that values from the new action instance in Sender are stored to
properties in the control. ActionChange is the routine which implements the
OnChange event handler for the ActionLink in the control. It is signalled
(from TControl) when a new value is assigned to the Action property, or when
the control is loaded using LCL component streaming.
</p>
<p>
Sender is the new action instance for the event, or <b>Nil</b> when the value
in Action has been removed (set to <b>Nil</b>).
</p>
<p>
CheckDefaults indicates whether existing properties values in the control are
used as default values. When set to <b>False</b>, the values from the action
instance are applied to the control. Values from the action may be used (when
assigned) if the properties in the control are unassigned - even when
CheckDefaults is <b>True</b>.
</p>
<p>
ActionChange calls the inherited method to update property values like
Caption, Enabled, Hint, Visible, HelpContext and HelpKeyword. When Sender is
a TCustomAction instance, the values in GroupIndex, ImageIndex, and Images
are also updated with the values from the action.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TControl.ActionChange">TControl.ActionChange</link>
</seealso>
</element>
<element name="TCustomSpeedButton.ActionChange.Sender">
<short>New action instance for the event.</short>
</element>
<element name="TCustomSpeedButton.ActionChange.CheckDefaults">
<short>
<b>True</b> to use existing properties as default values, <b>False</b> to use
properties from the new action.
</short>
</element>
<element name="TCustomSpeedButton.GetActionLinkClass" link="#lcl.controls.TControl.GetActionLinkClass"/>
<element name="TCustomSpeedButton.GetActionLinkClass.Result"/>
<element name="TCustomSpeedButton.GetControlClassDefaultSize" link="#lcl.controls.TControl.GetControlClassDefaultSize"/>
<element name="TCustomSpeedButton.Loaded">
<short>
Performs actions needed when LCL component streaming is completed for the
control.
</short>
<descr>
<p>
<var>Loaded</var> is called by the LCL streaming system when a root component
was completely read from a stream and all properties and references to other
objects have been resolved. Descendents of <var>TComponent</var> should
override this method to perform additional processing when all published
properties have been set from values obtained from the LCL component stream.
</p>
<p>
Application programmers should never call <var>Loaded</var> directly; this is
done automatically by the LCL streaming system.
</p>
</descr>
<seealso>
<link id="#rtl.Classes.TComponent">TComponent</link>
</seealso>
</element>
<element name="TCustomSpeedButton.GetGlyphSize">
<short>
Gets the size of the glyph within the specified <var>PaintRect</var>.
</short>
<descr>
<p>
<var>GetGlyphSize</var> is a <var>TSize</var> function used to get the size
of the glyph within the client rectangle specified in the
<var>PaintRect</var> argument. The return value contains the Width (in CX)
and the height (in CY). The member values are retrieved from a scaled image
resolution for the glyph bitmaps in ButtonGlyph. The values are scaled to the
client rectangle using the PixelsPerInch for the Font and the Canvas scaling
factor for the control.
</p>
<p>
Use GetTextSize to get the Width and height or the Caption displayed on the
control.
</p>
<p>
GetGlyphSize is used in the implementation of the MeasureDraw method.
</p>
</descr>
<seealso>
<link id="TCustomSpeedButton.ButtonGlyph"/>
<link id="TCustomSpeedButton.GetTextSize"/>
<link id="TCustomSpeedButton.MeasureDraw"/>
</seealso>
</element>
<element name="TCustomSpeedButton.GetGlyphSize.Result">
<short>
TSize instance with the Width (CX) and height ( CY) for the glyph .
</short>
</element>
<element name="TCustomSpeedButton.GetGlyphSize.Drawing">
<short>
<b>True</b> if the control is drawing, <b>False</b> if the control is
measuring its components.
</short>
</element>
<element name="TCustomSpeedButton.GetGlyphSize.PaintRect">
<short>Client rectangle for the control.</short>
</element>
<element name="TCustomSpeedButton.GetTextSize">
<short>
Gets the size of the Caption text within the specified <var>PaintRect</var>.
</short>
<descr>
<p>
<var>GetTextSize</var> is a <var>TSize</var> function used to get the
dimensions for the <var>Caption</var> text for the control. It calculates the
dimensions for the text using the TextStyle and Font assigned to the control
Canvas.
</p>
<p>
The return value is a TSize instance where the CX and CY members represent
the width and height for the text. The DrawText routine in the LCL interface
is called to calculate the dimensions using the text style, flags, and the
PaintRect for the control. The coordinates from the updated PaintRect are
stored in CX and CY in the return value. Both members are set to <b>0</b>
when ShowCaption is <b>False</b> or Caption contains an empty string
(<b>''</b>).
</p>
<p>
GetTextSize is called from the <var>MeasureDraw</var> method.
</p>
</descr>
<seealso>
<link id="TCustomSpeedButton.ShowCaption"/>
<link id="TCustomSpeedButton.MeasureDraw"/>
<link id="#lcl.controls.TGraphicControl.Canvas">TGraphicControl.Canvas</link>
<link id="#lcl.controls.TControl.Caption">TControl.Caption</link>
<link id="#lcl.controls.TControl.Font">TControl.Font</link>
</seealso>
</element>
<element name="TCustomSpeedButton.GetTextSize.Result">
<short>TSize instance with the dimensions for the caption text.</short>
</element>
<element name="TCustomSpeedButton.GetTextSize.Drawing">
<short>Not used in the current implementation.</short>
</element>
<element name="TCustomSpeedButton.GetTextSize.PaintRect">
<short>
Display rectangle for the control; updated in the method with the calculated
text dimensions.
</short>
</element>
<element name="TCustomSpeedButton.DrawGlyph">
<short>
Draws the glyph image on the canvas at a given offset in the specified client
rectangle.
</short>
<descr>
<p>
Uses the internal TButtonGlyph instance for the control (when assigned) to
access its Draw method. The PixelsPerInch setting in Font and the Canvas
scaling factor for the control are used to scale the image.
</p>
<p>
The return value is a TRect instance with are needed to draw the glyph image
on the specified canvas. Its member values are set to 0 (zero) when a
TButtonGlyph instance has not been assigned by setting a Glyph bitmap for the
control.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomSpeedButton.DrawGlyph.Result">
<short>TRect instance used to draw the glyph bitmap.</short>
</element>
<element name="TCustomSpeedButton.DrawGlyph.ACanvas">
<short>Canvas where the control is glyph is drawn.</short>
</element>
<element name="TCustomSpeedButton.DrawGlyph.AClient">
<short>Client rectangle for the drawing operation.</short>
</element>
<element name="TCustomSpeedButton.DrawGlyph.AOffset">
<short>Offset into the client rectangle where the glyph is drawn.</short>
</element>
<element name="TCustomSpeedButton.DrawGlyph.AState">
<short>Button state drawn for the control.</short>
</element>
<element name="TCustomSpeedButton.DrawGlyph.ATransparent">
<short><b>True</b> if the glyph image is drawn with transparency.</short>
</element>
<element name="TCustomSpeedButton.DrawGlyph.BiDiFlags">
<short>Not used in the current implementation.</short>
</element>
<element name="TCustomSpeedButton.Create">
<short>
<var>Create</var> - constructor for <var>TCustomSpeedButton</var>: calls
inherited <var>Create</var> and initializes many defaults and properties.
</short>
<descr>
<p>
<var>Create</var> is the constructor for <var>TCustomSpeedButton</var>. It
calls the inherited <var>Create</var> method and sets the default values for
properties in the class instance. Among the properties set are Glyph, the
initial bounds, control style, layout, color, caption and mouse responses.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TGraphicControl.Create">TGraphicControl.Create</link>
</seealso>
</element>
<element name="TCustomSpeedButton.Create.AOwner">
<short>Owner of the class instance.</short>
</element>
<element name="TCustomSpeedButton.Destroy">
<short>
<var>Destroy</var> - destructor for <var>TCustomSpeedButton</var>: frees
Glyph then calls inherited <var>Destroy</var>.
</short>
<descr>
<var>Destroy</var> is the destructor for <var>TCustomSpeedButton</var>. It
frees resources allocated to the Glyph property, and calls the inherited
<var>Destroy</var> method.
</descr>
<seealso>
<link id="#lcl.controls.TGraphicControl.Destroy">TGraphicControl.Destroy</link>
</seealso>
</element>
<element name="TCustomSpeedButton.FindDownButton">
<short>
Gets the speed button with the same GroupIndex that has its Down property set.
</short>
<descr>
<p>
<var>FindDownButton</var> locates a <var>TCustomSpeedButton</var> instance on
the parent form which has the same GroupIndex and its Down property is set to
<b>True</b>. FindDownButton visits each of the child controls on the parent
form to find the speed buttons in the list of controls.
</p>
<p>
The return value contains the TCustomSpeedButton instance located. The return
value is <b>Nil</b> if another speed button does not exist, is not in the
same group, or is not Down.
</p>
<p>
No actions are performed in the method if the Down property in the current
class instance is set, or when GroupIndex is <b>0</b> (zero). The return
value is the current class instance in this circumstance.
</p>
</descr>
<seealso>
<link id="TCustomSpeedButton.GroupIndex"/>
<link id="TCustomSpeedButton.Down"/>
<link id="#lcl.controls.TControl.Parent">TControl.Parent</link>
</seealso>
</element>
<element name="TCustomSpeedButton.FindDownButton.Result">
<short>The speed button in the group which is down.</short>
</element>
<element name="TCustomSpeedButton.Click" link="#lcl.controls.TControl.Click"/>
<element name="TCustomSpeedButton.LoadGlyphFromResourceName">
<short>
Loads the image for the Glyph with the specified name from a resource
instance.
</short>
<descr>
<p>
Calls the LoadGlyphFromLazarusResource routine in <file>buttons.pas</file> to
load the bitmap for the specified resource name into the Glyph for the button
control.
</p>
</descr>
<version>
Modified in LCL version 4.0 to use the TLCLHandle type for the Instance
argument instead of the deprecated THandle type.
</version>
<seealso>
<link id="TCustomSpeedButton.Glyph"/>
<link id="LoadGlyphFromLazarusResource"/>
<link id="#lcl.lcltype.TLCLHandle">TLCLHandle</link>
</seealso>
</element>
<element name="TCustomSpeedButton.LoadGlyphFromResourceName.Instance">
<short>
Handle for the resource with the specified glyph.
</short>
</element>
<element name="TCustomSpeedButton.LoadGlyphFromResourceName.AName">
<short>
Name of the glyph image resource loaded for the control.
</short>
</element>
<element name="TCustomSpeedButton.LoadGlyphFromLazarusResource">
<short>
<var>LoadGlyphFromLazarusResource</var> - method for loading a glyph from a
Lazarus Resource file (.lrs).
</short>
<descr></descr>
<seealso></seealso>
</element>
<element name="TCustomSpeedButton.LoadGlyphFromLazarusResource.AName">
<short>
Name of the glyph image loaded from the Lazarus resource.
</short>
</element>
<element name="TCustomSpeedButton.Alignment">
<short>
Horizontal alignment for the text displayed on the button control.
</short>
<descr>
<p>
<var>Alignment</var> is a <var>TAlignment</var> property with the horizontal
alignment for the <var>Caption</var> displayed on the button control.
Alignment is used (along with <var>UseRightToLeftReading</var>) in the
<var>MeasureDraw</var> method to set the text flags needed to measure / draw
the Caption> for the control.
</p>
<p>
The default value for the property is <var>taCenter</var>, and causes the
Caption to be centered in the text area on the control. Use <var>taLeft</var>
to left-align the Caption in the text area. Use <var>taRight</var> to
right-align the Caption for the control. Changing the value for the property
causes the control to be redrawn.
</p>
<p>
Set the value in <var>ShowCaption</var> to <b>True</b> to display the Caption
for the control.
</p>
<p>
Use the <var>Layout</var> property to control the placement of the image
relative to the text value displayed on the control.
</p>
<p>
Use the <var>Align</var> property to specify the side on the parent control
to which the speed button is aligned, or to specify that custom
<var>Anchors</var> are used for positioning and sizing.
</p>
</descr>
<seealso>
<link id="TCustomSpeedButton.Layout"/>
<link id="TCustomSpeedButton.MeasureDraw"/>
<link id="TCustomSpeedButton.ShowCaption"/>
<link id="#lcl.controls.TControl.Align">TControl.Align</link>
<link id="#lcl.controls.TControl.Anchors">TControl.Anchors</link>
<link id="#lcl.controls.TControl.Caption">TControl.Caption</link>
<link id="#lcl.controls.TControl.UseRightToLeftReading">TControl.UseRightToLeftReading</link>
<link id="#rtl.classes.TAlignment">TAlignment</link>
</seealso>
</element>
<element name="TCustomSpeedButton.AllowAllUp">
<short>
Indicates if all buttons in a group can be in an up state.
</short>
<descr>
<p>
<var>AllowAllUp</var> is a <var>Boolean</var> property which indicates
whether all speed buttons with the same <var>GroupIndex</var> value can be in
the "up" state. The default value for the property is <b>False</b>, and means
that one of the grouped speed buttons must have its <var>Down</var> property
set to <b>True</b> when GroupIndex has a non-zero value.
</p>
<p>
Changing the value for the property causes a button pressed event to be sent
to the Parent control (when assigned) and the Down property is toggled and
updated for the new property value.
</p>
<p>
Set GroupIndex to a value other than 0 (zero) to use AllowAllUp when a mouse
button or an accelerator key is handled for the control.
</p>
</descr>
<seealso>
<link id="TCustomSpeedButton.GroupIndex"/>
<link id="TCustomSpeedButton.Down"/>
<link id="TCustomSpeedButton.MouseUp"/>
<link id="TCustomSpeedButton.DialogChar"/>
<link id="#lcl.controls.TControl.Parent">TControl.Parent</link>
</seealso>
</element>
<element name="TCustomSpeedButton.Color">
<short>
The background color for the control.
</short>
<descr>
<p>
The default value for the property is clBtnFace in TCustomSpeedButton.
</p>
<p>
If the color is clDefault, the result will need to be passed through
GetDefaultColor to resolve clDefault to a TColor value. Convenience routines
which obtain the color by resolving clDefault and ParentColor are also
provided in the GetColorResolvingParent and GetRGBColorResolvingParent
methods.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TControl.Color">TControl.Color</link>
<link id="#lcl.controls.TControl.ParentColor">TControl.ParentColor</link>
<link id="#lcl.controls.TControl.GetDefaultColor">TControl.GetDefaultColor</link>
<link id="#lcl.controls.TControl.GetColorResolvingParent">TControl.GetColorResolvingParent</link>
<link id="#lcl.controls.TControl.GetRGBColorResolvingParent">TControl.GetRGBColorResolvingParent</link>
</seealso>
</element>
<element name="TCustomSpeedButton.DisabledImageIndex">
<short>
Ordinal position for the image displayed when the control is disabled.
</short>
<descr>
<p>
<var>DisabledImageIndex</var> is a <var>TImageIndex</var> property with the
ordinal position for the bitmap displayed when Enabled is set to
<b>False</b>. It indicates the position in Images or Glyph where the image
data is stored. The default value for the property is -1, and indicates that
an explicit value has not been assigned for the property.
</p>
<p>
The property value is read from and written to the image index members in
ButtonGlyph.
</p>
<p>
The Lazarus IDE provides a property editor that allows selection of one of the
Images from a drop-down image list. The position for the selected image is
stored as the property value in the Object Inspector.
</p>
</descr>
<version>
Added in LCL version 2.3.0. Available since version 3.0.
</version>
<seealso>
<link id="TCustomSpeedButton.Images"/>
<link id="TCustomSpeedButton.Glyph"/>
<link id="TCustomSpeedButton.ButtonGlyph"/>
<link id="TCustomSpeedButton.ImageIndex"/>
<link id="TCustomSpeedButton.HotImageIndex"/>
<link id="TCustomSpeedButton.PressedImageIndex"/>
<link id="TCustomSpeedButton.SelectedImageIndex"/>
</seealso>
</element>
<element name="TCustomSpeedButton.Down">
<short>Indicates if the button has been set to the Down state.</short>
<descr>
<p>
<var>Down</var> is a <var>Boolean</var> property which indicates whether the
button control is in the down (or pressed) state. The default value for the
property is <b>False</b>. Changing the value for the property causes the
control to be redrawn.
</p>
<p>
The value in Down is toggled in the DialogChar method when ShowAccelChar has
been enabled and the accelerator key in Caption is received for the control.
This also calls the Click method to execute the OnClick event handler or the
action for the control.
</p>
<p>
Down is used in the UpdateState method, along with GroupIndex and
MouseInControl, to determine the current TButtonState for the control.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomSpeedButton.Flat">
<short>
Indicates whether the button is displayed with a Flat (non-relief) appearance.
</short>
<descr>
<p>
Set <var>Flat</var> to <b>True</b> to draw the control without relief,
elevation, or a three-dimensional appearance. The default value for the
property is <b>False</b>. Changing the value for the property causes the
control to be redrawn.
</p>
<p>
Flat is used in the <var>GetDrawDetails</var> method to select the theme
element details applied to the control for its current state. When set to
<b>False</b>, TThemedButton element details are used. When set to
<b>True</b>, TThemedToolBar element details are used. See <link
id="TCustomSpeedButton.GetDrawDetails">GetDrawDetails</link> for more
information about the values used for specific button states.
</p>
</descr>
<seealso>
<link id="TCustomSpeedButton.GetDrawDetails"/>
<link id="TCustomSpeedButton.MeasureDraw"/>
</seealso>
</element>
<element name="TCustomSpeedButton.Glyph">
<short>The bitmap with the glyph image(s) displayed for button states.</short>
<descr>
<p>
<var>Glyph</var> is a <var>TBitmap</var> property with the image drawn for
the button control. Read and write access to the property value are
redirected to an internal <var>TButtonGlyph</var> instance for the control.
This allows a single image to be specified for Glyph, or multiple bitmaps for
various button states using the Images property.
</p>
<p>
Changing the value for the property cause the control to be redrawn.
</p>
</descr>
<seealso>
<link id="TCustomSpeedButton.Images"/>
<link id="TCustomSpeedButton.ImageIndex"/>
<link id="TCustomSpeedButton.DisabledImageIndex"/>
<link id="TCustomSpeedButton.HotImageIndex"/>
<link id="TCustomSpeedButton.PressedImageIndex"/>
<link id="TCustomSpeedButton.SelectedImageIndex"/>
<link id="TButtonGlyph"/>
</seealso>
</element>
<element name="TCustomSpeedButton.GroupIndex">
<short>
Identifies the group to which the speed button control belongs.
</short>
<descr>
<p>
<var>GroupIndex</var> is used with <var>AllowAllUp</var> and <var>Down</var>
to determine if the button state can be changed within the related group of
controls. All buttons on the Parent control with the same value in GroupIndex
are treated as a single group. The default value for the property is 0
(zero), and indicates that an explicit value has not been assigned for the
property.
</p>
<p>
Set GroupIndex to a positive non-zero value to enable AllowAllUp checking
when a mouse button event or an accelerator key is handled for the control.
</p>
</descr>
<seealso>
<link id="TCustomSpeedButton.AllowAllUp"/>
<link id="TCustomSpeedButton.Down"/>
<link id="TCustomSpeedButton.MouseUp"/>
<link id="TCustomSpeedButton.DialogChar"/>
</seealso>
</element>
<element name="TCustomSpeedButton.HotImageIndex">
<short>
Ordinal position for the glyph bitmap displayed when the mouse is hovered
over the button control.
</short>
<descr>
<p>
<var>HotImageIndex</var> is a <var>TImageIndex</var> property with the
ordinal position for the bitmap displayed when the mouse cursor is hovered
over the control. The default value for the property is -1, and indicates
that an explicit value has not been assigned for the property.
</p>
<p>
The property value is read from and written to the image index members in
ButtonGlyph.
</p>
<p>
The Lazarus IDE provides a property editor that allows selection of one of the
Images from a drop-down image list. The position for the selected image is
stored as the property value in the Object Inspector.
</p>
</descr>
<version>
Added in LCL version 2.3.0. Available since version 3.0.
</version>
<seealso>
<link id="TCustomSpeedButton.Images"/>
<link id="TCustomSpeedButton.Glyph"/>
<link id="TCustomSpeedButton.ButtonGlyph"/>
<link id="TCustomSpeedButton.DrawGlyph"/>
<link id="TCustomSpeedButton.ImageIndex"/>
<link id="TCustomSpeedButton.DisabledImageIndex"/>
<link id="TCustomSpeedButton.PressedImageIndex"/>
<link id="TCustomSpeedButton.SelectedImageIndex"/>
</seealso>
</element>
<element name="TCustomSpeedButton.Images">
<short>
List of images available for use as state glyphs on the control.
</short>
<descr>
<p>
Provides an alternate way to specify images (individually) as opposed to
multiple adjacent bitmaps in Glyph.
</p>
<p>
Use ImageIndex to specify the ordinal position in Images for the glyph bitmap
displayed on the control.
</p>
<p>
Use Glyph to access an image in the TButtonGlyph assigned to the control.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomSpeedButton.ImageIndex">
<short>
Ordinal position for the glyph bitmap displayed when the button is in its up
state.
</short>
<descr>
<p>
ImageIndex is a TImageIndex property with the ordinal position for the glyph
bitmap displayed when the button is in its up state. The default value for
the property is -1, and indicates that an explicit value has not been
assigned for the property.
</p>
<p>
The property value is read from and written to the image index members in
ButtonGlyph.
</p>
</descr>
<version>
Added in LCL version 2.3.0. Available since version 3.0.
</version>
<seealso>
<link id="TCustomSpeedButton.Images"/>
<link id="TCustomSpeedButton.Glyph"/>
<link id="TCustomSpeedButton.ButtonGlyph"/>
<link id="TCustomSpeedButton.DrawGlyph"/>
<link id="TCustomSpeedButton.DisabledImageIndex"/>
<link id="TCustomSpeedButton.HotImageIndex"/>
<link id="TCustomSpeedButton.PressedImageIndex"/>
<link id="TCustomSpeedButton.SelectedImageIndex"/>
</seealso>
</element>
<element name="TCustomSpeedButton.ImageWidth">
<short>
Width for the glyph bitmap displayed on the control.
</short>
<descr>
<p>
<var>ImageWidth</var> is an <var>Integer</var> property with the Width in
pixels for the TCustomImage instances stored in the Images property. The
default value for the property is 0, and indicates that an explicit value has
not been assigned for the property. This causes the Width property in the
TCustomImageList to be used for an image retrieved from the list.
</p>
<p>
Changing the property value causes the external TButtonGlyph instance in the
class to be updated with the new value. InvalidatePreferredSize is called to
recalculate the preferred dimensions for the class instance. AdjustSize is
called to auto-size the visible control and its parent.
</p>
</descr>
<seealso>
<link id="TCustomSpeedButton.Images"/>
<link id="TCustomSpeedButton.ImageIndex"/>
<link id="TCustomSpeedButton.Glyph"/>
<link id="TButtonGlyph"/>
</seealso>
</element>
<element name="TCustomSpeedButton.Layout">
<short>
Indicates the alignment of the glyph bitmap relative to the caption for the
control.
</short>
<descr>
<p>
<var>Layout</var> is a <var>TButtonLayout</var> property which indicates the
position for the glyph on the speed button relative to the caption text for
the control. The default value for the property is blGlyphLeft. It causes the
Margin, Glyph (or image), Spacing, and Caption to be aligned to the left edge
of the button surface.
</p>
<p>
Changing the property value causes the default size for the control to be
recalculated (in SetLayout), and the control is redrawn.
</p>
<p>
Layout is used in the MeasureDraw method to position and size the text and
glyph image for the button.
</p>
<p>
Use Margin to set the space reserved prior to the glyph bitmap on the aligned
edge of the control. Use Spacing to set the space reserved between the Glyph
image and the Caption relative to the aligned edge of the control.
</p>
</descr>
<seealso>
<link id="TCustomSpeedButton.Glyph"/>
<link id="TCustomSpeedButton.Images"/>
<link id="TCustomSpeedButton.ImageIndex"/>
<link id="TCustomSpeedButton.Margin"/>
<link id="TCustomSpeedButton.Spacing"/>
<link id="TCustomSpeedButton.MeasureDraw"/>
<link id="TButtonLayout"/>
<link id="#lcl.controls.TControl.Caption">TControl.Caption</link>
</seealso>
</element>
<element name="TCustomSpeedButton.Margin">
<short>
Space between the glyph bitmap and the aligned edge in the button layout.
</short>
<descr>
<p>
<var>Margin</var> is an <var>Integer</var> property with the space reserved
between the Glyph image an the edge of the control. It is applied on the edge
specified in Layout, and refers to a number of pixels. The value -1 has special
meaning; it causes both the glyph and caption to be centered on the button
surface.
</p>
<p>
Changing the value for the property causes the control to recalculate its
preferred size, and the control is redrawn (in SetMargin).
</p>
<p>
Margin is used in the MeasureDraw method when the glyph image and caption text
are positioned and sized on the control.
</p>
<p>
Use Layout to specify the edge on the button control to which the glyph
bitmap and caption are aligned.
</p>
<p>
Use Spacing to set the space reserved between the glyph bitmap and the
caption for the control.
</p>
<p>
In TCustomSpeedButton, any value assigned to BorderSpacing.InnerBorder is
ignored.
</p>
</descr>
<seealso>
<link id="TCustomSpeedButton.Glyph"/>
<link id="TCustomSpeedButton.Images"/>
<link id="TCustomSpeedButton.ImageIndex"/>
<link id="TCustomSpeedButton.Layout"/>
<link id="TCustomSpeedButton.Spacing"/>
<link id="TCustomSpeedButton.MeasureDraw"/>
<link id="TCustomSpeedButton.SetMargin"/>
<link id="#lcl.controls.TControl.Caption">TControl.Caption</link>
<link id="#lcl.controls.TControl.BorderSpacing">TControl.BorderSpacing</link>
<link id="#lcl.controls.TControlBorderSpacing.InnerBorder">TControlBorderSpacing.InnerBorder</link>
</seealso>
</element>
<element name="TCustomSpeedButton.NumGlyphs">
<short>
The number of glyph bitmaps available for the control.
</short>
<descr>
<p>
<var>NumGlyphs</var> is an <var>Integer</var> property which contains the
number of glyph images available to the button control. Its value is read from
and written to the NumGlyphs property in the internal TButtonGlyph instance
used in the control.
</p>
<p>
The default value for the property is 1, and is set when a bitmap is assigned
to the Glyph property or an image list is assigned to Images. Changing the
value for the property causes the control to be redrawn.
</p>
<p>
Use Images to assign a user-specified list of images that can be used as the
glyph for the button states. Use ImageIndex, PressedImageIndex, HotImageIndex,
and DisabledImageIndex to specify which image is displayed on the control for
the button states.
</p>
</descr>
<seealso>
<link id="TCustomSpeedButton.Images"/>
<link id="TCustomSpeedButton.Glyph"/>
<link id="TCustomSpeedButton.ImageIndex"/>
<link id="TCustomSpeedButton.PressedImageIndex"/>
<link id="TCustomSpeedButton.HotImageIndex"/>
<link id="TCustomSpeedButton.DisabledImageIndex"/>
<link id="TButtonGlyph"/>
</seealso>
</element>
<element name="TCustomSpeedButton.PressedImageIndex">
<short>
Ordinal position for the glyph bitmap displayed when the button is in a
pressed (down) state.
</short>
<descr>
<p>
<var>PressedImageIndex</var> is a <var>TImageIndex</var> property with the
ordinal position for the glyph bitmap displayed when the Down property is
<b>True</b>. The default value for the property is -1, and indicates that an
explicit value has not been assigned for the property.
</p>
<p>
The property value is read from and written to the image index members in
ButtonGlyph.
</p>
<p>
The Lazarus IDE provides a property editor that allows selection of one of the
Images from a drop-down image list. The position for the selected image is
stored as the property value in the Object Inspector.
</p>
</descr>
<version>
Added in LCL version 2.3.0. Available since version 3.0.
</version>
<seealso>
<link id="TCustomSpeedButton.Images"/>
<link id="TCustomSpeedButton.Glyph"/>
<link id="TCustomSpeedButton.ButtonGlyph"/>
<link id="TCustomSpeedButton.DrawGlyph"/>
<link id="TCustomSpeedButton.DisabledImageIndex"/>
<link id="TCustomSpeedButton.HotImageIndex"/>
<link id="TCustomSpeedButton.ImageIndex"/>
<link id="TCustomSpeedButton.SelectedImageIndex"/>
</seealso>
</element>
<element name="TCustomSpeedButton.SelectedImageIndex">
<short>
Ordinal position for the glyph bitmap displayed when the button is selected.
</short>
<descr>
<p>
SelectedImageIndex is a TImageIndex property. The default value for the
property is -1, and indicates that an explicit value has not been assigned
for the property.
</p>
</descr>
<version>
Added in LCL version 2.3.0. Available since version 3.0.
</version>
<seealso/>
</element>
<element name="TCustomSpeedButton.ShowAccelChar">
<short>
Indicates if the accelerator key (shortcut) is displayed in the Caption for
the control.
</short>
<descr>
<p>
<var>ShowAccelChar</var> is a <var>Boolean</var> property which controls
whether an accelerator key in Caption is displayed as an underlined
character. The accelerator (or shortcut) key in Caption is identified by the
'&' character, with the subsequent character used as the accelerator key.
</p>
<p>
When set to <b>False</b>, the underlined character is not drawn in Caption
and the accelerator key is not handled in the DialogChar method.
</p>
<p>
The default value for ShowAccelChar is <b>True</b>. Changing the value for
the property causes the control to be redrawn.
</p>
</descr>
<seealso>
<link id="TCustomSpeedButton.DialogChar"/>
<link id="TCustomSpeedButton.ShowCaption"/>
<link id="#lcl.controls.TControl.Caption">TControl.Caption</link>
</seealso>
</element>
<element name="TCustomSpeedButton.ShowCaption">
<short>Indicates if the Caption for the speed button is displayed.</short>
<descr>
<p>
The default value for the property is <b>True</b>. Changing the value for the
property causes the control to be redrawn.
</p>
<p>
ShowCaption is used in the MeasureDraw method. When set to <b>True</b>, the
text extent for Caption is displayed using the Font and Layout for the
control. It is also used in the GetTextSize method when the text extent is
calculated.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomSpeedButton.Spacing">
<short>
Spacing between the Glyph bitmap and the Caption for the control.
</short>
<descr>
<p>
If Spacing is -1 and Margin is -1 then the glyph and the Caption are
centered, with the same amount of unused space on each side of the control.
If Spacing is -1 and Margin is not -1 then Spacing will fill the remaining
unused space.
</p>
<p>
Changing the value for the property causes the preferred size to be
recalculated, and the control is redrawn (in SetSpacing).
</p>
</descr>
<seealso>
<link id="TCustomSpeedButton.SetSpacing"/>
<link id="TCustomSpeedButton.Margin"/>
<link id="TCustomSpeedButton.Layout"/>
<link id="TCustomSpeedButton.Alignment"/>
<link id="TCustomSpeedButton.Glyph"/>
<link id="TCustomSpeedButton.ShowCaption"/>
<link id="#lcl.controls.TControl.Caption">TControl.Caption</link>
</seealso>
</element>
<element name="TCustomSpeedButton.Transparent">
<short>Indicates if the control is drawn with transparency.</short>
<descr>
<p>
<var>Transparent</var> is a <var>Boolean</var> property which indicates
whether the control is drawn with transparency. Changing the value for the
property causes the ControlStyle property to be updated to include or exclude
the csOpaque flag as needed, and the control is redrawn. The property value
is read from and written to the TransparentMode property in ButtonGlyph.
</p>
<p>
The property value is passed as an argument to the DrawGlyph method when
MeasureDraw is executed. When set to <b>False</b>, the PaintBackground method
fills the display area with the background Color when theme element details
have transparent areas.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TSpeedButton">
<short>A Button used to represent states (checked or unchecked).</short>
<descr>
<p>
The Speed Button is designed to automate a process when it is selected. An
user pushes a button to start an action or set a mode.
</p>
<p>
When a user clicks on a SpeedButton focus is not shifted; a Speed Button
never gets focus. The button may carry an descriptive glyph, and has a state
(checked or not, etc).
</p>
</descr>
<seealso>
<link id="#lcl.stdctrls.HowToUseStdCtrls">How To Use Standard Controls</link>
</seealso>
</element>
<element name="TSpeedButton.Action" link="#lcl.controls.TControl.Action"/>
<element name="TSpeedButton.Align" link="#lcl.controls.TControl.Align"/>
<element name="TSpeedButton.Alignment" link="#lcl.buttons.TCustomSpeedButton.Alignment"/>
<element name="TSpeedButton.AllowAllUp" link="#lcl.buttons.TCustomSpeedButton.AllowAllUp"/>
<element name="TSpeedButton.Anchors" link="#lcl.controls.TControl.Anchors"/>
<element name="TSpeedButton.AutoSize" link="#lcl.controls.TControl.AutoSize"/>
<element name="TSpeedButton.BidiMode">
<short>Indicates the bi-directional text mode for the control.</short>
<descr></descr>
<seealso></seealso>
</element>
<element name="TSpeedButton.BorderSpacing" link="#lcl.controls.TControl.BorderSpacing"/>
<element name="TSpeedButton.Constraints" link="#lcl.controls.TControl.Constraints"/>
<element name="TSpeedButton.Caption">
<short>
String with the caption displayed for the control.
</short>
<descr>
<p>
Gets caption as a text-string (<var>GetText</var>), or stores the new caption
(<var>SetText</var>). Shows flag if caption is stored
(<var>IsCaptionStored</var>).
</p>
<p>
By default, the <var>Caption</var> appears the same as the control
<var>Name</var> in the Object Inspector, and the developer needs to set it
explicitly to some new text.
</p>
<p>
The VCL implementation relies on the virtual <var>Get/SetTextBuf</var> to
exchange text between widgets and VCL. This means a lot of (unnecessary) text
copies.
</p>
<p>
The LCL uses strings for exchanging text (more efficient). To maintain VCL
compatibility, the virtual <var>RealGet/SetText</var> is introduced. These
functions interface with the LCLInterface.
</p>
<p>
The default <var>Get/SetTextBuf</var> implementation calls the
<var>RealGet/SetText</var>. As long as the <var>Get/SetTextBuf</var> isn't
overridden <var>Get/SetText</var> calls <var>RealGet/SetText</var> to avoid
PChar copying.
</p>
<p>
To keep things optimal, LCL implementations should always override
RealGet/SetText. Get/SetTextBuf is only kept for compatibility.
</p>
</descr>
<version>
Modified in LCL version 3.0 to allow a multi-line value to be entered in the
Object Inspector at design-time.
</version>
<seealso>
<link id="#lcl.controls.TControl.Caption">TControl.Caption</link>
</seealso>
</element>
<element name="TSpeedButton.Color" link="#lcl.buttons.TCustomSpeedButton.Color"/>
<element name="TSpeedButton.DisabledImageIndex" link="#lcl.buttons.TCustomSpeedButton.DisabledImageIndex"/>
<element name="TSpeedButton.Down" link="#lcl.buttons.TCustomSpeedButton.Down"/>
<element name="TSpeedButton.DragCursor" link="#lcl.controls.TControl.DragCursor"/>
<element name="TSpeedButton.DragKind" link="#lcl.controls.TControl.DragKind"/>
<element name="TSpeedButton.DragMode" link="#lcl.controls.TControl.DragMode"/>
<element name="TSpeedButton.Enabled" link="#lcl.controls.TControl.Enabled"/>
<element name="TSpeedButton.Flat" link="#lcl.buttons.TCustomSpeedButton.Flat"/>
<element name="TSpeedButton.Font" link="#lcl.controls.TControl.Font"/>
<element name="TSpeedButton.Glyph" link="#lcl.buttons.TCustomSpeedButton.Glyph"/>
<element name="TSpeedButton.GroupIndex" link="#lcl.buttons.TCustomSpeedButton.GroupIndex"/>
<element name="TSpeedButton.HotImageIndex" link="#lcl.buttons.TCustomSpeedButton.HotImageIndex"/>
<element name="TSpeedButton.Images" link="#lcl.buttons.TCustomSpeedButton.Images"/>
<element name="TSpeedButton.ImageIndex" link="#lcl.buttons.TCustomSpeedButton.ImageIndex"/>
<element name="TSpeedButton.ImageWidth" link="#lcl.buttons.TCustomSpeedButton.ImageWidth"/>
<element name="TSpeedButton.Layout" link="#lcl.buttons.TCustomSpeedButton.Layout"/>
<element name="TSpeedButton.Margin" link="#lcl.buttons.TCustomSpeedButton.Margin"/>
<element name="TSpeedButton.NumGlyphs" link="#lcl.buttons.TCustomSpeedButton.NumGlyphs"/>
<element name="TSpeedButton.PressedImageIndex" link="#lcl.buttons.TCustomSpeedButton.PressedImageIndex"/>
<element name="TSpeedButton.SelectedImageIndex" link="#lcl.buttons.TCustomSpeedButton.SelectedImageIndex"/>
<element name="TSpeedButton.Spacing" link="#lcl.buttons.TCustomSpeedButton.Spacing"/>
<element name="TSpeedButton.Transparent" link="#lcl.buttons.TCustomSpeedButton.Transparent"/>
<element name="TSpeedButton.Visible">
<short>
Indicates if the control is visible on its parent.
</short>
<descr>
<p>
The <var>Visible</var> property indicates whether a visual control is
displayed. If Visible is <b>True</b> the control is shown, otherwise it is
hidden. Calling Show sets Visible to <b>True</b>. Setting Visible to
<b>False</b> is equivalent to calling the Hide method.
</p>
<remark>
The Visible property does not use the visibility for the parent control. Use
the IsVisible method to get the realized visibility.
</remark>
</descr>
<seealso>
<link id="#lcl.controls.TControl.Visible">TControl.Visible</link>
</seealso>
</element>
<element name="TSpeedButton.ShowCaption" link="#lcl.buttons.TCustomSpeedButton.ShowCaption"/>
<element name="TSpeedButton.ShowHint" link="#lcl.controls.TControl.ShowHint"/>
<element name="TSpeedButton.ParentBidiMode" link="#lcl.controls.TControl.ParentBidiMode"/>
<element name="TSpeedButton.ParentFont" link="#lcl.controls.TControl.ParentFont"/>
<element name="TSpeedButton.ParentShowHint" link="#lcl.controls.TControl.ParentShowHint"/>
<element name="TSpeedButton.PopupMenu" link="#lcl.controls.TControl.PopupMenu"/>
<element name="TSpeedButton.OnClick" link="#lcl.controls.TControl.OnClick"/>
<element name="TSpeedButton.OnContextPopup" link="#lcl.controls.TControl.OnContextPopup"/>
<element name="TSpeedButton.OnDblClick" link="#lcl.controls.TControl.OnDblClick"/>
<element name="TSpeedButton.OnDragDrop" link="#lcl.controls.TControl.OnDragDrop"/>
<element name="TSpeedButton.OnDragOver" link="#lcl.controls.TControl.OnDragOver"/>
<element name="TSpeedButton.OnEndDrag" link="#lcl.controls.TControl.OnEndDrag"/>
<element name="TSpeedButton.OnMouseDown" link="#lcl.controls.TControl.OnMouseDown"/>
<element name="TSpeedButton.OnMouseEnter" link="#lcl.controls.TControl.OnMouseEnter"/>
<element name="TSpeedButton.OnMouseLeave" link="#lcl.controls.TControl.OnMouseLeave"/>
<element name="TSpeedButton.OnMouseMove" link="#lcl.controls.TControl.OnMouseMove"/>
<element name="TSpeedButton.OnMouseUp" link="#lcl.controls.TControl.OnMouseUp"/>
<element name="TSpeedButton.OnMouseWheel" link="#lcl.controls.TControl.OnMouseWheel"/>
<element name="TSpeedButton.OnMouseWheelDown" link="#lcl.controls.TControl.OnMouseWheelDown"/>
<element name="TSpeedButton.OnMouseWheelUp" link="#lcl.controls.TControl.OnMouseWheelUp"/>
<element name="TSpeedButton.OnPaint" link="#lcl.controls.TGraphicControl.OnPaint"/>
<element name="TSpeedButton.OnResize" link="#lcl.controls.TControl.OnResize"/>
<element name="TSpeedButton.OnStartDrag" link="#lcl.controls.TControl.OnStartDrag"/>
<element name="TSpeedButton.OnChangeBounds" link="#lcl.controls.TControl.OnChangeBounds"/>
<element name="TGetDefaultBitBtnGlyph">
<short>
<var>TGetDefaultBitBtnGlyph</var> - generic method to return a default Bit
Button Glyph of specified Kind.
</short>
</element>
<element name="GetDefaultBitBtnGlyph">
<short>
Address of the routine used to get default glyphs for TBitBtn instances.
</short>
<descr>
<p>
<var>GetDefaultBitBtnGlyph</var> is a <var>TGetDefaultBitBtnGlyph</var>
variable with the address for the routine used to get the default glyphs for
<var>TBitBtn</var> instances in the application.
</p>
<p>
<var>Kind</var> is a <var>TBitBtnKind</var> argument that identifies the
content needed in the bitmap returned from the function.
</p>
<p>
<var>Handled</var> is a <var>Boolean</var> value which indicates if the
<var>TBitmap</var> instance was successfully created and loaded in the
routine.
</p>
<p>
Create a function using the signature in TGetDefaultBitBtnGlyph, and assign
it the variable to use custom bitmaps for the glyphs in TBitBtn. For example:
</p>
<code>
// provides Ok and Cancel glyphs
function GetCustomBitBtnGlyph(Kind: TBitBtnKind; Handled: Boolean): TBitmap;
begin
if Kind in [bkOK, bkCancel] then
begin
Result := TBitmap.Create;
case Kind of
bkOk: Result.Assign(MyOkGlyph);
bkCancel: Result.Assign(MyCancelGlyph);
end;
end
else
Result := Nil;
Handled := (Result <> Nil);
end;
// assign the routine to the GetDefaultBitBtnGlyph variable
Buttons.GetDefaultBitBtnGlyph := @GetCustomBitBtnGlyph;
</code>
</descr>
<seealso>
<link id="TGetDefaultBitBtnGlyph"/>
</seealso>
</element>
<element name="GetLCLDefaultBtnGlyph">
<short>
Gets the default LCL button glyph for the specified button Kind.
</short>
<descr>
</descr>
<seealso>
<link id="GetDefaultBitBtnGlyph"/>
<link id="TGetDefaultBitBtnGlyph"/>
</seealso>
</element>
<element name="GetLCLDefaultBtnGlyph.Result">
<short>
TGraphic instance with the glyph loaded in the routine.
</short>
</element>
<element name="GetLCLDefaultBtnGlyph.Kind">
<short>
Determines the default image loaded for the bitmapped button.
</short>
</element>
<element name="LoadGlyphFromResourceName">
<short>
Loads a bitmap from a named resource into the specified Glyph.
</short>
<descr>
<p>
<var>LoadGlyphFromResourceName</var> is a procedure used to load a bitmap
into the specified <var>Glyph</var> from a named resource. <var>AGlyph</var>
is the <var>TButtonGlyph</var> where the bitmap is stored.
<var>Instance</var> is a <var>TLCLHandle</var> for the resource instance
accessed in the routine. <var>AName</var> contains the name for the resource
loaded in the routine.
</p>
<p>
<var>LoadGlyphFromResourceName</var> calls
<var>CreateBitmapFromResourceName</var> to retrieve a
<var>TCustomBitmap</var> using the specified handle and resource name. The
bitmap is assigned to the <var>TButtonGlyph</var> in <var>AGlyph</var>. When
<var>AName</var> is an empty string (<b>''</b>), the Glyph image in AGlyph is
set to <b>Nil</b>.
</p>
<p>
<var>LoadGlyphFromResourceName</var> is used in the implementation of the
<var>LoadGlyphFromResourceName</var> method in both <var>TCustomBitBtn</var>
and <var>TCustomSpeedButton</var>.
</p>
</descr>
<version>
Modified in LCL version 4.0 to use the TLCLHandle type for the Instance
argument instead of the deprecated THandle type.
</version>
<seealso>
<link id="TCustomBitBtn.LoadGlyphFromResourceName"/>
<link id="TCustomSpeedButton.LoadGlyphFromResourceName"/>
<link id="TButtonGlyph"/>
<link id="CreateBitmapFromResourceName"/>
<link id="#lcl.lcltype.TLCLHandle">TLCLHandle</link>
</seealso>
</element>
<element name="LoadGlyphFromResourceName.AGlyph">
<short>Button glyph updated in the routine.</short>
</element>
<element name="LoadGlyphFromResourceName.Instance">
<short>Handle for the resource.</short>
</element>
<element name="LoadGlyphFromResourceName.AName">
<short>Resource name loaded in the routine.</short>
</element>
<element name="LoadGlyphFromLazarusResource">
<short>Loads the named glyph image from a Lazarus Resource file.</short>
<descr>
<p>
<var>LoadGlyphFromLazarusResource</var> loads a glyph image with the
specified name from a Lazarus Resource file (<file>.lrs</file>). Used in the
implementation of the LoadGlyphFromLazarusResource method in both
<var>TCustomBitBtn</var> and <var>TCustomSpeedButton</var>.
</p>
</descr>
<seealso>
<link id="TCustomBitBtn.LoadGlyphFromLazarusResource"/>
<link id="TCustomSpeedButton.LoadGlyphFromLazarusResource"/>
</seealso>
</element>
<element name="LoadGlyphFromLazarusResource.AGlyph">
<short>Class instance where the bitmap for the glyph is stored.</short>
</element>
<element name="LoadGlyphFromLazarusResource.AName">
<short>Resource name loaded in the routine.</short>
</element>
<element name="LoadGlyphFromStock">
<short>
Loads the bitmap for the specified Glyph using the image for the specified
button identifier.
</short>
<descr>
<p>
<var>LoadGlyphFromStock</var> is a procedure used to load a
<var>TBitmap</var> into the <var>AGlyph</var> argument with the image used
for the button identifier in <var>idButton</var>. LoadGlyphFromStock calls
the <var>GetButtonIcon</var> routine to load the graphic image for the button
identifier.
</p>
<p>
Used in the implementation of the <var>LoadGlyphFromStock</var> method in
both <var>TCustomBitBtn</var>.
</p>
</descr>
<seealso>
<link id="TCustomBitBtn.LoadGlyphFromStock"/>
<link id="LoadGlyphFromStock"/>
<link id="GetButtonIcon"/>
</seealso>
</element>
<element name="LoadGlyphFromStock.AGlyph">
<short>TButtonGlyph where the bitmap is stored.</short>
</element>
<element name="LoadGlyphFromStock.idButton">
<short>Button identifier for the image loaded in the routine.</short>
</element>
<element name="LoadGlyphFromResource">
<short>
Loads the image for the specified button glyph from the LCL glyph resource.
</short>
<descr>
<p>
<var>LoadGlyphFromResource</var> is a routine used to load the LCL glyph image
for the specified button identifier into the specified button glyph.
</p>
<p>
<var>AGlyph</var> is the TButtonGlyph instance where the glyph image is stored
in the routine.
</p>
<p>
<var>idButton</var> contains one of the button identifier constants defined in
the <file>lcltype.pp</file> unit, such as: idButtonOk, idButtonCancel, et. al.
idButton must be in the range allowed for the TButtonImage type; no actions are
performed in the routine if idButton is not within the required range.
</p>
<p>
LoadGlyphFromResource assigns the resource name in BitBtnResNames for the
specified button identifier to the LCLGlyphName property in AGlyph. This causes
the image with that name to be loaded from the LCLGlyphs image list.
</p>
</descr>
<seealso/>
</element>
<element name="LoadGlyphFromResource.AGlyph">
<short>
TButtonGlyph instance where the glyph image is stored.
</short>
</element>
<element name="LoadGlyphFromResource.idButton">
<short>
Button identifier for the image resource loaded in the routine.
</short>
</element>
<element name="GetButtonCaption">
<short>Gets the default caption for the specified button identifier.</short>
<descr>
<p>
<var>GetButtonCaption</var> is a <var>String</var> function used to get the
default caption for the numeric button identifier in idButton. The return
value contains the resource string from the <file>LCLStrConsts.pas</file>
unit for the value in idButton.
</p>
<p>
idButton contains one of the button identifiers defined in
<file>LCLType.pp</file>, such as:
</p>
<dl>
<dt>idButtonOk (1)</dt>
<dd>Returns the value in rsmbOK.</dd>
<dt>idButtonCancel (2)</dt>
<dd>Returns the value in rsmbCancel.</dd>
<dt>idButtonHelp (3)</dt>
<dd>Returns the value in rsmbHelp.</dd>
<dt>idButtonYes (4)</dt>
<dd>Returns the value in rsmbYes.</dd>
<dt>idButtonNo (5)</dt>
<dd>Returns the value in rsmbNo.</dd>
<dt>idButtonClose (6)</dt>
<dd>Returns the value in rsmbClose.</dd>
<dt>idButtonAbort (7)</dt>
<dd>Returns the value in rsmbAbort.</dd>
<dt>idButtonRetry (8)</dt>
<dd>Returns the value in rsmbRetry.</dd>
<dt>idButtonIgnore (9)</dt>
<dd>Returns the value in rsmbIgnore.</dd>
<dt>idButtonAll (10)</dt>
<dd>Returns the value in rsmbAll.</dd>
<dt>idButtonYesToAll (11)</dt>
<dd>Returns the value in rsmbYesToAll.</dd>
<dt>idButtonNoToAll (12)</dt>
<dd>Returns the value in rsmbNoToAll.</dd>
<dt>idButtonOpen (13)</dt>
<dd>Returns the value in rsmbOpen.</dd>
<dt>idButtonSave (14)</dt>
<dd>Returns the value in rsmbSave.</dd>
<dt>idButtonShield (15)</dt>
<dd>Returns the value in rsmbUnlock.</dd>
</dl>
<p>
The return value is '?' if any other numeric value is passed in idButton.
</p>
<p>
GetButtonCaption is called when a value other than bkCustom is assigned to
the Kind property in TCustomBitBtn.
</p>
</descr>
<seealso>
<link id="GetDefaultButtonIcon"/>
</seealso>
</element>
<element name="GetButtonCaption.Result">
<short>Default caption for the specified button.</short>
</element>
<element name="GetButtonCaption.idButton">
<short>
Button identifier used to get the default caption from a resource string.
</short>
</element>
<element name="GetDefaultButtonIcon">
<short>
Gets a scaled bitmap with the default glyph for the specified button
identifier.
</short>
<descr>
<p>
<var>GetDefaultButtonIcon</var> is a <var>TCustomBitmap</var> function used
to retrieve the default glyph bitmap for the button identifier in idButton.
idButton contains one of the button identifiers defined in
<file>LCLType.pp</file>, such as:
</p>
<ul>
<li>idButtonOk (1)</li>
<li>idButtonCancel (2)</li>
<li>idButtonHelp (3)</li>
<li>idButtonYes (4)</li>
<li>idButtonNo (5)</li>
<li>idButtonClose (6)</li>
<li>idButtonAbort (7)</li>
<li>idButtonRetry (8)</li>
<li>idButtonIgnore (9)</li>
<li>idButtonAll (10)</li>
<li>idButtonYesToAll (11)</li>
<li>idButtonNoToAll (12)</li>
<li>idButtonOpen (13)</li>
<li>idButtonSave (14)</li>
<li>idButtonShield (15)</li>
</ul>
<p>
GetDefaultButtonIcon uses the value in idButton to get the resource name for
the button from the BitBtnResNames constant. If a resource name is not found
for the button identifier, the image data in the return value is empty.
</p>
<p>
<var>ScalePercent</var> contains the scaling percentage for the retrieved
bitmap. The default value is 100 and keeps the original dimensions for the
bitmap.
</p>
<p>
GetDefaultButtonIcon calls the GetDefaultGlyph routine to retrieve the scaled
bitmap. The image is loaded from application or LCL resources with the
required name and scaling percentage, and stored in the return value.
Transparency is applied to the bitmap using the color in the bottom, left
pixel if it is not already enabled. Please note that GetDefaultGlyph raises
an exception if a resource with the required name and scaling percentage is
not found in the available resources.
</p>
<p>
GetDefaultButtonIcon is called from the GetButtonIcon and
GetLCLDefaultBtnGlyph routines, and occurs when a value other than bkCustom
is assigned to the Kind property in TCustomBitBtn.
</p>
</descr>
<seealso>
<link id="BitBtnResNames"/>
<link id="GetButtonIcon"/>
<link id="GetLCLDefaultBtnGlyph"/>
<link id="#lcl.imglist.GetDefaultGlyph">GetDefaultGlyph</link>
</seealso>
</element>
<element name="GetDefaultButtonIcon.Result">
<short>
Default glyph bitmap for the specified button identifier.
</short>
</element>
<element name="GetDefaultButtonIcon.idButton">
<short>
Numeric button identifier used to retrieve the glyph from LCL resources.
</short>
</element>
<element name="GetDefaultButtonIcon.ScalePercent">
<short>
Scaling percentage for the glyph bitmap. The default value is 100.
</short>
</element>
<element name="GetButtonIcon">
<short>
Gets a bitmap with the glyph image for the specified button identifier.
</short>
<descr>
<p>
<var>GetButtonIcon</var> is a <var>TCustomBitmap</var> function used to get a
bitmap with the glyph for the button identifier in <var>idButton</var>.
GetButtonIcon calls the <var>GetStockImage</var> routine in
<var>ThemeServices</var> to get the handle used for the stock image. If the
return value is <b>False</b>, the <var>GetDefaultButtonIcon</var> routine is
called to get the icon for the button identifier.
</p>
<p>
GetButtonIcon is used in the implementation of the
<var>LoadGlyphFromStock</var> routine.
</p>
</descr>
<seealso>
<link id="LoadGlyphFromStock"/>
</seealso>
</element>
<element name="GetButtonIcon.Result">
<short>
Bitmap instance with the glyph for the specified button.
</short>
</element>
<element name="GetButtonIcon.idButton">
<short>
Numeric button identifier for the glyph loaded in the routine.
</short>
</element>
<element name="GetButtonImageIndex">
<short>
Gets the ordinal position in the LCL Glyph image list for the specified button
identifier.
</short>
<descr>
<p>
<var>GetButtonImageIndex</var> is an <var>Integer</var> function used to
retrieve the position for the specified button identifier in the LCL glyph
image list.
</p>
<p>
<var>idButton</var> is the TButtonImage value for the button identifier
requested in the routine. It is used to identify the resource name in
BitBtnResNames for the button glyph. The resource name is located in the
LCLGlyphs image list using its GetImageIndex method.
</p>
<p>
The return value contains the ordinal position in LCLGlyphs where the
corresponding resource name is stored, or -1 if the resource name is not found.
</p>
</descr>
<seealso>
<link id="TButtonImage"/>
<link id="BitBtnResNames"/>
<link id="#lcl.imglist.TLCLGlyphs.GetImageIndex">TLCLGlyphs.GetImageIndex</link>
<link id="#lcl.imglist.LCLGlyphs">LCLGlyphs</link>
</seealso>
</element>
<element name="GetButtonImageIndex.Result">
<short>
Ordinal position for the specified button identifier, or -1 when not found.
</short>
</element>
<element name="GetButtonImageIndex.idButton">
<short>
Button identifier constant for the image requested in the routine.
</short>
</element>
<element name="BidiAdjustButtonLayout">
<short>
Adjusts the specified button layout for use in bi-directional rendering.
</short>
<descr>
<p>
Adjusts the layout for button glyphs to reflect the settings in
<var>IsRightToLeft</var>. Uses an implementation constant to get the
<var>TButtonLayout</var> value needed for the setting in IsRightLeft.
</p>
<p>
In general, when IsRightToLeft is <b>True</b> the value in <var>Layout</var>
is reversed and used as the return value. <var>blGlyphLeft</var> becomes
<var>blGlyphRight</var>, <var>blGlyphTop</var> becomes
<var>blGlyphBottom</var>, etc.
</p>
<p>
When IsRightToLeft is <var>False</var>, the value in Layout is used.
</p>
</descr>
<seealso/>
</element>
<element name="BidiAdjustButtonLayout.Result">
<short>Adjusted glyph layout needed for the value in IsRightToLeft.</short>
</element>
<element name="BidiAdjustButtonLayout.IsRightToLeft">
<short>
<b>True</b> when BiDiMode has any value other than bdLeftToRight.
</short>
</element>
<element name="BidiAdjustButtonLayout.Layout">
<short>
Glyph layout needed for the button using the specified BiDi setting.
</short>
</element>
<element name="dbgs">
<short>
Gets a String with debugging information from the specified TBitBtnKind
instance.
</short>
<descr></descr>
<seealso></seealso>
</element>
<element name="dbgs.Result">
<short>Formatted string value with the information for the type.</short>
</element>
<element name="dbgs.Kind">
<short>TBitBtnKind instance examined in the routine.</short>
</element>
<element name="BitBtnModalResults">
<short>
Contains modal result values for buttons defined in TBitBtnKind.
</short>
<descr>
<p>
<var>BitBtnModalResults</var> is an <var>Array</var> constant which contains
<var>TModalResult</var> values returned for buttons in <var>TBitBtn</var>.
BitBtnModalResults is indexed by the enumeration values in
<var>TBitBtnKind</var>. BitBtnModalResults is used in the implementation of
the <var>RealizeKind</var> method in <var>TCustomBitBtn</var>.
</p>
</descr>
<seealso>
<link id="TBitBtnKind"/>
</seealso>
</element>
<element name="BitBtnImages">
<short>
Contains button identifiers used to get icons for TBitBtn button glyphs.
</short>
<descr>
<p>
<var>BitBtnImages</var> is an Array constant which contains LongInt values
for the button identifiers used in <var>TBitBtn</var>. BitBtnImages is
indexed by the enumeration values in <var>TBitBtnKind</var>. Values in
BitBtnImages are used in the <var>GetLCLDefaultBtnGlyph</var> routine.
</p>
</descr>
<seealso>
<link id="TBitBtnKind"/>
<link id="GetLCLDefaultBtnGlyph"/>
</seealso>
</element>
<element name="BitBtnResNames">
<short>
Contains resource names for corresponding button identifiers in TBitBtn.
</short>
<descr>
<p>
<var>BitBtnResNames</var> is an <var>Array</var> constant that contains
Strings with the resource name for button identifiers used in TBitBtn. Values
in BitBtnResNames are indexed by the range of values defined in
<var>BitBtnImages</var>:
<b><var>idButtonOk</var>..<var>idButtonNoToAll</var></b>.
</p>
<p>
BitBtnResNames is used in the implementation of the <var>RealizeKind</var>
method in <var>TCustomBitBtn</var>.
</p>
</descr>
<seealso>
<link id="BitBtnImages"/>
<link id="TCustomBitBtn"/>
</seealso>
</element>
<element name="Register">
<short>Registers components for use in the Lazarus IDE.</short>
<descr>
<p>
<var>Register</var> is the procedure used to register components for use in
the Lazarus IDE. The following components are added to the Lazarus IDE
component palette:
</p>
<p>
<b>Additional</b> Tab
</p>
<ul>
<li>TBitBtn</li>
<li>TSpeedButton</li>
</ul>
</descr>
</element>
</module>
<!-- Buttons -->
</package>
</fpdoc-descriptions>
|