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
|
<?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">
<!--
====================================================================
MaskEdit
====================================================================
-->
<module name="MaskEdit">
<short>
Defines classes, types, and constants used to implement a masked edit control.
</short>
<descr>
<p>
<file>maskedit.pp</file> implements an masked edit control which can be used
to format, validate, or obscure the text entered in the control. The
following components are added to the Lazarus IDE component palette:
</p>
<p>
<b>Additional</b> Tab
</p>
<ul>
<li>TMaskEdit</li>
</ul>
<p>
<file>maskedit.pp</file> is part of the Lazarus Component Library (<b>LCL</b>).
</p>
</descr>
<!-- unresolved references -->
<element name="Classes"/>
<element name="SysUtils"/>
<element name="LResources"/>
<element name="Forms"/>
<element name="Controls"/>
<element name="Graphics"/>
<element name="Dialogs"/>
<element name="ExtCtrls"/>
<element name="StdCtrls"/>
<element name="LMessages"/>
<element name="Clipbrd"/>
<element name="LCLType"/>
<element name="LCLProc"/>
<element name="LCLStrConsts"/>
<element name="LazUtf8"/>
<element name="cMask_SpecialChar">
<short>After this you can set an arbitrary char.</short>
<descr/>
<seealso/>
</element>
<element name="cMask_UpperCase">
<short>After this the chars are in upper case.</short>
<descr/>
<seealso/>
</element>
<element name="cMask_LowerCase">
<short>After this the chars are in lower case.</short>
<descr/>
<seealso/>
</element>
<element name="cMask_Letter">
<short>Can contain an optional letter only.</short>
<descr/>
<seealso/>
</element>
<element name="cMask_LetterFixed">
<short>Must contain a letter only.</short>
<descr/>
<seealso/>
</element>
<element name="cMask_AlphaNum">
<short>An optional alphanumeric character.</short>
<descr>['A'..'Z','a..'z','0'..'9']</descr>
<seealso/>
</element>
<element name="cMask_AlphaNumFixed">
<short>A required alphanumeric character.</short>
<descr>['A'..'Z','a..'z','0'..'9']</descr>
<seealso/>
</element>
<element name="cMask_AllChars">
<short>An optional UTF-8 character.</short>
<descr>Any UTF-8 character in the range #32 to #255</descr>
<seealso/>
</element>
<element name="cMask_AllCharsFixed">
<short>A required UTF-8 character.</short>
<descr>Any UTF-8 character in the range #32 to #255</descr>
<seealso/>
</element>
<element name="cMask_Number">
<short>An optional numeric character.</short>
<descr>In the range '0' to '9'</descr>
<seealso/>
</element>
<element name="cMask_NumberFixed">
<short>A required numeric character.</short>
<descr>In the range '0' to '9'</descr>
<seealso/>
</element>
<element name="cMask_NumberPlusMin">
<short>An optional numeric or sign character.</short>
<descr>Includes the characters: 0,1,2,3,4,5,6,7,8,9,+, and -</descr>
<seealso/>
</element>
<element name="cMask_HourSeparator">
<short>Inserts the hour separator char.</short>
<descr/>
<seealso/>
</element>
<element name="cMask_DateSeparator">
<short>Inserts the date separator character.</short>
<descr/>
<seealso/>
</element>
<element name="cMask_Hex">
<short>An optional hexadecimal character.</short>
<descr> (['0'..'9','a'..'f']). A Lazarus extension, not supported in
Delphi.</descr>
<seealso/>
</element>
<element name="cMask_HexFixed">
<short>A required hexadecimal character.</short>
<descr> (['0'..'9','a'..'f']). A Lazarus extension, not supported in
Delphi.</descr>
<seealso/>
</element>
<element name="cMask_Binary">
<short>An optional binary character.</short>
<descr>['0'..'1']. A Lazarus extension, not supported in Delphi.</descr>
<seealso/>
</element>
<element name="cMask_BinaryFixed">
<short>A required binary character.</short>
<descr>['0'..'1']. A Lazarus extension, not supported in Delphi.</descr>
<seealso/>
</element>
<element name="cMask_NoLeadingBlanks">
<short>Causes leading blanks to be trimmed from the value.</short>
<descr>Trailing blanks are trimmed by default.</descr>
<seealso/>
</element>
<element name="cMask_SetStart">
<short>Indicates the start of a set definition.</short>
<descr>
<p>
Uses notation like:
</p>
<dl>
<dt>[abc]</dt>
<dd>Set with the characters 'a'. 'b', and 'c'.</dd>
<dt>[a-z]</dt>
<dd>Equivalent to the ['a'..'z'] notation in Pascal.</dd>
</dl>
<p>
In the current implementation, sets are always case-sensitive and can contain
only ASCII characters.
</p>
</descr>
<seealso/>
</element>
<element name="cMask_SetEnd">
<short>Indicates the end of a set definition.</short>
<descr/>
<seealso/>
</element>
<element name="cMask_SetNegate">
<short>Negates the following set definition.</short>
<descr>
<p>
Common usage:
</p>
<dl>
<dt>[!abc]</dt>
<dd>Any character not in the set ['a','b','c'].</dd>
</dl>
</descr>
<seealso/>
</element>
<element name="cMask_SetOptional">
<short>
Indicates a set of optional characters allowed for a position in a mask.
</short>
<descr>
<p>
Common usage:
</p>
<dl>
<dt>[|abc]</dt>
<dd>
Character must be 'a', 'b', 'c' or a blank (space). Only interpreted as such
if set is not negated using cMask_SetNegate.
</dd>
</dl>
</descr>
<seealso/>
</element>
<element name="cMask_SetRange">
<short>
Indicates that the character set definition uses a range of character values.
</short>
<descr/>
<seealso/>
</element>
<element name="DefaultBlank">
<short>Represents a blank character value in a mask.</short>
<descr>Can be changed at run-time.</descr>
<seealso/>
</element>
<element name="MaskFieldSeparator">
<short>Delimiter used between fields in a mask.</short>
<descr>Can be changed at run-time.</descr>
<seealso/>
</element>
<element name="MaskNoSave">
<short>Represents a character that is not stored in a mask.</short>
<descr>Can be changed at run-time.</descr>
<seealso/>
</element>
<element name="TMaskedType">
<short>Enumeration with values representing mask character types.</short>
<descr>
<p>
<var>TMaskType</var> is an enumerated type which contains values representing
mask character types used in TCustomMaskEdit and TMaskEdit. Mask character
types control the letters, numbers, literals, space characters, and trimming
options allowed for each position in a masked edit control.
</p>
<p>
TMaskType values are stored in the TInternalMask type, and used in the
implementation of TCustomMaskEdit.
</p>
</descr>
<seealso>
<link id="TInternalMask"/>
<link id="TCustomMaskEdit.EditMask"/>
</seealso>
</element>
<element name="TMaskedType.Char_IsLiteral">
<short>Character is a literal.</short>
</element>
<element name="TMaskedType.Char_Number">
<short>Character is an optional numeric value 0..9.</short>
</element>
<element name="TMaskedType.Char_NumberFixed">
<short>Character is a required numeric value 0..9.</short>
</element>
<element name="TMaskedType.Char_NumberPlusMin">
<short>Character is an optional numeric value 0..9, +, -</short>
</element>
<element name="TMaskedType.Char_Letter">
<short>Character is an optional alphabetic value.</short>
</element>
<element name="TMaskedType.Char_LetterFixed">
<short>Character is a required alphabetic value.</short>
</element>
<element name="TMaskedType.Char_LetterUpCase">
<short>Character is an optional uppercase alphabetic value.</short>
</element>
<element name="TMaskedType.Char_LetterDownCase">
<short>Character is an optional lowercase alphabetic value.</short>
</element>
<element name="TMaskedType.Char_LetterFixedUpCase">
<short>Character is a required uppercase alphabetic value.</short>
</element>
<element name="TMaskedType.Char_LetterFixedDownCase">
<short>Character is a required lowercase alphabetic value.</short>
</element>
<element name="TMaskedType.Char_AlphaNum">
<short>Character is an optional alphabetic or numeric value.</short>
</element>
<element name="TMaskedType.Char_AlphaNumFixed">
<short>Character is a required alphabetic or numeric value.</short>
</element>
<element name="TMaskedType.Char_AlphaNumUpCase">
<short>Character is an optional uppercase alphabetic or numeric value.</short>
</element>
<element name="TMaskedType.Char_AlphaNumDownCase">
<short>Character is an optional lowercase alphabetic or numeric value.</short>
</element>
<element name="TMaskedType.Char_AlphaNumFixedUpCase">
<short>Character is a required uppercase alphabetic or numeric value.</short>
</element>
<element name="TMaskedType.Char_AlphaNumFixedDownCase">
<short>Character is a required lowercase alphabetic or numeric value.</short>
</element>
<element name="TMaskedType.Char_All">
<short>Any optional UTF-8 character.</short>
</element>
<element name="TMaskedType.Char_AllFixed">
<short>Any required UTF-8 character.</short>
</element>
<element name="TMaskedType.Char_AllUpCase">
<short>Any optional uppercase UTF-8 character.</short>
</element>
<element name="TMaskedType.Char_AllDownCase">
<short>Any optional lowercase UTF-8 character.</short>
</element>
<element name="TMaskedType.Char_AllFixedUpCase">
<short>Any required uppercase UTF-8 character.</short>
</element>
<element name="TMaskedType.Char_AllFixedDownCase">
<short>Any required lowercase UTF-8 character.</short>
</element>
<element name="TMaskedType.Char_HourSeparator">
<short>Character is the time separator character.</short>
</element>
<element name="TMaskedType.Char_DateSeparator">
<short>Character is the date separator character.</short>
</element>
<element name="TMaskedType.Char_Hex">
<short>Character is an optional hexadecimal digit.</short>
<descr>
Lazarus extension, not supported by Delphi.
</descr>
</element>
<element name="TMaskedType.Char_HexFixed">
<short>Character is a required hexadecimal digit.</short>
<descr>Lazarus extension, not supported by Delphi.</descr>
</element>
<element name="TMaskedType.Char_HexUpCase">
<short>Character is an optional uppercase hexadecimal digit.</short>
<descr>Lazarus extension, not supported by Delphi.</descr>
</element>
<element name="TMaskedType.Char_HexDownCase">
<short>Character is an optional lowercase hexadecimal digit.</short>
<descr>Lazarus extension, not supported by Delphi.</descr>
</element>
<element name="TMaskedType.Char_HexFixedUpCase">
<short>Character is a required uppercase hexadecimal digit.</short>
<descr>Lazarus extension, not supported by Delphi.</descr>
</element>
<element name="TMaskedType.Char_HexFixedDownCase">
<short>Character is a required lowercase hexadecimal digit.</short>
<descr>Lazarus extension, not supported by Delphi.</descr>
</element>
<element name="TMaskedType.Char_Binary">
<short>Character is an optional binary value 0..1.</short>
<descr>Lazarus extension, not supported by Delphi.</descr>
</element>
<element name="TMaskedType.Char_BinaryFixed">
<short>Character is a required binary value 0..1.</short>
<descr>Lazarus extension, not supported by Delphi.</descr>
</element>
<element name="TMaskType.Char_Set">
<short>Optional character must be in the defined set or space.</short>
<descr>Lazarus extension, not supported by Delphi</descr>
<seealso/>
</element>
<element name="TMaskType.Char_SetFixed">
<short>Required character must be in the defined set.</short>
<descr></descr>
<seealso/>
</element>
<element name="TMaskType.Char_SetNegateFixed">
<short>Required character must NOT be in the defined set.</short>
<descr></descr>
<seealso/>
</element>
<element name="TIntMaskRec">
<short>
Represents the type and literal used for a character in an edit mask.
</short>
<descr>
<p>
<var>TIntMaskRec</var> is a <var>record</var> type with members that
represent the types and literal used for a character in
<var>TCustomMaskEdit</var>. TIntMaskRec instances are stored in the
<var>TInternalMask</var> array type, and used in the implementation of the
TCustomMaskEdit control.
</p>
</descr>
<seealso>
<link id="TCustomMaskEdit.EditMask"/>
<link id="TCustomMaskEdit.IsMasked"/>
<link id="TCustomMaskEdit.DisableMask"/>
<link id="TCustomMaskEdit.RestoreMask"/>
</seealso>
</element>
<element name="TIntMaskRec.MaskType">
<short>Identifies the type for the mask character.</short>
</element>
<element name="TIntMaskRec.Literal">
<short>Contains the literal displayed for the mask character.</short>
</element>
<element name="TInternalMask">
<short>
Array type used to represent edit mask symbols in TCustomMaskEdit.
</short>
<descr>
<p>
<var>TInternalMask</var> is an array type which contains up to 255
<var>TIntMaskRec</var> values representing mask characters used in a
<var>TCustomMaskEdit</var> control. It is used to implement internal members
in TCustomMaskEdit, and realized using its <var>EditMask</var> property.
</p>
</descr>
<seealso>
<link id="TCustomMaskEdit.EditMask"/>
<link id="TIntMaskRec"/>
</seealso>
</element>
<element name="TMaskEditTrimType">
<short>Controls how the value in a masked edit control is trimmed.</short>
<descr>
<p>
<var>TMaskEditTrimType</var> is an enumerated type with values that control
if / how the text in <var>TCustomMaskEdit</var> is trimmed.
</p>
</descr>
<seealso>
<link id="TCustomMaskEdit.EditMask"/>
<link id="TCustomMaskEdit.DisableMask"/>
<link id="TCustomMaskEdit.ApplyMaskToText"/>
</seealso>
</element>
<element name="TMaskEditTrimType.metTrimLeft">
<short>Trims leading spaces from the value for a masked edit control.</short>
</element>
<element name="TMaskEditTrimType.metTrimRight">
<short>
Trims trailing spaces from the value for a masked edit control; this is the
default action in TCustomMaskEdit.
</short>
</element>
<element name="TMaskEditValidationErrorMode">
<short>
Represents the action taken for an error in TMaskEdit validation.
</short>
<descr>
<p>
<var>TMaskEditValidationErrorMode</var> is an enumerated type with values
that represent the action taken when a error occurs while validating the
value in <var>TCustomMaskEdit</var> and descendants. It is the type used to
implement the <var>ValidationErrorMode</var> property in TCustomMaskEdit.
</p>
</descr>
<seealso>
<link id="TCustomMaskEdit.ValidationErrorMode"/>
<link id="TCustomMaskEdit.OnValidationError"/>
</seealso>
</element>
<element name="TMaskEditValidationErrorMode.mvemException">
<short>
Causes an exception to be raised for a validation error in TMaskEdit.
</short>
</element>
<element name="TMaskEditValidationErrorMode.mvemEvent">
<short>
Causes the OnValidationError event handler to be signalled for a validation
error in TMaskEdit.
</short>
</element>
<element name="EDBEditError">
<short>Exception class raised for an error in a masked edit control.</short>
<descr>
<p>
Raised in the <var>TCustomMaskEdit.ValidateEdit</var> method when exiting the
edit control where its text is in an invalid state for its edit mask.
</p>
<remark>
Despite the name, this exception has nothing to do with a database error.
</remark>
</descr>
<seealso/>
</element>
<element name="EInvalidEditMask">
<short>
Exception type raised for an invalid mask value in an edit mask.
</short>
<descr>
<p>
Indicates that the content in <var>EditMask</var> is not a valid edit mask
expression. Raised when a value is assigned to the EditMask property.
Generally indicates that an invalid set declaration has been used in the edit
mask.
</p>
</descr>
<seealso>
<link id="TCustomMaskEdit.EditMask"/>
</seealso>
</element>
<element name="EInvalidUtf8">
<short>Ancestor for UTF-8 exceptions.</short>
<descr>
<p>
<var>EInvalidUtf8</var> is an <var>Exception</var> descendant that implements
the ancestor for exceptions that occur for UTF-8-encoded content.
</p>
</descr>
<seealso>
<link id="EInvalidCodePoint"/>
</seealso>
</element>
<element name="EInvalidCodePoint">
<short>
Exception raised when an error occurs while setting a UTF-8 Code Point in a
String.
</short>
<descr>
<p>
<var>EInvalidCodePoint</var> is an <var>EInvalidUtf8</var> descendant that
implements the Exception raised when an error occurs while setting a UTF-8
Code Point in a String. The exception message contains the constant value in
<var>SInvalidCodePoint</var>.
</p>
<p>
Used in the <var>SetCodePoint</var> routine in the implementation section for
the unit.
</p>
</descr>
<seealso>
<link id="SInvalidCodePoint"/>
</seealso>
</element>
<element name="SInvalidCodePoint">
<short>Message displayed in the EInvalidCodePoint exception.</short>
<descr/>
<seealso>
<link id="EInvalidUtf8"/>
</seealso>
</element>
<element name="SIndexOutOfRangeForFMask">
<short>
Exception message used when a position in the internal mask is not valid.
</short>
<descr>
</descr>
<seealso>
<link id="ERangeError"/>
</seealso>
</element>
<element name="SFoundChar_Invalid">
<short>Exception message used when an invalid mask character is found.</short>
<descr/>
<seealso>
<link id="EDBEditError"/>
</seealso>
</element>
<element name="SUnclosedSet">
<short>
Exception message used when an unclosed set is found in an edit mask.
</short>
<descr/>
<seealso>
<link id="EInvalidEditMask"/>
</seealso>
</element>
<element name="SIllegalCharInSet">
<short>
Exception message used when a mask character not in the ASCII character set
is used.
</short>
<descr/>
<seealso>
<link id="EInvalidEditMask"/>
</seealso>
</element>
<element name="SEmptySet">
<short>
Exception message used when an empty set is specified in an edit mask.
</short>
<descr/>
<seealso>
<link id="EInvalidEditMask"/>
</seealso>
</element>
<element name="SIllegalRangeChar">
<short>
Exception message used when more than one set range is used in an edit mask.
</short>
<descr/>
<seealso>
<link id="EInvalidEditMask"/>
</seealso>
</element>
<element name="TCustomMaskEdit">
<short>The base class for TMaskEdit.</short>
<descr>
<p>
<var>TCustomMaskEdit</var> is a TCustomEdit descendant, and the base class
for <var>TMaskEdit</var>. TCustomMaskEdit provides an Edit box with masking
features for characters displayed (or hidden) in the control.
</p>
<remark>
FOR ANYONE WHO CARES TO FIX / ENHANCE THIS CODE:
</remark>
<p>
Since we want total control over anything that is done to the text in the
control, we have to take into consideration the fact that currently we cannot
prevent cutting/pasting/clearing or dragging selected text in the control.
These operations are handled by the OS, and text is changed before we can
prevent it. Not all widgetsets currently handle the messages for
cut/paste/clear. Actually, we would like to have a LM_BEFORE_PASTE (etc.)
message... If we allow the OS to cut/clear/paste etc. A situation can occur
where mask-literals in the control are changed to random characters (which
cannot be undone), or text is shorter or larger than the editmask calls for,
which again cannot be undone.
</p>
<p>
So, as a horrible hack, I decided to only allow changing the text if we coded
this change ourself. This is done by setting the FChangeAllowed field to
<b>True</b> before any write action (in RealSetTextWhileMasked() ). We try to
intercept the messages for cut/paste/copy/clear and perform the appropriate
actions instead. If this fails, then in TextChanged we check and will see
that FChangeAllowed = False and we will undo the changes made.
</p>
<p>
To make this undo possible, it is necessary to set FCurrentText every time
you set the text in the control! This is achieved in RealSetTextWhileMasked()
only.
</p>
<remark>
It is unsafe to make a call to RealSetText unless done so via
RealSetTextWhileMasked!!!
</remark>
<p>
Bart Broersma, January 2009
</p>
</descr>
</element>
<element name="TCustomMaskEdit.FRealMask">
<short>Real mask inserted.</short>
</element>
<element name="TCustomMaskEdit.FMask">
<short>Actual internal mask.</short>
</element>
<element name="TCustomMaskEdit.FMaskLength">
<short>Length of the internal mask.</short>
</element>
<element name="TCustomMaskEdit.FFirstFreePos">
<short>First position where user can enter text (1-based).</short>
</element>
<element name="TCustomMaskEdit.FMaskSave">
<short>Save mask as part of the data?</short>
</element>
<element name="TCustomMaskEdit.FTrimType">
<short>Trim leading or trailing spaces in GetText.</short>
</element>
<element name="TCustomMaskEdit.FSpaceChar">
<short>Character used for space characters (default value is '_').</short>
</element>
<element name="TCustomMaskEdit.FCurrentText">
<short>FCurrentText is our backup. See the notes for TCustomMaskEdit.</short>
</element>
<element name="TCustomMaskEdit.FTextOnEnter">
<short>Text when user enters the control, used for Reset().</short>
</element>
<element name="TCustomMaskEdit.FCursorPos">
<short>Current caret position (0-based).</short>
</element>
<element name="TCustomMaskEdit.FChangeAllowed">
<short>
Indicates if text can be changed by the OS (copy/cut/paste/clear via the
context menu).
</short>
</element>
<element name="TCustomMaskEdit.FInitialText">
<short>
Value for the text set in the form designer (must be handled in Loaded).
</short>
</element>
<element name="TCustomMaskEdit.FInitialMask">
<short>EditMask set in the form designer (must be handled in Loaded).</short>
</element>
<element name="TCustomMaskEdit.FSettingInitialText">
<short>
Flag which indicates if the control value is being assigned for the first
time.
</short>
</element>
<element name="TCustomMaskEdit.FValidationFailed">
<short>Flag used in DoEnter. Set to mvemException by default.</short>
</element>
<element name="TCustomMaskEdit.FMaskIsPushed">
<short>
<b>True</b> when the internal mask has been saved in DisableMask.
</short>
</element>
<element name="TCustomMaskEdit.FSavedMask">
<short>Saved internal mask.</short>
</element>
<element name="TCustomMaskEdit.FSavedMaskLength">
<short>Length of the saved internal mask.</short>
</element>
<element name="TCustomMaskEdit.FTextChangedBySetText">
<short>
Used with FInRealSetTextWhileMasked to determine real value for Modified.
</short>
</element>
<element name="TCustomMaskEdit.FInRealSetTextWhileMasked">
<short>
Used with FTextChangedBySetText to determine real value for Modified.
</short>
</element>
<element name="TCustomMaskEdit.ClearInternalMask">
<short>Fills the specified mask with Null characters (decimal 0).</short>
<descr/>
<seealso/>
</element>
<element name="TCustomMaskEdit.ClearInternalMask.AMask">
<short>Mask updated in the method.</short>
</element>
<element name="TCustomMaskEdit.ClearInternalMask.ALengthIndicator">
<short>Set to zero (0) to indicate that the mask is empty.</short>
</element>
<element name="TCustomMaskEdit.AddToMask">
<short>
Appends the specified mask character or literal to the internal mask in the
control.
</short>
<descr>
<p>
<var>AddToMask</var> is an overloaded procedure used to append a mask
character to the internal mask for the edit control. The overloaded variants
allow the mask character to be specified as a <var>TMaskedType</var>
enumeration value or a UTF-8-encoded character literal.
</p>
<p>
AddToMask increments the length counter for the internal mask, and stores the
specified value in the <var>TInternalMask</var> instance. When
<var>ALiteral</var> is used for the mask character, the
<var>TIntMaskRec.MaskType</var> member is set to <var>Char_IsLiteral</var>.
When <var>AMaskType</var> is used, the <var>TIntMaskRec.Literal</var> member
is set to an empty string (<b>''</b>).
</p>
<p>
AddToMask is called when a new value is assigned to the <var>EditMask</var>
property and the internal TInternalMask member is cleared and populated.
</p>
</descr>
<seealso>
<link id="TCustomMaskEdit.EditMask"/>
<link id="TMaskedType"/>
<link id="TInternalMask"/>
<link id="TIntMaskRec"/>
</seealso>
</element>
<element name="TCustomMaskEdit.AddToMask.ALiteral">
<short>
UTF-8 character literal appended to the mask for the edit control.
</short>
</element>
<element name="TCustomMaskEdit.AddToMask.AMaskType">
<short>Enumeration value representing the mask character class.</short>
</element>
<element name="TCustomMaskEdit.GetModified">
<short>Sets the value for the Modified property.</short>
<descr/>
<seealso>
<link id="TCustomMaskEdit.Modified"/>
</seealso>
</element>
<element name="TCustomMaskEdit.GetModified.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomMaskEdit.GetMask">
<short>Gets values in the internal FMask member.</short>
</element>
<element name="TCustomMaskEdit.GetMask.Result"/>
<element name="TCustomMaskEdit.GetMask.Index"/>
<element name="TCustomMaskEdit.SetEditMask">
<short>Sets the value for the EditMask property.</short>
<descr>
<p>
Re-initializes the internal TInternalMask instance with the mask character
classes and literals used in the EditMask.
</p>
</descr>
<seealso>
<link id="TCustomMaskEdit.EditMask"/>
<link id="TCustomMaskEdit.RealGetText"/>
</seealso>
</element>
<element name="TCustomMaskEdit.SetEditMask.Value">
<short>New value for the EditMask property.</short>
</element>
<element name="TCustomMaskEdit.ParseSet">
<short>Parses set notation found in the EditMask for the control.</short>
</element>
<element name="TCustomMaskEdit.ParseSet.S">
<short>Value examined in the method.</short>
</element>
<element name="TCustomMaskEdit.ParseSet.i">
<short>
Position for UTF-8 codepoint with the set notation in the specified value.
</short>
</element>
<element name="TCustomMaskEdit.ParseSet.SUILen">
<short>Length of the value examined in the method.</short>
</element>
<element name="TCustomMaskEdit.ParseSet.ACharSet">
<short>Set of characters found in the set notation.</short>
</element>
<element name="TCustomMaskEdit.ParseSet.IsNegative">
<short><b>True</b> if the set has a negate operator.</short>
</element>
<element name="TCustomMaskEdit.ParseSet.IsOptional">
<short>
<b>True</b> if the character position for the set is optional, <b>False</b>
when it is required.
</short>
</element>
<element name="TCustomMaskEdit.GetIsMasked">
<short>Gets the value for the IsMasked property.</short>
<descr/>
<seealso>
<link id="TCustomMaskEdit.IsMasked"/>
</seealso>
</element>
<element name="TCustomMaskEdit.GetIsMasked.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomMaskEdit.SetModified">
<short>Sets the value for the Modified property.</short>
<descr/>
<seealso>
<link ide="TCustomMaskEdit.Modified"/>
</seealso>
</element>
<element name="TCustomMaskEdit.SetModified.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomMaskEdit.SetSpaceChar">
<short>Sets the value for the SpaceChar property.</short>
<descr/>
<seealso>
<link id="TCustomMaskEdit.SpaceChar"/>
</seealso>
</element>
<element name="TCustomMaskEdit.SetSpaceChar.Value">
<short>New value for the property.</short>
</element>
<element name="TCustomMaskEdit.SetCursorPos">
<short>
Sets the cursor position, and selects the character in the control.
</short>
<descr>
<p>
<var>SetCursorPos</var> is a procedure used to set the cursor or current
caret position in the edit control. An internal member contains the offset in
the control where the cursor is positioned. The cursor position cannot exceed
the length of the mask in the control.
</p>
<remark>
No actions are performed in the method at design-time.
</remark>
<p>
SetCursorPos is used in the implementation of methods which respond to
keyboard or mouse navigation, or when the value in the control is changed
and/or validated.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomMaskEdit.SelectNextChar">
<short>
Selects the next character in the edit control.
</short>
<descr>
<p>
<var>SelectNextChar</var> is a procedure used to move to and select the next
character in the value for the edit control. Mask literals in the control
value are skipped. SelectNextChar calls the <var>SetCursorPos</var> method to
update the caret (or cursor) position for the control.
</p>
<p>
Used in the implementation of the <var>KeyDown</var> method.
</p>
</descr>
<seealso>
<link id="TCustomMaskEdit.IsLiteral"/>
</seealso>
</element>
<element name="TCustomMaskEdit.SelectPrevChar">
<short>Selects the previous character in the edit control.</short>
<descr>
<p>
<var>SelectPrevChar</var> is a procedure used to move to and select the
previous character in the value for the edit control. Mask literals in the
control value are skipped. SelectPrevChar calls the <var>SetCursorPos</var>
method to update the caret (or cursor) position for the control.
</p>
<p>
Used in the implementation of the <var>KeyDown</var> method.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomMaskEdit.SelectFirstChar">
<short>Selects the first character in the edit control.</short>
<descr>
<p>
<var>SelectFirstChar</var> is a procedure used to move to and select the
first character in the edit control. SelectFirstChar sets the value for the
internal member used to track the cursor (or caret) position, and calls
<var>SetCursorPos</var> to update the cursor in the control.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomMaskEdit.GotoEnd">
<short>Moves the caret to the last position in the edit control.</short>
<descr>
<p>
<var>GotoEnd</var> is a procedure used to set the caret (or cursor) to the
last position in the edit control. GotoEnd updates the internal member used
to track the cursor position, and calls the <var>SetCursorPos</var> method to
apply the cursor position to the control.
</p>
<p>
Used in the implementation of the <var>KeyDown</var> method.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomMaskEdit.JumpToNextDot">
<short>
Moves to the next occurrence of the specified character in the value for the
edit control.
</short>
<descr>
<p>
<var>JumpToNextDot</var> is a procedure used to move to the next occurrence
of the character in <var>Dot</var> in the mask for the edit control. Dot must
be included in the mask, and must occur after the current cursor position.
Dot must contain either a Period ('.') or Comma (',') character; no actions
are performed in the method when Dot contains another character value.
</p>
<p>
If a mask contains both Period and Comma characters, only the first character
can be accesses using the method. A mask literal cannot appear after the
requested occurrence of Dot, and the next occurrence cannot be the last
character in the mask.
</p>
<p>
The cursor position is set to the next character after the mask literal, when
allowed. JumpToNextDot calls the <var>SetCursorPos</var> method to update the
caret position in the edit control.
</p>
<p>
JumpToNextDot is used in the implementation of the <var>HandleKeyPress</var>
method.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomMaskEdit.JumpToNextDot.Dot">
<short>Mask literal to locate in the edit mask for the control.</short>
</element>
<element name="TCustomMaskEdit.HasSelection">
<short>
Indicates if any characters are currently selected in the edit control.
</short>
<descr>
<p>
<var>HasSelection</var> is a <var>Boolean</var> function which indicates if
any characters are currently selected in the edit control. The return value
is <b>True</b> when <var>GetSelLength</var> returns a value greater than one
(1).
</p>
</descr>
<seealso/>
</element>
<element name="TCustomMaskEdit.HasSelection.Result">
<short><b>True</b> when characters are selected at the caret position.</short>
</element>
<element name="TCustomMaskEdit.HasExtSelection">
<short>
Returns <b>True</b> if more than one (1) character is selected in the value
for the control.
</short>
<descr>
<p>
Influences handling of the Backspace key. In addition, the
<var>InsertChar</var> method will delete an extended selection prior to
inserting a new character value.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomMaskEdit.HasExtSelection.Result">
<short>
<b>True</b> when the current selection in the control is more than one
character.
</short>
</element>
<element name="TCustomMaskEdit.IsLiteral">
<short>
Indicates whether the mask value at the specified position is a mask literal.
</short>
<descr>
<p>
<var>IsLiteral</var> is a <var>Boolean</var> function which indicates whether
the Integer value in <var>Index</var> represents a mask literal which cannot
be edited in the control.
</p>
<p>
The return value is <b>False</b> when the mask type for the character in
Index is <b>not</b> one for the following TMaskType values:
</p>
<dl>
<dt>Char_IsLiteral</dt>
<dd>A mask literal.</dd>
<dt>Char_HourSeparator</dt>
<dd>The time separator character.</dd>
<dt>Char_DateSeparator</dt>
<dd>The date separator character.</dd>
</dl>
<p>
IsLiteral is used in the implementation of methods like
<var>SetEditMask</var>, <var>SetSpaceChar</var>, <var>SelectNextChar</var>,
<var>SelectPrevChar</var>, <var>JumpToNextDot</var>, and
<var>SetEditText</var>.
</p>
</descr>
<seealso>
<link id="TMaskType"/>
</seealso>
</element>
<element name="TCustomMaskEdit.IsLiteral.Result">
<short><b>True</b> if the specified character is a mask literal.</short>
</element>
<element name="TCustomMaskEdit.IsLiteral.Index">
<short>Character position examined in the method.</short>
</element>
<element name="TCustomMaskEdit.TextIsValid">
<short>
Indicates whether the specified value is valid for the EditMask in the
control.
</short>
<descr>
<p>
Returns <b>False</b> if the length of <var>Value</var> does not match the
length for the edit mask, or when a UTF-8 Code Point in <var>Value</var> is
not valid for the edit mask.
</p>
</descr>
<seealso>
</seealso>
</element>
<element name="TCustomMaskEdit.TextIsValid.Result">
<short><b>True</b> when the value is valid for the edit mask.</short>
</element>
<element name="TCustomMaskEdit.TextIsValid.Value">
<short>Value examined in the method.</short>
</element>
<element name="TCustomMaskEdit.CharMatchesMask">
<short>
Determines if a character in the control value is valid for the specified
EditMask.
</short>
<descr>
<p>
<var>CharMatchesMask</var> is a <var>Boolean</var> function used to determine
if a character in the value for the control is valid for its EditMask.
<var>Ch</var> contains the UTF-8 character examined in the method.
</p>
<p>
<var>Position</var> contains the offset into the EditMask for the mask
character compared in the method. Position is in the range
<b>1..MaxLength</b>.
</p>
<p>
CharMatchesMask uses the internal TInternalMask instance to determine if the
value in Ch matches the mask definition at the specified position. The return
value is <b>True</b> when Ch contains a valid character value for the mask
character type.
</p>
<p>
If an unrecognized mask character type is found in the in the EditMask, an
<var>EDBEditError</var> exception is raised. It is not really a database
exception; it's just an identifier, defined in this unit, with a confusingly
unfortunate name.
</p>
<p>
CharMatchesMask is used in the implementation of the <var>TextIsValid</var>
method.
</p>
</descr>
<errors>
Raises an EDBEditError exception if an invalid mask literal is used in the
EditMask.
</errors>
<seealso>
<link id="TCustomMaskEdit.CharToMask"/>
<link id="TCustomMaskEdit.EditMask"/>
<link id="TCustomMaskEdit.ValidateEdit"/>
<link id="TMaskType"/>
<link id="EDBEditError"/>
</seealso>
</element>
<element name="TCustomMaskEdit.CharMatchesMask.Result">
<short>
<b>True</b> when the character value is valid for the corresponding position
in the EditMask.
</short>
</element>
<element name="TCustomMaskEdit.CharMatchesMask.Ch">
<short>Character value examined in the method.</short>
</element>
<element name="TCustomMaskEdit.CharMatchesMask.Position">
<short>Offset into the edit mask for the character value.</short>
</element>
<element name="TCustomMaskEdit.ClearChar">
<short>
Clears a character which is not a literal at the specified Position.
</short>
<descr>
<p>
For Delphi compatibility, only literals remain.
</p>
<p>
ClearChar checks the <var>TMaskType</var> value for the character at the
specified <var>Position</var>. The return value contains the hour separator,
date separator, or literal value used for the mask character. Date and time
separators use values from the DefaultFormatSettings variable in the RTL.
</p>
<p>
All other character values are replaced with the character designated in the
<var>SpaceChar</var> property.
</p>
</descr>
<seealso>
<link id="TCustomMaskEdit.ApplyMaskToText"/>
<link id="TCustomMaskEdit.Clear"/>
<link id="TCustomMaskEdit.DeleteSelected"/>
<link id="TCustomMaskEdit.InsertChar"/>
<link id="TCustomMaskEdit.SetEditText"/>
</seealso>
</element>
<element name="TCustomMaskEdit.ClearChar.Result">
<short>
Character displayed for a mask literal at the specified position.
</short>
</element>
<element name="TCustomMaskEdit.ClearChar.Position">
<short>Position in EditMask examined in the method.</short>
</element>
<element name="TCustomMaskEdit.RealSetTextWhileMasked">
<short>Sets the text in the control when a mask is in use.</short>
<descr>
<p>
<var>RealSetTextWhileMasked</var> is a method used to set the <var>Text</var>
in the control to the content specified in <var>Value</var>.
</p>
<p>
RealSetTextWhileMasked calls the inherited <var>RealGetText</var> to get the
current value for the control. No actions are performed in the method when
<var>Value</var> is the same as the current text assigned to the control.
</p>
<p>
RealSetTextWhileMasked set values in internal members used to protect against
unhandled exceptions from an assigned <var>OnChange</var> event handler. This
ensures that the control is not left in an "unsafe" state after changes to
the text value.
</p>
<p>
RealSetTextWhileMasked calls the inherited <var>RealSetText</var> method to
store Value in the Text for the control. Values in the internal members are
reset prior to exiting from the method.
</p>
</descr>
<seealso>
<link id="TCustomMaskEdit.Text"/>
<link id="TCustomMaskEdit.EditText"/>
<link id="TCustomMaskEdit.OnChange"/>
<link id="TCustomMaskEdit.RealGetText"/>
<link id="TCustomEdit.RealGetText"/>
<link id="TCustomMaskEdit.RealSetText"/>
<link id="TCustomEdit.RealSetText"/>
</seealso>
</element>
<element name="TCustomMaskEdit.RealSetTextWhileMasked.Value">
<short>New value for the Text in the control.</short>
</element>
<element name="TCustomMaskEdit.InsertChar">
<short>
Inserts a single UTF-8 character at the current position for the cursor.
</short>
<descr>
<p>
<var>InsertChar</var> is a procedure used to insert the specified UTF-8
character at the current position for the cursor.
</p>
<p>
<var>Ch</var> contains the UTF-8 character stored at the cursor (or caret)
position. InsertChar calls <var>CanInsertChar</var> to determine if the value
is valid for the mask character at the cursor position. If CanInsertChar
returns <b>False</b>, the current selection in the control is deleted (done
for Delphi compatibility).
</p>
<p>
If the character is valid for the mask position, any selected characters in
the control are replaced with blank values by calling <var>SetCodePoint</var>
with the value from <var>ClearChar</var>. SetCodePoint is also called to
store Ch at the current position in the text value.
<var>RealSetTextWhileMasked</var> is called to notify the control of the
change to its Text value. <var>SelectNextChar</var> is called to advance the
cursor position to the next available position in the control (when
available).
</p>
<p>
InsertChar is used in the implementation of the <var>HandleKeyPress</var>
method.
</p>
</descr>
<seealso>
<link id="TCustomMaskEdit.HandleKeyPress"/>
</seealso>
</element>
<element name="TCustomMaskEdit.InsertChar.Ch">
<short>Character value inserted at the current cursor position.</short>
</element>
<element name="TCustomMaskEdit.CanInsertChar">
<short>
Indicates if the specified character can be inserted at a given position in
the control.
</short>
<descr>
<p>
The value in Ch is converted to the case required for the mask type (when
needed), and compared to value(s) permitted for the mask type. The return
value is <b>True</b> when Ch contains a value permitted for the TMaskType.
</p>
<p>
Special logic is used when Ch contains a Space (#32) character, and is being
applied using Paste from Clipboard. Delphi allows the Space character during
Paste - even when it is invalid for the mask character type. In this case,
the return value is always set to <b>True</b>.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomMaskEdit.CanInsertChar.Result">
<short>
<b>True</b> when the character is valid for the mask character type.
</short>
</element>
<element name="TCustomMaskEdit.CanInsertChar.Position">
<short>Position in the control value and mask examined in the method.</short>
</element>
<element name="TCustomMaskEdit.CanInsertChar.Ch">
<short>Character value examined in the method.</short>
</element>
<element name="TCustomMaskEdit.CanInsertChar.IsPasting">
<short>
Indicates if the character originates from a Paste operation (Ctrl+V or
Shift+Insert).
</short>
</element>
<element name="TCustomMaskEdit.DeleteSelected">
<short>Clears values in the current selection for the control.</short>
<descr>
<p>
<var>DeleteSelected</var> is a method used to clear values in the current
selection for the control. DeleteSelected calls <var>GetSel</var> to
determine the starting and ending positions for characters currently selected
in the control. DeleteSelected calls <var>SetCodePoint</var> to store blank
values for mask positions selected in the value for the control.
</p>
<p>
DeleteSelected calls <var>RealSetTextWhileMasked</var> to store the updated
Text value in the control. <var>SetCursorPos</var> is called to update the
caret position in the control.
</p>
<remark>
No actions are performed in the method when <var>HasSelection</var> returns
<b>False</b>.
</remark>
</descr>
<seealso/>
</element>
<element name="TCustomMaskEdit.DeleteChars">
<short>Deletes one or more characters at the current cursor position.</short>
<descr>
<p>
The number of characters affected in the method is determined by the value
from <var>HasSelection</var>. When <b>True</b>, the current selection is
control is affected. When <b>False</b>, a single character value is deleted.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomMaskEdit.DeleteChars.NextChar">
<short>
When <b>True</b> the following character(s) are deleted; when <b>False</b>
the preceding character(s) are deleted.
</short>
</element>
<element name="TCustomMaskEdit.WSRegisterClass">
<short>
Registers the widget set class reference used to create new instances of the
control.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomMaskEdit.ApplyMaskToText">
<short>Applies the edit mask in the control to the specified value.</short>
<descr>
<p>
<var>ApplyMaskToText</var> is a <var>TCaption</var> function used to apply
the edit mask in the control to the text specified in <var>Value</var>. This
method mimics the behavior implemented in Delphi version 3, including:
</p>
<ul>
<li>
Pads the text with blank values if needed when literals are not used in the
mask.
</li>
<li>
When literals are present in the edit mask, matching literals in the text are
located and processed as "segments" with the literal(s) used as delimiters.
</li>
</ul>
<p>
Some examples to clarify:
</p>
<table>
<th>
<td>EditMask</td>
<td>Text to be set</td>
<td>Result</td>
</th>
<tr>
<td>99</td>
<td>1 </td>
<td>1_</td>
</tr>
<tr>
<td>cc-cc</td>
<td>1-2</td>
<td>1_-2_</td>
</tr>
<tr>
<td>!99</td>
<td>1</td>
<td>_1</td>
</tr>
<tr>
<td>!cc-cc</td>
<td>1-2</td>
<td>_1-_2</td>
</tr>
<tr>
<td>cc-cc@cc</td>
<td>1-2@3</td>
<td>1_-2_@3_</td>
</tr>
<tr>
<td>cc-cc@cc</td>
<td>12@3</td>
<td>12-__@3_</td>
</tr>
<tr>
<td>cc-cc@cc</td>
<td>123-456@789</td>
<td>12-45@78</td>
</tr>
<tr>
<td>!cc-cc@cc</td>
<td>123-456@789</td>
<td>23-56@89</td>
</tr>
</table>
<p>
This feature seems to have been invented for use with dates:
</p>
<table>
<th>
<td>EditMask</td>
<td>Text to be set</td>
<td>Result</td>
</th>
<tr>
<td>99/99/00</td>
<td>23/1/2009</td>
<td>23/1_/20 if your locale DateSeparator is '/'</td>
</tr>
<tr>
<td>!99/99/00</td>
<td>23/1/2009</td>
<td>23/_1/09 if your locale DateSeparator is '/'</td>
</tr>
</table>
<p>
The resulting text will always have the length defined for the TInternalMask
type used in the control. The new text value does not have to pass validation.
</p>
<p>
ApplyMaskToText is called from the SetTextApplyMask when IsMasked contains
<b>True</b> (EditMask has a non-zero length).
</p>
</descr>
<seealso>
<link id="TCustomMaskEdit.IsMasked"/>
<link id="TCustomMaskEdit.EditMask"/>
<link id="TCustomMaskEdit.SetTextApplyMask"/>
<link id="TCustomMaskEdit.RealSetText"/>
<link id="TCustomMaskEdit.Loaded"/>
</seealso>
</element>
<element name="TCustomMaskEdit.ApplyMaskToText.Result">
<short>Value after mask literals and space substitution is applied.</short>
</element>
<element name="TCustomMaskEdit.ApplyMaskToText.Value">
<short>Value examined and updated in the method.</short>
</element>
<element name="TCustomMaskEdit.CanShowEmulatedTextHint">
<short>
Indicates if the control can display its Hint or TextHint using the LCL
capability layer.
</short>
<descr>
<p>
<var>CanShowEmulatedTextHint</var> is an overridden <var>Boolean</var>
function which indicates if the control can display its <var>Hint</var> or
<var>TextHint</var> using the LCL capability layer in the Widget set class.
CanShowEmulatedTextHint returns <b>False</b> when an edit mask has been
assigned for the control. Otherwise, the inherited method is called to get
the return value for the method.
</p>
</descr>
<seealso>
<link id="TCustomMaskEdit.EditMask"/>
<link id="#lcl.stdctrls.TCustomEdit.CanShowEmulatedTextHint">TCustomEdit.CanShowEmulatedTextHint</link>
</seealso>
</element>
<element name="TCustomMaskEdit.CanShowEmulatedTextHint.Result">
<short>
<b>False</b> if a value has been assigned to EditMask.
</short>
</element>
<element name="TCustomMaskEdit.DisableMask">
<short>Saves and disables the edit mask in the control.</short>
<descr>
<p>
<var>DisableMask</var> is a <var>Boolean</var> function used to save the
current edit mask to an internal member, and then disables the edit mask in
the control. This gives developers the opportunity to set any text in the
control without affecting the control state. Whether or not the function
succeeds, <var>NewText</var> will be set as the new Text in the control.
There is no need to retain the saved internal mask or trim type; they are
only set in <var>SetEditMask</var>.
</p>
<p>
Use <var>RestoreMask</var> to re-enable the saved edit mask for the control.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomMaskEdit.DisableMask.Result">
<short>
Returns <b>True</b> on success, or <b>False</b> when an edit mask is not used
in the control.
</short>
</element>
<element name="TCustomMaskEdit.DisableMask.NewText">
<short>New value for the Text property in the control.</short>
</element>
<element name="TCustomMaskEdit.DoValidationError">
<short>
Performs actions when the control value is invalid for its edit mask.
</short>
<descr>
<p>
Signals the <var>OnValidationError</var> event handler (when assigned). It is
called from the <var>ValidateEdit</var> method when <var>TextIsValid</var>
returns <b>False</b> and <var>ValidationErrorMode</var> is set to
<var>mvemEvent</var>.
</p>
</descr>
<seealso>
<link id="TCustomMaskEdit.OnValidationError"/>
<link id="TCustomMaskEdit.ValidateEdit"/>
<link id="TCustomMaskEdit.ValidationErrorMode"/>
</seealso>
</element>
<element name="TCustomMaskEdit.RestoreMask">
<short>Restores the saved edit mask in the control.</short>
<descr>
<p>
<var>RestoreMask</var> is a procedure used to restore the saved edit mask in
the control. The edit mask is saved when <var>DisableMask</var> is called and
an edit mask is active for the control. The return value is <b>True</b> when
the edit mask (and control state and value) are successfully restored.
</p>
<p>
In either circumstance, the value in <var>NewText</var> is assigned as the
value for the <var>Text</var> property in the control.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomMaskEdit.RestoreMask.Result">
<short><b>True</b> on success.</short>
</element>
<element name="TCustomMaskEdit.RestoreMask.NewText">
<short>New value assigned to the Text property.</short>
</element>
<element name="TCustomMaskEdit.RealSetText">
<short>Sets the value for the Text in the control.</short>
<descr>
<p>
<var>RealSetText</var> is an overridden procedure used to set the value for
the Text in the control.
</p>
<p>
Setting the value in <var>Text</var> prior to completion of LCL component
streaming has unwanted side-effects. To prevent the condition, RealSetText
stores the text in <var>AValue</var> to an internal member that is applied in
the <var>Loaded</var> method. No additional actions are performed in the
method when <var>csLoading</var> is in the <var>ComponentState</var> property.
</p>
<p>
RealSetText uses the value from <var>IsMasked</var> to determine if an edit
mask is used for the control. When <b>False</b>, the inherited
<var>RealSetText</var> method is called to set the value in the
<var>Text</var> property. When <b>True</b>, the <var>SetTextApplyMask</var>
method is called to store the content in AValue guided by the
<var>EditMask</var> for the control.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomMaskEdit.RealSetText.AValue">
<short>Value stored in the text for the control.</short>
</element>
<element name="TCustomMaskEdit.RealGetText">
<short>Gets the value for the Text in the control.</short>
<descr>
<p>
<var>RealGetText</var> is an overridden <var>TCaption</var> function used to
get the text value for the masked edit control. It calls the inherited method
on entry to get the caption text for control. The value may contain mask
literals inserted when the <var>EditMask</var> was applied to the value. When
<var>IsMasked</var> is <b>True</b>, the <var>GetTextWithoutMask</var> method
is called to remove the mask literals.
</p>
</descr>
<seealso>
<link id="TCustomMaskEdit.GetTextWithoutMask"/>
<link id="TCustomMaskEdit.EditMask"/>
<link id="TCustomMaskEdit.IsMasked"/>
<link id="#lcl.stdctrls.TCustomEdit.RealGetText">TCustomEdit.RealGetText</link>
</seealso>
</element>
<element name="TCustomMaskEdit.RealGetText.Result">
<short>Text for the control without mask literals.</short>
</element>
<element name="TCustomMaskEdit.GetTextWithoutMask">
<short>
Gets the text value for the control without formatting applied by an edit
mask.
</short>
<descr>
<p>
<var>GetTextWithoutMask</var> is method used to get the text for the
specified Value without the formatting applied by the EditMask. It ensures
that any occurrences of SpaceChar not used as a mask literal are replaced
with #32. Other mask literals are removed from Value. If the mask indicates
it is saved as part of the data, leading or trailing whitespace is trimmed as
required.
</p>
<p>
GetTextWithoutMask is used in the implementation of the RealGetText method.
</p>
</descr>
<seealso>
<link id="TCustomMaskEdit.SpaceChar"/>
<link id="TCustomMaskEdit.EditMask"/>
<link id="TCustomMaskEdit.RealGetText"/>
</seealso>
</element>
<element name="TCustomMaskEdit.GetTextWithoutMask.Result">
<short>
Value for the control without formatting applied by EditMask.
</short>
</element>
<element name="TCustomMaskEdit.GetTextWithoutMask.Value">
<short>
Text value for the control without mask characters or formatting.
</short>
</element>
<element name="TCustomMaskEdit.GetTextWithoutSpaceChar">
<short>
Gets the value for the control without the Space character literal used in
the edit mask.
</short>
<descr>
<p>
<var>GetTextWithoutSpaceChar</var> is similar to GetTextWithoutMask - but
leaves mask literals other than SpaceChar intact. It replaces all occurrences
of SpaceChar that are not used as a mask literal with #32.
</p>
<p>
GetTextWithoutSpaceChar is used in the implementation of the Delphi
compatible FormatMaskText routine.
</p>
</descr>
<seealso>
<link id="FormatMaskText"/>
</seealso>
</element>
<element name="TCustomMaskEdit.GetTextWithoutSpaceChar.Result">
<short>
Text value for the control after the SpaceChar literal is converted to its
conventional representation (#32).
</short>
</element>
<element name="TCustomMaskEdit.GetTextWithoutSpaceChar.Value">
<short>
Masked caption value examined and converted in the method.
</short>
</element>
<element name="TCustomMaskEdit.SetTextApplyMask">
<short>
Sets the value for the control after applying its edit mask.
</short>
<descr>
<p>
<var>SetTextApplyMask</var> is a method used to set the text for the control
to the specified Value. It ensures that the EditMask is applied to the value
when IsMasked returns True. The ApplyMaskToText method is called to generate
the text with mask literals as needed for the EditMask.
</p>
<p>
RealSetTextWhileMasked is called to apply the masked text value to the
control.
</p>
<p>
When Value is an empty string (''), the Clear method is called to set the
control value.
</p>
<p>
SetTextApplyMask is used in the implementation of the RealSetText method. It
is also called from the Loaded method when the component has finished loading
during LCL streaming.
</p>
</descr>
<seealso>
<link id="TCustomMaskEdit.IsMasked"/>
<link id="TCustomMaskEdit.EditMask"/>
<link id="TCustomMaskEdit.Clear"/>
<link id="TCustomMaskEdit.ApplyMaskToText"/>
<link id="TCustomMaskEdit.RealSetText"/>
<link id="TCustomMaskEdit.Loaded"/>
</seealso>
</element>
<element name="TCustomMaskEdit.SetTextApplyMask.Value">
<short>
Text before mask literals in EditMask are applied.
</short>
</element>
<element name="TCustomMaskEdit.GetEditText">
<short>
Gets the value for the EditText property.
</short>
<descr>
<p>
<var>GetEditText</var> is a <var>String</var> function used to get the value
for the EditText property. It contains the text displayed in the edit box for
the control including any mask literals and formatting required for the
EditMask. The value is retrieved by calling the overridden RealGetText method
for the control.
</p>
</descr>
<seealso>
<link id="TCustomMaskEdit.EditText"/>
</seealso>
</element>
<element name="TCustomMaskEdit.GetEditText.Result">
<short>
Value for the EditText property.
</short>
</element>
<element name="TCustomMaskEdit.SetEditText">
<short>
Sets the value for the EditText property.
</short>
<descr>
<p>
<var>SetEditText</var> sets the value for the Text displayed in the control.
The new value for the text is padded (when needed) to the length defined in
the edit mask. SetEditText calls <var>RealSetTextWhileMasked</var> to store
the value in the <var>Text</var> in the control.
</p>
<remark>
This method is not Delphi compatible, but this is by design. Delphi allows
setting the EditText to any length, which is extremely dangerous! This method
ensures that the text assigned in the control does not exceed the length
specified by its edit mask.
</remark>
</descr>
<seealso>
<link id="TCustomMaskEdit.EditText"/>
</seealso>
</element>
<element name="TCustomMaskEdit.SetEditText.Value">
<short>New value for the EditText property.</short>
</element>
<element name="TCustomMaskEdit.GetSel">
<short>
Finds the starting and ending positions for the selection.
</short>
<descr>
<var>GetSel</var> finds the starting and ending positions for the selected
text in the control. Calls GetSelStart to get the value for the _SelStart
argument. Calls GetSelLength to get the number of characters selected, and
calculates the value for _SelStop.
</descr>
<seealso/>
</element>
<element name="TCustomMaskEdit.GetSel._SelStart">
<short>Stating position for the text selected in the control.</short>
</element>
<element name="TCustomMaskEdit.GetSel._SelStop">
<short>Ending position for the text selected in the control.</short>
</element>
<element name="TCustomMaskEdit.SetSel">
<short>
Specifies the starting and ending positions for the text selected in the
control.
</short>
<descr>
<var>SetSel</var> specifies the starting and ending positions for the text
selected in the control.
</descr>
</element>
<element name="TCustomMaskEdit.SetSel._SelStart">
<short>Starting position for text selected in the control.</short>
</element>
<element name="TCustomMaskEdit.SetSel._SelStop">
<short>Ending position for text selected in the control.</short>
</element>
<element name="TCustomMaskEdit.TextChanged">
<short>
Performs actions when the value in the Text property has been changed.
</short>
<descr>
<p>
<var>TextChanged</var> is an overridden procedure used to respond to a change
in the value for the Text property. Its purpose is to avoid leaving the
control in an invalid state when:
</p>
<ul>
<li>
A Cut, Paste, or Clear operation from an Operating System context menu. We
try to catch and handle these messages.
</li>
<li>
Dragging selected text in the control with the mouse.
</li>
</ul>
<p>
If one of these operations happen, then the internal logic for cursor
positioning and character insertion can be invalid. So, we simply restore the
text value from an internal member used to track the current text value.
</p>
<p>
The inherited TextChanged method is called when IsMasked is <b>False</b>, or
when an internal update to the control value is performed. Otherwise,
RealSetTextWhileMasked is called followed by SetCursorPos.
</p>
</descr>
<seealso>
<link id="#lcl.stdctrls.TCustomEdit.TextChanged">TCustomEdit.TextChanged</link>
</seealso>
</element>
<element name="TCustomMaskEdit.Change">
<short>
Suppresses the OnChange event when the initial value for the control is
assigned.
</short>
<descr>
<p>
<var>Change</var> is an overridden procedure used to perform actions when the
value for the control is changed. Change suppresses firing the
<var>OnChange</var> event handler when the initial value for the control is
assigned by using an internal member variable in the class instance. If the
variable is not set, the inherited <var>Change</var> method is called to
signal the <var>OnChange</var> event handler (and/or the
<var>OnChangeHandler</var> event handler) for the control.
</p>
</descr>
<seealso>
<link id="#lcl.stdctrls.TCustomEdit.Change">TCustomEdit.Change</link>
<link id="#lcl.stdctrls.TCustomEdit.OnChange">TCustomEdit.OnChange</link>
</seealso>
</element>
<element name="TCustomMaskEdit.SetCharCase">
<short>Sets the value in the CharCase property.</short>
<descr>
<p>
<var>SetCharCase</var> is an overridden procedure used to set the value in
the <var>CharCase</var> property.
</p>
<p>
<var>SetCharCase</var> is modified in TCustomMaskEdit to ensure that the
correct value is used when an edit mask has been assigned in the control.
CharCase is set to the value <var>ecNormal</var> when <var>IsMasked</var>
contains <b>True</b>. It is assumed that case conversions are performed
according to the rules for the edit mask.
</p>
<p>
When IsMasked is <b>False</b>, the property is set to the content in the
<var>Value</var> argument.
</p>
<p>
SetCharCase calls the inherited method to store the new value for the
property.
</p>
</descr>
<seealso>
<link id="TCustomMaskEdit.IsMasked"/>
<link id="#lcl.stdctrls.TCustomEdit.CharCase">TCustomEdit.CharCase</link>
</seealso>
</element>
<element name="TCustomMaskEdit.SetCharCase.Value">
<short>New value for the property.</short>
</element>
<element name="TCustomMaskEdit.SetMaxLength">
<short>Sets the value for the MaxLength property.</short>
<descr/>
<seealso>
<link id="TCustomMaskEdit.MaxLength"/>
</seealso>
</element>
<element name="TCustomMaskEdit.SetMaxLength.Value">
<short>New value for the property.</short>
</element>
<element name="TCustomMaskEdit.GetMaxLength">
<short>Gets the value for the MaxLength property.</short>
<descr/>
<seealso>
<link id="TCustomMaskEdit.MaxLength"/>
</seealso>
</element>
<element name="TCustomMaskEdit.GetMaxLength.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomMaskEdit.SetNumbersOnly">
<short>Sets the value for the NumbersOnly property.</short>
<descr>
<p>
<var>SetNumbersOnly</var> is an overridden <var>Boolean</var> function used
as the write access specifier for the <var>NumbersOnly</var> property.
</p>
<p>
SetNumbersOnly provides support use of an edit mask in the control. When
<var>IsMasked</var> is <b>True</b>, setting NumbersOnly to <b>True</b> can
interfere with the masking logic in the control; the property is
automatically set to <b>False</b> when IsMasked is <b>True</b>. Otherwise,
the inherited SetNumbersOnly method is called to set to the value for the
property.
</p>
</descr>
<seealso>
<link id="#lcl.stdctrls.TCustomEdit.SetNumbersOnly">TCustomEdit.SetNumbersOnly</link>
<link id="#lcl.stdctrls.TCustomEdit.NumbersOnly">TCustomEdit.NumbersOnly</link>
</seealso>
</element>
<element name="TCustomMaskEdit.SetNumbersOnly.Value">
<short>New value for the property.</short>
</element>
<element name="TCustomMaskEdit.Loaded">
<short>
Performs actions when a component has been loaded from the LCL streaming
mechanism.
</short>
<descr>
<p>
<var>Loaded</var> is an overridden procedure used to perform actions when a
component has been completely loaded from the LCL component streaming
mechanism. Loaded calls the inherited method, and sets the value in internal
members used to track the <var>EditMask</var> and <var>Text</var> values in
the control.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TWinControl.Loaded">TWinControl.Loaded</link>
</seealso>
</element>
<element name="TCustomMaskEdit.LMPasteFromClip">
<short>
<var>LMPasteFromClip</var> is the LCL message method for pasting from the
clipboard.
</short>
</element>
<element name="TCustomMaskEdit.LMCutToClip">
<short>
<var>LMCutToClip</var> is the LCL message method for cutting to the clipboard.
</short>
</element>
<element name="TCustomMaskEdit.LMClearSel">
<short>
<var>LMClearSel</var> is the LCL message method for clearing selected items.
</short>
</element>
<element name="TCustomMaskEdit.EditCanModify">
<short>If <b>True</b>, the Edit box is allowed to modify its contents.</short>
<descr>
<p>
<var>EditCanModify</var> always returns True in <var>TCustomMaskEdit</var>.
It is a virtual method, and can be overridden in descendent classes (like
TDBEdit).
</p>
</descr>
<seealso/>
</element>
<element name="TCustomMaskEdit.EditCanModify.Result">
<short>
<b>True</b> if the control can modify its text value.
</short>
</element>
<element name="TCustomMaskEdit.Reset">
<short>
Reset returns the edit to its default state with mask appearing in Text box
and no string input.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomMaskEdit.DoEnter">
<short>Performs actions needed when the control is entered.</short>
<descr>
<p>
<var>DoEnter</var> is an overridden procedure used to perform actions needed
the control is entered. DoEnter extends the behavior in the inherited method
to track the value for control when entered and to perform auto selection
logic when an edit mask is in use.
</p>
</descr>
<seealso>
<link id="#lcl.stdctrls.TCustomEdit.DoEnter">TCustomEdit.DoEnter</link>
</seealso>
</element>
<element name="TCustomMaskEdit.DoExit">
<short>Performs actions needed when the control is exited.</short>
<descr/>
<seealso>
<link id="#lcl.stdctrls.TCustomEdit.DoExit">TCustomEdit.DoExit</link>
</seealso>
</element>
<element name="TCustomMaskEdit.KeyDown">
<short>Performs actions needed to apply key down messages.</short>
<descr>
<p>
Calls the inherited <var>KeyDown</var> method. If an edit mask is not
assigned in the control, no additional actions are required in the method.
</p>
<p>
KeyDown handles the following keys, and performs the following actions:
</p>
<dl>
<dt>Shift + Left, Shift + Right, Shift + Home, Shift + End</dt>
<dd>Ignored</dd>
<dt>Escape</dt>
<dd>Resets text to the un-edited value</dd>
<dt>Shift + Delete</dt>
<dd>Cuts selection to the clipboard</dd>
<dt>Ctrl + Delete</dt>
<dd>Deletes the current selection</dd>
<dt>Delete</dt>
<dd>Deletes the character at the cursor position</dd>
<dt>Ctrl + Backspace</dt>
<dd>Deletes the current selection</dd>
<dt>Shift + Backspace</dt>
<dd>Cuts the current selection to the clipboard</dd>
<dt>Backspace</dt>
<dd>Deletes the character prior to cursor position</dd>
<dt>Shift + Insert</dt>
<dd>Paste from the clipboard</dd>
<dt>Ctrl + Insert</dt>
<dd>Copy to the clipboard</dd>
<dt>Ctrl + C</dt>
<dd>Copy to the clipboard</dd>
<dt>Ctrl + X</dt>
<dd>Cut to the clipboard</dd>
<dt>Ctrl + V</dt>
<dd>Paste from the clipboard</dd>
<dt>Ctrl + Left, Left</dt>
<dd>Select the previous character</dd>
<dt>Ctrl + Right, Right</dt>
<dd>Selects the next character</dd>
<dt>Home </dt>
<dd>Move to the first character in the control</dd>
<dt>End</dt>
<dd>Move to the end of the control</dd>
<dt>Up, Down</dt>
<dd>Ignored</dd>
<dt>Ctrl + A</dt>
<dd>Selects all of the text in the control</dd>
</dl>
</descr>
<seealso>
<link id="#lcl.controls.TWinControl.KeyDown">TWinControl.KeyDown</link>
</seealso>
</element>
<element name="TCustomMaskEdit.KeyDown.Key">
<short>Key code examined in the method.</short>
</element>
<element name="TCustomMaskEdit.KeyDown.Shift">
<short>Key modifier examined in the method.</short>
</element>
<element name="TCustomMaskEdit.HandleKeyPress">
<short>Handle all keys from KeyPress and Utf8KeyPress.</short>
<descr>
<p>
<var>HandleKeyPress</var> is a method used to handle keys forwarded from the
<var>KeyPress</var> and <var>UTF8KeyPress</var> methods. No actions are
performed in the method if the control is <var>ReadOnly</var>, or
<var>IsMasked</var> returns <b>False</b>.
</p>
<p>
HandleKeyPress set the cursor position to the start of the current selection
in the control. If the cursor is on a mask literal, it is advanced to the
next writable position.
</p>
<p>
When <var>Key</var> is a <b>Period</b> (<b>'.'</b>) or a Comma (<b>','</b>)
character, the cursor is advanced to the next Period or Comma character in
the mask. For other character values, the InsertChar method is called.
</p>
<p>
The value in Key is set to an empty string (<b>''</b>) when it is handled in
the method.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomMaskEdit.HandleKeyPress.Key">
<short>Character value for the key examined in the method.</short>
</element>
<element name="TCustomMaskEdit.KeyPress">
<short>
Performs actions needed to handle the specified character in the control.
</short>
<descr>
<p>
<var>KeyPress</var> is an overridden procedure used to apply the character
specified in <var>Key</var> to the control. KeyPress calls the inherited
method, and converts the character in Key to a UTF-8-encoded character which
is passed to the <var>HandleKeyPress</var> method. All character values
handled in HandleKeyPress are set to an empty character, and causes the value
in Key to be digested in the method.
</p>
</descr>
<seealso>
<link id="TCustomMaskEdit.UTF8KeyPress"/>
<link id="#lcl.controls.TWinControl.KeyPress">TWinControl.KeyPress</link>
</seealso>
</element>
<element name="TCustomMaskEdit.KeyPress.Key">
<short>Character handled in the method.</short>
</element>
<element name="TCustomMaskEdit.Utf8KeyPress">
<short>
Handles a key press with the specified UTF-8 character value.
</short>
<descr>
<p>
<var>Utf8KeyPress</var> is an overridden method in
<var>TCustomMaskEdit</var>, and calls the inherited method on entry to signal
the <var>OnUTF8KeyPress</var> event handler (when assigned).
</p>
<p>
UTF8Key contains the UTF-8-encoded character for the key press notification.
The value in UTF8Key may be set to an empty character ('') if it has been
handled in the ancestor method.
</p>
<p>
Utf8KeyPress calls the <var>HandleKeyPress</var> method to apply the
character value to the control. It is only called when UTF8Key contains a
multi-byte UTF-8 character value. Otherwise, the key event is handled by the
<var>KeyPress</var> method.
</p>
</descr>
<seealso>
<link id="TCustomMaskEdit.HandleKeyPress"/>
<link id="TCustomMaskEdit.KeyPress"/>
<link id="#lcl.controls.TWinControl.UTF8KeyPress">TWinControl.UTF8KeyPress</link>
<link id="#lcl.controls.TWinControl.OnUTF8KeyPress">TWinControl.OnUTF8KeyPress</link>
</seealso>
</element>
<element name="TCustomMaskEdit.Utf8KeyPress.UTF8Key">
<short>UTF-8-encode key handled in the method.</short>
</element>
<element name="TCustomMaskEdit.MouseUp">
<short>Performs actions needed to handle a mouse button up message.</short>
<descr>
<p>
Calls the inherited <var>MouseUp</var> method. When a mask is used in the
control, the cursor is moved to the beginning of the current selection in the
control and <var>SetCursorPos</var> is called to update the caret position.
</p>
</descr>
<seealso>
<link id="#lcl.stdctrls.TCustomEdit.MouseUp">TCustomEdit.MouseUp</link>
</seealso>
</element>
<element name="TCustomMaskEdit.MouseUp.Button">
<short>Mouse button for the message.</short>
</element>
<element name="TCustomMaskEdit.MouseUp.Shift">
<short>Shift modifier for the message.</short>
</element>
<element name="TCustomMaskEdit.MouseUp.X">
<short>Horizontal coordinate for the mouse position.</short>
</element>
<element name="TCustomMaskEdit.MouseUp.Y">
<short>Vertical coordinate for the mouse position.</short>
</element>
<element name="TCustomMaskEdit.CheckCursor">
<short>
Updates the position for the cursor (or caret) when an EditMask is used in
the control.
</short>
<descr>
<p>
<var>CheckCursor</var> is a procedure used to update the position for the
cursor (or caret) when an <var>EditMask</var> is used in the control.
CheckCursor uses the value from <var>IsMasked</var> to determine if the
cursor position needs to be updated by calling <var>SetCursorPos</var>. When
<var>IsMasked</var> returns <b>False</b>, no actions are performed in the
method.
</p>
<p>
Used in the implementation of the <var>SetSpaceChar</var> method.
</p>
</descr>
<seealso>
<link id="TCustomMaskEdit.IsMasked"/>
<link id="TCustomMaskEdit.SpaceChar"/>
</seealso>
</element>
<element name="TCustomMaskEdit.EditText">
<short>
Value entered in the control and obscured / formatted using the EditMask.
</short>
<descr>
<p>
Calls the inherited RealGetText method to get the value for the property.
When a new value for the property is assigned, mask literals are restored for
the new value to ensure that the control is in a recoverable state. EditText
is truncated, or padded with ClearChar as needed, so that the value matches
the length for the <var>EditMask</var>. These actions are not performed when
<var>IsMasked</var> returns <b>False</b> (EditMask has not been assigned).
</p>
<remark>
SetEditText is not Delphi compatible. Delphi allows any text value to be
assigned to the control, leaving the control in an unrecoverable state where
it is impossible to leave the control because the text can never be
validated. The LCL implementation does not allow this.
</remark>
</descr>
<seealso/>
</element>
<element name="TCustomMaskEdit.IsMasked">
<short>
<b>True</b> if a non-empty value has been assigned to EditMask.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomMaskEdit.SpaceChar">
<short>
Contains the value used to represent Space (#32) characters in the control
value.
</short>
<descr>
<p>
<var>SpaceChar</var> is a <var>Char</var> property with the value used to
represent <b>Space</b> (<b>text</b>) characters in the value for the control.
It corresponds to the '_' character used the mask fields.
</p>
<p>
When a Space character is found in the text for the control, or a value has
not been provided for a masked character position, it is replaced with this
character.
</p>
<p>
The default value for the property is <b>'_'</b>.
</p>
<p>
Setting a new value for the property causes the existing text in the control
to be updated. All occurrences of the existing SpaceChar are converted to the
new value for the property, and stored as the new text for the control. The
cursor position and text selection are updated when the text is stored.
</p>
<p>
SpaceChar is not used when <var>EditMask</var> is an empty string (''), or
<var>IsMasked</var> is <b>False</b>.
</p>
</descr>
<seealso>
<link id="TCustomMaskEdit.EditMask"/>
<link id="TCustomMaskEdit.IsMasked"/>
</seealso>
</element>
<element name="TCustomMaskEdit.MaxLength">
<short>
Indicates the maximum number of characters that can be stored in the value
for the control.
</short>
<descr>
<p>
<var>MaxLength</var> is an <var>Integer</var> property that represents the
maximum number of characters that can be stored in the edit control.
<var>TCustomMaskEdit</var> re-implements the read and write access specifiers
for the property to provide support for use of an edit mask in the control.
</p>
<p>
Setting a new value for the property causes the internal length for the edit
mask to be used as the value property. The specified <var>Value</var> is
discarded when <var>IsMasked</var> is <b>True</b>. Otherwise, the new
<var>Value</var> is stored using the inherited property accessor.
</p>
</descr>
<seealso>
<link id="#lcl.stdctrls.TCustomEdit.MaxLength">TCustomEdit.MaxLength</link>
</seealso>
</element>
<element name="TCustomMaskEdit.EditMask">
<short>
Contains the mask characters classes and literals used to format/obscure the
value for the control.
</short>
<descr>
<p>
<var>EditMask</var> is a <var>String</var> property which contains the mask
specification for the edit control. EditMask contains the delimited mask
fields with the character types, storage specifier, and the character value
used to represent a space in the edit mask. For example:
</p>
<code>AMaskEdit.EditMask := '999.999;1;0';</code>
<p>
The EditMask is formed using a pattern of characters with the following
meaning:
</p>
<table>
<tr>
<td><b>\ </b></td>
<td>after this you can set an arbitrary char</td>
</tr>
<tr>
<td><b>></b></td>
<td>after this the characters are in in uppercase</td>
</tr>
<tr>
<td><b><</b></td>
<td>after this the character are in lowercase</td>
</tr>
<tr>
<td><b>l</b></td>
<td>only an optional letter</td>
</tr>
<tr>
<td><b>L</b></td>
<td>only a letter</td>
</tr>
<tr>
<td><b>a</b></td>
<td>an optional alphanumeric character (['A'..'Z','a..'z','0'..'9'])</td>
</tr>
<tr>
<td><b>A</b></td>
<td>an alphanumeric character</td>
</tr>
<tr>
<td><b>c</b></td>
<td>any optional Utf-8 character (including a Space character)</td>
</tr>
<tr>
<td><b>C</b></td>
<td>any Utf-8 character in the range #33-#255 (does not include Space)</td>
</tr>
<tr>
<td><b>9</b></td>
<td>only an optional number</td>
</tr>
<tr>
<td><b>0</b></td>
<td>only a number</td>
</tr>
<tr>
<td><b>#</b></td>
<td>only an optional number or + or -</td>
</tr>
<tr>
<td><b>:</b></td>
<td>displays the hour separator character</td>
</tr>
<tr>
<td><b>/</b></td>
<td>displays the date separator character</td>
</tr>
<tr>
<td><b>h</b></td>
<td>
an optional hexadecimal character (Lazarus extension, not supported by Delphi)
</td>
</tr>
<tr>
<td><b>H</b></td>
<td>a hexadecimal character (Lazarus extension, not supported by Delphi)</td>
</tr>
<tr>
<td><b>b</b></td>
<td>an optional binary character (Lazarus extension, not supported by
Delphi)</td>
</tr>
<tr>
<td><b>B</b></td>
<td>a binary character (Lazarus extension, not supported by Delphi)</td>
</tr>
<tr>
<td><b>!</b></td>
<td>
Trim leading or trailing blanks, depending on position of the mask character
</td>
</tr>
</table>
<p>
Setting a new value for the property causes the value to be decomposed into
the internal <var>TInternalMask</var> representing the individual characters
in the edit mask. Individual UTF-8 characters in <var>Value</var> are either
added to the mask as literals or character types. <var>Clear</var> is called
to remove the displayed value in the control, and the initial <var>Text</var>
value is set to the value from <var>RealGetText</var>.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomMaskEdit.ValidationErrorMode">
<short>
Indicates the action taken when the control value is invalid for its mask.
</short>
<descr>
<p>
<var>ValidationErrorMode</var> is a <var>TMaskEditValidationErrorMode</var>
property which indicates the action taken when the value for the control is
invalid for the mask in the <var>EditMask</var> property.
</p>
<p>
The default value for the property is <var>mvemException</var>, and causes an
exception to be raised when control value is invalid for its mask. Use
<var>mvemException</var> to cause the <var>OnValidationError</var> event
handler to be signalled for the validation error.
</p>
<p>
The property value is used in the <var>ValidateEdit</var> method when
<var>IsMasked</var> is set to <b>True</b> and the <var>EditText</var> for the
control is not valid.
</p>
</descr>
<seealso>
<link id="TCustomMaskEdit.OnValidationError"/>
<link id="TCustomMaskEdit.ValidateEdit"/>
<link id="TCustomMaskEdit.IsMasked"/>
<link id="TCustomMaskEdit.EditText"/>
<link id="TMaskEditValidationErrorMode"/>
</seealso>
</element>
<element name="TCustomMaskEdit.CutToClipBoard" link="#lcl.stdctrls.TCustomEdit.CutToClipboard"/>
<element name="TCustomMaskEdit.PasteFromClipBoard" link="#lcl.stdctrls.TCustomEdit.PasteFromClipboard"/>
<element name="TCustomMaskEdit.Create">
<short>Constructor for the class instance.</short>
<descr>
<p>
<var>Create</var> is the overridden constructor for the class instance.
Create sets the default values for internal members and properties specific
to <var>TCustomMaskEdit</var>. The value in <var>SpaceChar</var> is set to
'_'.
</p>
<p>
Create calls the inherited constructor, and sets the value in the internal
member used for the text in the edit control by calling the inherited
<var>RealGetText</var> method.
</p>
</descr>
<seealso>
<link id="#lcl.stdctrls.TCustomEdit.RealGetText">TCustomEdit.RealGetText</link>
<link id="TMaskEditTrimType"/>
</seealso>
</element>
<element name="TCustomMaskEdit.Create.AOwner">
<short>Owner for the class instance.</short>
</element>
<element name="TCustomMaskEdit.Clear">
<short>Clears the value for the edit control.</short>
<descr>
<p>
<var>Clear</var> is an overridden procedure used to clear the value for the
text in the edit control. Clear uses the value from <var>IsMasked</var> to
determine if a mask specification has been assigned for the edit control.
</p>
<p>
When IsMasked is <b>True</b>, the <var>ClearChar</var> method is called for
each position in the <var>EditMask</var> to get the blank value for the mask
character. <var>RealSetTextWhileMasked</var> is called to store the new value
for the control. The cursor (or caret) is reset to the beginning of the text,
and <var>SetCursorPos</var> is called to update the cursor position.
</p>
<p>
When IsMasked is <b>False</b>, the inherited <var>Clear</var> method is
called to update the content for the control.
</p>
<p>
Clear is used in the implementation of the <var>SetEditMask</var>,
<var>RestoreMask</var>, and <var>SetTextApplyMask</var> methods.
</p>
</descr>
<seealso>
<link id="TCustomMaskEdit.IsMasked"/>
<link id="TCustomMaskEdit.EditMask"/>
<link id="TCustomMaskEdit.RestoreMask"/>
<link id="TCustomMaskEdit.SetTextApplyMask"/>
<link id="#lcl.stdctrls.TCustomEdit.Clear">TCustomEdit.Clear</link>
</seealso>
</element>
<element name="TCustomMaskEdit.SelectAll">
<short>Selects all of the text in the masked edit control.</short>
<descr>
<p>
<var>SelectAll</var> is an overridden method used to select all of the text
in the masked edit control. SelectAll ensures that content formatted using
the <var>EditMask</var> is handled in the method.
</p>
<p>
When <var>IsMasked</var> is <b>True</b>, the inherited <var>RealGetText</var>
method is called to get the text content for the control. <var>SelStart</var>
and <var>SelLength</var> are updated to use the values needed for the text
content. The inherited method is <b>not</b> called.
</p>
<p>
When IsMasked is <b>False</b>, the inherited method is called to handle the
text selection.
</p>
</descr>
<seealso>
<link id="TCustomMaskEdit.IsMasked"/>
<link id="TCustomMaskEdit.EditMask"/>
<link id="#lcl.stdctrls.TCustomEdit.RealGetText">TCustomEdit.RealGetText</link>
<link id="#lcl.stdctrls.TCustomEdit.SelectAll">TCustomEdit.SelectAll</link>
<link id="#lcl.stdctrls.TCustomEdit.SelStart">TCustomEdit.SelStart</link>
<link id="#lcl.stdctrls.TCustomEdit.SelLength">TCustomEdit.SelLength</link>
</seealso>
</element>
<element name="TCustomMaskEdit.ValidateEdit">
<short>
Validates the value for the edit control when an EditMask has been specified.
</short>
<descr>
<p>
<var>ValidateEdit</var> is a procedure used to validate the text for the edit
control using the assigned mask. ValidateEdit uses the value in
<var>IsMasked</var> to determine if a mask has been assigned in the control.
</p>
<p>
When IsMasked is <b>True</b>, the value for the control is validated. The
<var>TextIsValid</var> method is called with the value from the
<var>Text</var> property. If the Text is not valid, an
<var>EDBEditError</var> exception is raised for the error condition.
</p>
<p>
When IsMasked is <b>False</b>, no actions are performed in the method.
</p>
<p>
ValidateEdit is used in the implementation of the <var>DoExit</var> method.
</p>
</descr>
<errors>
Raises an <var>EDBEditError</var> if the <var>Text</var> for the control is
not valid. Raised with the message in <var>SMaskEditNoMatch</var>.
</errors>
<seealso>
<link id="TCustomMaskEdit.IsMasked"/>
<link id="TCustomMaskEdit.DoExit"/>
<link id="TCustomMaskEdit.ValidateEdit"/>
<link id="TMaskEdit.Text"/>
<link id="EDBEditError"/>
<link id="SMaskEditNoMatch"/>
</seealso>
</element>
<element name="TCustomMaskEdit.EnableSets">
<short>Enables or disables use of set notation in the EditMask.</short>
<descr>
<p>
<var>EnableSets</var> is a <var>Boolean</var> property used when a new value
assigned to the EditMask property is parsed to reconstruct the internal mask
characters and literals for the control.
</p>
<p>
When set to <b>False</b>, the '[' and ']' characters used in set notation are
treated as literal characters. When set to <b>True</b>, the optional or
required set definition is added to the mask. The default value for the
property is <b>False</b>.
</p>
</descr>
<seealso>
<link id="TCustomMaskEdit.EditMask"/>
</seealso>
</element>
<element name="TCustomMaskEdit.Modified">
<short>Indicates if the value for the edit control has been changed.</short>
<descr>
<p>
<var>Modified</var> is a <var>Boolean</var> property which indicates if the
value for the edit control has been changed.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomMaskEdit.OnValidationError">
<short>
Event handler signalled when the value for the masked edit control is invalid.
</short>
<descr>
<p>
<var>OnValidationError</var> is a <var>TNotifyEvent</var> property with the
event handler signalled when the value for the masked edit control is invalid
for its <var>EditMask</var>. OnValidationError is signalled (when assigned)
from the ValidateEdit method and occurs when focus is removed from the control
and ValidationErrorMode is set mvemEvent. An application can implement and
assign a handler to perform actions needed to respond to an invalid value
entered in the control.
</p>
</descr>
<seealso>
<link id="TCustomMaskEdit.ValidateEdit"/>
<link id="TCustomMaskEdit.ValidationErrorMode"/>
<link id="TCustomMaskEdit.IsMasked"/>
<link id="TCustomMaskEdit.EditMask"/>
<link id="TCustomMaskEdit.EditText"/>
<link id="TMaskEditValidationErrorMode"/>
<link id="#rtl.classes.TNotifyEvent">TNotifyEvent</link>
</seealso>
</element>
<element name="TMaskEdit">
<short>
<var>TMaskEdit</var> is an Edit box with characters masked out to avoid
unauthorized reading.
</short>
<descr>
<p>
<var>TMaskEdit</var> is used to display an Edit Box with the input text
masked by a selected character specified by PasswordChar, usually an
asterisk, or by EditMask (a complete string), specified in TCustomMaskEdit.
</p>
<p>
Useful for inputting passwords or capturing input using a specific format and
validation.
</p>
</descr>
<seealso>
<link id="TCustomMaskEdit"/>
</seealso>
</element>
<element name="TMaskEdit.IsMasked" link="#lcl.maskedit.TCustomMaskEdit.IsMasked"/>
<element name="TMaskEdit.EditText" link="#lcl.maskedit.TCustomMaskEdit.EditText"/>
<element name="TMaskEdit.ValidationErrorMode" link="#lcl.maskedit.TCustomMaskEdit.ValidationErrorMode"/>
<element name="TMaskEdit.Align" link="#lcl.controls.TControl.Align"/>
<element name="TMaskEdit.Alignment" link="#lcl.stdctrls.TCustomEdit.Alignment"/>
<element name="TMaskEdit.Anchors" link="#lcl.controls.TControl.Anchors"/>
<element name="TMaskEdit.AutoSelect" link="#lcl.stdctrls.TCustomEdit.AutoSelect"/>
<element name="TMaskEdit.AutoSize" link="#lcl.stdctrls.TCustomEdit.AutoSize"/>
<element name="TMaskEdit.BiDiMode" link="#lcl.controls.TControl.BiDiMode"/>
<element name="TMaskEdit.BorderSpacing" link="#lcl.controls.TControl.BorderSpacing"/>
<element name="TMaskEdit.BorderStyle" link="#lcl.stdctrls.TCustomEdit.BorderStyle"/>
<element name="TMaskEdit.CharCase">
<short>Determines the case for the text in the masked edit control.</short>
<descr>
<p>
Indicates how text is displayed in a text editing control in the following
ways:
</p>
<ul>
<li>Normal case letters</li>
<li>Upper case letters</li>
<li>Lower case letters</li>
</ul>
<p>The rules can, of course, be overridden by use of the shift key.</p>
</descr>
<seealso>
<link id="#lcl.stdctrls.TCustomEdit.CharCase">TCustomEdit.CharCase"</link>
</seealso>
</element>
<element name="TMaskEdit.Color" link="#lcl.controls.TControl.Color"/>
<element name="TMaskEdit.Constraints" link="#lcl.controls.TControl.Constraints"/>
<element name="TMaskEdit.DragCursor" link="#lcl.controls.TControl.DragCursor"/>
<element name="TMaskEdit.DragKind" link="#lcl.controls.TControl.DragKind"/>
<element name="TMaskEdit.DragMode" link="#lcl.controls.TControl.DragMode"/>
<element name="TMaskEdit.Enabled" link="#lcl.controls.TControl.Enabled"/>
<element name="TMaskEdit.Font" link="#lcl.controls.TControl.Font"/>
<element name="TMaskEdit.MaxLength" link="#lcl.maskedit.TCustomMaskEdit.MaxLength"/>
<element name="TMaskEdit.ParentBiDiMode" link="#lcl.controls.TControl.ParentBiDiMode"/>
<element name="TMaskEdit.ParentColor" link="#lcl.stdctrls.TCustomEdit.ParentColor"/>
<element name="TMaskEdit.ParentFont" link="#lcl.controls.TControl.ParentFont"/>
<element name="TMaskEdit.ParentShowHint" link="#lcl.controls.TControl.ParentShowHint"/>
<element name="TMaskEdit.PopupMenu">
<short>
A context-sensitive menu that pops up when the right mouse button is clicked
over this control.
</short>
<descr>
<p>
One of the standard properties, which should be supported by all descendants.
</p>
<p>
Reads the details of the pop-up menu, or stores them. Properties are defined
in the parent class <link id="#lcl.Menus.TPopupMenu">TPopupMenu</link>.
</p>
</descr>
<seealso/>
</element>
<element name="TMaskEdit.ReadOnly" link="#lcl.stdctrls.TCustomEdit.ReadOnly"/>
<element name="TMaskEdit.ShowHint">
<short>Flag to determine if the hint is displayed for this control.</short>
<descr>
<p>
One of the standard properties, which should be supported by all descendants.
</p>
<p>
Reads flag or writes one to determine if a hint is to be shown when mouse
hovers over this control. If value is stored, a storage flag is set. Display
of the actual hint is controlled by OnShowHint.
</p>
</descr>
<seealso/>
</element>
<element name="TMaskEdit.TabOrder">
<short>Keyboard navigation order for the control when Tab is pressed.</short>
<descr>
<p>
Keyboard navigation order for the control in it Parent control when the Tab
key is pressed. The default value for the property is <b>-1</b>.
</p>
<p>
Use <var>TabStop</var> to enable or disable keyboard navigation for the
control.
</p>
</descr>
<seealso>
<link id="TMaskEdit.TabStop"/>
<link id="#lcl.controls.TWinControl.TabOrder">TWinControl.TabOrder</link>
</seealso>
</element>
<element name="TMaskEdit.TabStop">
<short>
Enables or disables keyboard navigation using the Tab key.
</short>
<descr>
<p>
Use the TabStop property to allow or disallow access to the control using the
Tab key. If <var>TabStop</var> is <b>True</b>, the control is in the tab
order. If <var>TabStop</var> is <b>False</b>, the control is not in the tab
order and the user can't use the Tab key to move to the control.
</p>
</descr>
<seealso>
<link id="#lcl.stdctrls.TCustomEdit.TabStop">TCustomEdit.TabStop</link>
<link id="#lcl.controls.TWinControl.TabStop">TWinControl.TabStop</link>
</seealso>
</element>
<element name="TMaskEdit.Visible">
<short>Indicates if the control is visible or hidden.</short>
<descr>
<p>
The <var>Visible</var> property indicates the ability to see a visual
control. 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 reflect the visibility for a parent control.
Use the IsVisible method to consider this and get the effective visibility.
</remark>
</descr>
<seealso>
<link id="#lcl.controls.TControl.Visible">TControl.Visible</link>
</seealso>
</element>
<element name="TMaskEdit.OnChange" link="#lcl.stdctrls.TCustomEdit.OnChange"/>
<element name="TMaskEdit.OnClick" link="#lcl.controls.TControl.OnClick"/>
<element name="TMaskEdit.OnDblClick" link="#lcl.controls.TControl.OnDblClick"/>
<element name="TMaskEdit.OnDragDrop" link="#lcl.controls.TControl.OnDragDrop"/>
<element name="TMaskEdit.OnDragOver" link="#lcl.controls.TControl.OnDragOver"/>
<element name="TMaskEdit.OnEditingDone" link="#lcl.controls.TControl.OnEditingDone"/>
<element name="TMaskEdit.OnEndDock" link="#lcl.controls.TControl.OnEndDock"/>
<element name="TMaskEdit.OnEndDrag" link="#lcl.controls.TControl.OnEndDrag"/>
<element name="TMaskEdit.OnEnter" link="#lcl.controls.TWinControl.OnEnter"/>
<element name="TMaskEdit.OnExit" link="#lcl.controls.TWinControl.OnExit"/>
<element name="TMaskEdit.OnKeyDown">
<short>Handles a key down event for the focused control.</short>
<descr>
<p>
<var>OnKeyDown</var> is an event handler signalled when a key is down while
control has focus.
</p>
<p>
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="TMaskEdit.OnKeyPress">
<short>Handles a key press event for the focused control.</short>
<descr>
<p>
<var>OnKeyPress</var> is an event handler signalled when a key is pressed
while the control has focus.
</p>
<p>
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="TMaskEdit.OnKeyUp">
<short>Handles a key up event for the focused control.</short>
<descr>
<p>
<var>OnKeyUp</var> is an event handler signalled when a key is released (not
pressed) while the control has focus.
</p>
<p>
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="TMaskEdit.OnMouseDown" link="#lcl.controls.TControl.OnMouseDown"/>
<element name="TMaskEdit.OnMouseEnter" link="#lcl.controls.TControl.OnMouseEnter"/>
<element name="TMaskEdit.OnMouseLeave" link="#lcl.controls.TControl.OnMouseLeave"/>
<element name="TMaskEdit.OnMouseMove" link="#lcl.controls.TControl.OnMouseMove"/>
<element name="TMaskEdit.OnMouseUp" link="#lcl.controls.TControl.OnMouseUp"/>
<element name="TMaskEdit.OnMouseWheel" link="#lcl.controls.TControl.OnMouseWheel"/>
<element name="TMaskEdit.OnMouseWheelDown" link="#lcl.controls.TControl.OnMouseWheelDown"/>
<element name="TMaskEdit.OnMouseWheelUp" link="#lcl.controls.TControl.OnMouseWheelUp"/>
<element name="TMaskEdit.OnStartDock" link="#lcl.controls.TControl.OnStartDock"/>
<element name="TMaskEdit.OnStartDrag" link="#lcl.controls.TControl.OnStartDrag"/>
<element name="TMaskEdit.OnUTF8KeyPress" link="#lcl.controls.TWinControl.OnUTF8KeyPress"/>
<element name="TMaskEdit.EditMask" link="#lcl.maskedit.TCustomMaskEdit.EditMask"/>
<element name="TMaskEdit.Text">
<short>Contains the value for the control.</short>
<descr>
<p>
<var>Text</var> is a public <var>String</var> property in
<var>TMaskEdit</var> which provides access to the value for the edit control.
</p>
</descr>
<seealso>
<link id="#lcl.stdctrls.TCustomEdit.Text">TCustomEdit.Text</link>
<link id="#lcl.controls.TControl.Text">TControl.Text</link>
<link id="TCustomMaskEdit.EditText"/>
<link id="TCustomMaskEdit.EditMask"/>
<link id="TCustomMaskEdit.RealGetText"/>
<link id="TCustomMaskEdit.RealSetText"/>
</seealso>
</element>
<element name="TMaskEdit.TextHint" link="#lcl.stdctrls.TCustomEdit.TextHint"/>
<element name="TMaskEdit.SpaceChar" link="#lcl.maskedit.TCustomMaskEdit.SpaceChar"/>
<element name="FormatMaskText">
<short>Applies an edit mask to the specified string value.</short>
<descr>
<p>
<var>FormatMaskText</var> is a <var>String</var> function used to apply an
edit mask to the specified String value. FormatMaskText creates a temporary
instance of TCustomMaskEdit that is used to apply the edit mask in
<var>AEditMask</var> when required. The value in AEditMask is assigned to the
EditMask property in TCustomMaskEdit.
</p>
<p>
The <var>Value</var> argument contains the data without any mask literals,
escaped characters, or space characters inserted by the editing mask. When
the IsMasked method in the TCustomMaskEdit returns <b>True</b>, the
ApplyMaskToText method is used to generate the return value for the routine. To
maintain Delphi compatibility, the GetTextWithoutSpaceChar is also called to
translate space characters represented using the character in the mask field to
the Space character (decimal 32).
</p>
<p>
The <var>EnableSets</var> argument indicates whether set notation, represented
using '[' and ']' characters, are recognized in the edit mask. The value is
assigned to the EnableSets property in TMaskEdit/TCustomMaskEdit. When set to
<b>False</b>, the '[' and ']' characters used in set notation are treated as
literal characters. When set to <b>True</b>, the optional or required set
definition is added to the mask. The default value for the property is
<b>False</b>.
</p>
<p>
When IsMasked is <b>False</b>, the unmodified content in <var>Value</var> is
used as the return value.
</p>
</descr>
<seealso>
<link id="TCustomMaskEdit.EditMask"/>
<link id="TCustomMaskEdit.IsMasked"/>
<link id="TCustomMaskEdit.ApplyMaskToText"/>
<link id="TCustomMaskEdit.GetTextWithoutSpaceChar"/>
</seealso>
</element>
<element name="FormatMaskText.Result">
<short>Value after applying the specified mask.</short>
</element>
<element name="FormatMaskText.AEditMask">
<short>Edit mask applied to the specified content.</short>
</element>
<element name="FormatMaskText.Value">
<short>Original content modified in the routine.</short>
</element>
<element name="FormatMaskText.EnableSets">
<short>
Enables or disables set notation in the edit mask.
</short>
</element>
<element name="SplitEditMask">
<short>
Separates fields in the edit mask into the arguments passed to the routine.
</short>
<descr>
<p>
<var>SplitEditMask</var> is a procedure used to separate fields in the edit
mask into arguments passed to the routine. <var>AEditMask</var> is the
editing mask with the delimited fields to examine the procedure. If AEditMask
contains a value like:
</p>
<code>'999.999;0;_'</code>
<p>
The procedure returns the following values in the corresponding arguments:
</p>
<dl>
<dt>
AMaskPart - Mask characters
</dt>
<dd>
'999.999'.
</dd>
<dt>
AMaskSave - Indicates if mask characters are included in the value for a
control
</dt>
<dd>False. Optional. Default value is <b>True</b>.</dd>
<dt>
ASpaceChar - Character used to represent a space in the masked value
</dt>
<dd>
'_'. Optional. Default value is DefaultBlank. Not relevant when AMaskSave is
<b>False</b>.
</dd>
</dl>
<p>
SplitEditMask is used in the implementation of the <var>SetEditMask</var>
method in <var>TCustomMaskEdit</var>.
</p>
</descr>
<seealso>
<link id="TCustomMaskEdit.EditMask"/>
</seealso>
</element>
<element name="SplitEditMask.AEditMask">
<short>Delimited mask specification examined in the method.</short>
</element>
<element name="SplitEditMask.AMaskPart">
<short>Contains the mask characters or literals in the specification.</short>
</element>
<element name="SplitEditMask.AMaskSave">
<short>Indicates if mask data is saved with the value in a control.</short>
</element>
<element name="SplitEditMask.ASpaceChar">
<short>Character representing the Space character in the masked value.</short>
</element>
<element name="Register">
<short>Registers component for use in the Lazarus IDE.</short>
<descr>
<p>
<var>Register</var> is a procedure used to register components in the
<file>maskedit.pp</file> unit for use in the Lazarus IDE. Register calls
<var>RegisterComponents</var> to add the <var>TMaskEdit</var> class to the
<b>Additional</b> tab in the Lazarus IDE.
</p>
</descr>
<seealso>
<link id="TMaskEdit"/>
<link id="#rtl.classes.RegisterComponents">RegisterComponents</link>
</seealso>
</element>
</module>
<!-- MaskEdit -->
</package>
</fpdoc-descriptions>
|