1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181
|
<html>
<head>
<title>The tablelist::tablelist Command</title>
<meta name="Author" content="Csaba Nemethi">
<meta name="Keywords" content="tablelist, multi-column, listbox, widget">
</head>
<body bgcolor="#FFFFFF">
<div align="center">
<h1>The <code><b>tablelist::tablelist</b></code> Command</h1>
<h3>by</h3>
<h2>Csaba Nemethi</h2>
<address>
<a href="mailto:csaba.nemethi@t-online.de">csaba.nemethi@t-online.de</a>
</address>
</div>
<hr>
<h2><a name="contents"></a>Contents</h2>
<ul>
<li><a href="#quick_ref">Quick Reference</a></li>
<li><a href="#detailed_ref">Detailed Reference</a></li>
</ul>
<div align="center">
<p><a href="index.html">Start page</a></p>
</div>
<hr>
<h2><a name="quick_ref"></a>Quick Reference</h2>
<dl>
<dt><a href="#name">NAME</a></dt>
<dd><code>tablelist::tablelist</code> - Create and manipulate tablelist
widgets</dd>
<dt><br>
<a href="#synopsis">SYNOPSIS</a></dt>
<dd>
<pre>
<b>tablelist::tablelist</b> <i>pathName</i> ?<i>options</i>?
</pre>
</dd>
<dt><a href="#std_options">STANDARD OPTIONS</a></dt>
<dd>
<pre>
<b>-borderwidth -highlightthickness -setgrid
-cursor -relief -xscrollcommand
-exportselection -selectbackground -yscrollcommand
-highlightbackground -selectborderwidth
-highlightcolor -selectforeground</b>
</pre>
</dd>
<dt><a href="#body_options">OPTIONS FOR THE BODY COMPONENT OF THE
WIDGET</a></dt>
<dd>
<pre>
<b>-background -disabledforeground -font -foreground</b>
</pre>
</dd>
<dt><a href="#widget_options">WIDGET-SPECIFIC OPTIONS</a></dt>
<dd><code><b><a href="#activestyle">-activestyle</a></b>
<b>frame</b>|<b>none</b>|<b>underline</b></code></dd>
<dd><code><b><a href="#arrowcolor">-arrowcolor</a></b>
<i>color</i></code></dd>
<dd><code><b><a href="#arrowstyle">-arrowstyle</a></b>
<b>flat7x4</b>|<b>flat7x5</b>|<b>flat7x7</b>|<b>flat8x5</b>|<b>flat9x5</b>|<b>sunken8x7</b>|<b>sunken10x9</b>|<b>sunken12x11</b></code></dd>
<dd><code><b><a href="#arrowdisabledcolor">-arrowdisabledcolor</a></b>
<i>color</i></code></dd>
<dd><code><b><a href="#columns">-columns</a></b> {<i>width</i> <i>title</i>
?<b>left</b>|<b>right</b>|<b>center</b>? <i>width</i> <i>title</i>
?<b>left</b>|<b>right</b>|<b>center</b>? ...}</code></dd>
<dd><code><b><a href="#editendcommand">-editendcommand</a></b>
<i>command</i></code></dd>
<dd><code><b><a href="#editstartcommand">-editstartcommand</a></b>
<i>command</i></code></dd>
<dd><code><b><a href="#forceeditendcommand">-forceeditendcommand</a></b>
<i>boolean</i></code></dd>
<dd><code><b><a href="#height">-height</a></b> <i>lines</i></code></dd>
<dd><code><b><a href="#incrarrowtype">-incrarrowtype</a></b>
<b>up</b>|<b>down</b></code></dd>
<dd><code><b><a href=
"#labelactivebackground">-labelactivebackground</a></b>
<i>color</i></code></dd>
<dd><code><b><a href=
"#labelactiveforeground">-labelactiveforeground</a></b>
<i>color</i></code></dd>
<dd><code><b><a href="#labelbackground">-labelbackground</a></b>
<i>color</i></code> or <code><b>-labelbg</b>
<i>color</i></code></dd>
<dd><code><b><a href="#labelborderwidth">-labelborderwidth</a></b>
<i>screenDistance</i></code> or <code><b>-labelbd</b>
<i>screenDistance</i></code></dd>
<dd><code><b><a href="#labelcommand">-labelcommand</a></b>
<i>command</i></code></dd>
<dd><code><b><a href="#labelcommand2">-labelcommand2</a></b>
<i>command</i></code></dd>
<dd><code><b><a href=
"#labeldisabledforeground">-labeldisabledforeground</a></b>
<i>color</i></code></dd>
<dd><code><b><a href="#labelfont">-labelfont</a></b>
<i>font</i></code></dd>
<dd><code><b><a href="#labelforeground">-labelforeground</a></b>
<i>color</i></code> or <code><b>-labelfg</b>
<i>color</i></code></dd>
<dd><code><b><a href="#labelheight">-labelheight</a></b>
<i>lines</i></code></dd>
<dd><code><b><a href="#labelpady">-labelpady</a></b>
<i>screenDistance</i></code></dd>
<dd><code><b><a href="#labelrelief">-labelrelief</a></b>
<b>raised</b>|<b>sunken</b>|<b>flat</b>|<b>ridge</b>|<b>solid</b>|<b>groove</b></code></dd>
<dd><code><b><a href="#listvariable">-listvariable</a></b>
<i>variable</i></code></dd>
<dd><code><b><a href="#movablecolumns">-movablecolumns</a></b>
<i>boolean</i></code></dd>
<dd><code><b><a href="#movablerows">-movablerows</a></b>
<i>boolean</i></code></dd>
<dd><code><b><a href="#movecolumncursor">-movecolumncursor</a></b>
<i>cursor</i></code></dd>
<dd><code><b><a href="#movecursor">-movecursor</a></b>
<i>cursor</i></code></dd>
<dd><code><b><a href="#protecttitlecolumns">-protecttitlecolumns</a></b>
<i>boolean</i></code></dd>
<dd><code><b><a href="#resizablecolumns">-resizablecolumns</a></b>
<i>boolean</i></code></dd>
<dd><code><b><a href="#resizecursor">-resizecursor</a></b>
<i>cursor</i></code></dd>
<dd><code><b><a href="#selectmode">-selectmode</a></b> <i>mode</i>
(<b>single</b>|<b>browse</b>|<b>multiple</b>|<b>extended</b>)</code></dd>
<dd><code><b><a href="#selecttype">-selecttype</a></b>
<b>row</b>|<b>cell</b></code></dd>
<dd><code><b><a href="#setfocus">-setfocus</a></b>
<i>boolean</i></code></dd>
<dd><code><b><a href="#showarrow">-showarrow</a></b>
<i>boolean</i></code></dd>
<dd><code><b><a href="#showlabels">-showlabels</a></b>
<i>boolean</i></code></dd>
<dd><code><b><a href="#showseparators">-showseparators</a></b>
<i>boolean</i></code></dd>
<dd><code><b><a href="#snipstring">-snipstring</a></b>
<i>string</i></code></dd>
<dd><code><b><a href="#sortcommand">-sortcommand</a></b>
<i>command</i></code></dd>
<dd><code><b><a href="#spacing">-spacing</a></b>
<i>screenDistance</i></code></dd>
<dd><code><b><a href="#state">-state</a></b>
<b>normal</b>|<b>disabled</b></code></dd>
<dd><code><b><a href="#stretch">-stretch</a></b>
<b>all</b>|<i>columnIndexList</i></code></dd>
<dd><code><b><a href="#stripebackground">-stripebackground</a></b>
<i>color</i></code> or <code><b>-stripebg</b>
<i>color</i></code></dd>
<dd><code><b><a href="#stripeforeground">-stripeforeground</a></b>
<i>color</i></code> or <code><b>-stripefg</b>
<i>color</i></code></dd>
<dd><code><b><a href="#stripeheight">-stripeheight</a></b>
<i>lines</i></code></dd>
<dd><code><b><a href="#takefocus">-takefocus</a></b>
<b>0</b>|<b>1</b>|<b>""</b>|<i>command</i></code></dd>
<dd><code><b><a href="#targetcolor">-targetcolor</a></b>
<i>color</i></code></dd>
<dd><code><b><a href="#titlecolumns">-titlecolumns</a></b>
<i>number</i></code></dd>
<dd><code><b><a href="#tooltipaddcommand">-tooltipaddcommand</a></b>
<i>command</i></code></dd>
<dd><code><b><a href="#tooltipdelcommand">-tooltipdelcommand</a></b>
<i>command</i></code></dd>
<dd><code><b><a href="#width">-width</a></b> <i>characters</i></code></dd>
<dt><br>
<a href="#description">DESCRIPTION</a></dt>
<dt><br>
<a href="#colors_and_fonts">COLORS AND FONTS</a></dt>
<dt><br>
<a href="#col_options">COLUMN CONFIGURATION OPTIONS</a></dt>
<dd><code><b><a href="#col_align">-align</a></b>
<b>left</b>|<b>right</b>|<b>center</b></code></dd>
<dd><code><b><a href="#col_background">-background</a></b>
<i>color</i></code> or <code><b>-bg</b>
<i>color</i></code></dd>
<dd><code><b><a href="#col_changesnipside">-changesnipside</a></b>
<i>boolean</i></code></dd>
<dd><code><b><a href="#col_editable">-editable</a></b>
<i>boolean</i></code></dd>
<dd><code><b><a href="#col_editwindow">-editwindow</a></b>
<i>name</i></code></dd>
<dd><code><b><a href="#col_font">-font</a></b> <i>font</i></code></dd>
<dd><code><b><a href="#col_foreground">-foreground</a></b>
<i>color</i></code> or <code><b>-fg</b>
<i>color</i></code></dd>
<dd><code><b><a href="#col_formatcommand">-formatcommand</a></b>
<i>command</i></code></dd>
<dd><code><b><a href="#col_hide">-hide</a></b> <i>boolean</i></code></dd>
<dd><code><b><a href="#col_labelalign">-labelalign</a></b>
<b>left</b>|<b>right</b>|<b>center</b></code></dd>
<dd><code><b><a href="#col_labelopts">-labelbackground</a></b>
<i>color</i></code> or <code><b>-labelbg</b>
<i>color</i></code></dd>
<dd><code><b><a href="#col_labelopts">-labelborderwidth</a></b>
<i>screenDistance</i></code> or <code><b>-labelbd</b>
<i>screenDistance</i></code></dd>
<dd><code><b><a href="#col_labelopts">-labelcommand</a></b>
<i>command</i></code></dd>
<dd><code><b><a href="#col_labelopts">-labelcommand2</a></b>
<i>command</i></code></dd>
<dd><code><b><a href="#col_labelopts">-labelfont</a></b>
<i>font</i></code></dd>
<dd><code><b><a href="#col_labelopts">-labelforeground</a></b>
<i>color</i></code> or <code><b>-labelfg</b>
<i>color</i></code></dd>
<dd><code><b><a href="#col_labelopts">-labelheight</a></b>
<i>lines</i></code></dd>
<dd><code><b><a href="#col_labelimage">-labelimage</a></b>
<i>image</i></code></dd>
<dd><code><b><a href="#col_labelopts">-labelpady</a></b>
<i>screenDistance</i></code></dd>
<dd><code><b><a href="#col_labelopts">-labelrelief</a></b>
<b>raised</b>|<b>sunken</b>|<b>flat</b>|<b>ridge</b>|<b>solid</b>|<b>groove</b></code></dd>
<dd><code><b><a href="#col_maxwidth">-maxwidth</a></b>
<i>width</i></code></dd>
<dd><code><b><a href="#col_name">-name</a></b> <i>name</i></code></dd>
<dd><code><b><a href="#col_resizable">-resizable</a></b>
<i>boolean</i></code></dd>
<dd><code><b><a href="#col_selectbackground">-selectbackground</a></b>
<i>color</i></code></dd>
<dd><code><b><a href="#col_selectforeground">-selectforeground</a></b>
<i>color</i></code></dd>
<dd><code><b><a href="#col_showarrow">-showarrow</a></b>
<i>boolean</i></code></dd>
<dd><code><b><a href="#col_showlinenumbers">-showlinenumbers</a></b>
<i>boolean</i></code></dd>
<dd><code><b><a href="#col_sortcommand">-sortcommand</a></b>
<i>command</i></code></dd>
<dd><code><b><a href="#col_sortmode">-sortmode</a></b>
<b>ascii</b>|<b>command</b>|<b>dictionary</b>|<b>integer</b>|<b>real</b></code></dd>
<dd><code><b><a href="#col_stretchable">-stretchable</a></b>
<i>boolean</i></code></dd>
<dd><code><b><a href="#col_text">-text</a></b> <i>list</i></code></dd>
<dd><code><b><a href="#col_title">-title</a></b> <i>title</i></code></dd>
<dd><code><b><a href="#col_width">-width</a></b> <i>width</i></code></dd>
<dd><code><b><a href="#col_wrap">-wrap</a></b> <i>boolean</i></code></dd>
<dt><br>
<a href="#row_options">ROW CONFIGURATION OPTIONS</a></dt>
<dd><code><b><a href="#row_background">-background</a></b>
<i>color</i></code> or <code><b>-bg</b>
<i>color</i></code></dd>
<dd><code><b><a href="#row_font">-font</a></b> <i>font</i></code></dd>
<dd><code><b><a href="#row_foreground">-foreground</a></b>
<i>color</i></code> or <code><b>-fg</b>
<i>color</i></code></dd>
<dd><code><b><a href="#row_hide">-hide</a></b> <i>boolean</i></code></dd>
<dd><code><b><a href="#row_name">-name</a></b> <i>name</i></code></dd>
<dd><code><b><a href="#row_selectable">-selectable</a></b>
<i>boolean</i></code></dd>
<dd><code><b><a href="#row_selectbackground">-selectbackground</a></b>
<i>color</i></code></dd>
<dd><code><b><a href="#row_selectforeground">-selectforeground</a></b>
<i>color</i></code></dd>
<dd><code><b><a href="#row_text">-text</a></b> <i>list</i></code></dd>
<dt><br>
<a href="#cell_options">CELL CONFIGURATION OPTIONS</a></dt>
<dd><code><b><a href="#cell_background">-background</a></b>
<i>color</i></code> or <code><b>-bg</b>
<i>color</i></code></dd>
<dd><code><b><a href="#cell_editable">-editable</a></b>
<i>boolean</i></code></dd>
<dd><code><b><a href="#cell_editwindow">-editwindow</a></b>
<i>name</i></code></dd>
<dd><code><b><a href="#cell_font">-font</a></b> <i>font</i></code></dd>
<dd><code><b><a href="#cell_foreground">-foreground</a></b>
<i>color</i></code> or <code><b>-fg</b>
<i>color</i></code></dd>
<dd><code><b><a href="#cell_image">-image</a></b> <i>image</i></code></dd>
<dd><code><b><a href="#cell_selectbackground">-selectbackground</a></b>
<i>color</i></code></dd>
<dd><code><b><a href="#cell_selectforeground">-selectforeground</a></b>
<i>color</i></code></dd>
<dd><code><b><a href="#cell_stretchwindow">-stretchwindow</a></b>
<i>boolean</i></code></dd>
<dd><code><b><a href="#cell_text">-text</a></b> <i>text</i></code></dd>
<dd><code><b><a href="#cell_window">-window</a></b>
<i>command</i></code></dd>
<dd><code><b><a href="#cell_windowdestroy">-windowdestroy</a></b>
<i>command</i></code></dd>
<dt><br>
<a href="#cell_editing">INTERACTIVE CELL EDITING</a></dt>
<dt><br>
<a href="#row_indices">ROW INDICES</a></dt>
<dd>
<pre>
<i>number</i> <b>k</b><i>number</i> <b>active</b> <b>anchor</b> <b>end</b> <b>@</b><i>x</i><b>,</b><i>y</i> <i>name</i>
</pre>
</dd>
<dt><a href="#col_indices">COLUMN INDICES</a></dt>
<dd>
<pre>
<i>number</i> <b>active</b> <b>anchor</b> <b>end</b> <b>@</b><i>x</i><b>,</b><i>y</i> <i>name</i>
</pre>
</dd>
<dt><a href="#cell_indices">CELL INDICES</a></dt>
<dd>
<pre>
<i>row</i><b>,</b><i>col</i> <b>active</b> <b>anchor</b> <b>end</b> <b>@</b><i>x</i><b>,</b><i>y</i>
<i>row</i>: <i>number</i> <b>k</b><i>number</i> <b>active</b> <b>anchor</b> <b>end</b> <i>name</i>
<i>col</i>: <i>number</i> <b>active</b> <b>anchor</b> <b>end</b> <i>name</i>
</pre>
</dd>
<dt><a href="#widget_command">WIDGET COMMAND</a></dt>
<dd><code><i>pathName</i> <b><a href="#activate">activate</a></b>
<i>index</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#activatecell">activatecell</a></b>
<i>cellIndex</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#attrib">attrib</a></b> ?<i>name</i>?
?<i>value</i> <i>name</i> <i>value</i> ...?</code></dd>
<dd><code><i>pathName</i> <b><a href="#bbox">bbox</a></b>
<i>index</i></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#bodypath">bodypath</a></b></code></dd>
<dd><code><i>pathName</i> <b><a href="#bodytag">bodytag</a></b></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#cancelediting">cancelediting</a></b></code></dd>
<dd><code><i>pathName</i> <b><a href="#cellattrib">cellattrib</a></b>
<i>cellIndex</i> ?<i>name</i>? ?<i>value</i> <i>name</i> <i>value</i>
...?</code></dd>
<dd><code><i>pathName</i> <b><a href="#cellcget">cellcget</a></b>
<i>cellIndex</i> <i>option</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#cellconfigure">cellconfigure</a></b>
<i>cellIndex</i> ?<i>option</i>? ?<i>value</i> <i>option</i> <i>value</i>
...?</code></dd>
<dd><code><i>pathName</i> <b><a href="#cellindex">cellindex</a></b>
<i>cellIndex</i></code></dd>
<dd>
<code><i>pathName</i> <b><a href="#cellselection">cellselection</a></b>
<i>option</i> <i>args</i></code>
<dl>
<dd><code><i>pathName</i> <b>cellselection</b> <b>anchor</b>
<i>cellIndex</i></code></dd>
<dd><code><i>pathName</i> <b>cellselection</b> <b>clear</b>
<i>firstCell</i> <i>lastCell</i></code></dd>
<dd><code><i>pathName</i> <b>cellselection</b> <b>clear</b>
<i>cellIndexList</i></code></dd>
<dd><code><i>pathName</i> <b>cellselection</b> <b>includes</b>
<i>cellIndex</i></code></dd>
<dd><code><i>pathName</i> <b>cellselection</b> <b>set</b>
<i>firstCell</i> <i>lastCell</i></code></dd>
<dd><code><i>pathName</i> <b>cellselection</b> <b>set</b>
<i>cellIndexList</i></code></dd>
</dl>
</dd>
<dd><code><i>pathName</i> <b><a href="#cget">cget</a></b>
<i>option</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#columnattrib">columnattrib</a></b>
<i>columnIndex</i> ?<i>name</i>? ?<i>value</i> <i>name</i> <i>value</i>
...?</code></dd>
<dd><code><i>pathName</i> <b><a href="#columncget">columncget</a></b>
<i>columnIndex</i> <i>option</i></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#columnconfigure">columnconfigure</a></b> <i>columnIndex</i>
?<i>option</i>? ?<i>value</i> <i>option</i> <i>value</i> ...?</code></dd>
<dd><code><i>pathName</i> <b><a href=
"#columncount">columncount</a></b></code></dd>
<dd><code><i>pathName</i> <b><a href="#columnindex">columnindex</a></b>
<i>columnIndex</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#columnwidth">columnwidth</a></b>
<i>columnIndex</i>
?<b>-requested</b>|<b>-stretched</b>|<b>-total</b>?</code></dd>
<dd><code><i>pathName</i> <b><a href=
"#configcelllist">configcelllist</a></b> {<i>cellIndex</i> <i>option</i>
<i>value</i> <i>cellIndex</i> <i>option</i> <i>value</i> ...}</code></dd>
<dd><code><i>pathName</i> <b><a href="#configcells">configcells</a></b>
?<i>cellIndex</i> <i>option</i> <i>value</i> <i>cellIndex</i> <i>option</i>
<i>value</i> ...?</code></dd>
<dd><code><i>pathName</i> <b><a href=
"#configcolumnlist">configcolumnlist</a></b> {<i>columnIndex</i>
<i>option</i> <i>value</i> <i>columnIndex</i> <i>option</i> <i>value</i>
...}</code></dd>
<dd><code><i>pathName</i> <b><a href="#configcolumns">configcolumns</a></b>
?<i>columnIndex</i> <i>option</i> <i>value</i> <i>columnIndex</i>
<i>option</i> <i>value</i> ...?</code></dd>
<dd><code><i>pathName</i> <b><a href="#configrowlist">configrowlist</a></b>
{<i>index</i> <i>option</i> <i>value</i> <i>index</i> <i>option</i>
<i>value</i> ...}</code></dd>
<dd><code><i>pathName</i> <b><a href="#configrows">configrows</a></b>
?<i>index</i> <i>option</i> <i>value</i> <i>index</i> <i>option</i>
<i>value</i> ...?</code></dd>
<dd><code><i>pathName</i> <b><a href="#configure">configure</a></b>
?<i>option</i>? ?<i>value</i> <i>option</i> <i>value</i> ...?</code></dd>
<dd><code><i>pathName</i> <b><a href="#containing">containing</a></b>
<i>y</i></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#containingcell">containingcell</a></b> <i>x</i> <i>y</i></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#containingcolumn">containingcolumn</a></b> <i>x</i></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#curcellselection">curcellselection</a></b></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#curselection">curselection</a></b></code></dd>
<dd><code><i>pathName</i> <b><a href="#delete">delete</a></b> <i>first</i>
<i>last</i></code><br></dd>
<dd><code><i>pathName</i> <b><a href="#delete">delete</a></b>
<i>indexList</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#deletecolumns">deletecolumns</a></b>
<i>firstColumn</i> <i>lastColumn</i></code><br></dd>
<dd><code><i>pathName</i> <b><a href="#deletecolumns">deletecolumns</a></b>
<i>columnIndexList</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#editcell">editcell</a></b>
<i>cellIndex</i></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#editwintag">editwintag</a></b></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#editwinpath">editwinpath</a></b></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#entrypath">entrypath</a></b></code></dd>
<dd><code><i>pathName</i> <b><a href="#fillcolumn">fillcolumn</a></b>
<i>columnIndex</i> <i>text</i></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#finishediting">finishediting</a></b></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#formatinfo">formatinfo</a></b></code></dd>
<dd><code><i>pathName</i> <b><a href="#get">get</a></b> <i>first</i>
<i>last</i></code><br></dd>
<dd><code><i>pathName</i> <b><a href="#get">get</a></b>
<i>indexList</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#getcells">getcells</a></b>
<i>firstCell</i> <i>lastCell</i></code><br></dd>
<dd><code><i>pathName</i> <b><a href="#getcells">getcells</a></b>
<i>cellIndexList</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#getcolumns">getcolumns</a></b>
<i>firstColumn</i> <i>lastColumn</i></code><br></dd>
<dd><code><i>pathName</i> <b><a href="#getcolumns">getcolumns</a></b>
<i>columnIndexList</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#getkeys">getkeys</a></b>
<i>first</i> <i>last</i></code><br></dd>
<dd><code><i>pathName</i> <b><a href="#getkeys">getkeys</a></b>
<i>indexList</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hasattrib">hasattrib</a></b>
<i>name</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hascellattrib">hascellattrib</a></b>
<i>cellIndex</i> <i>name</i></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#hascolumnattrib">hascolumnattrib</a></b> <i>columnIndex</i>
<i>name</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hasrowattrib">hasrowattrib</a></b>
<i>index</i> <i>name</i></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#imagelabelpath">imagelabelpath</a></b> <i>cellIndex</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#index">index</a></b>
<i>index</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#insert">insert</a></b> <i>index</i>
?<i>item</i> <i>item</i> ...?</code></dd>
<dd><code><i>pathName</i> <b><a href=
"#insertcolumnlist">insertcolumnlist</a></b> <i>columnIndex</i>
{<i>width</i> <i>title</i> ?<b>left</b>|<b>right</b>|<b>center</b>?
<i>width</i> <i>title</i> ?<b>left</b>|<b>right</b>|<b>center</b>?
...}</code></dd>
<dd><code><i>pathName</i> <b><a href="#insertcolumns">insertcolumns</a></b>
<i>columnIndex</i> ?<i>width</i> <i>title</i>
?<b>left</b>|<b>right</b>|<b>center</b>? <i>width</i> <i>title</i>
?<b>left</b>|<b>right</b>|<b>center</b>? ...?</code></dd>
<dd><code><i>pathName</i> <b><a href="#insertlist">insertlist</a></b>
<i>index</i> <i>itemList</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#iselemsnipped">iselemsnipped</a></b>
<i>cellIndex</i> <i>fullTextName</i></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#istitlesnipped">istitlesnipped</a></b> <i>columnIndex</i>
<i>fullTextName</i></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#itemlistvar">itemlistvar</a></b></code></dd>
<dd><code><i>pathName</i> <b><a href="#labelpath">labelpath</a></b>
<i>columnIndex</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#labels">labels</a></b></code></dd>
<dd><code><i>pathName</i> <b><a href="#move">move</a></b> <i>source</i>
<i>target</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#movecolumn">movecolumn</a></b>
<i>sourceColumn</i> <i>targetColumn</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#nearest">nearest</a></b>
<i>y</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#nearestcell">nearestcell</a></b>
<i>x</i> <i>y</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#nearestcolumn">nearestcolumn</a></b>
<i>x</i></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#rejectinput">rejectinput</a></b></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#resetsortinfo">resetsortinfo</a></b></code></dd>
<dd><code><i>pathName</i> <b><a href="#rowattrib">rowattrib</a></b>
<i>index</i> ?<i>name</i>? ?<i>value</i> <i>name</i> <i>value</i>
...?</code></dd>
<dd><code><i>pathName</i> <b><a href="#rowcget">rowcget</a></b>
<i>index</i> <i>option</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#rowconfigure">rowconfigure</a></b>
<i>index</i> ?<i>option</i>? ?<i>value</i> <i>option</i> <i>value</i>
...?</code></dd>
<dd><code><i>pathName</i> <b><a href="#scan">scan</a></b>
<b>mark</b>|<b>dragto</b> <i>x</i> <i>y</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#see">see</a></b>
<i>index</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#seecell">seecell</a></b>
<i>cellIndex</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#seecolumn">seecolumn</a></b>
<i>columnIndex</i></code></dd>
<dd>
<code><i>pathName</i> <b><a href="#selection">selection</a></b>
<i>option</i> <i>args</i></code>
<dl>
<dd><code><i>pathName</i> <b>selection</b> <b>anchor</b>
<i>index</i></code></dd>
<dd><code><i>pathName</i> <b>selection</b> <b>clear</b> <i>first</i>
<i>last</i></code></dd>
<dd><code><i>pathName</i> <b>selection</b> <b>clear</b>
<i>indexList</i></code></dd>
<dd><code><i>pathName</i> <b>selection</b> <b>includes</b>
<i>index</i></code></dd>
<dd><code><i>pathName</i> <b>selection</b> <b>set</b> <i>first</i>
<i>last</i></code></dd>
<dd><code><i>pathName</i> <b>selection</b> <b>set</b>
<i>indexList</i></code></dd>
</dl>
</dd>
<dd><code><i>pathName</i> <b><a href="#separatorpath">separatorpath</a></b>
?<i>columnIndex</i>?</code></dd>
<dd><code><i>pathName</i> <b><a href=
"#separators">separators</a></b></code></dd>
<dd><code><i>pathName</i> <b><a href="#size">size</a></b></code></dd>
<dd><code><i>pathName</i> <b><a href="#sort">sort</a></b>
?<b>-increasing</b>|<b>-decreasing</b>?</code></dd>
<dd><code><i>pathName</i> <b><a href="#sortbycolumn">sortbycolumn</a></b>
<i>columnIndex</i> ?<b>-increasing</b>|<b>-decreasing</b>?</code></dd>
<dd><code><i>pathName</i> <b><a href=
"#sortbycolumnlist">sortbycolumnlist</a></b> <i>columnIndexList</i>
?<i>sortOrderList</i>?</code></dd>
<dd><code><i>pathName</i> <b><a href=
"#sortcolumn">sortcolumn</a></b></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#sortcolumnlist">sortcolumnlist</a></b></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#sortorder">sortorder</a></b></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#sortorderlist">sortorderlist</a></b></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#togglecolumnhide">togglecolumnhide</a></b> <i>firstColumn</i>
<i>lastColumn</i></code><br></dd>
<dd><code><i>pathName</i> <b><a href=
"#togglecolumnhide">togglecolumnhide</a></b>
<i>columnIndexList</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#togglerowhide">togglerowhide</a></b>
<i>first</i> <i>last</i></code><br></dd>
<dd><code><i>pathName</i> <b><a href="#togglerowhide">togglerowhide</a></b>
<i>indexList</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#unsetattrib">unsetattrib</a></b>
<i>name</i></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#unsetcellattrib">unsetcellattrib</a></b> <i>cellIndex</i>
<i>name</i></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#unsetcolumnattrib">unsetcolumnattrib</a></b> <i>columnIndex</i>
<i>name</i></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#unsetrowattrib">unsetrowattrib</a></b> <i>index</i>
<i>name</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#windowpath">windowpath</a></b>
<i>cellIndex</i></code></dd>
<dd>
<code><i>pathName</i> <b><a href="#xview">xview</a></b>
<i>args</i></code>
<dl>
<dd><code><i>pathName</i> <b>xview</b></code></dd>
<dd><code><i>pathName</i> <b>xview</b> <i>units</i></code></dd>
<dd><code><i>pathName</i> <b>xview</b> <b>moveto</b>
<i>fraction</i></code></dd>
<dd><code><i>pathName</i> <b>xview</b> <b>scroll</b> <i>number</i>
<b>units</b>|<b>pages</b></code></dd>
</dl>
</dd>
<dd>
<code><i>pathName</i> <b><a href="#yview">yview</a></b>
<i>args</i></code>
<dl>
<dd><code><i>pathName</i> <b>yview</b></code></dd>
<dd><code><i>pathName</i> <b>yview</b> <i>units</i></code></dd>
<dd><code><i>pathName</i> <b>yview</b> <b>moveto</b>
<i>fraction</i></code></dd>
<dd><code><i>pathName</i> <b>yview</b> <b>scroll</b> <i>number</i>
<b>units</b>|<b>pages</b></code></dd>
</dl>
</dd>
<dt><br>
<a href="#body_bindings">DEFAULT AND INDIVIDUAL BINDINGS FOR THE TABLELIST
BODY</a></dt>
<dt><br>
<a href="#label_bindings">DEFAULT BINDINGS FOR THE HEADER LABELS</a></dt>
<dt><br>
<a href="#edit_bindings">DEFAULT BINDINGS FOR INTERACTIVE CELL
EDITING</a></dt>
<dt><br>
<a href="#keywords">KEYWORDS</a></dt>
<dd>tablelist, multi-column, listbox, widget</dd>
</dl>
<div align="center">
<p><a href="#contents">Contents</a> <a href=
"index.html">Start page</a></p>
</div>
<hr>
<h2><a name="detailed_ref"></a>Detailed Reference</h2>
<dl>
<dt><a name="name"></a><b>NAME</b></dt>
<dd><code>tablelist::tablelist</code> - Create and manipulate tablelist
widgets</dd>
<dt><br>
<a name="synopsis"></a><b>SYNOPSIS</b></dt>
<dd>
<pre>
<b>tablelist::tablelist</b> <i>pathName</i> ?<i>options</i>?
</pre>
</dd>
<dt><a name="std_options"></a><b>STANDARD OPTIONS</b></dt>
<dd>
<pre>
<b>-borderwidth -highlightthickness -setgrid
-cursor -relief -xscrollcommand
-exportselection -selectbackground -yscrollcommand
-highlightbackground -selectborderwidth
-highlightcolor -selectforeground</b>
</pre>
</dd>
<dd>See the <b>options</b> manual entry for details on the standard
options. The <code><b>-highlightbackground</b></code>,
<code><b>-highlightcolor</b></code>, and
<code><b>-highlightthickness</b></code> options are only supported by the
Tablelist package, but not by Tablelist_tile. When using the package
Tablelist_tile, the options <code><b>-selectbackground</b></code>,
<code><b>-selectborderwidth</b></code>, and
<code><b>-selectforeground</b></code> have theme-specific default
values.</dd>
<dt><br>
<a name="body_options"></a><b>OPTIONS FOR THE BODY COMPONENT OF THE
WIDGET</b></dt>
<dd>
<pre>
<b>-background -disabledforeground -font -foreground</b>
</pre>
</dd>
<dd>These options (described in the <b>options</b> manual entry) are only
valid for the body component of the tablelist widget. As discussed in
the next section, the colors and font used when drawing the header labels
can be different from those specified for the body. When using the
package Tablelist_tile, these options have theme-specific default
values.</dd>
<dt><br>
<a name="widget_options"></a><b>WIDGET-SPECIFIC OPTIONS</b></dt>
<dd>
<br>
<a name="activestyle"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-activestyle</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> activeStyle</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> ActiveStyle</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies how to diplay the active item or element (depending on the
value of the <code><b><a href="selecttype">-selecttype</a></b></code>
configuration option) when the tablelist has the keyboard focus.
The allowed values are <code><b>frame</b></code>,
<code><b>none</b></code>, and <code><b>underline</b></code>. The
default value <code><b>frame</b></code> shows a thin frame around the
active item or element, which in most cases looks nice. It looks
less pretty when applied to the active item if the background color of
some of its cells was changed by using the <code><b><a href=
"#columnconfigure">columnconfigure</a></b></code> or <code><b><a href=
"#cellconfigure">cellconfigure</a></b></code> widget command and no
column separators are shown. The value <code><b>none</b></code>
specifies that no special indication of the active item or element is
to be performed. The value <code><b>underline</b></code> produces
the same visual effect as in the case of the Tk core listbox.</p>
</blockquote>
</dd>
<dd>
<a name="arrowcolor"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-arrowcolor</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> arrowColor</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> ArrowColor</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies the color to use for the up- or down-arrow placed into a
column label by the <code><b><a href=
"#sortbycolumn">sortbycolumn</a></b></code> or <code><b><a href=
"#sortbycolumnlist">sortbycolumnlist</a></b></code> subcommand of the
Tcl command associated with the widget. This option is only
relevant if the value of the <code><b><a href=
"#showarrow">-showarrow</a></b></code> option is true. The
default value depends on the windowing system in the Tablelist package
and on the current theme in Tablelist_tile. For example, if the
windowing system is <code><b>x11</b></code> then the default is an
empty string, indicating that the arrow will inherit the background
color of the label in which it is placed (but is distinguishable from
the latter, due to its 3-D border and sunken relief, because in this
case the <code><b><a href="#arrowstyle">-arrowstyle</a></b></code>
option has the default value <code><b>sunken10x9</b></code>). On
the windowing system <code><b>win32</b></code>, the default arrow color
is <code>#aca899</code> for Windows XP and an empty string for older
Windows versions, paired with the default arrow style
<code><b>flat9x5</b></code> and <code><b>sunken8x7</b></code>,
respectively. Finally, for the windowing systems
<code><b>classic</b></code> and <code><b>aqua</b></code> on the
Macintosh, the default arrow color is <code>#777777</code> and the
default arrow style is <code><b>flat7x7</b></code>.</p>
</blockquote>
</dd>
<dd>
<a name="arrowstyle"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-arrowstyle</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> arrowStyle</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> ArrowStyle</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies the relief, width, and height of the up- or down-arrow
placed into a column label by the <code><b><a href=
"#sortbycolumn">sortbycolumn</a></b></code> or <code><b><a href=
"#sortbycolumnlist">sortbycolumnlist</a></b></code> subcommand of the
Tcl command associated with the widget. This option is only
relevant if the value of the <code><b><a href=
"#showarrow">-showarrow</a></b></code> option is true. The
currently supported values are <code><b>flat7x4</b></code>,
<code><b>flat7x5</b></code>, <code><b>flat7x7</b></code>,
<code><b>flat8x5</b></code>, <code><b>flat9x5</b></code>,
<code><b>sunken8x7</b></code>, <code><b>sunken10x9</b></code>, and
<code><b>sunken12x11</b></code>. The default value depends on the
windowing system in the Tablelist package and on the current theme in
Tablelist_tile; see the description of the <code><b><a href=
"#arrowcolor">-arrowcolor</a></b></code> option for details.</p>
</blockquote>
</dd>
<dd>
<a name="arrowdisabledcolor"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-arrowdisabledcolor</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> arrowDisabledColor</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> ArrowDisabledColor</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies the color to use for the up- or down-arrow placed into a
column label by the <code><b><a href=
"#sortbycolumn">sortbycolumn</a></b></code> or <code><b><a href=
"#sortbycolumnlist">sortbycolumnlist</a></b></code> subcommand of the
Tcl command associated with the widget when the tablelist's
<code><b><a href="#state">state</a></b></code> is
<code><b>disabled</b></code>. This option is only relevant if the
value of the <code><b><a href="#showarrow">-showarrow</a></b></code>
option is true. When the default value of the <code><b><a href=
"#arrowcolor">-arrowcolor</a></b></code> option is an empty string then
this is the default for the <code><b>-arrowdisabledcolor</b></code>
option, too; otherwise the latter's default value equals the default
foreground color of the header labels in <code><b>disabled</b></code>
state.</p>
</blockquote>
</dd>
<dd>
<a name="columns"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-columns</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> columns</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> Columns</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies the widths, titles, and alignments of the columns.
The option's value must be a list of the form</p>
<blockquote>
<pre>
<i>width</i> <i>title</i> ?<i>alignment</i>? <i>width</i> <i>title</i> ?<i>alignment</i>? ...
</pre>
</blockquote>
<p>Each <code><i>width</i></code> must be a number. A positive
value specifies the column's width in average-size characters of the
widget's font. If <code><i>width</i></code> is negative, its
absolute value is interpreted as a column width in pixels.
Finally, a value of zero specifies that the column's width is to be
made just large enough to hold all the elements in the column,
including its header (but no larger than the maximum width indicated by
the <code><b><a href="#col_maxwidth">-maxwidth</a></b></code> column
configuration option). In all three cases, the effective column
width will be somewhat greater because of the margins created
automatically to the left and right of the column.</p>
<p>Each <code><i>title</i></code> specifies the text to be displayed in
the column's header, and may optionally be followed in the next list
element by an <code><i>alignment</i></code>, which specifies how to
align the elements of the column. Each
<code><i>alignment</i></code> must be one of <code><b>left</b></code>,
<code><b>right</b></code>, or <code><b>center</b></code>. The
default is <code><b>left</b></code>. The
<code><i>alignment</i></code> also refers to the column's title as long
as the <code><b><a href="#col_labelalign">-labelalign</a></b></code>
option hasn't been specified for that column, or if its value is an
empty string.</p>
<p>The default value of this option is an empty list, specifying that
initially the widget has no columns.</p>
<p><b>REMARK:</b> Whenever possible, you should specify the value
zero for the column widths, i.e., use <b>dynamic-width</b>
columns. Besides being more user-friendly, dynamic-width columns
have the main advantage that they increase the performance of the item
insertion and sorting quite significantly.</p>
</blockquote>
</dd>
<dd>
<a name="editendcommand"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-editendcommand</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> editEndCommand</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> EditEndCommand</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies a Tcl command to be invoked on normal termination of the
interactive editing of a cell's contents if the final text of the
temporary embedded widget used for the editing is different from its
initial one. The command is automatically concatenated with the
name of the tablelist widget, the cell's row and column indices, as
well as the final contents of the edit window, the resulting script is
evaluated in the global scope, and the return value becomes the cell's
new contents after destroying the temporary embedded widget. The
main purpose of this script is to perform a final validation of the
edit window's contents. See the description of the
<code><b><a href=
"#forceeditendcommand">-forceeditendcommand</a></b></code> option for
more about the invocation of the command mentioned above, as well as
the <a href="#cell_editing">INTERACTIVE CELL EDITING</a> section for
details on the editing process.</p>
</blockquote>
</dd>
<dd>
<a name="editstartcommand"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-editstartcommand</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> editStartCommand</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> EditStartCommand</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies a Tcl command to be invoked when the interactive editing
of a cell's contents is started. The command is automatically
concatenated with the name of the tablelist widget, the cell's row and
column indices, as well as the text displayed in the cell, the
resulting script is evaluated in the global scope, and the return value
becomes the initial contents of the temporary embedded widget used for
the editing. The main purpose of this script is to define
validations for the edit window's contents. See the <a href=
"#cell_editing">INTERACTIVE CELL EDITING</a> section for details on the
editing process.</p>
</blockquote>
</dd>
<dd>
<a name="forceeditendcommand"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-forceeditendcommand</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> forceEditEndCommand</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> ForceEditEndCommand</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies a boolean value that controls the invocation of the
command given by the the <code><b><a href=
"#editendcommand">-editendcommand</a></b></code> option. If this
value is true then the command will be invoked on normal termination of
the editing process even if the final text of the temporary embedded
widget used for the editing equals its initial one, and will also be
invoked when the interactive cell editing is canceled (in the latter
case, the text passed to it as last argument will be the cell's
original contents, not its final one). The default value of this
option is <code>0</code>, meaning that the command will only be invoked
on normal termination of the editing process, if the final text of the
temporary embedded widget is different from its initial one. See
the <a href="#cell_editing">INTERACTIVE CELL EDITING</a> section for
details on the editing process.</p>
<p>Setting this option to true enables you to execute an arbitrary
action whenever the interactive cell editing is finished. Just
binding a script to the <code><b><Destroy></b></code> event for
the temporary embedded widget used for the editing won't work, because
that widget might be destroyed and recreated automatically under
various circumstances. Alternately, you can use the
<code><b><<TablelistCellUpdated>></b></code> and
<code><b><<TablelistCellRestored>></b></code> virtual
events, generated by the <code><b><a href=
"#finishediting">finishediting</a></b></code> and <code><b><a href=
"#cancelediting">cancelediting</a></b></code> subcommands,
respectively.</p>
</blockquote>
</dd>
<dd>
<a name="height"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-height</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> height</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> Height</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies the desired height for the window, in lines. If zero
or less then the desired height for the window is made just large
enough to hold the header and all the items in the tablelist widget,
provided that no column-, row-, or cell-specific fonts are used and no
embedded images or windows are displayed in the widget's cells.</p>
</blockquote>
</dd>
<dd>
<a name="incrarrowtype"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-incrarrowtype</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> incrArrowType</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> IncrArrowType</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies the type of the arrow placed into a column label when
sorting the items based on that column in increasing order, with the
aid of the <code><b><a href="#sortbycolumn">sortbycolumn</a></b></code>
or <code><b><a href="#sortbycolumnlist">sortbycolumnlist</a></b></code>
subcommand of the Tcl command associated with the widget. The
value of this option must be one of <code><b>up</b></code> or
<code><b>down</b></code>. The default is
<code><b>up</b></code>. This option is only relevant if the value
of the <code><b><a href="#showarrow">-showarrow</a></b></code> option
is true.</p>
</blockquote>
</dd>
<dd>
<a name="labelactivebackground"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-labelactivebackground</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> labelActiveBackground</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> Foreground</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies the <code><b>-activebackground</b></code> option for the
header labels, i.e., the background color to use when the mouse cursor
is positioned over a header label and the value of
<code><b>tk_strictMotif</b></code> is false. This option is only
defined in the Tablelist package if the Tk version being used supports
the <code><b>-activebackground</b></code> option for label
widgets. This is checked by Tablelist at initialization time, and
will normally be the case for Tk versions 8.3.2 or higher. On the
other hand, the Tablelist_tile package doesn't support the
<code><b>-labelactivebackground</b></code> option.</p>
</blockquote>
</dd>
<dd>
<a name="labelactiveforeground"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-labelactiveforeground</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> labelActiveForeground</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> Background</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies the <code><b>-activeforeground</b></code> option for the
header labels, i.e., the foreground color to use when the mouse cursor
is positioned over a header label and the value of
<code><b>tk_strictMotif</b></code> is false. This option is only
defined in the Tablelist package if the Tk version being used supports
the <code><b>-activeforeground</b></code> option for label
widgets. This is checked by Tablelist at initialization time, and
will normally be the case for Tk versions 8.3.2 or higher. On the
other hand, the Tablelist_tile package doesn't support the
<code><b>-labelactiveforeground</b></code> option.</p>
</blockquote>
</dd>
<dd>
<a name="labelbackground"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-labelbackground</b></code> or
<code><b>-labelbg</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> labelBackground</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> Background</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies the <code><b>-background</b></code> option for the header
labels. In the package Tablelist_tile this option has a
theme-specific default value.</p>
</blockquote>
</dd>
<dd>
<a name="labelborderwidth"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-labelborderwidth</b></code> or
<code><b>-labelbd</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> labelBorderWidth</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> BorderWidth</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies the <code><b>-borderwidth</b></code> option for the header
labels. This option is different from the standard
<code><b>-borderwidth</b></code> option defined for the tablelist
widget itself. In the package Tablelist_tile this option has a
theme-specific default value.</p>
</blockquote>
</dd>
<dd>
<a name="labelcommand"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-labelcommand</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> labelCommand</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> LabelCommand</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies the Tcl command to be invoked when mouse button 1 is
pressed over one of the header labels and later released over the same
label. When the <code><b><ButtonRelease-1></b></code> event
occurs, the command is automatically concatenated with the name of the
tablelist widget and the column index of the respective label, and the
resulting script is evaluated in the global scope. If the
tablelist's <code><b><a href="#state">state</a></b></code> is
<code><b>disabled</b></code> then this action will not take
place. The most common value of this option is <code><b><a href=
"tablelistColSort.html#sortByColumn">tablelist::sortByColumn</a></b></code>;
this command sorts the items based on the column whose index was passed
to it as second argument.</p>
</blockquote>
</dd>
<dd>
<a name="labelcommand2"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-labelcommand2</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> labelCommand2</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> LabelCommand2</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies the Tcl command to be invoked when mouse button 1 is
pressed together with the <code>Shift</code> key over one of the header
labels and later released over the same label. When the
<code><b><ButtonRelease-1></b></code> event occurs, the command
is automatically concatenated with the name of the tablelist widget and
the column index of the respective label, and the resulting script is
evaluated in the global scope. If the tablelist's
<code><b><a href="#state">state</a></b></code> is
<code><b>disabled</b></code> then this action will not take
place. The most common value of this option is <code><b><a href=
"tablelistColSort.html#addToSortColumns">tablelist::addToSortColumns</a></b></code>;
this command adds the column index passed to it as second argument to
the list of sort columns and sorts the items based on the columns
indicated by the modified list.</p>
</blockquote>
</dd>
<dd>
<a name="labeldisabledforeground"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-labeldisabledforeground</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> labelDisabledForeground</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> DisabledForeground</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies the <code><b>-disabledforeground</b></code> option for the
header labels, i.e., the foreground color to use for the labels when
the tablelist's <code><b><a href="#state">state</a></b></code> is
<code><b>disabled</b></code>. This option is only defined in the
Tablelist package if the Tk version being used supports the
<code><b>-disabledforeground</b></code> option for label widgets.
This is checked by Tablelist at initialization time, and will normally
be the case for Tk versions 8.3.1 or higher. On the other hand,
the Tablelist_tile package doesn't support the
<code><b>-labeldisabledforeground</b></code> option.</p>
</blockquote>
</dd>
<dd>
<a name="labelfont"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-labelfont</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> labelFont</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> Font</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies the <code><b>-font</b></code> option for the header
labels. In the package Tablelist_tile this option has a
theme-specific default value.</p>
</blockquote>
</dd>
<dd>
<a name="labelforeground"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-labelforeground</b></code> or
<code><b>-labelfg</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> labelForeground</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> Foreground</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies the <code><b>-foreground</b></code> option for the header
labels. In the package Tablelist_tile this option has a
theme-specific default value.</p>
</blockquote>
</dd>
<dd>
<a name="labelheight"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-labelheight</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> labelHeight</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> Height</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies the <code><b>-height</b></code> option for the header
labels. This option is only supported by the Tablelist package,
but not by Tablelist_tile.</p>
</blockquote>
</dd>
<dd>
<a name="labelpady"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-labelpady</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> labelPadY</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> Pad</b></code></td>
</tr>
</table>
<blockquote>
<p>In the Tablelist package this option specifies the
<code><b>-pady</b></code> configuration option for the header
labels. In the Tablelist_tile package the value of the
<code><b>-labelpady</b></code> option is mapped to the corresponding
components of the value of the <code><b>-padding</b></code>
configuration option of the header labels, and the
<code><b>-labelpady</b></code> option has a theme-specific default
value.</p>
</blockquote>
</dd>
<dd>
<a name="labelrelief"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-labelrelief</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> labelRelief</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> Relief</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies the <code><b>-relief</b></code> option for the header
labels. This option is different from the standard
<code><b>-relief</b></code> option defined for the tablelist widget
itself. The default value is <code><b>raised</b></code>.</p>
</blockquote>
</dd>
<dd>
<a name="listvariable"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-listvariable</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> listVariable</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> Variable</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies the name of a variable. The value of the variable is
a list to be displayed inside the widget; if the variable value changes
then the widget will automatically update itself to reflect the new
value. The value of the variable must be a valid list. Each
list element corresponds to a row within the widget, and must be a
valid list itself; its elements correspond to the cells within the
respective row. Attempts to assign a variable whose value does
not fulfil these conditions to <code><b>-listvariable</b></code> will
cause an error. Attempts to unset a variable in use as a
<code><b>-listvariable</b></code> will fail but will not generate an
error.</p>
<p><b>REMARK:</b> For increased efficiency, updating the widget
to reflect a changed value of the variable specified with this option
is, whenever possible, done at idle time (i.e., when there are no
events to process). On the other hand, most tablelist subcommands
make it necessary to perform an <i>immediate</i> update of the widget's
internal list according to the value of this variable, before executing
the subcommand in question. Doing this repeatedly can become
quite inefficient. To avoid performance problems, you should
always try to separate the operations that build up the value of the
variable specified by this option from other commands. For
example, instead of</p>
<blockquote>
<pre>
tablelist::tablelist .tbl ... -listvariable var
set var {}
for {set row 0} {$row < 1000} {incr row} {
lappend var ...
.tbl cellconfigure $row,3 -image ...
}
</pre>
</blockquote>
<p>you should write</p>
<blockquote>
<pre>
tablelist::tablelist .tbl ... -listvariable var
set var {}
for {set row 0} {$row < 1000} {incr row} {
lappend var ...
}
for {set row 0} {$row < 1000} {incr row} {
.tbl cellconfigure $row,3 -image ...
}
</pre>
</blockquote>
<p>The first method above is quite inefficient, because it requires
1000 updates of the widget's internal list. The second method
performs incomparably faster, because it needs only one synchronization
(at the beginning of the second loop).</p>
</blockquote>
</dd>
<dd>
<a name="movablecolumns"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-movablecolumns</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> movableColumns</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> MovableColumns</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies a boolean value that determines whether the columns can be
moved interactively. See the <a href="#label_bindings">DEFAULT
BINDINGS FOR THE HEADER LABELS</a> section below for information on
moving a column interactively. The default value is
<code>0</code>.</p>
</blockquote>
</dd>
<dd>
<a name="movablerows"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-movablerows</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> movableRows</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> MovableRows</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies a boolean value that determines whether the rows can be
moved interactively. See the <a href="#body_bindings">DEFAULT AND
INDIVIDUAL BINDINGS FOR THE TABLELIST BODY</a> section below for
information on moving a row interactively. The default value is
<code>0</code>.</p>
</blockquote>
</dd>
<dd>
<a name="movecolumncursor"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-movecolumncursor</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> moveColumnCursor</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> MoveColumnCursor</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies the mouse cursor to be used when moving a column
interactively. The default value is <code><b>icon</b></code>.</p>
</blockquote>
</dd>
<dd>
<a name="movecursor"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-movecursor</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> moveCursor</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> MoveCursor</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies the mouse cursor to be used when moving a row
interactively. The default value is
<code><b>hand2</b></code>.</p>
</blockquote>
</dd>
<dd>
<a name="protecttitlecolumns"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-protecttitlecolumns</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> protectTitleColumns</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> ProtectTitleColumns</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies a boolean value that determines whether the boundary of
the title column area shall be protected from being crossed when moving
a column interactively. See the <a href="#label_bindings">DEFAULT
BINDINGS FOR THE HEADER LABELS</a> section below for information on
moving a column interactively. The default value is
<code>0</code>, specifying that non-title columns can be moved into the
title column area and vice-versa.</p>
</blockquote>
</dd>
<dd>
<a name="resizablecolumns"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-resizablecolumns</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> resizableColumns</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> ResizableColumns</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies a boolean value that determines whether the columns can be
resized interactively. See the <a href="#label_bindings">DEFAULT
BINDINGS FOR THE HEADER LABELS</a> section below for information on
interactive column resizing. The default value is
<code>1</code>.</p>
</blockquote>
</dd>
<dd>
<a name="resizecursor"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-resizecursor</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> resizeCursor</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> ResizeCursor</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies the mouse cursor to be used during interactive column
resizing. The default value is
<code><b>sb_h_double_arrow</b></code>.</p>
</blockquote>
</dd>
<dd>
<a name="selectmode"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-selectmode</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> selectMode</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> SelectMode</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies one of several styles for manipulating the
selection. The value of the option may be arbitrary, but the
default bindings expect it to be either <code><b>single</b></code>,
<code><b>browse</b></code>, <code><b>multiple</b></code>, or
<code><b>extended</b></code>. The default value is
<code><b>browse</b></code>.</p>
</blockquote>
</dd>
<dd>
<a name="selecttype"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-selecttype</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> selectType</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> SelectType</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies one of two selection types for the tablelist widget:
<code><b>row</b></code> or <code><b>cell</b></code>. If the
selection type is <code><b>row</b></code> then the default bindings
will select and deselect entire items, and the whole row having the
location cursor will be displayed as active when the tablelist has the
keyboard focus. If the selection type is <code><b>cell</b></code>
then the default bindings will select and deselect individual elements,
and the single cell having the location cursor will be displayed as
active when the tablelist has the keyboard focus. The default
value is <code><b>row</b></code>.</p>
</blockquote>
</dd>
<dd>
<a name="setfocus"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-setfocus</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> setFocus</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> SetFocus</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies a boolean value that determines whether a click with the
left mouse button anywhere into the tablelist's body, including the
separators and the embedded images (more precisely, any descendants of
the tablelist widget having the binding tag <code><b><a href=
"#body_bindings">TablelistBody</a></b></code>) should set the focus to
the body of the tablelist widget if the latter's <code><b><a href=
"#state">state</a></b></code> is <code><b>normal</b></code>. The
default value is <code>1</code>.</p>
</blockquote>
</dd>
<dd>
<a name="showarrow"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-showarrow</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> showArrow</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> ShowArrow</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies a boolean value that determines whether the
<code><b><a href="#sortbycolumn">sortbycolumn</a></b></code> and
<code><b><a href="#sortbycolumnlist">sortbycolumnlist</a></b></code>
subcommands of the Tcl command associated with the widget should place
an arrow indicating the sort order into the header label(s) of the
column(s) specified by their first argument. The default value is
<code>1</code>.</p>
</blockquote>
</dd>
<dd>
<a name="showlabels"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-showlabels</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> showLabels</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> ShowLabels</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies a boolean value that determines whether the header labels
are to be shown or not. The default value is <code>1</code>.</p>
</blockquote>
</dd>
<dd>
<a name="showseparators"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-showseparators</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> showSeparators</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> ShowSeparators</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies a boolean value that determines whether the columns are to
be separated with borders. The default value is
<code>0</code>. The separators are implemented as thin frames
with sunken relief in the package Tablelist, and as tile separator
widgets in the package Tablelist_tile. They are attached to the
right edges of the header labels, and are only created if the value of
this option is true. There is no support for horizontal
separators in tablelist widgets, but a nice distinguishing effect for
the rows can be achieved with the aid of the <code><b><a href=
"#stripebackground">-stripebackground</a></b></code> option discussed
below.</p>
</blockquote>
</dd>
<dd>
<a name="snipstring"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-snipstring</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> snipString</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> SnipString</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies the string to be used as snip indicator when displaying
the elements that don't fit into their cells. The default is an
ellipsis (<code>"..."</code>).</p>
</blockquote>
</dd>
<dd>
<a name="sortcommand"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-sortcommand</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> sortCommand</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> SortCommand</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies a command to be used for the comparison of the items when
invoking the <code><b><a href="#sort">sort</a></b></code> subcommand of
the Tcl command associated with the tablelist widget. To compare
two items (viewed as lists of cell contents within one row each) during
the <code><b>sort</b></code> operation, the command is automatically
concatenated with the two items and the resulting script is
evaluated. The script should return an integer less than, equal
to, or greater than zero if the first item is to be considered less
than, equal to, or greater than the second, respectively.</p>
</blockquote>
</dd>
<dd>
<a name="spacing"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-spacing</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> spacing</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> Spacing</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies additional space to provide above and below each row of
the widget. The option's value may have any of the standard forms
for screen distances. It defaults to <code>0</code>.</p>
</blockquote>
</dd>
<dd>
<a name="state"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-state</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> state</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> State</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies one of two states for the tablelist widget:
<code><b>normal</b></code> or <code><b>disabled</b></code>. If
the widget is disabled then neither items nor columns may be inserted,
deleted, updated, or moved, the items, header labels, and the up- or
down-arrow are drawn in the <code><b><a href=
"#body_options">-disabledforeground</a></b></code>, <code><b><a href=
"#labeldisabledforeground">-labeldisabledforeground</a></b></code>, and
<code><b><a href=
"#arrowdisabledcolor">-arrowdisabledcolor</a></b></code> color,
respectively, the selection cannot be modified and is not shown
(although the selection information is retained), the header labels are
completely insensitive, and no interactive cell editing can be
performed. In addition, in disabled state any color options
specified at column, row, or cell level will be ignored.</p>
</blockquote>
</dd>
<dd>
<a name="stretch"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-stretch</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> stretch</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> Stretch</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies the columns to be stretched in order to fill the tablelist
window if necessary. The option's value may be
<code><b>all</b></code> or a list of column indices in any of the forms
described in the <a href="#col_indices">COLUMN INDICES</a> section
below. In the second case, the specified column indices are
replaced with their numerical equivalents, except for the index
<code><b>end</b></code>, which is viewed as a dynamic column index
whose numerical equivalent might change during program execution and
therefore will be recomputed every time the columns are
stretched. The list will be updated automatically whenever
columns are inserted, deleted, or moved. The number of pixels by
which a column is stretched is proportional to its width in
pixels. The default value of this option is an empty list,
meaning that no column will be stretched to eliminate the blank space
that might appear at the right of the table. (Note that the blank
space following the header labels is filled with a dummy, insensitive
label having the same background, borderwidth, and relief as the
"normal" header labels.) This option is ignored if the value of
the <code><b><a href="#width">-width</a></b></code> configuration
option is zero or less.</p>
</blockquote>
</dd>
<dd>
<a name="stripebackground"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-stripebackground</b></code> or
<code><b>-stripebg</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> stripeBackground</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> Background</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies the background color to use when displaying the items
belonging to a stripe. Each stripe is composed of the same number
<code>stripeHeight</code> of consecutive non-hidden items, according to
the value of the <code><b><a href=
"#stripeheight">-stripeheight</a></b></code> configuration
option. The first <code>stripeHeight</code> non-hidden items are
"normal" ones; they are followed by a stripe composed of the next
<code>stripeHeight</code> non-hidden items, which in turn is followed
by the same number of "normal" non-hidden items, and so on. In
the Tablelist package and in most themes supported by Tablelist_tile,
the default value is an empty string, indicating that the stripes will
inherit the background color specified by the <code><b><a href=
"#body_options">-background</a></b></code> configuration option.
When using Tablelist_tile with the <code><b>tileqt</b></code> theme
then the default value is given by the global KDE option
<code><b>alternateBackground</b></code>, which in turn depends on the
current color scheme. In this case it is recommended to either
keep that default value retrieved from KDE, or to use an explicitly
specified empty string if no stripes are to be displayed. The
<code><b>-stripebackground</b></code> option has a higher priority than
the <code><b>-background</b></code> column configuration option, but a
lower priority than the <code><b>-background</b></code> option
specified at row or cell level.</p>
</blockquote>
</dd>
<dd>
<a name="stripeforeground"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-stripeforeground</b></code> or
<code><b>-stripefg</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> stripeForeground</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> Foreground</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies the foreground color to use when displaying the items
belonging to a stripe. Each stripe is composed of the same number
<code>stripeHeight</code> of consecutive non-hidden items, according to
the value of the <code><b><a href=
"#stripeheight">-stripeheight</a></b></code> configuration
option. The first <code>stripeHeight</code> non-hidden items are
"normal" ones; they are followed by a stripe composed of the next
<code>stripeHeight</code> non-hidden items, which in turn is followed
by the same number of "normal" non-hidden items, and so on. The
default value is an empty string, indicating that the stripes will
inherit the foreground color specified by the <code><b><a href=
"#body_options">-foreground</a></b></code> configuration option.
The <code><b>-stripeforeground</b></code> option has a higher priority
than the <code><b>-foreground</b></code> column configuration option,
but a lower priority than the <code><b>-foreground</b></code> option
specified at row or cell level.</p>
</blockquote>
</dd>
<dd>
<a name="stripeheight"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-stripeheight</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> stripeHeight</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> StripeHeight</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies the number of items in each stripe. If zero or less
then no stripes are displayed. The default is <code>1</code>.</p>
</blockquote>
</dd>
<dd>
<a name="takefocus"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-takefocus</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> takeFocus</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> TakeFocus</b></code></td>
</tr>
</table>
<blockquote>
<p>This option determines whether the widget accepts the focus during
keyboard traversal. It is almost identical to the standard option
of the same name (see the <b>options</b> manual entry for
details). The only difference is that not the widget itself but
its body child (containing the items) will receive the focus during
keyboard traversal with the standard keys (<code>Tab</code> and
<code>Shift-Tab</code>).</p>
</blockquote>
</dd>
<dd>
<a name="targetcolor"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-targetcolor</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> targetColor</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> TargetColor</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies the color of the temporary gap displayed in the
tablelist's body or header to indicate the target position when moving
a row or column interactively. The default value is
<code><b>black</b></code>.</p>
</blockquote>
</dd>
<dd>
<a name="titlecolumns"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-titlecolumns</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> titleColumns</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> TitleColumns</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies the number of the non-scrollable columns at the left edge
of the window, also called <b>title columns</b>. The positions of
these columns will not change when adjusting the horizontal view by
invoking the <code><b><a href="#scan">scan</a></b></code>,
<code><b><a href="#seecell">seecell</a></b></code>, <code><b><a href=
"#seecolumn">seecolumn</a></b></code>, or <code><b><a href=
"#xview">xview</a></b></code> subcommand. The default value is
<code>0</code>. The value of this option also determines the
scrolling unit used by the commands mentioned above when shifting the
horizontal view: if it is positive then the horizontal scrolling is
performed column-wise, otherwise by character units (the width of the
<code><b>0</b></code> character).</p>
<p>The end of the title column area is visualized with the aid of a
separator, attached to the right edge of the header label corresponding
to the last non-hidden title column. This special separator is
always displayed to mark the end of the title columns (if any),
independently of the value of the <code><b><a href=
"#showseparators">-showseparators</a></b></code> option. The user
can easily distinguish it from the other separators by means of its
background color, which is different from that of the other separator
frames.</p>
<p>For technical reasons (the use of the <code><b>-elide</b></code>
option for a text widget tag), this option is not supported for Tk
versions earlier than 8.3.</p>
</blockquote>
</dd>
<dd>
<a name="tooltipaddcommand"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-tooltipaddcommand</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> tooltipAddCommand</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> TooltipAddCommand</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies a Tcl command to be used for displaying cell- and column
label-specific balloon help. When the mouse pointer enters a
cell, the command is automatically concatenated with the name of the
tablelist widget and the cell's row and column indices, and the
resulting script is evaluated in the global scope. Similarly,
when the mouse pointer enters a header label, the command is
automatically concatenated with the name of the tablelist widget, the
number <code>-1</code>, and the column index of the respective label,
and the resulting script is evaluated in the global scope. In
both cases, the action described above is only triggered if both the
value of this option and that of <code><b><a href=
"#tooltipdelcommand">-tooltipdelcommand</a></b></code> are nonempty
strings.</p>
<p>For example, consider the procedure <code>tooltipAddCmd</code> shown
below, which makes use of the <code>DynamicHelp::add</code> command
from the BWidget package to display the full cell and label texts as
tooltips for the cells and header labels with snipped contents.</p>
<blockquote>
<pre>
proc tooltipAddCmd {tbl row col} {
if {($row >= 0 && [$tbl iselemsnipped $row,$col fullText]) ||
($row < 0 && [$tbl istitlesnipped $col fullText])} {
DynamicHelp::add $tbl -text $fullText
}
}
</pre>
</blockquote>
<p>A tablelist widget can use this procedure by specifying</p>
<blockquote>
<pre>
-tooltipaddcommand tooltipAddCmd -tooltipdelcommand DynamicHelp::delete
</pre>
</blockquote>
<p>If you prefer to use the <code>tooltip::tooltip</code> command from
the tooltip package contained in tklib then the procedure becomes</p>
<blockquote>
<pre>
proc tooltipAddCmd {tbl row col} {
if {($row >= 0 && [$tbl iselemsnipped $row,$col fullText]) ||
($row < 0 && [$tbl istitlesnipped $col fullText])} {
tooltip::tooltip $tbl $fullText
}
}
</pre>
</blockquote>
<p>and can be used by specifying</p>
<blockquote>
<pre>
-tooltipaddcommand tooltipAddCmd -tooltipdelcommand "tooltip::tooltip clear"
</pre>
</blockquote>
<p>Both versions above make use of the <code><b><a href=
"#iselemsnipped">iselemsnipped</a></b></code> and <code><b><a href=
"#istitlesnipped">istitlesnipped</a></b></code> subcommands, to make
sure that the full cell and label texts will only be displayed for
those cells and header labels whose contents are snipped.</p>
</blockquote>
</dd>
<dd>
<a name="tooltipdelcommand"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-tooltipdelcommand</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> tooltipDelCommand</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> TooltipDelCommand</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies a Tcl command to be used for removing the cell- or column
label-specific balloon help. When the mouse pointer leaves a cell
or a header label, the command specified by this option is
automatically concatenated with the name of the tablelist widget and
the resulting script is evaluated in the global scope. This
action is only triggered if both the value of this option and that of
<code><b><a href="#tooltipaddcommand">-tooltipaddcommand</a></b></code>
are nonempty strings. Common values for this option are
<code>"DynamicHelp::delete"</code> (which requires the BWidget package)
and <code>"tooltip::tooltip clear"</code> (which requires
the tooltip package contained in tklib). Their usage is shown in
the examples above.</p>
</blockquote>
</dd>
<dd>
<a name="width"></a>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-width</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> width</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> Width</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies the desired width for the window, in average-size
characters of the widget's font. If zero or less then the desired
width for the window is made just large enough to hold all the columns
in the tablelist widget.</p>
</blockquote>
</dd>
<dt><a name="description"></a><b>DESCRIPTION</b></dt>
<dd>The <code><b>tablelist::tablelist</b></code> command creates a new
window named <code><i>pathName</i></code> and of the class
<code><b>Tablelist</b></code>, and makes it into a <b>tablelist</b>
widget. Additional options, described above, may be specified on the
command line or in the option database to configure aspects of the
tablelist such as its colors, font, and columns. The
<code><b>tablelist::tablelist</b></code> command returns its
<code><i>pathName</i></code> argument. At the time this command is
invoked, there must not exist a window named <code><i>pathName</i></code>,
but <code><i>pathName</i></code>'s parent must exist.</dd>
<dd><br>
A tablelist is a multi-column listbox, implemented as a mega-widget,
consisting of a <b>body</b> and a <b>header</b>. The body displays a
list of <b>items</b>, one per line. Each item is a list of
<b>elements</b>, which are aligned in columns. In other words, an
item is the contents of a row, and an element is the text contained in a
cell. The header consists of label widgets displaying the column
titles. The labels can be used, among others, for interactive column
resizing and column-based sorting of the items, as described below.</dd>
<dd><br>
Each cell and each header label of a tablelist widget can also contain an
image, which is placed to the left or right of the text, depending on the
column's alignment. Instead of an image, a tablelist cell can also
contain an embedded window, placed to the left or right of the text, just
like an embedded image.</dd>
<dd><br>
The elements of a tablelist widget can, per default, be only edited
programmatically. However, interactive editing can be enabled for
individual cells and for entire columns. Per default, the interactive
cell editing uses a temporary embedded entry widget, thus making sure that
all the validation facilities available for entry widgets can be used
during the editing process. A great variety of widgets from the
packages BWidget, Iwidgets, combobox (by Bryan Oakley), and Mentry (or
Mentry_tile), as well as Tk core text, spinbox and checkbutton widgets
along with tile entry, combobox, and checkbutton widgets are also supported
as temporary embedded widgets used for cell editing. In addition, a
rich set of keyboard bindings is provided for a comfortable navigation
between the editable cells.</dd>
<dd><br>
When first created, a new tablelist widget has no items. Items may be
added, deleted, or updated using widget commands described below. In
addition, one or more items or elements may be selected. If a
tablelist widget is exporting its selection (see the
<code><b>-exportselection</b></code> option), then it will observe the
standard X11 protocols for handling the selection. Tablelist widget
selections are available as types <code><b>STRING</b></code> and
<code><b>UTF8_STRING</b></code>; the value of the selection will be a text
built by taking all of the rows having at least one non-hidden selected
element, joining these elements together with tabs, and the resulting
strings in turn with newlines. If a tablelist widget that is
exporting its selection is the selection owner and some other window claims
ownership of the selection away from it, then the virtual event
<code><b><<TablelistSelectionLost>></b></code> is
generated.</dd>
<dd><br>
It is not necessary for all the elements to be displayed in the tablelist
widget at once; commands described below may be used to change the view in
the window. Tablelist widgets allow scrolling in both directions
using the standard <code><b>-xscrollcommand</b></code> and
<code><b>-yscrollcommand</b></code> options. They also support
scanning, as described below.</dd>
<dd><br>
Each tablelist widget, as well as each tablelist column, row, and cell may
have any number of <b>attributes</b>, which can be used in commands that
create or manipulate tablelist widgets for particular purposes.</dd>
<dt><br>
<a name="colors_and_fonts"></a><b>COLORS AND FONTS</b></dt>
<dd>
The <code><b>-background</b></code>, <code><b>-font</b></code>,
<code><b>-foreground</b></code>, <code><b>-selectbackground</b></code>,
and <code><b>-selectforeground</b></code> options can also be specified
at column, row, and cell level, by using the <code><b><a href=
"#columnconfigure">columnconfigure</a></b></code>, <code><b><a href=
"#rowconfigure">rowconfigure</a></b></code>, and <code><b><a href=
"#cellconfigure">cellconfigure</a></b></code> subcommands of the Tcl
command associated with the tablelist widget. For this reason, a
particular cell can have up to four values for one and the same color or
font option. If these values conflict, then the option specified at
the highest priority level is used. The decreasing priority order
is cell, row, column, widget.
<p>If one of these options hasn't been specified at cell, row, or column
level, or if its value for that level is an empty string (this is
explicitly allowed), then that option will not be used at that particular
level.</p>
</dd>
<dt><a name="col_options"></a><b>COLUMN CONFIGURATION OPTIONS</b></dt>
<dd>The following options are currently supported by the <code><b><a href=
"#columncget">columncget</a></b></code>, <code><b><a href=
"#columnconfigure">columnconfigure</a></b></code>, <code><b><a href=
"#configcolumnlist">configcolumnlist</a></b></code>, and <code><b><a href=
"#configcolumns">configcolumns</a></b></code> commands:</dd>
<dd>
<dl>
<dt><br>
<a name="col_align"></a><code><b>-align</b>
<i>alignment</i></code></dt>
<dd>Specifies how to align the elements of the column. It must be
one of <code><b>left</b></code>, <code><b>right</b></code>, or
<code><b>center</b></code>. This option also refers to the
column's title if the <code><b><a href=
"#col_labelalign">-labelalign</a></b></code> option hasn't been
specified for the given column, or if its value is an empty
string. The <code><b>-align</b></code> option is tied to the
<code><i>alignment</i></code> element corresponding to this column in
the list specifying the value of the <code><b><a href=
"#columns">-columns</a></b></code> option for the tablelist widget;
changes in either will automatically be reflected in the other.</dd>
<dt><br>
<a name="col_background"></a><code><b>-background</b>
<i>color</i></code> or <code><b>-bg</b> <i>color</i></code></dt>
<dd>Specifies the normal background color to use when displaying the
contents of the column.</dd>
<dt><br>
<a name="col_changesnipside"></a><code><b>-changesnipside</b>
<i>boolean</i></code></dt>
<dd>Specifies whether to override the alignment-specific default
position of the <a href="#snipstring">snip indicator</a> when
displaying the elements of the column (excluding its title). The
default value is <code>0</code>, meaning that the snip string will be
appended to the elements if the column's alignment is
<code><b>left</b></code> or <code><b>center</b></code> and prepended to
them in case the alignment is <code><b>right</b></code>.</dd>
<dt><br>
<a name="col_editable"></a><code><b>-editable</b>
<i>boolean</i></code></dt>
<dd>Specifies whether the elements of the column can be edited
interactively. The default value is <code>0</code>. The
value of this option can be overridden for individual cells by using
the <a href="#cell_editable">cell configuration option</a> of the same
name.</dd>
<dt><br>
<a name="col_editwindow"></a><code><b>-editwindow</b>
<i>name</i></code></dt>
<dd>Specifies the type of the temporary embedded widget to be used for
interactive editing of the contents of the given column's cells.
<code><i>name</i></code> may be one of <code><b>entry</b></code> (which
is the default), <code><b>text</b></code>, <code><b>spinbox</b></code>
(the latter for Tk version 8.4 or higher),
<code><b>checkbutton</b></code>, <code><b>ttk::entry</b></code>,
<code><b>ttk::combobox</b></code>, or
<code><b>ttk::checkbutton</b></code> (the latter three only in the
presence of the tile widget engine), or the value returned by one of
the registration commands for widgets from the packages <a href=
"tablelistBWidget.html">BWidget</a>, <a href=
"tablelistIwidgets.html">Iwidgets</a>, <a href=
"tablelistCombobox.html">combobox</a> (by Bryan Oakley), and <a href=
"tablelistMentry.html">Mentry (or Mentry_tile)</a>. For example,
you can use <code><b>-editwindow ComboBox</b></code>
<i>after</i> registering the ComboBox widget for interactive cell
editing with the aid of the <code><b><a href=
"tablelistBWidget.html#ComboBox">tablelist::addBWidgetComboBox</a></b></code>
command. Similarly, you can use <code><b>-editwindow
combobox</b></code> <i>after</i> registering Bryan Oakley's
combobox widget for interactive cell editing by invoking the
<code><b><a href=
"tablelistCombobox.html#combobox">tablelist::addOakleyCombobox</a></b></code>
command. The value of this option can be overridden for
individual cells by using the <a href="#cell_editwindow">cell
configuration option</a> of the same name.</dd>
<dt><br>
<a name="col_font"></a><code><b>-font</b> <i>font</i></code></dt>
<dd>Specifies the font to use when displaying the contents of the
column.</dd>
<dt><br>
<a name="col_foreground"></a><code><b>-foreground</b>
<i>color</i></code> or <code><b>-fg</b> <i>color</i></code></dt>
<dd>Specifies the normal foreground color to use when displaying the
contents of the column.</dd>
<dt><br>
<a name="col_formatcommand"></a><code><b>-formatcommand</b>
<i>command</i></code></dt>
<dd>
Specifies a Tcl command to be invoked when displaying the contents of
a cell within this column or adding them to the selection when the
latter is being exported. If <code><i>command</i></code> is a
nonempty string, then it is automatically concatenated with the
cell's text, the resulting script is evaluated in the global scope,
and the return value is displayed in the cell or added to the
selection instead of the original data. For example, if a time
value in seconds is being inserted into the cell and
<code><i>command</i></code> is the procedure <code>formatDate</code>
defined as
<blockquote>
<pre>
proc formatDate clockVal {
return [clock format $clockVal -format "%Y-%m-%d"]
}
</pre>
</blockquote>
<p>then the text displayed in the cell will be the date in the
specified format, not the time value in seconds. Notice that
this option is only used for preparing the text to be displayed or
returned when exporting the selection, and does not affect the
internal cell contents. For example, the <code><b><a href=
"#get">get</a></b></code>, <code><b><a href=
"#getcolumns">getcolumns</a></b></code>, <code><b><a href=
"#getcells">getcells</a></b></code>, <code><b><a href=
"#rowcget">rowcget</a></b></code>, <code><b><a href=
"#columncget">columncget</a></b></code>, <code><b><a href=
"#cellcget">cellcget</a></b></code>, <code><b><a href=
"#sort">sort</a></b></code>, <code><b><a href=
"#sortbycolumn">sortbycolumn</a></b></code>, and <code><b><a href=
"#sortbycolumnlist">sortbycolumnlist</a></b></code> subcommands all
operate on the original cell text, which is contained in the widget's
internal list. In the case of the above example, this will make
it possible to sort the items very easily by time, with a second's
precision, even if their visual representation only contains the
year, month, and day.</p>
<p>The <code><b>-formatcommand</b></code> option comes in handy if
only images or embedded windows are to be displayed in a column but
the texts associated with the cells may not simply be empty strings
because they are needed for other purposes (like sorting or
editing). In such cases, a procedure returning an empty string
can be used as the option's value, thus making sure that the textual
information contained in that column remains hidden.</p>
<p>In the more sophisticated case that the result of the formatting
should also depend on the cell's row, you will have to invoke the
<code><b><a href="#formatinfo">formatinfo</a></b></code> subcommand,
which provides the necessary information about the cell whose content
is being formatted.</p>
</dd>
<dt><a name="col_hide"></a><code><b>-hide</b>
<i>boolean</i></code></dt>
<dd>Specifies whether to hide the column when displaying the widget or
exporting its selection. The default value is
<code>0</code>.</dd>
<dt><br>
<a name="col_labelalign"></a><code><b>-labelalign</b>
<i>alignment</i></code></dt>
<dd>Specifies how to align the column's title. It must be one of
<code><b>left</b></code>, <code><b>right</b></code>, or
<code><b>center</b></code>, or an empty string. If this option
hasn't been specified for the given column, or if its value is an empty
string, then the header title will have the same alignment as the
elements of the column, as given by the <code><b><a href=
"#col_align">-align</a></b></code> column configuration option or by
the <code><i>alignment</i></code> element corresponding to this column
in the list specifying the value of the <code><b><a href=
"#columns">-columns</a></b></code> global option.</dd>
<dt><br>
<a name="col_labelopts"></a><code><b>-labelbackground</b>
<i>color</i></code> or <code><b>-labelbg</b> <i>color</i></code><br>
<code><b>-labelborderwidth</b> <i>screenDistance</i></code> or
<code><b>-labelbd</b> <i>screenDistance</i></code><br>
<code><b>-labelcommand</b> <i>command</i></code><br>
<code><b>-labelcommand2</b> <i>command</i></code><br>
<code><b>-labelfont</b> <i>fontName</i></code><br>
<code><b>-labelforeground</b> <i>color</i></code> or
<code><b>-labelfg</b> <i>color</i></code><br>
<code><b>-labelheight</b> <i>lines</i></code><br>
<code><b>-labelpady</b> <i>screenDistance</i></code><br>
<code><b>-labelrelief</b> <i>relief</i></code></dt>
<dd>The value of each of these options may also be an empty
string. These options are the column-specific equivalents of the
global ones having the same names, described in the <a href=
"#widget_options">WIDGET-SPECIFIC OPTIONS</a> section. They
override the options of the same names set at widget level if the
specified value is not empty. If one of these options hasn't been
specified for the given column, or if its value is an empty string,
then that option will not be used at column level; the global option of
the same name will be used instead. The <code><b><a href=
"#labelactivebackground">-labelactivebackground</a></b></code>,
<code><b><a href=
"#labelactiveforeground">-labelactiveforeground</a></b></code>, and
<code><b><a href=
"#labeldisabledforeground">-labeldisabledforeground</a></b></code>
options are only defined at widget level; there are no column
configuration options with these names. The
<code><b>-labelheight</b></code> option is only supported by the
Tablelist package, but not by Tablelist_tile.</dd>
<dt><br>
<a name="col_labelimage"></a><code><b>-labelimage</b>
<i>image</i></code></dt>
<dd>Specifies the name of the Tk image to be displayed in the header
label. <code><i>image</i></code> must be the result of an
invocation of the <code><b>image create</b></code> command,
or an empty string, specifying that no image is to be displayed.
If the label's text is right-aligned then the image will be displayed
to the right of the text, otherwise to its left. The text and the
image are separated from each other by a gap corresponding to the width
of a space character in the given label's font.</dd>
<dt><br>
<a name="col_maxwidth"></a><code><b>-maxwidth</b>
<i>width</i></code></dt>
<dd><code><i>width</i></code> must be a number. A positive value
specifies the column's maximum width in average-size characters of the
widget's font. If <code><i>width</i></code> is negative, its
absolute value is interpreted as a maximum column width in
pixels. Finally, a value of zero (which is the default) specifies
that the column's maximum width is to be made just large enough to hold
all the elements in the column, including its header. This option
is only relevant if the given column has dynamic width, i.e., if its
width was set to <code>0</code>.</dd>
<dt><br>
<a name="col_name"></a><code><b>-name</b> <i>name</i></code></dt>
<dd>Specifies a name associated with the column. While the
numerical index of a column might change by inserting, deleting, or
moving columns, its name remains constant and can be used as a safe
alternative column index (see the <a href="#col_indices">COLUMN
INDICES</a> section for details). Similarly, it can also be used
as the second component of a cell index of the form
<code><i>row</i><b>,</b><i>col</i></code>, as described in the <a href=
"#cell_indices">CELL INDICES</a> section. To avoid ambiguities,
column names should be different from any other forms of column indices
(like numbers, <code><b>active</b></code>, <code><b>anchor</b></code>,
<code><b>end</b></code>, or any of their abbreviations). They
should also be different from (any abbreviations of) the string
<code><b>all</b></code>, which may be specified as the value of the
<code><b><a href="#stretch">-stretch</a></b></code> configuration
option. The default value is an empty string.</dd>
<dt><br>
<a name="col_resizable"></a><code><b>-resizable</b>
<i>boolean</i></code></dt>
<dd>Specifies whether the column can be resized interactively.
See the <a href="#label_bindings">DEFAULT BINDINGS FOR THE HEADER
LABELS</a> section for information on interactive column
resizing. The default value is <code>1</code>. This option
is only relevant if the value of the <code><b><a href=
"#resizablecolumns">-resizablecolumns</a></b></code> widget
configuration option is true.</dd>
<dt><br>
<a name="col_selectbackground"></a><code><b>-selectbackground</b>
<i>color</i></code></dt>
<dd>Specifies the background color to use when displaying the contents
of a cell in the given column while the cell is selected.</dd>
<dt><br>
<a name="col_selectforeground"></a><code><b>-selectforeground</b>
<i>color</i></code></dt>
<dd>Specifies the foreground color to use when displaying the contents
of a cell in the given column while the cell is selected.</dd>
<dt><br>
<a name="col_showarrow"></a><code><b>-showarrow</b>
<i>boolean</i></code></dt>
<dd>Specifies whether the <code><b><a href=
"#sortbycolumn">sortbycolumn</a></b></code> command with the given
column index as first argument and the <code><b><a href=
"#sortbycolumnlist">sortbycolumnlist</a></b></code> command having the
given column index as element of its first argument should place an
arrow indicating the sort order into the column's label. The
default value is <code>1</code>. This option is only relevant if
the value of the <code><b><a href=
"#showarrow">-showarrow</a></b></code> widget configuration option is
true.</dd>
<dt><br>
<a name="col_showlinenumbers"></a><code><b>-showlinenumbers</b>
<i>boolean</i></code></dt>
<dd>
Specifies whether the given column should display the line numbers
(starting with 1 and ending with the number of the non-hidden
rows). The default value is <code>0</code>.
<p>The following details assume that the given column's
<code><b>-showlinenumbers</b></code> option was set to true:
Associating the line numbers with the non-hidden rows takes place
automatically whenever items are inserted, deleted, updated, moved,
or sorted. For increased efficiency, this is in most cases done
at idle time. For example, if several items are inserted into
or deleted from the tablelist widget, then the necessary renumbering
of the non-hidden rows will be performed as an idle callback, the
next time the event loop is entered and there are no events to
process. The line numbers will override any previous contents
of the column's cells. They are, per default, displayed without
leading zeros, but this (and the display format in general) can be
changed with the aid of the <code><b><a href=
"#col_formatcommand">-formatcommand</a></b></code> column
configuration option.</p>
<p>The <code><b><a href="#sortbycolumn">sortbycolumn</a></b></code>
and <code><b><a href=
"#sortbycolumnlist">sortbycolumnlist</a></b></code> subcommands as
well as the <code><b><a href=
"tablelistColSort.html#sortByColumn">tablelist::sortByColumn</a></b></code>
and <code><b><a href=
"tablelistColSort.html#addToSortColumns">tablelist::addToSortColumns</a></b></code>
commands check the column indices passed to them as arguments and
don't perform any sorting by those columns that have been configured
to display the line numbers (see the corresponding descriptions for
details).</p>
</dd>
<dt><a name="col_sortcommand"></a><code><b>-sortcommand</b>
<i>command</i></code></dt>
<dd>This option is only relevant if the value of the <code><b><a href=
"#col_sortmode">-sortmode</a></b></code> option for the given column is
<code><b>command</b></code>. It specifies a command to be used
for the comparison of the column's elements when invoking the
<code><b><a href="#sortbycolumn">sortbycolumn</a></b></code> command
with the given column index as first argument or the <code><b><a href=
"#sortbycolumnlist">sortbycolumnlist</a></b></code> command having the
given column index as element of its first argument. To compare
two elements during the <code><b>sortbycolumn</b></code> or
<code><b>sortbycolumnlist</b></code> operation,
<code><i>command</i></code> is automatically concatenated with the two
elements and the resulting script is evaluated. The script should
return an integer less than, equal to, or greater than zero if the
first element is to be considered less than, equal to, or greater than
the second, respectively.</dd>
<dt><br>
<a name="col_sortmode"></a><code><b>-sortmode</b>
<i>mode</i></code></dt>
<dd>
Specifies how to compare the column's elements when invoking the
<code><b><a href="#sortbycolumn">sortbycolumn</a></b></code> command
with the given column index as first argument or the
<code><b><a href="#sortbycolumnlist">sortbycolumnlist</a></b></code>
command having the given column index as element of its first
argument. <code><i>mode</i></code> may have any of the
following values:<br>
<table border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="90"><code><b>ascii</b></code></td>
<td>Use string comparison with ASCII collation order. This
is the default.<br>
</td>
</tr>
<tr valign="top">
<td><code><b>command</b></code></td>
<td>Use the command specified by the <code><b><a href=
"#col_sortcommand">-sortcommand</a></b></code> column
configuration option to compare the column's elements.<br>
</td>
</tr>
<tr valign="top">
<td><code><b>dictionary</b></code></td>
<td>Use dictionary-style comparison. This is the same as
<code><b>ascii</b></code>, except: (a) case is ignored except as
a tie-breaker; (b) if two strings contain embedded numbers, the
numbers compare as integers, not characters. For example,
<code>bigBoy</code> sorts between <code>bigbang</code> and
<code>bigboy</code>, and <code>x10y</code> sorts between
<code>x9y</code> and <code>x11y</code>.<br>
</td>
</tr>
<tr valign="top">
<td><code><b>integer</b></code></td>
<td>Convert the elements to integers and use integer
comparison.<br>
</td>
</tr>
<tr valign="top">
<td><code><b>real</b></code></td>
<td>Convert the elements to floating-point values and use
floating-point comparison.</td>
</tr>
</table>
</dd>
<dt><br>
<a name="col_stretchable"></a><code><b>-stretchable</b>
<i>boolean</i></code></dt>
<dd>Specifies whether the column is to be stretched in order to fill
the tablelist window if necessary. The value of this option is
tied to that of the <code><b><a href="#stretch">-stretch</a></b></code>
option for the tablelist widget; changes in either will automatically
be reflected in the other.</dd>
<dt><br>
<a name="col_text"></a><code><b>-text</b> <i>list</i></code></dt>
<dd>Specifies a list of strings to be displayed in the cells of the
given column, i.e., updates the elements contained in the column.
If the tablelist's <code><b><a href="#state">state</a></b></code> is
<code><b>disabled</b></code> then this option will be ignored.</dd>
<dt><br>
<a name="col_title"></a><code><b>-title</b> <i>title</i></code></dt>
<dd>Specifies the text to be displayed in the column's header.
This option is tied to the <code><i>title</i></code> element
corresponding to the given column in the list specifying the value of
the <code><b><a href="#columns">-columns</a></b></code> option for the
tablelist widget; changes in either will automatically be reflected in
the other.</dd>
<dt><br>
<a name="col_width"></a><code><b>-width</b> <i>width</i></code></dt>
<dd><code><i>width</i></code> must be a number. A positive value
specifies the column's width in average-size characters of the widget's
font. If <code><i>width</i></code> is negative, its absolute
value is interpreted as a column width in pixels. Finally, a
value of zero specifies that the column's width is to be made just
large enough to hold all the elements in the column, including its
header (but no larger than the maximum width indicated by the
<code><b><a href="#col_maxwidth">-maxwidth</a></b></code> column
configuration option). This option is tied to the
<code><i>width</i></code> element corresponding to the given column in
the list specifying the value of the <code><b><a href=
"#columns">-columns</a></b></code> option for the tablelist widget;
changes in either will automatically be reflected in the other.</dd>
<dt><br>
<a name="col_wrap"></a><code><b>-wrap</b> <i>boolean</i></code></dt>
<dd>Specifies whether to display those elements of the given column
that don't fit into their cells in word-wrapped multi-line rather than
snipped form. The default value is <code>0</code>. If the
specified column has static width and the value of this option is true
then elements of the column that are too long to be displayed in a
single line will be broken up into several lines. The same
applies to the individual lines of the multi-line elements (i.e.,
elements containing newline characters): they will also be wrapped if
necessary, thus giving rise to additional line breaks. In both
cases, the line breaks are chosen at word boundaries wherever possible,
and they are only used for the external representation of the strings
contained in the given column, without affecting the internal contents
of the cells.</dd>
<dt><br>
The <code><b>-background</b></code>, <code><b>-font</b></code>,
<code><b>-foreground</b></code>, <code><b>-selectbackground</b></code>,
and <code><b>-selectforeground</b></code> column configuration options
override the options of the same names set at widget level (but not the
ones set at cell or row level) if the specified value is not an empty
string. See the <a href="#colors_and_fonts">COLORS AND FONTS</a>
section for further details on these options.</dt>
</dl>
</dd>
<dt><br>
<a name="row_options"></a><b>ROW CONFIGURATION OPTIONS</b></dt>
<dd>The following options are currently supported by the <code><b><a href=
"#rowcget">rowcget</a></b></code>, <code><b><a href=
"#rowconfigure">rowconfigure</a></b></code>, <code><b><a href=
"#configrowlist">configrowlist</a></b></code>, and <code><b><a href=
"#configrows">configrows</a></b></code> commands:</dd>
<dd>
<dl>
<dt><br>
<a name="row_background"></a><code><b>-background</b>
<i>color</i></code> or <code><b>-bg</b> <i>color</i></code></dt>
<dd>Specifies the normal background color to use when displaying the
contents of the row.</dd>
<dt><br>
<a name="row_font"></a><code><b>-font</b> <i>font</i></code></dt>
<dd>Specifies the font to use when displaying the contents of the
row.</dd>
<dt><br>
<a name="row_foreground"></a><code><b>-foreground</b>
<i>color</i></code> or <code><b>-fg</b> <i>color</i></code></dt>
<dd>Specifies the normal foreground color to use when displaying the
contents of the row.</dd>
<dt><br>
<a name="row_hide"></a><code><b>-hide</b> <i>boolean</i></code></dt>
<dd>
Specifies whether to hide the row when displaying the widget or
exporting its selection. The default value is
<code>0</code>. For technical reasons (the use of the
<code><b>-elide</b></code> option for a text widget tag), this option
is not supported for Tk versions earlier than 8.3.
<p><b>CAUTION:</b> Tk versions 8.3 - 8.4.12 had a bug that
caused a segmentation fault if the whole content of a text widget was
elided. This bug was also present in Tk 8.5.a1 - 8.5.a3.
When using one of these earlier Tk versions, this bug will produce a
crash if all the rows of a tablelist widget are hidden. It is
your responsibility to avoid such situations when using a Tk version
having this bug!</p>
</dd>
<dt><a name="row_name"></a><code><b>-name</b> <i>name</i></code></dt>
<dd>Specifies a name associated with the row. While the numerical
index of a row might change by inserting, deleting, or moving rows, or
by sorting the items, its name remains constant and can be used as a
safe alternative row index (see the <a href="#row_indices">ROW
INDICES</a> section for details). Similarly, it can also be used
as the first component of a cell index of the form
<code><i>row</i><b>,</b><i>col</i></code>, as described in the <a href=
"#cell_indices">CELL INDICES</a> section. To avoid ambiguities,
row names should be different from any other forms of row indices (like
numbers, keys, <code><b>active</b></code>, <code><b>anchor</b></code>,
<code><b>end</b></code>, or any of their abbreviations). The
default value is an empty string.</dd>
<dt><br>
<a name="row_selectable"></a><code><b>-selectable</b>
<i>boolean</i></code></dt>
<dd>Specifies whether the elements displayed in the given row can be
selected. The default value is <code>1</code>. If the value
<code>0</code> was given then any attempt to select the item contained
in this row with the aid of the <code><b><a href=
"#selection">selection set</a></b></code> widget command or any
of its elements by using the <code><b><a href=
"#cellselection">cellselection set</a></b></code> command will be
silently ignored; moreover, an existing old (cell) selection is removed
from the row.</dd>
<dt><br>
<a name="row_selectbackground"></a><code><b>-selectbackground</b>
<i>color</i></code></dt>
<dd>Specifies the background color to use when displaying the contents
of a cell in the given row while the cell is selected.</dd>
<dt><br>
<a name="row_selectforeground"></a><code><b>-selectforeground</b>
<i>color</i></code></dt>
<dd>Specifies the foreground color to use when displaying the contents
of a cell in the given row while the cell is selected.</dd>
<dt><br>
<a name="row_text"></a><code><b>-text</b> <i>list</i></code></dt>
<dd>Specifies a list of strings to be displayed in the cells of the
given row, i.e., updates the item contained in the row. If the
tablelist's <code><b><a href="#state">state</a></b></code> is
<code><b>disabled</b></code> then this option will be ignored.</dd>
<dt><br>
The <code><b>-background</b></code>, <code><b>-font</b></code>,
<code><b>-foreground</b></code>, <code><b>-selectbackground</b></code>,
and <code><b>-selectforeground</b></code> row configuration options
override the options of the same names set at column or widget level
(but not the ones set at cell level) if the specified value is not an
empty string. See the <a href="#colors_and_fonts">COLORS AND
FONTS</a> section for further details on these options.</dt>
</dl>
</dd>
<dt><br>
<a name="cell_options"></a><b>CELL CONFIGURATION OPTIONS</b></dt>
<dd>The following options are currently supported by the <code><b><a href=
"#cellcget">cellcget</a></b></code>, <code><b><a href=
"#cellconfigure">cellconfigure</a></b></code>, <code><b><a href=
"#configcelllist">configcelllist</a></b></code>, and <code><b><a href=
"#configcells">configcells</a></b></code> commands:</dd>
<dd>
<dl>
<dt><br>
<a name="cell_background"></a><code><b>-background</b>
<i>color</i></code> or <code><b>-bg</b> <i>color</i></code></dt>
<dd>Specifies the normal background color to use when displaying the
contents of the cell.</dd>
<dt><br>
<a name="cell_editable"></a><code><b>-editable</b>
<i>boolean</i></code></dt>
<dd>Specifies whether the contents of the cell can be edited
interactively. The default value is <code>0</code>. This
option overrides <a href="#col_editable">the one of the same name</a>
for the column containing the given cell.</dd>
<dt><br>
<a name="cell_editwindow"></a><code><b>-editwindow</b>
<i>name</i></code></dt>
<dd>Specifies the type of the temporary embedded widget to be used for
interactive editing of the cell's contents. The default value is
<code><b>entry</b></code>. This option overrides <a href=
"#col_editwindow">the one of the same name</a> for the column
containing the given cell, and may have the same values as its
column-related counterpart.</dd>
<dt><br>
<a name="cell_font"></a><code><b>-font</b> <i>font</i></code></dt>
<dd>Specifies the font to use when displaying the contents of the
cell.</dd>
<dt><br>
<a name="cell_foreground"></a><code><b>-foreground</b>
<i>color</i></code> or <code><b>-fg</b> <i>color</i></code></dt>
<dd>Specifies the normal foreground color to use when displaying the
contents of the cell.</dd>
<dt><br>
<a name="cell_image"></a><code><b>-image</b> <i>image</i></code></dt>
<dd>
Specifies the name of the Tk image to be displayed in the cell.
<code><i>image</i></code> must be the result of an invocation of
the <code><b>image create</b></code> command, or an empty
string, specifying that no image is to be displayed. If the
column containing the cell is right-aligned then the image will be
displayed to the right of the cell's text, otherwise to its
left. The text and the image are separated from each other by a
gap of 4 pixels. If for the same cell the <code><b><a href=
"#cell_window">-window</a></b></code> option was specified with a
nonempty value then it overrides the <code><b>-image</b></code>
option. If the tablelist's <code><b><a href=
"#state">state</a></b></code> is <code><b>disabled</b></code> then
this option will be ignored.
<p>To display an image in a cell, Tablelist makes use of an embedded
label widget (which is created on demand). This requires more
memory than inserting the image directly into the tablelist's body,
but has the main advantage of making it possible to adjust the width
of the label containing the widget to fit into its column. This
has the visual effect of cutting off part of the image from its right
side. To make sure that images with transparent background will
be displayed correctly, the background color of the label widgets
containing the embedded images is automatically updated whenever
necessary.</p>
</dd>
<dt><a name="cell_selectbackground"></a><code><b>-selectbackground</b>
<i>color</i></code></dt>
<dd>Specifies the background color to use when displaying the contents
of the cell while it is selected.</dd>
<dt><br>
<a name="cell_selectforeground"></a><code><b>-selectforeground</b>
<i>color</i></code></dt>
<dd>Specifies the foreground color to use when displaying the contents
of the cell while it is selected.</dd>
<dt><br>
<a name="cell_stretchwindow"></a><code><b>-stretchwindow</b>
<i>boolean</i></code></dt>
<dd>Specifies whether the width of the window embedded into the cell
shall be adapted dynamically to the width of the cell's column if the
latter is non-zero (i.e., static). The default value is
<code>0</code>. If the value of this option is true and the
column was specified with a non-zero width or was resized
interactively, then the width of the embedded window (if any) will be
adjusted automatically so the window fills the whole horizontal space
belonging to that column (except the left and right margins).
Please note that in this case the cell's text will remain hidden.
On the other hand, if the column is of dynamic width then this option
will be ignored and both the cell's text and its embedded window (if
any) will be displayed as usual. The easiest way to avoid this
discrepancy is to set the cell's text to an empy string or make sure
that the column's elements are always displayed as empty strings, by
using the <code><b><a href=
"#col_formatcommand">-formatcommand</a></b></code> column configuration
option.</dd>
<dt><br>
<a name="cell_text"></a><code><b>-text</b> <i>text</i></code></dt>
<dd>Specifies the string to be displayed in the given cell, i.e.,
updates the element contained in the cell. If the tablelist's
<code><b><a href="#state">state</a></b></code> is
<code><b>disabled</b></code> then this option will be ignored.</dd>
<dt><br>
<a name="cell_window"></a><code><b>-window</b>
<i>command</i></code></dt>
<dd>
Specifies a Tcl command creating the window to be embedded into the
cell. The command is automatically concatenated with the name
of the tablelist widget, the cell's row and column indices, as well
as the path name of the embedded window to be created, and the
resulting script is evaluated in the global scope.
<code><i>command</i></code> may also be an empty string, specifying
that no embedded window is to be displayed. If the column
containing the cell is right-aligned then the window will be
displayed to the right of the cell's text, otherwise to its
left. The text and the window are separated from each other by
a gap of 4 pixels. If this option was specified with a nonempty
value then it overrides the <code><b><a href=
"#cell_image">-image</a></b></code> cell configuration option.
If the tablelist's <code><b><a href="#state">state</a></b></code> is
<code><b>disabled</b></code> then this option will be ignored.
<p>There are several situations where the embedded window will be
destroyed and later recreated by invoking the script mentioned
above. For example, when changing the value of some of the
tablelist widget or column configuration options, sorting the items,
or moving a row or a column, the widget's contents will be
redisplayed, which makes it necessary to recreate the embedded
windows. This operation won't preserve the changes made on the
embedded windows after their creation. For this reason, you
should avoid any changes on embedded windows outside their creation
scripts.</p>
</dd>
<dt><a name="cell_windowdestroy"></a><code><b>-windowdestroy</b>
<i>command</i></code></dt>
<dd>Specifies a Tcl command to be invoked when a window embedded into
the cell is destroyed. The command is automatically concatenated
with the name of the tablelist widget, the cell's row and column
indices, as well as the path name of the embedded window, and the
resulting script is evaluated in the global scope. This option
provides an easy-to-use alternative to binding a script to the embedded
window's <code><b><Destroy></b></code> event from within its
creation script, specified as the value of the <code><b><a href=
"#cell_window">-window</a></b></code> cell configuration option.</dd>
<dt><br>
The <code><b>-background</b></code>, <code><b>-font</b></code>,
<code><b>-foreground</b></code>, <code><b>-selectbackground</b></code>,
and <code><b>-selectforeground</b></code> cell configuration options
override the options of the same names set at row, column, or widget
level if the specified value is not an empty string. See the
<a href="#colors_and_fonts">COLORS AND FONTS</a> section for further
details on these options.</dt>
</dl>
</dd>
<dt><br>
<a name="cell_editing"></a><b>INTERACTIVE CELL EDITING</b></dt>
<dd>Whether or not the contents of a cell of a tablelist widget can be
edited interactively, depends on the <code><b>-editable</b></code> option
on both <a href="#cell_editable">cell</a> and <a href=
"#col_editable">column</a> level. If the cell-level option was set
explicitly then its value determines the editability of the cell's
contents. Otherwise the value of the column-level option is used to
decide whether the cell can be edited interactively. From this rule
it follows that you can enable interactive cell editing for a whole column
by setting its <code><b>-editable</b></code> option to true. To
exclude some of the column's cells from interactive editing, set their
<code><b>-editable</b></code> option to false.</dd>
<dd><br>
The interactive cell editing is started by the <code><b><a href=
"#editcell">editcell</a></b></code> subcommand, which is invoked implicitly
by clicking with the left mouse button into an editable cell or using
keyboard navigation to move from one editable cell into another. If
the selection type is <code><b>cell</b></code> and the location cursor is
in an editable cell, then the interactive editing of the active element can
also be started by pressing <code>Return</code> or
<code>KP_Enter</code>. Per default, the <code><b>editcell</b></code>
subcommand creates a temporary entry widget and embeds it into the cell
whose index was passed to it as argument. You can, however, use the
<code><b>-editwindow</b></code> <a href="#col_editwindow">column</a> or
<a href="#cell_editwindow">cell</a> configuration option to specify another
widget instead of an entry, like a Tk core text, spinbox, or checkbutton
widget, or a tile entry, combobox, or checkbutton, or one of the 16
currently supported widgets from the packages <a href=
"tablelistBWidget.html">BWidget</a>, <a href=
"tablelistIwidgets.html">Iwidgets</a>, <a href=
"tablelistCombobox.html">combobox</a> (by Bryan Oakley), and <a href=
"tablelistMentry.html">Mentry (or Mentry_tile)</a>. Before specifying
a widget from one of these library packages as the value of the
<code><b>-editwindow</b></code> column or cell configuration option, you
must register it for interactive cell editing by invoking the corresponding
<code><b>tablelist::add*</b></code> command. The Tk core entry, text,
spinbox, and checkbutton widgets, as well as the tile entry, combobox, and
checkbutton widgets are automatically registered for cell editing.</dd>
<dd><br>
In the simplest case, the text automatically inserted into the temporary
embedded widget is the same as the text displayed in the cell, which in
turn can be the cell's contents or the string obtained from the latter by
using the <code><b><a href=
"#col_formatcommand">-formatcommand</a></b></code> option of the cell's
column. However, if the value of the <code><b><a href=
"#editstartcommand">-editstartcommand</a></b></code> configuration option
is a nonempty string, then the text displayed in the cell is passed to that
command as its last argument (following the tablelist's path name as well
as the cell's row and column indices), the resulting script is evaluated in
the global scope, and the return value becomes the edit window's
contents. From within this script you can invoke the
<code><b><a href="#cancelediting">cancelediting</a></b></code> subcommand,
which destroys the temporary embedded widget and cancels the editing of its
contents. The main goal of this script is, however, to enable you to
define validations for the editing process. This can be done either
with the aid of the options for entry validation, supported by Tk versions
8.3 and higher (see the <b>entry</b> reference page), or by using the
widget callback package <a href="http://www.nemethi.de">Wcb</a>, available
for Tk versions 8.0 and higher. The Iwidgets package (available for
Tk versions 8.0 or higher) provides its own validation facilities, which
can equally be used if the edit window is a widget belonging to that
extension. In either case, you will need the path name of the
temporary embedded widget or that of its entry or entry-like component; use
the <code><b><a href="#editwinpath">editwinpath</a></b></code> and
<code><b><a href="#entrypath">entrypath</a></b></code> subcommands to get
these path names. Another purpose of the command indicated by the
<code><b>-editstartcommand</b></code> option is to enable you to prepare
the edit window in various other ways. For example, if the latter is
a combobox widget then you can set its <code><b>-editable</b></code> option
to false or (for a tile combobox) set its state to
<code><b>readonly</b></code>, and you will have to populate its listbox
component. In the same script, you can change some of the embedded
widget's visual attributes (like its background, selection background, or
selection foreground color). (Notice that this can also be done with
the aid of the Tk option database.)</dd>
<dd><br>
The editing of the text inserted into the edit window uses the
widget-specific bindings for mouse and keyboard events, with a few
extensions and changes, as described in the <a href=
"#edit_bindings">DEFAULT BINDINGS FOR INTERACTIVE CELL EDITING</a>
section. For example, in entry or entry-like components of the edit
window, <code>Control-i</code> inserts a tab, <code>Control-j</code>
inserts a newline, and if the edit window is a text widget then
<code>Return</code> and <code>KP_Enter</code> insert a newline character,
too. <code>Tab</code> and <code>Shift-Tab</code> are used for
navigation between the editable cells, just like <code>Alt-Left</code>,
<code>Alt-Right</code>, <code>Alt-Up</code>, <code>Alt-Down</code>,
<code>Alt-Prior</code>, <code>Alt-Next</code>, <code>Alt-Home</code>, and
<code>Alt-End</code> (as well as <code>Control-Home</code> and
<code>Control-End</code>, except in the case of a text widget). On
Mac OS Classic and Mac OS X Aqua the <code>Command</code> key is used
instead of <code>Alt</code>. The editing can be aborted with the
<code>Escape</code> key (or by invoking the <code><b><a href=
"#cancelediting">cancelediting</a></b></code> subcommand) and terminated
normally with <code>Return</code> or <code>KP_Enter</code> (together with
<code>Control</code> for a text widget). The bindings for the keys
used for normal termination of the editing just invoke the
<code><b><a href="#finishediting">finishediting</a></b></code> subcommand;
the latter can also be called explicitly to terminate the editing
programmatically. Normal termination is also triggered by clicking
with the left mouse button anywhere in the tablelist's body, outside the
cell just being edited, or moving into another editable cell by using
keyboard navigation.</dd>
<dd><br>
When normal termination of the editing process occurs, the Tcl command
associated with the tablelist widget compares the edit window's final
contents to its original one. If they are equal then the embedded
widget is destroyed and the cell's original value is restored. If the
two strings are different and the value of the <code><b><a href=
"#editendcommand">-editendcommand</a></b></code> configuration option is a
nonempty string, then the edit window's final text is passed to that
command as its last argument (following the tablelist's path name as well
as the cell's row and column indices), the resulting script is evaluated in
the global scope, and the return value becomes the cell's new internal
contents after destroying the temporary embedded widget. The main
goal of this script is to enable you to do a final validation of the edit
window's contents. From within this script you can invoke the
<code><b><a href="#rejectinput">rejectinput</a></b></code> subcommand,
which prevents the script's return value from becoming the cell's new
contents; this subcommand also prevents the destruction of the temporary
embedded widget. Another purpose of the command indicated by the
<code><b>-editendcommand</b></code> option is to convert the edit window's
text to the cell's new <i>internal</i> contents, which is necessary if, due
to the <code><b><a href="#col_formatcommand">-formatcommand</a></b></code>
column configuration option, the cell's internal value is different from
its external representation. See the description of the
<code><b><a href="#forceeditendcommand">-forceeditendcommand</a></b></code>
option for more about the invocation of the command mentioned above.</dd>
<dt><br>
<a name="row_indices"></a><b>ROW INDICES</b></dt>
<dd>
Many of the widget commands for tablelist widgets take one or more row
indices as arguments. A row index specifies a particular item of
the tablelist, in any of the following ways:<br>
<table border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="75"><code><i>number</i></code></td>
<td>Specifies the item as a numerical index, where <code>0</code>
corresponds to the first item in the tablelist.<br>
</td>
</tr>
<tr valign="top">
<td><code><b>k</b><i>number</i></code></td>
<td>Specifies the item by its full key, composed of the letter
<code><b>k</b></code> and the sequence number associated with the
item, as returned by the <code><b><a href=
"#getkeys">getkeys</a></b></code> widget command.<br>
</td>
</tr>
<tr valign="top">
<td><code><b>active</b></code></td>
<td>Indicates the item containing the element that has the location
cursor. Depending on the selection type, this item as a whole
or just its element having the location cursor will be displayed
according to the value of the <code><b><a href=
"#activestyle">-activestyle</a></b></code> configuration option when
the tablelist has the keyboard focus. This item is specified
with the <code><b><a href="#activate">activate</a></b></code> widget
command or as the row containing the element specified with the
<code><b><a href="#activatecell">activatecell</a></b></code> widget
command.<br>
</td>
</tr>
<tr valign="top">
<td><code><b>anchor</b></code></td>
<td>Indicates the anchor point for the row selection, which is set
with the <code><b><a href="#selection">selection
anchor</a></b></code> widget command, or the row containing the
anchor point for the cell selection, which is set with the
<code><b><a href="#cellselection">cellselection
anchor</a></b></code> widget command.<br>
</td>
</tr>
<tr valign="top">
<td><code><b>end</b></code></td>
<td>Indicates the end of the tablelist. For most commands this
refers to the last item in the tablelist, but for a few commands such
as <code><b><a href="#index">index</a></b></code>, <code><b><a href=
"#insert">insert</a></b></code>, and <code><b><a href=
"#insertlist">insertlist</a></b></code>, as well as for the target of
the <code><b><a href="#move">move</a></b></code> command it refers to
the item just after the last one.<br>
</td>
</tr>
<tr valign="top">
<td><code><b>@</b><i>x</i><b>,</b><i>y</i></code></td>
<td>Indicates the item that covers the point in the tablelist window
specified by <code><i>x</i></code> and <code><i>y</i></code> (in
pixel coordinates). If no item covers that point, then the
closest item to that point is used. The coordinates
<code><i>x</i></code> and <code><i>y</i></code> are expected to be
relative to the tablelist window itself (not its body component).<br>
</td>
</tr>
<tr valign="top">
<td><code><i>name</i></code></td>
<td>Specifies the row by the value of its <code><b><a href=
"#row_name">-name</a></b></code> configuration option.
<code><i>name</i></code> must be different from all the above row
indices, and should be unique (if several rows have the same name
then this value is considered to indicate the first matching
row).</td>
</tr>
</table>
<p>In the widget command descriptions below, arguments named
<code><i>index</i></code>, <code><i>first</i></code>,
<code><i>last</i></code>, <code><i>source</i></code>, and
<code><i>target</i></code> always contain row indices in one of the above
forms.</p>
</dd>
<dt><a name="col_indices"></a><b>COLUMN INDICES</b></dt>
<dd>
Many of the widget commands for tablelist widgets take a column index as
argument. A column index specifies a particular column of the
tablelist, in any of the following ways:<br>
<table border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="75"><code><i>number</i></code></td>
<td>Specifies the column as a numerical index, where <code>0</code>
corresponds to the first column in the tablelist.<br>
</td>
</tr>
<tr valign="top">
<td><code><b>active</b></code></td>
<td>Indicates the column containing the element that has the location
cursor. If the selection type is <code><b>cell</b></code> then
this element will be displayed according to the value of the
<code><b><a href="#activestyle">-activestyle</a></b></code>
configuration option when the tablelist has the keyboard focus.
This element is specified with the <code><b><a href=
"#activatecell">activatecell</a></b></code> widget command.<br>
</td>
</tr>
<tr valign="top">
<td><code><b>anchor</b></code></td>
<td>Indicates the column containing the anchor point for the cell
selection, which is set with the <code><b><a href=
"#cellselection">cellselection anchor</a></b></code> widget
command.<br>
</td>
</tr>
<tr valign="top">
<td><code><b>end</b></code></td>
<td>Indicates the last column of the tablelist, except for the
commands <code><b><a href=
"#insertcolumns">insertcolumns</a></b></code> and <code><b><a href=
"#insertcolumnlist">insertcolumnlist</a></b></code>, as well as for
the target of the <code><b><a href=
"#movecolumn">movecolumn</a></b></code> command, in which cases it
refers to the column just after the last one.<br>
</td>
</tr>
<tr valign="top">
<td><code><b>@</b><i>x</i><b>,</b><i>y</i></code></td>
<td>Indicates the column that covers the point in the tablelist
window specified by <code><i>x</i></code> and <code><i>y</i></code>
(in pixel coordinates). If no column covers that point, then
the closest column to that point is used. The coordinates
<code><i>x</i></code> and <code><i>y</i></code> are expected to be
relative to the tablelist window itself (not its body component).<br>
</td>
</tr>
<tr valign="top">
<td><code><i>name</i></code></td>
<td>Specifies the column by the value of its <code><b><a href=
"#col_name">-name</a></b></code> configuration option.
<code><i>name</i></code> must be different from all the above column
indices, and should be unique (if several columns have the same name
then this value is considered to indicate the first matching
column).</td>
</tr>
</table>
<p>In the widget command descriptions below, arguments named
<code><i>columnIndex</i></code>, <code><i>firstColumn</i></code>,
<code><i>lastColumn</i></code>, <code><i>sourceColumn</i></code>, and
<code><i>targetColumn</i></code> always contain column indices in one of
the above forms.</p>
</dd>
<dt><a name="cell_indices"></a><b>CELL INDICES</b></dt>
<dd>
Many of the widget commands for tablelist widgets take a cell index as
argument. A cell index specifies a particular cell of the
tablelist, in any of the following ways:<br>
<table border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="75"><code><i>row</i><b>,</b><i>col</i></code></td>
<td>Indicates the cell having the row index <code><i>row</i></code>
and column index <code><i>col</i></code>.
<code><i>row</i></code> may be a number, a full key (of the form
<code><b>k</b><i>number</i></code>), <code><b>active</b></code>,
<code><b>anchor</b></code>, <code><b>end</b></code> (where the latter
indicates the last row in the tablelist), or a row name.
<code><i>col</i></code> may be a number, <code><b>active</b></code>,
<code><b>anchor</b></code>, <code><b>end</b></code>, or a column
name.<br>
</td>
</tr>
<tr valign="top">
<td><code><b>active</b></code></td>
<td>Indicates the element that has the location cursor. If the
selection type is <code><b>cell</b></code> then this element will be
displayed according to the value of the <code><b><a href=
"#activestyle">-activestyle</a></b></code> configuration option when
the tablelist has the keyboard focus. This element is specified
with the <code><b><a href="#activatecell">activatecell</a></b></code>
widget command.<br>
</td>
</tr>
<tr valign="top">
<td><code><b>anchor</b></code></td>
<td>Indicates the anchor point for the cell selection, which is set
with the <code><b><a href="#cellselection">cellselection
anchor</a></b></code> widget command.<br>
</td>
</tr>
<tr valign="top">
<td><code><b>end</b></code></td>
<td>Indicates the last cell in the last row of the tablelist.<br>
</td>
</tr>
<tr valign="top">
<td><code><b>@</b><i>x</i><b>,</b><i>y</i></code></td>
<td>Indicates the cell that covers the point in the tablelist window
specified by <code><i>x</i></code> and <code><i>y</i></code> (in
pixel coordinates). If no cell covers that point, then the
closest cell to that point is used. The coordinates
<code><i>x</i></code> and <code><i>y</i></code> are expected to be
relative to the tablelist window itself (not its body
component).</td>
</tr>
</table>
<p>In the widget command descriptions below, arguments named
<code><i>cellIndex</i></code>, <code><i>firstCell</i></code>, and
<code><i>lastCell</i></code> always contain cell indices in one of the
above forms.</p>
</dd>
<dt><a name="widget_command"></a><b>WIDGET COMMAND</b></dt>
<dd>
The <code><b>tablelist::tablelist</b></code> command creates a new Tcl
command whose name is <code><i>pathName</i></code>. This command
may be used to invoke various operations on the widget. It has the
following general form:
<blockquote>
<pre>
<i>pathName</i> <i>option</i> ?<i>arg</i> <i>arg</i> ...?
</pre>
</blockquote>
</dd>
<dd><code><i>option</i></code> and the <code><i>arg</i></code>s determine
the exact behavior of the command. The following commands are
possible for tablelist widgets:</dd>
<dd>
<dl>
<dt><br>
<a name="activate"></a><code><i>pathName</i> <b>activate</b>
<i>index</i></code></dt>
<dd>Sets the active item to the one indicated by
<code><i>index</i></code> if the tablelist's <code><b><a href=
"#state">state</a></b></code> is not
<code><b>disabled</b></code>. If <code><i>index</i></code> is
outside the range of items in the tablelist or it refers to a hidden
item then the closest non-hidden item is activated. The active
item is drawn as specified by the <code><b><a href=
"#activestyle">-activestyle</a></b></code> configuration option when
the widget has the input focus and the selection type is
<code><b>row</b></code>. Its index may be retrieved with the
index <code><b>active</b></code>. Returns an empty string.</dd>
<dt><br>
<a name="activatecell"></a><code><i>pathName</i> <b>activatecell</b>
<i>cellIndex</i></code></dt>
<dd>Sets the active element to the one indicated by
<code><i>cellIndex</i></code> if the tablelist's <code><b><a href=
"#state">state</a></b></code> is not
<code><b>disabled</b></code>. If <code><i>cellIndex</i></code> is
outside the range of elements in the tablelist or it refers to a hidden
element, then the closest non-hidden element is activated. The
active element is drawn as specified by the <code><b><a href=
"#activestyle">-activestyle</a></b></code> configuration option when
the widget has the input focus and the selection type is
<code><b>cell</b></code>. Its index may be retrieved with the
cell index <code><b>active</b></code>. Returns an empty
string.</dd>
<dt><br>
<a name="attrib"></a><code><i>pathName</i> <b>attrib</b> ?<i>name</i>?
?<i>value</i> <i>name</i> <i>value</i> ...?</code></dt>
<dd>Queries or modifies the attributes of the widget. If no
<code><i>name</i></code> is specified, the command returns a list of
pairs, each of which contains the name and the value of an attribute
for <code><i>pathName</i></code>. If <code><i>name</i></code> is
specified with no <code><i>value</i></code>, then the command returns
the value of the one named attribute, or an empty string if no
corresponding value exists (you can use the <code><b><a href=
"#hasattrib">hasattrib</a></b></code> subcommand to distinguish this
case from the one that the value of an <i>existing</i> attribute is an
empty string). If one or more
<code><i>name</i></code>-<code><i>value</i></code> pairs are specified,
then the command sets the given widget attribute(s) to the given
value(s); in this case the return value is an empty string.
<code><i>name</i></code> may be an arbitrary string.</dd>
<dt><br>
<a name="bbox"></a><code><i>pathName</i> <b>bbox</b>
<i>index</i></code></dt>
<dd>Returns a list of four numbers describing the bounding box of the
row given by <i>index</i>. The first two elements of the list
give the x and y coordinates of the upper-left corner of the screen
area covered by the row (specified in pixels relative to the widget)
and the last two elements give the width and height of the area, in
pixels. If no part of the row given by <i>index</i> is visible on
the screen, or if <i>index</i> refers to a non-existent row, then the
result is an empty string; if the row is partially visible, the result
gives the full area of the row, including any parts that are not
visible.</dd>
<dt><br>
<a name="bodypath"></a><code><i>pathName</i>
<b>bodypath</b></code></dt>
<dd>Returns the path name of the body component of the widget.</dd>
<dt><br>
<a name="bodytag"></a><code><i>pathName</i> <b>bodytag</b></code></dt>
<dd>Returns the name of a binding tag whose name depends on the path
name of the tablelist widget and which is associated with the
tablelist's body, the separators, as well as the message and label
widgets used for displaying multi-line elements and images,
respectively. This binding tag precedes the tag <code><b><a href=
"#body_bindings">TablelistBody</a></b></code> in the list of binding
tags of the tablelist descendants mentioned above, and is designed to
be used when defining individual binding scripts for tablelist
widgets. The main advantage of using this tag instead of the path
name of the tablelist's body is that it enables you to write event
handling scripts that are valid not only for the tablelist's body but
also for the separators, multi-line cells, and embedded images.</dd>
<dt><br>
<a name="cancelediting"></a><code><i>pathName</i>
<b>cancelediting</b></code></dt>
<dd>This subcommand cancels the interactive editing of the contents of
the cell whose index was passed to the <code><b><a href=
"#editcell">editcell</a></b></code> subcommand, destroys the temporary
widget embedded into the cell, and restores the original cell
contents. This command enables you to cancel the interactive cell
editing from within the Tcl command specified by the <code><b><a href=
"#editstartcommand">-editstartcommand</a></b></code> configuration
option if that pre-edit callback encounters an error when preparing the
text to be inserted into the edit window. The command is also
invoked implicitly by pressing the <code>Escape</code> key when a cell
is being edited. The return value is an empty string.
Immediately before returning this value, the command generates the
virtual event
<code><b><<TablelistCellRestored>></b></code>. If no
cell was being edited when the command was invoked then an empty string
is returned without generating a virtual event.</dd>
<dt><br>
<a name="cellattrib"></a><code><i>pathName</i> <b>cellattrib</b>
<i>cellIndex</i> ?<i>name</i>? ?<i>value</i> <i>name</i> <i>value</i>
...?</code></dt>
<dd>Queries or modifies the attributes of the cell given by
<code><i>cellIndex</i></code>. If no <code><i>name</i></code> is
specified, the command returns a list of pairs, each of which contains
the name and the value of an attribute for the cell. If
<code><i>name</i></code> is specified with no
<code><i>value</i></code>, then the command returns the value of the
one named cell attribute, or an empty string if no corresponding value
exists (you can use the <code><b><a href=
"#hascellattrib">hascellattrib</a></b></code> subcommand to distinguish
this case from the one that the value of an <i>existing</i> cell
attribute is an empty string). If one or more
<code><i>name</i></code>-<code><i>value</i></code> pairs are specified,
then the command sets the given cell attribute(s) to the given
value(s); in this case the return value is an empty string.
<code><i>name</i></code> may be an arbitrary string.</dd>
<dt><br>
<a name="cellcget"></a><code><i>pathName</i> <b>cellcget</b>
<i>cellIndex</i> <i>option</i></code></dt>
<dd>Returns the current value of the cell configuration option given by
<code><i>option</i></code> for the cell specified by
<code><i>cellIndex</i></code>. <code><i>option</i></code> may
have any of the values accepted by the <code><b><a href=
"#cellconfigure">cellconfigure</a></b></code> command.</dd>
<dt><br>
<a name="cellconfigure"></a><code><i>pathName</i> <b>cellconfigure</b>
<i>cellIndex</i> ?<i>option</i>? ?<i>value</i> <i>option</i>
<i>value</i> ...?</code></dt>
<dd>Queries or modifies the configuration options of the cell given by
<code><i>cellIndex</i></code>. If no <code><i>option</i></code>
is specified, the command returns a list describing all of the
available options for the cell (see
<code><b>Tk_ConfigureInfo</b></code> for information on the format of
this list). If <code><i>option</i></code> is specified with no
<code><i>value</i></code>, then the command returns a list describing
the one named option (this list will be identical to the corresponding
sublist of the value returned if no <code><i>option</i></code> is
specified). If one or more
<code><i>option</i></code>-<code><i>value</i></code> pairs are
specified, then the command modifies the given cell option(s) to have
the given value(s); in this case the return value is an empty
string. <code><i>option</i></code> may have any of the values
described in the <a href="#cell_options">CELL CONFIGURATION OPTIONS</a>
section.</dd>
<dt><br>
<a name="cellindex"></a><code><i>pathName</i> <b>cellindex</b>
<i>cellIndex</i></code></dt>
<dd>Returns the canonical cell index value that corresponds to
<code><i>cellIndex</i></code>, in the form
<code><i>row</i><b>,</b><i>col</i></code>, where
<code><i>row</i></code> and <code><i>col</i></code> are integers.</dd>
<dt><br>
<a name="cellselection"></a><code><i>pathName</i> <b>cellselection</b>
<i>option</i> <i>args</i></code></dt>
<dd>This command is used to adjust the cell selection within a
tablelist widget. It has several forms, depending on
<code><i>option</i></code>:</dd>
<dd>
<dl>
<dt><br>
<code><i>pathName</i> <b>cellselection</b> <b>anchor</b>
<i>cellIndex</i></code></dt>
<dd>Sets the cell selection anchor to the element given by
<code><i>cellIndex</i></code>. If
<code><i>cellIndex</i></code> refers to a nonexistent or hidden
element, then the closest non-hidden element is used. The
cell selection anchor is the end of the cell selection that is
fixed while dragging out a cell selection with the mouse if the
selection type is <code><b>cell</b></code>. The cell index
<code><b>anchor</b></code> may be used to refer to the anchor
element.</dd>
<dt><br>
<code><i>pathName</i> <b>cellselection</b> <b>clear</b>
<i>firstCell</i> <i>lastCell</i></code><br>
<code><i>pathName</i> <b>cellselection</b> <b>clear</b>
<i>cellIndexList</i></code></dt>
<dd>If any of the elements between <code><i>firstCell</i></code>
and <code><i>lastCell</i></code> (inclusive) or corresponding to
the cell indices specified by the list
<code><i>cellIndexList</i></code> are selected, they are
deselected. The selection state is not changed for elements
outside the range given in the first form of the command or
different from those specified by the cell index list given in its
second form.</dd>
<dt><br>
<code><i>pathName</i> <b>cellselection</b> <b>includes</b>
<i>cellIndex</i></code></dt>
<dd>Returns <code>1</code> if the element indicated by
<code><i>cellIndex</i></code> is currently selected, <code>0</code>
if it isn't.</dd>
<dt><br>
<code><i>pathName</i> <b>cellselection</b> <b>set</b>
<i>firstCell</i> <i>lastCell</i></code><br>
<code><i>pathName</i> <b>cellselection</b> <b>set</b>
<i>cellIndexList</i></code></dt>
<dd>Selects all of the selectable non-hidden elements in the range
between <code><i>firstCell</i></code> and
<code><i>lastCell</i></code>, inclusive, or corresponding to the
indices specified by the list <code><i>cellIndexList</i></code>,
without affecting the selection state of any other elements.
An element is viewed as selectable if and only if the value of the
<code><b><a href="#selectable">-selectable</a></b></code> option of
the row containing it is true.</dd>
</dl>
</dd>
<dd><br>
If the tablelist's <code><b><a href="#state">state</a></b></code> is
<code><b>disabled</b></code> and <code><i>option</i></code> is
different from <code><b>includes</b></code> then the command just
returns an empty string, without performing any of the above
actions.</dd>
<dt><br>
<a name="cget"></a><code><i>pathName</i> <b>cget</b>
<i>option</i></code></dt>
<dd>Returns the current value of the configuration option given by
<code><i>option</i></code>, which may have any of the values accepted
by the <code><b>tablelist::tablelist</b></code> command.</dd>
<dt><br>
<a name="columnattrib"></a><code><i>pathName</i> <b>columnattrib</b>
<i>columnIndex</i> ?<i>name</i>? ?<i>value</i> <i>name</i> <i>value</i>
...?</code></dt>
<dd>Queries or modifies the attributes of the column given by
<code><i>columnIndex</i></code>. If no <code><i>name</i></code>
is specified, the command returns a list of pairs, each of which
contains the name and the value of an attribute for the column.
If <code><i>name</i></code> is specified with no
<code><i>value</i></code>, then the command returns the value of the
one named column attribute, or an empty string if no corresponding
value exists (you can use the <code><b><a href=
"#hascolumnattrib">hascolumnattrib</a></b></code> subcommand to
distinguish this case from the one that the value of an <i>existing</i>
column attribute is an empty string). If one or more
<code><i>name</i></code>-<code><i>value</i></code> pairs are specified,
then the command sets the given column attribute(s) to the given
value(s); in this case the return value is an empty string.
<code><i>name</i></code> may be an arbitrary string.</dd>
<dt><br>
<a name="columncget"></a><code><i>pathName</i> <b>columncget</b>
<i>columnIndex</i> <i>option</i></code></dt>
<dd>Returns the current value of the column configuration option given
by <code><i>option</i></code> for the column specified by
<code><i>columnIndex</i></code>. <code><i>option</i></code> may
have any of the values accepted by the <code><b><a href=
"#columnconfigure">columnconfigure</a></b></code> command.</dd>
<dt><br>
<a name="columnconfigure"></a><code><i>pathName</i>
<b>columnconfigure</b> <i>columnIndex</i> ?<i>option</i>? ?<i>value</i>
<i>option</i> <i>value</i> ...?</code></dt>
<dd>Queries or modifies the configuration options of the column given
by <code><i>columnIndex</i></code>. If no
<code><i>option</i></code> is specified, the command returns a list
describing all of the available options for the column (see
<code><b>Tk_ConfigureInfo</b></code> for information on the format of
this list). If <code><i>option</i></code> is specified with no
<code><i>value</i></code>, then the command returns a list describing
the one named option (this list will be identical to the corresponding
sublist of the value returned if no <code><i>option</i></code> is
specified). If one or more
<code><i>option</i></code>-<code><i>value</i></code> pairs are
specified, then the command modifies the given column option(s) to have
the given value(s); in this case the return value is an empty
string. <code><i>option</i></code> may have any of the values
described in the <a href="#col_options">COLUMN CONFIGURATION
OPTIONS</a> section.</dd>
<dt><br>
<a name="columncount"></a><code><i>pathName</i>
<b>columncount</b></code></dt>
<dd>Returns the number of columns in the tablelist widget.</dd>
<dt><br>
<a name="columnindex"></a><code><i>pathName</i> <b>columnindex</b>
<i>columnIndex</i></code></dt>
<dd>Returns the integer column index value that corresponds to
<code><i>columnIndex</i></code>.</dd>
<dt><br>
<a name="columnwidth"></a><code><i>pathName</i> <b>columnwidth</b>
<i>columnIndex</i>
?<b>-requested</b>|<b>-stretched</b>|<b>-total</b>?</code></dt>
<dd>Returns the current width in pixels of the column specified by
<code><i>columnIndex</i></code>. If the optional argument is
<code><b>-requested</b></code> (which is the default) then the return
value is the number of pixels corresponding to the column width
specified by the <code><b><a href="#columns">-columns</a></b></code>
widget or <code><b><a href="#col_width">-width</a></b></code> column
configuration option (possibly overridden by interactive column
resizing); if the column width was specified as <code>0</code> (and was
not changed by interactive column resizing) then the return value is
the actual number of pixels corresponding to the widest non-hidden
element of the column, including its header. With the
<code><b>-stretched</b></code> option, the command returns the column
width obtained by increasing the value described above by the number of
additional pixels that might have been added to the requested column
width by a stretch operation (see the <code><b><a href=
"#stretch">-stretch</a></b></code> widget and <code><b><a href=
"#col_stretchable">-stretchable</a></b></code> column configuration
options). Finally, if the optional argument is
<code><b>-total</b></code> then the return value is the stretched
column width increased by the number of pixels corresponding to the
left and right margins within the column; this value equals the width
of the header label if the tablelist widget is mapped.</dd>
<dt><br>
<a name="configcelllist"></a><code><i>pathName</i>
<b>configcelllist</b> <i>cellConfigSpecList</i></code></dt>
<dd>
For each cell index, option, and value specified by the list
<code><i>cellConfigSpecList</i></code>, the command modifies the
given option of the given cell to have the given value. The
argument <code><i>cellConfigSpecList</i></code> must be a list of the
form
<blockquote>
<pre>
<i>cellIndex</i> <i>option</i> <i>value</i> <i>cellIndex</i> <i>option</i> <i>value</i> ...
</pre>
</blockquote>
<p>where each <code><i>option</i></code> may have any of the values
described in the <a href="#cell_options">CELL CONFIGURATION
OPTIONS</a> section. The return value is an empty string.</p>
<p>This command has the same effect as</p>
<blockquote>
<pre>
eval [list $<i>pathName</i> <a href=
"#configcells">configcells</a>] $<i>cellConfigSpecList</i>
</pre>
</blockquote>
<p>but it is more efficient and easier to use.</p>
</dd>
<dt><a name="configcells"></a><code><i>pathName</i> <b>configcells</b>
?<i>cellIndex</i> <i>option</i> <i>value</i> <i>cellIndex</i>
<i>option</i> <i>value</i> ...?</code></dt>
<dd>For each <code><i>cellIndex</i></code>, <code><i>option</i></code>,
and <code><i>value</i></code>, the command modifies the given option of
the given cell to have the given value. Each
<code><i>option</i></code> may have any of the values described in the
<a href="#cell_options">CELL CONFIGURATION OPTIONS</a> section.
The return value is an empty string.</dd>
<dt><br>
<a name="configcolumnlist"></a><code><i>pathName</i>
<b>configcolumnlist</b> <i>columnConfigSpecList</i></code></dt>
<dd>
For each column index, option, and value specified by the list
<code><i>columnConfigSpecList</i></code>, the command modifies the
given option of the given column to have the given value. The
argument <code><i>columnConfigSpecList</i></code> must be a list of
the form
<blockquote>
<pre>
<i>columnIndex</i> <i>option</i> <i>value</i> <i>columnIndex</i> <i>option</i> <i>value</i> ...
</pre>
</blockquote>
<p>where each <code><i>option</i></code> may have any of the values
described in the <a href="#col_options">COLUMN CONFIGURATION
OPTIONS</a> section. The return value is an empty string.</p>
<p>This command has the same effect as</p>
<blockquote>
<pre>
eval [list $<i>pathName</i> <a href=
"#configcolumns">configcolumns</a>] $<i>columnConfigSpecList</i>
</pre>
</blockquote>
<p>but it is more efficient and easier to use.</p>
</dd>
<dt><a name="configcolumns"></a><code><i>pathName</i>
<b>configcolumns</b> ?<i>columnIndex</i> <i>option</i> <i>value</i>
<i>columnIndex</i> <i>option</i> <i>value</i> ...?</code></dt>
<dd>For each <code><i>columnIndex</i></code>,
<code><i>option</i></code>, and <code><i>value</i></code>, the command
modifies the given option of the given column to have the given
value. Each <code><i>option</i></code> may have any of the values
described in the <a href="#col_options">COLUMN CONFIGURATION
OPTIONS</a> section. The return value is an empty string.</dd>
<dt><br>
<a name="configrowlist"></a><code><i>pathName</i> <b>configrowlist</b>
<i>rowConfigSpecList</i></code></dt>
<dd>
For each row index, option, and value specified by the list
<code><i>rowConfigSpecList</i></code>, the command modifies the given
option of the given row to have the given value. The argument
<code><i>rowConfigSpecList</i></code> must be a list of the form
<blockquote>
<pre>
<i>index</i> <i>option</i> <i>value</i> <i>index</i> <i>option</i> <i>value</i> ...
</pre>
</blockquote>
<p>where each <code><i>option</i></code> may have any of the values
described in the <a href="#row_options">ROW CONFIGURATION OPTIONS</a>
section. The return value is an empty string.</p>
<p>This command has the same effect as</p>
<blockquote>
<pre>
eval [list $<i>pathName</i> <a href=
"#configrows">configrows</a>] $<i>rowConfigSpecList</i>
</pre>
</blockquote>
<p>but it is more efficient and easier to use.</p>
</dd>
<dt><a name="configrows"></a><code><i>pathName</i> <b>configrows</b>
?<i>index</i> <i>option</i> <i>value</i> <i>index</i> <i>option</i>
<i>value</i> ...?</code></dt>
<dd>For each <code><i>index</i></code>, <code><i>option</i></code>, and
<code><i>value</i></code>, the command modifies the given option of the
given row to have the given value. Each
<code><i>option</i></code> may have any of the values described in the
<a href="#row_options">ROW CONFIGURATION OPTIONS</a> section. The
return value is an empty string.</dd>
<dt><br>
<a name="configure"></a><code><i>pathName</i> <b>configure</b>
?<i>option</i>? ?<i>value</i> <i>option</i> <i>value</i>
...?</code></dt>
<dd>Queries or modifies the configuration options of the widget.
If no <code><i>option</i></code> is specified, the command returns a
list describing all of the available options for
<code><i>pathName</i></code> (see <code><b>Tk_ConfigureInfo</b></code>
for information on the format of this list). If
<code><i>option</i></code> is specified with no
<code><i>value</i></code>, then the command returns a list describing
the one named option (this list will be identical to the corresponding
sublist of the value returned if no <code><i>option</i></code> is
specified). If one or more
<code><i>option</i></code>-<code><i>value</i></code> pairs are
specified, then the command modifies the given widget option(s) to have
the given value(s); in this case the return value is an empty
string. <code><i>option</i></code> may have any of the values
accepted by the <code><b>tablelist::tablelist</b></code> command.</dd>
<dt><br>
<a name="containing"></a><code><i>pathName</i> <b>containing</b>
<i>y</i></code></dt>
<dd>Given a y-coordinate within the tablelist window, this command
returns the index of the tablelist item containing that
y-coordinate. If no corresponding item is found then the return
value is <code>-1</code>. The coordinate <code><i>y</i></code> is
expected to be relative to the tablelist window itself (not its body
component).</dd>
<dt><br>
<a name="containingcell"></a><code><i>pathName</i>
<b>containingcell</b> <i>x</i> <i>y</i></code></dt>
<dd>Given an x- and a y-coordinate within the tablelist window, this
command returns the index of the tablelist cell containing the point
having these coordinates. If no corresponding cell is found then
the row or column component (or both) of the return value is
<code>-1</code>. The coordinates <code><i>x</i></code> and
<code><i>y</i></code> are expected to be relative to the tablelist
window itself (not its body component).</dd>
<dt><br>
<a name="containingcolumn"></a><code><i>pathName</i>
<b>containingcolumn</b> <i>x</i></code></dt>
<dd>Given an x-coordinate within the tablelist window, this command
returns the index of the tablelist column containing that
x-coordinate. If no corresponding column is found then the return
value is <code>-1</code>. The coordinate <code><i>x</i></code> is
expected to be relative to the tablelist window itself (not its body
component).</dd>
<dt><br>
<a name="curcellselection"></a><code><i>pathName</i>
<b>curcellselection</b></code></dt>
<dd>Returns a list containing the canonical indices (of the form
<code><i>row</i>,<i>col</i></code>, where <code><i>row</i></code> and
<code><i>col</i></code> are numbers) of all of the non-hidden elements
in the tablelist that are currently selected. If there are no
such elements in the tablelist then an empty string is returned.</dd>
<dt><br>
<a name="curselection"></a><code><i>pathName</i>
<b>curselection</b></code></dt>
<dd>Returns a list containing the numerical indices of all of the items
in the tablelist that contain at least one non-hidden selected
element. If there are no such items in the tablelist then an
empty string is returned.</dd>
<dt><br>
<a name="delete"></a><code><i>pathName</i> <b>delete</b> <i>first</i>
<i>last</i></code><br>
<code><i>pathName</i> <b>delete</b> <i>indexList</i></code></dt>
<dd>Deletes one or more items of the tablelist if its <code><b><a href=
"#state">state</a></b></code> is not
<code><b>disabled</b></code>. In the first form of the command,
<code><i>first</i></code> and <code><i>last</i></code> are indices
specifying the first and last items in the range to delete. The
command's second form accepts a list <code><i>indexList</i></code> of
indices specifying the items to be deleted. Returns an empty
string.</dd>
<dt><br>
<a name="deletecolumns"></a><code><i>pathName</i> <b>deletecolumns</b>
<i>firstColumn</i> <i>lastColumn</i></code><br>
<code><i>pathName</i> <b>deletecolumns</b>
<i>columnIndexList</i></code></dt>
<dd>Deletes one or more columns of the tablelist if its
<code><b><a href="#state">state</a></b></code> is not
<code><b>disabled</b></code>. In the first form of the command,
<code><i>firstColumn</i></code> and <code><i>lastColumn</i></code> are
indices specifying the first and last columns in the range to
delete. The command's second form accepts a list
<code><i>columnIndexList</i></code> of indices specifying the columns
to be deleted. Returns an empty string.</dd>
<dt><br>
<a name="editcell"></a><code><i>pathName</i> <b>editcell</b>
<i>cellIndex</i></code></dt>
<dd>Starts the interactive editing of the cell's contents if the
tablelist's <code><b><a href="#state">state</a></b></code> is not
<code><b>disabled</b></code>, the cell's row and column are not hidden,
and the cell is editable. Returns an empty string. See the
<a href="#cell_editing">INTERACTIVE CELL EDITING</a> section for
details on editablity and on the editing process.</dd>
<dt><br>
<a name="editwintag"></a><code><i>pathName</i>
<b>editwintag</b></code></dt>
<dd>
Returns the name of a binding tag whose name depends on the path name
of the tablelist widget and which is associated with some of the
components of the temporary embedded widget used for interactive cell
editing. These components depend on the edit window: the widget
itself in case of a Tk or tile checkbutton; the edit window's entry
children in case of a mentry widget; the only entry or entry-like
component of the edit window in all other cases (see also the
<code><b><a href="#entrypath">entrypath</a></b></code>
subcommand). This binding tag precedes the tag
<code><b><a href="#edit_bindings">TablelistEdit</a></b></code> in the
list of binding tags of the edit window components mentioned above,
and is designed to be used when defining individual binding scripts
for controlling the interactive cell editing. For example, the
following command will replace the standard behavior of the
<code>Return</code> key during cell editing in the tablelist widget
<code>.tbl</code> with that of the <code>Tab</code> key:
<blockquote>
<pre>
bind [.tbl editwintag] <Return> "[bind TablelistEdit <Tab>]; break"
</pre>
</blockquote>
</dd>
<dt><a name="editwinpath"></a><code><i>pathName</i>
<b>editwinpath</b></code></dt>
<dd>Returns the path name of the temporary embedded widget used for
interactive cell editing, created by the <code><b><a href=
"#editcell">editcell</a></b></code> subcommand. If no cell is
currently being edited then the return value is an empty string.
This subcommand enables you to access the edit window from within the
commands specified by the <code><b><a href=
"#editstartcommand">-editstartcommand</a></b></code> and
<code><b><a href="#editendcommand">-editendcommand</a></b></code>
configuration options.</dd>
<dt><br>
<a name="entrypath"></a><code><i>pathName</i>
<b>entrypath</b></code></dt>
<dd>Returns the path name of the entry or entry-like component of the
temporary embedded widget used for interactive cell editing, created by
the <code><b><a href="#editcell">editcell</a></b></code>
subcommand. If no cell is currently being edited or the editing
is taking place with the aid of a Tk or tile checkbutton or mentry
widget then the return value is an empty string; otherwise it is the
path name of a Tk or tile entry, Tk text or spinbox, or BWidget Entry
widget, which can be the edit window itself or one of its
descendants. This subcommand enables you to access the entry or
entry-like component of the temporary embedded widget from within the
commands specified by the <code><b><a href=
"#editstartcommand">-editstartcommand</a></b></code> and
<code><b><a href="#editendcommand">-editendcommand</a></b></code>
configuration options.</dd>
<dt><br>
<a name="fillcolumn"></a><code><i>pathName</i> <b>fillcolumn</b>
<i>columnIndex</i> <i>text</i></code></dt>
<dd>Sets all the elements of the specified column to the value
<code><i>text</i></code>.</dd>
<dt><br>
<a name="finishediting"></a><code><i>pathName</i>
<b>finishediting</b></code></dt>
<dd>
This subcommand attempts to terminate the interactive editing of the
contents of the cell whose index was passed to the <code><b><a href=
"#editcell">editcell</a></b></code> subcommand by destroying the
temporary widget embedded into the cell and updating the cell's
contents. The exact steps involved are as follows: First,
the widget's final text is compared to its original one. If
they are equal then the edit window is destroyed and the cell's
original contents are restored. If the two strings are
different and the value of the <code><b><a href=
"#editendcommand">-editendcommand</a></b></code> configuration option
is a nonempty string, then the widget's final text is passed to that
command as its last argument (following the tablelist's path name as
well as the cell's row and column indices), the resulting script is
evaluated in the global scope, and the return value becomes the
cell's new contents after destroying the edit window. However,
if from within this script the <code><b><a href=
"#rejectinput">rejectinput</a></b></code> subcommand was invoked then
the cell's value is not changed and the embedded widget remains
displayed in the cell; in this case the command returns the boolean
value <code>0</code>. In all the other cases, the return value
is <code>1</code>. Immediately before returning the value
<code>1</code>, the command generates the virtual event
<code><b><<TablelistCellUpdated>></b></code>. If no
cell was being edited when the command was invoked then the same
value <code>1</code> is returned but no virtual event is generated.
<p>This subcommand is called <i>implicitly</i> by pressing
<code>Return</code> or <code>KP_Enter</code> (together with
<code>Control</code> if the edit window is a text widget) when
editing a cell, or by clicking with the left mouse button anywhere in
the tablelist's body, outside the cell just being edited, or moving
into another editable cell by using keyboard navigation.</p>
<p>There are also situations where an <i>explicit</i> invocation of
this subcommand is needed, in order to make sure that the cell just
being edited gets updated with the text entered by the user.
For example, if a tablelist widget is part of a dialog used for
editing some data, then the binding script associated with the button
designed to accept the data should call this subcommand, because
otherwise, if the button is pressed during interactive cell editing
then the text entered into the edit window will get lost.</p>
</dd>
<dt><a name="formatinfo"></a><code><i>pathName</i>
<b>formatinfo</b></code></dt>
<dd>
This command is designed to be invoked from within a Tcl command
specified as the value of the <code><b><a href=
"#col_formatcommand">-formatcommand</a></b></code> column
configuration option. It returns a three-element list
containing information about the tablelist cell whose content is
being formatted with the aid of that command. The first element
of the list is the full key (of the form
<code><b>k</b><i>number</i></code>) associated with the item
containing the tablelist element that is being formatted. The
second and third elements of the list are the cell's row and column
indices.
<p>This subcommand is needed in cases where the result of the
formatting should depend on the cell's row. To be able to use
it, specify the value of the <code><b>-formatcommand</b></code>
column configuration option as <code>[<b>list</b>
<i>formatCommand</i> <i>pathName</i>]</code>, like in the
following example:</p>
<blockquote>
<pre>
.tbl columnconfigure 1 -formatcommand [list formatValue .tbl]
proc formatValue {tbl val} {
# Get information about the cell whose content is being formatted
foreach {key row col} [$tbl formatinfo] {}
# Return a string depending on $val and $row (or $key)
. . .
}
</pre>
</blockquote>
</dd>
<dt><a name="get"></a><code><i>pathName</i> <b>get</b> <i>first</i>
<i>last</i></code><br>
<code><i>pathName</i> <b>get</b> <i>indexList</i></code></dt>
<dd>The first form of the command returns a list whose elements are all
of the tablelist items (i.e., row contents) between
<code><i>first</i></code> and <code><i>last</i></code>,
inclusive. The value returned by the second form depends on the
number of elements in the list <code><i>indexList</i></code>: if the
latter contains exactly one index then the return value is the
tablelist item indicated by that index (or an empty string if the index
refers to a non-existent item); otherwise the command returns the list
of all of the tablelist items corresponding to the indices specified by
<code><i>indexList</i></code>.</dd>
<dt><br>
<a name="getcells"></a><code><i>pathName</i> <b>getcells</b>
<i>firstCell</i> <i>lastCell</i></code><br>
<code><i>pathName</i> <b>getcells</b> <i>cellIndexList</i></code></dt>
<dd>The first form of the command returns a list whose elements are all
of the tablelist elements (i.e., cell contents) between
<code><i>firstCell</i></code> and <code><i>lastCell</i></code>,
inclusive. The value returned by the second form depends on the
number of elements in the list <code><i>cellIndexList</i></code>: if
the latter contains exactly one cell index then the return value is the
tablelist element indicated by that cell index; otherwise the command
returns the list of all of the tablelist elements corresponding to the
cell indices specified by <code><i>cellIndexList</i></code>.</dd>
<dt><br>
<a name="getcolumns"></a><code><i>pathName</i> <b>getcolumns</b>
<i>firstColumn</i> <i>lastColumn</i></code><br>
<code><i>pathName</i> <b>getcolumns</b>
<i>columnIndexList</i></code></dt>
<dd>The first form of the command returns a list whose elements are
lists themselves, where each of the sublists corresponds to exactly one
column between <code><i>firstColumn</i></code> and
<code><i>lastColumn</i></code>, inclusive, and consists of all of the
tablelist elements contained in that column. The value returned
by the second form depends on the number of elements in the list
<code><i>columnIndexList</i></code>: if the latter contains exactly one
column index then the return value is a list consisting of all of the
tablelist elements contained in the column indicated by that column
index; otherwise the command returns a list whose elements are lists
themselves, where each of the sublists corresponds to exactly one
column index in <code><i>columnIndexList</i></code> and consists of all
of the tablelist elements contained in that column.</dd>
<dt><br>
<a name="getkeys"></a><code><i>pathName</i> <b>getkeys</b> <i>first</i>
<i>last</i></code><br>
<code><i>pathName</i> <b>getkeys</b> <i>indexList</i></code></dt>
<dd>The first form of the command returns a list whose elements are all
of the sequence numbers associated with the tablelist items between
<code><i>first</i></code> and <code><i>last</i></code>,
inclusive. The value returned by the second form depends on the
number of elements in the list <code><i>indexList</i></code>: if the
latter contains exactly one index then the return value is the sequence
number associated with the tablelist item indicated by that index (or
an empty string if the index refers to a non-existent item); otherwise
the command returns the list of all of the sequence numbers associated
with the tablelist items corresponding to the indices specified by
<code><i>indexList</i></code>. Each item of a tablelist widget
has a unique sequence number that remains unchanged until the item is
deleted, thus acting as a key that uniquely identifies the item even if
the latter's position (i.e., row index) changes. This command
provides read-only access to these internal item IDs.</dd>
<dt><br>
<a name="hasattrib"></a><code><i>pathName</i> <b>hasattrib</b>
<i>name</i></code></dt>
<dd>Returns <code>1</code> if the attribute <code><i>name</i></code>
exists and <code>0</code> otherwise.</dd>
<dt><br>
<a name="hascellattrib"></a><code><i>pathName</i> <b>hascellattrib</b>
<i>cellIndex</i> <i>name</i></code></dt>
<dd>Returns <code>1</code> if the attribute <code><i>name</i></code>
for the cell given by <code><i>cellIndex</i></code> exists and
<code>0</code> otherwise.</dd>
<dt><br>
<a name="hascolumnattrib"></a><code><i>pathName</i>
<b>hascolumnattrib</b> <i>columnIndex</i> <i>name</i></code></dt>
<dd>Returns <code>1</code> if the attribute <code><i>name</i></code>
for the column given by <code><i>columnIndex</i></code> exists and
<code>0</code> otherwise.</dd>
<dt><br>
<a name="hasrowattrib"></a><code><i>pathName</i> <b>hasrowattrib</b>
<i>index</i> <i>name</i></code></dt>
<dd>Returns <code>1</code> if the attribute <code><i>name</i></code>
for the row given by <code><i>index</i></code> exists and
<code>0</code> otherwise.</dd>
<dt><br>
<a name="imagelabelpath"></a><code><i>pathName</i>
<b>imagelabelpath</b> <i>cellIndex</i></code></dt>
<dd>Returns the path name of the label widget containing the image
embedded into the cell given by <code><i>cellIndex</i></code>, as
specified with the <code><b><a href="#cell_image">-image</a></b></code>
option of the <code><b><a href=
"#cellconfigure">cellconfigure</a></b></code> subcommand. If no
image is currently embedded into the cell then the return value is an
empty string.</dd>
<dt><br>
<a name="index"></a><code><i>pathName</i> <b>index</b>
<i>index</i></code></dt>
<dd>Returns the integer row index value that corresponds to
<code><i>index</i></code>. If <code><i>index</i></code> is
<code><b>end</b></code> then the return value is the number of items in
the tablelist (not the index of the last item).</dd>
<dt><br>
<a name="insert"></a><code><i>pathName</i> <b>insert</b> <i>index</i>
?<i>item</i> <i>item</i> ...?</code></dt>
<dd>Inserts zero or more new items in the widget's internal list just
before the item given by <code><i>index</i></code> if the tablelist's
<code><b><a href="#state">state</a></b></code> is not
<code><b>disabled</b></code>. If <code><i>index</i></code> equals
the number of items or is specified as <code><b>end</b></code> then the
new items are added to the end of the widget's list. Tabulator
characters are displayed as <code>\t</code> (i.e., a backslash followed
by a <code>t</code>) but are inserted unchanged into the internal
list. Newline characters will force line breaks, i.e., will give
rise to multi-line elements (which are displayed in embedded message
widgets, created on demand). The return value is an empty
string.</dd>
<dt><br>
<a name="insertcolumnlist"></a><code><i>pathName</i>
<b>insertcolumnlist</b> <i>columnIndex</i>
<i>columnList</i></code></dt>
<dd>
Inserts the columns specified by the list
<code><i>columnList</i></code> just before the column given by
<code><i>columnIndex</i></code> if the tablelist's <code><b><a href=
"#state">state</a></b></code> is not
<code><b>disabled</b></code>. If
<code><i>columnIndex</i></code> equals the number of columns or is
specified as <code><b>end</b></code> then the new columns are added
to the end of the column list. The argument
<code><i>columnList</i></code> must be a list containing the width,
title, and optional alignment specifications for the new columns, in
the same form as in the case of the <code><b><a href=
"#columns">-columns</a></b></code> configuration option. The
return value is an empty string. The elements of the new
columns are initially empty strings; the easiest way to change these
values is to use the <code><b><a href=
"#fillcolumn">fillcolumn</a></b></code> subcommand or the
<code><b><a href="#col_text">-text</a></b></code> column
configuration option.
<p>This command has the same effect as</p>
<blockquote>
<pre>
eval [list $<i>pathName</i> <a href=
"#insertcolumns">insertcolumns</a> $<i>columnIndex</i>] $<i>columnList</i>
</pre>
</blockquote>
<p>but it is more efficient and easier to use.</p>
</dd>
<dt><a name="insertcolumns"></a><code><i>pathName</i>
<b>insertcolumns</b> <i>columnIndex</i> ?<i>width</i> <i>title</i>
?<i>alignment</i>? <i>width</i> <i>title</i> ?<i>alignment</i>?
...?</code></dt>
<dd>Inserts zero or more new columns just before the column given by
<code><i>columnIndex</i></code> if the tablelist's <code><b><a href=
"#state">state</a></b></code> is not
<code><b>disabled</b></code>. If <code><i>columnIndex</i></code>
equals the number of columns or is specified as <code><b>end</b></code>
then the new columns are added to the end of the column list. The
arguments following the column index have the same meanings as in the
case of the <code><b><a href="#columns">-columns</a></b></code>
configuration option. The return value is an empty string.
The elements of the new columns are initially empty strings; the
easiest way to change these values is to use the <code><b><a href=
"#fillcolumn">fillcolumn</a></b></code> subcommand or the
<code><b><a href="#col_text">-text</a></b></code> column configuration
option.</dd>
<dt><br>
<a name="insertlist"></a><code><i>pathName</i> <b>insertlist</b>
<i>index</i> <i>itemList</i></code></dt>
<dd>
Inserts the items of the list <code><i>itemList</i></code> in the
widget's internal list just before the item given by
<code><i>index</i></code> if the tablelist's <code><b><a href=
"#state">state</a></b></code> is not
<code><b>disabled</b></code>. If <code><i>index</i></code>
equals the number of items or is specified as <code><b>end</b></code>
then the new items are added to the end of the widget's list.
Tabulator characters are displayed as <code>\t</code> (i.e., a
backslash followed by a <code>t</code>) but are inserted unchanged
into the internal list. Newline characters will force line
breaks, i.e., will give rise to multi-line elements (which are
displayed in embedded message widgets, created on demand). The
return value is an empty string.
<p>This command has the same effect as</p>
<blockquote>
<pre>
eval [list $<i>pathName</i> <a href=
"#insert">insert</a> $<i>index</i>] $<i>itemList</i>
</pre>
</blockquote>
<p>but it is more efficient and easier to use.</p>
</dd>
<dt><a name="iselemsnipped"></a><code><i>pathName</i>
<b>iselemsnipped</b> <i>cellIndex</i> <i>fullTextName</i></code></dt>
<dd>Returns the value <code>1</code> if the text displayed in the cell
specified by <code><i>cellIndex</i></code> is snipped and
<code>0</code> otherwise. In both cases, the full (unsnipped)
cell text is stored in the variable having the name given by
<code><i>fullTextName</i></code>; this full text can be the cell's
contents or the string obtained from the latter by using the
<code><b><a href="#col_formatcommand">-formatcommand</a></b></code>
option of the cell's column. The most common invocation of this
command occurs within the procedure specified as the value of the
<code><b><a href="#tooltipaddcommand">-tooltipaddcommand</a></b></code>
configuration option.</dd>
<dt><br>
<a name="istitlesnipped"></a><code><i>pathName</i>
<b>istitlesnipped</b> <i>columnIndex</i>
<i>fullTextName</i></code></dt>
<dd>Returns the value <code>1</code> if the text displayed in the
header label specified by <code><i>columnIndex</i></code> is snipped
and <code>0</code> otherwise. In both cases, the full (unsnipped)
label text is stored in the variable having the name given by
<code><i>fullTextName</i></code>. The most common invocation of
this command occurs within the procedure specified as the value of the
<code><b><a href="#tooltipaddcommand">-tooltipaddcommand</a></b></code>
configuration option.</dd>
<dt><br>
<a name="itemlistvar"></a><code><i>pathName</i>
<b>itemlistvar</b></code></dt>
<dd>
Returns the name of a variable used by Tablelist to hold the widget's
internal list. The recommended way to use this variable is to
create a link to it with the aid of the <code><b>upvar</b></code>
command, like in the following example:
<blockquote>
<pre>
upvar #0 [.tbl itemlistvar] itemList
</pre>
</blockquote>
<p>In this example, the value of the variable <code>itemList</code>
will be the internal list of the tablelist widget
<code>.tbl</code>. Each element of the widget's internal list
corresponds to one item, and it is in turn a list whose elements
correspond to the elements of that item, except that it has one
additional element, holding the item's key.</p>
<p>The <code><b>itemlistvar</b></code> command provides an efficient
way for accessing this internal list, instead of retrieving the items
with the <code><b><a href="#get">get</a></b></code> subcommand or
using the <code><b><a href=
"#listvariable">-listvariable</a></b></code> option (these methods
consume significantly more memory). It can be useful in
situations where the elements of a tablelist widget are to be
accessed for creating text files, HTML output, XML data, database
commands, etc. This should, however, be a strictly readonly
access; otherwise the results will be unpredictable!</p>
</dd>
<dt><a name="labelpath"></a><code><i>pathName</i> <b>labelpath</b>
<i>columnIndex</i></code></dt>
<dd>Returns the path name of the header label corresponding to the
column indicated by <code><i>columnIndex</i></code>.</dd>
<dt><br>
<a name="labels"></a><code><i>pathName</i> <b>labels</b></code></dt>
<dd>Returns a list containing the path names of all header labels of
the widget.</dd>
<dt><br>
<a name="move"></a><code><i>pathName</i> <b>move</b> <i>source</i>
<i>target</i></code></dt>
<dd>Moves the item indicated by <code><i>source</i></code> just before
the one given by <code><i>target</i></code> if the tablelist's
<code><b><a href="#state">state</a></b></code> is not
<code><b>disabled</b></code>. If <code><i>target</i></code>
equals the nunber of items or is specified as <code><b>end</b></code>
then the source item is moved after the last one. Returns an
empty string.</dd>
<dt><br>
<a name="movecolumn"></a><code><i>pathName</i> <b>movecolumn</b>
<i>sourceColumn</i> <i>targetColumn</i></code></dt>
<dd>Moves the column indicated by <code><i>sourceColumn</i></code> just
before the one given by <code><i>targetColumn</i></code> if the
tablelist's <code><b><a href="#state">state</a></b></code> is not
<code><b>disabled</b></code>. If <code><i>targetColumn</i></code>
equals the number of columns or is specified as <code><b>end</b></code>
then the source column is moved after the last one. Returns an
empty string.</dd>
<dt><br>
<a name="nearest"></a><code><i>pathName</i> <b>nearest</b>
<i>y</i></code></dt>
<dd>Given a y-coordinate within the tablelist window, this command
returns the index of the non-hidden tablelist item nearest to that
y-coordinate. The coordinate <code><i>y</i></code> is expected to
be relative to the tablelist window itself (not its body
component).</dd>
<dt><br>
<a name="nearestcell"></a><code><i>pathName</i> <b>nearestcell</b>
<i>x</i> <i>y</i></code></dt>
<dd>Given an x- and a y-coordinate within the tablelist window, this
command returns the index of the non-hidden tablelist cell nearest to
the point having these coordinates. The coordinates
<code><i>x</i></code> and <code><i>y</i></code> are expected to be
relative to the tablelist window itself (not its body component).</dd>
<dt><br>
<a name="nearestcolumn"></a><code><i>pathName</i> <b>nearestcolumn</b>
<i>x</i></code></dt>
<dd>Given an x-coordinate within the tablelist window, this command
returns the index of the non-hidden tablelist column nearest to that
x-coordinate. The coordinate <code><i>x</i></code> is expected to
be relative to the tablelist window itself (not its body
component).</dd>
<dt><br>
<a name="rejectinput"></a><code><i>pathName</i>
<b>rejectinput</b></code></dt>
<dd>If invoked from within the Tcl command specified by the
<code><b><a href="#editendcommand">-editendcommand</a></b></code>
configuration option, then this subcommand prevents the termination of
the interactive editing of the contents of the cell whose index was
passed to the <code><b><a href="#editcell">editcell</a></b></code>
subcommand. It invokes the <code><b><a href=
"#seecell">seecell</a></b></code> subcommand to make sure the
respective cell becomes visible (in case it was scrolled out of view),
and sets the focus to the temporary widget embedded into the
cell. This command enables you to reject the widget's text during
the final validation of the string intended to become the new cell
contents.</dd>
<dt><br>
<a name="resetsortinfo"></a><code><i>pathName</i>
<b>resetsortinfo</b></code></dt>
<dd>Resets the information about the sorting of the items.
Subsequent invocations of <code><b><a href=
"#sortcolumn">sortcolumn</a></b></code> and <code><b><a href=
"#sortorder">sortorder</a></b></code> will return <code>-1</code> and
an empty string, respectively. Similarly, subsequent invocations
of <code><b><a href="#sortcolumnlist">sortcolumnlist</a></b></code> and
<code><b><a href="#sortorderlist">sortorderlist</a></b></code> will
return an empty string. This command also removes any existing
up- or down-arrows displayed by an earlier invocation of
<code><b><a href="#sortbycolumn">sortbycolumn</a></b></code> or
<code><b><a href=
"#sortbycolumnlist">sortbycolumnlist</a></b></code>. The return
value is an empty string.</dd>
<dt><br>
<a name="rowattrib"></a><code><i>pathName</i> <b>rowattrib</b>
<i>index</i> ?<i>name</i>? ?<i>value</i> <i>name</i> <i>value</i>
...?</code></dt>
<dd>Queries or modifies the attributes of the row given by
<code><i>index</i></code>. If no <code><i>name</i></code> is
specified, the command returns a list of pairs, each of which contains
the name and the value of an attribute for the row. If
<code><i>name</i></code> is specified with no
<code><i>value</i></code>, then the command returns the value of the
one named row attribute, or an empty string if no corresponding value
exists (you can use the <code><b><a href=
"#hasrowattrib">hasrowattrib</a></b></code> subcommand to distinguish
this case from the one that the value of an <i>existing</i> row
attribute is an empty string). If one or more
<code><i>name</i></code>-<code><i>value</i></code> pairs are specified,
then the command sets the given row attribute(s) to the given value(s);
in this case the return value is an empty string.
<code><i>name</i></code> may be an arbitrary string.</dd>
<dt><br>
<a name="rowcget"></a><code><i>pathName</i> <b>rowcget</b> <i>index</i>
<i>option</i></code></dt>
<dd>Returns the current value of the row configuration option given by
<code><i>option</i></code> for the row specified by
<code><i>index</i></code>. <code><i>option</i></code> may have
any of the values accepted by the <code><b><a href=
"#rowconfigure">rowconfigure</a></b></code> command.</dd>
<dt><br>
<a name="rowconfigure"></a><code><i>pathName</i> <b>rowconfigure</b>
<i>index</i> ?<i>option</i>? ?<i>value</i> <i>option</i> <i>value</i>
...?</code></dt>
<dd>Queries or modifies the configuration options of the row given by
<code><i>index</i></code>. If no <code><i>option</i></code> is
specified, the command returns a list describing all of the available
options for the row (see <code><b>Tk_ConfigureInfo</b></code> for
information on the format of this list). If
<code><i>option</i></code> is specified with no
<code><i>value</i></code>, then the command returns a list describing
the one named option (this list will be identical to the corresponding
sublist of the value returned if no <code><i>option</i></code> is
specified). If one or more
<code><i>option</i></code>-<code><i>value</i></code> pairs are
specified, then the command modifies the given row option(s) to have
the given value(s); in this case the return value is an empty
string. <code><i>option</i></code> may have any of the values
described in the <a href="#row_options">ROW CONFIGURATION OPTIONS</a>
section.</dd>
<dt><br>
<a name="scan"></a><code><i>pathName</i> <b>scan</b> <i>option</i>
<i>args</i></code></dt>
<dd>This command is used to implement scanning on tablelist
widgets. It has two forms, depending on
<code><i>option</i></code>:</dd>
<dd>
<dl>
<dt><br>
<code><i>pathName</i> <b>scan</b> <b>mark</b> <i>x</i>
<i>y</i></code></dt>
<dd>Records <code><i>x</i></code> and <code><i>y</i></code> and the
current view in the tablelist window; used in conjunction with
later <code><b>scan</b> <b>dragto</b></code>
commands. Typically this command is associated with a mouse
button press in the body component of the widget. It returns
an empty string. The coordinates <code><i>x</i></code> and
<code><i>y</i></code> are expected to be relative to the tablelist
window itself (not its body component).</dd>
<dt><br>
<code><i>pathName</i> <b>scan</b> <b>dragto</b> <i>x</i>
<i>y</i></code></dt>
<dd>This command computes the difference between its
<code><i>x</i></code> and <code><i>y</i></code> arguments to the
last <code><b>scan</b> <b>mark</b></code> command for
the widget. It then adjusts the view (the vertical one only
in the body component) by 10 times the difference in
coordinates. This command is typically associated with mouse
motion events in the body component of the widget, to produce the
effect of dragging the table at high speed through the
window. The return value is an empty string. The
coordinates <code><i>x</i></code> and <code><i>y</i></code> are
expected to be relative to the tablelist window itself (not its
body component).</dd>
</dl>
</dd>
<dt><br>
<a name="see"></a><code><i>pathName</i> <b>see</b>
<i>index</i></code></dt>
<dd>Adjusts the view in the tablelist so that the item given by
<code><i>index</i></code> is visible. If the item is already
visible then the command has no effect; if the item is near one edge of
the window then the tablelist scrolls to bring the item into view at
the edge; otherwise the tablelist scrolls to center the item.</dd>
<dt><br>
<a name="seecell"></a><code><i>pathName</i> <b>seecell</b>
<i>cellIndex</i></code></dt>
<dd>Adjusts the view in the tablelist so that the cell given by
<code><i>cellIndex</i></code> is visible. If the cell is already
visible then the command has no effect; if the cell is near one edge of
the window then the tablelist scrolls to bring the cell into view at
the edge; otherwise the tablelist scrolls to center the cell. If
the value of the <code><b><a href=
"#titlecolumns">-titlecolumns</a></b></code> option is positive then
the centering of the cell is only done vertically; the horizontal
scrolling (which in this case is performed column-wise) will just bring
the cell into view next to the title columns or at the right edge of
the window.</dd>
<dt><br>
<a name="seecolumn"></a><code><i>pathName</i> <b>seecolumn</b>
<i>columnIndex</i></code></dt>
<dd>Adjusts the view in the tablelist so that the column given by
<code><i>columnIndex</i></code> is visible. If the column is
already visible then the command has no effect; if the column is near
one edge of the window then the tablelist scrolls horizontally to bring
the column into view at the edge; otherwise the tablelist scrolls
horizontally to center the column. If the value of the
<code><b><a href="#titlecolumns">-titlecolumns</a></b></code> option is
positive then the horizontal scrolling (which in this case is performed
column-wise) will just bring the column into view next to the title
columns or at the right edge of the window.</dd>
<dt><br>
<a name="selection"></a><code><i>pathName</i> <b>selection</b>
<i>option</i> <i>args</i></code></dt>
<dd>This command is used to adjust the selection within a tablelist
widget. It has several forms, depending on
<code><i>option</i></code>:</dd>
<dd>
<dl>
<dt><br>
<code><i>pathName</i> <b>selection</b> <b>anchor</b>
<i>index</i></code></dt>
<dd>Sets the selection anchor to the item given by
<code><i>index</i></code>. If <code><i>index</i></code>
refers to a nonexistent or hidden item, then the closest non-hidden
item is used. The selection anchor is the end of the
selection that is fixed while dragging out a selection with the
mouse if the selection type is <code><b>row</b></code>. The
index <code><b>anchor</b></code> may be used to refer to the anchor
item.</dd>
<dt><br>
<code><i>pathName</i> <b>selection</b> <b>clear</b> <i>first</i>
<i>last</i></code><br>
<code><i>pathName</i> <b>selection</b> <b>clear</b>
<i>indexList</i></code></dt>
<dd>If any of the items between <code><i>first</i></code> and
<code><i>last</i></code> (inclusive) or corresponding to the
indices specified by the list <code><i>indexList</i></code> contain
at least one selected cell, they are deselected. The
selection state is not changed for items outside the range given in
the first form of the command or different from those specified by
the index list given in its second form.</dd>
<dt><br>
<code><i>pathName</i> <b>selection</b> <b>includes</b>
<i>index</i></code></dt>
<dd>Returns <code>1</code> if the item indicated by
<code><i>index</i></code> contains at least one non-hidden selected
cell, <code>0</code> if it doesn't.</dd>
<dt><br>
<code><i>pathName</i> <b>selection</b> <b>set</b> <i>first</i>
<i>last</i></code><br>
<code><i>pathName</i> <b>selection</b> <b>set</b>
<i>indexList</i></code></dt>
<dd>Selects all of the selectable items in the range between
<code><i>first</i></code> and <code><i>last</i></code>, inclusive,
or corresponding to the indices specified by the list
<code><i>indexList</i></code>, without affecting the selection
state of any other items.</dd>
</dl>
</dd>
<dd><br>
If the tablelist's <code><b><a href="#state">state</a></b></code> is
<code><b>disabled</b></code> and <code><i>option</i></code> is
different from <code><b>includes</b></code> then the command just
returns an empty string, without performing any of the above
actions.</dd>
<dt><br>
<a name="separatorpath"></a><code><i>pathName</i> <b>separatorpath</b>
?<i>columnIndex</i>?</code></dt>
<dd>If the optional argument is not specified, then this command
returns the path name of the special separator displayed to mark the
end of the title columns if the value of the <code><b><a href=
"#titlecolumns">-titlecolumns</a></b></code> option is positive and an
empty string otherwise. If the optional argument is present, then
the command returns the path name of the separator attached to the
right edge of the header label indicated by
<code><i>columnIndex</i></code> if the value of the <code><b><a href=
"#showseparators">-showseparators</a></b></code> configuration option
is true and an empty string otherwise.</dd>
<dt><br>
<a name="separators"></a><code><i>pathName</i>
<b>separators</b></code></dt>
<dd>Returns a list containing the path names of all column
separators. If the value of the <code><b><a href=
"#titlecolumns">-titlecolumns</a></b></code> option is positive then
the first element of the list will be the path name of the special
separator displayed to mark the end of the title columns. Whether
the path names of the other separators are included in the list,
depends on the value of the <code><b><a href=
"#showseparators">-showseparators</a></b></code> configuration
option.</dd>
<dt><br>
<a name="size"></a><code><i>pathName</i> <b>size</b></code></dt>
<dd>Returns the total number of items in the tablelist widget.</dd>
<dt><br>
<a name="sort"></a><code><i>pathName</i> <b>sort</b>
?<b>-increasing</b>|<b>-decreasing</b>?</code></dt>
<dd>Sorts the items in increasing or decreasing order, as specified by
the optional argument. The default is
<code><b>-increasing</b></code>. Uses the value of the
<code><b><a href="#sortcommand">-sortcommand</a></b></code> widget
configuration option as comparison command.
<code><b>sort</b></code> also removes any existing up- or down-arrows
displayed by an earlier invocation of <code><b><a href=
"#sortbycolumn">sortbycolumn</a></b></code> or <code><b><a href=
"#sortbycolumnlist">sortbycolumnlist</a></b></code>. After
sorting the items, the command conditionally adjusts the vertical view
as follows: (a) if interactive cell editing is in progress then the
cell being edited is brought into view; (b) else, if exactly one item
is selected then the view is shifted to bring that item into view; (c)
else, if the tablelist's body is the most recent window to have the
input focus among all the windows in the same top-level as the widget
itself then the currently active item is brought into view.</dd>
<dt><br>
<a name="sortbycolumn"></a><code><i>pathName</i> <b>sortbycolumn</b>
<i>columnIndex</i> ?<b>-increasing</b>|<b>-decreasing</b>?</code></dt>
<dd>
Sorts the items based on the elements of the column given by
<code><i>columnIndex</i></code>, in increasing or decreasing order,
as specified by the optional argument. The default is
<code><b>-increasing</b></code>. The sorting process is
controlled by the values of the <code><b><a href=
"#col_sortmode">-sortmode</a></b></code> and <code><b><a href=
"#col_sortcommand">-sortcommand</a></b></code> options for the given
column. If both the value of the <code><b><a href=
"#showarrow">-showarrow</a></b></code> configuration option and that
of the <code><b><a href="#col_showarrow">-showarrow</a></b></code>
option for the specified column are true then an up- or down-arrow
indicating the sort order will be placed into the column's
label. The shape of the arrow depends on the command's optional
argument and on the value of the <code><b><a href=
"#incrarrowtype">-incrarrowtype</a></b></code> configuration
option. If the label's text is right-aligned then the arrow
will be displayed on the left side of the label, otherwise on its
right side. After sorting the items, the vertical view is
adjusted in the same way as in the case of the <code><b><a href=
"#sort">sort</a></b></code> subcommand.
<p>The actions described above are only performed if the specified
column's <code><b><a href=
"#col_showlinenumbers">-showlinenumbers</a></b></code> option hasn't
been set to true.</p>
</dd>
<dt><a name="sortbycolumnlist"></a><code><i>pathName</i>
<b>sortbycolumnlist</b> <i>columnIndexList</i>
?<i>sortOrderList</i>?</code></dt>
<dd>
Sorts the items based on the elements of the columns given by the
<code><i>columnIndexList</i></code> argument, which must be a list of
distinct column indices. Only those elements of this list are
considered significant that identify columns whose <code><b><a href=
"#col_showlinenumbers">-showlinenumbers</a></b></code> option hasn't
been set to true.
<p>The items are first sorted based on the column specified by the
last significant element of <code><i>columnIndexList</i></code>, then
based on the one given by the last but one significant element, and
so on. The order of each sort operation is taken from the
optional argument <code><i>sortOrderList</i></code>, whose elements
must be (abbreviations of) <code><b>increasing</b></code> or
<code><b>decreasing</b></code>. If this argument was not
specified or contains less elements than
<code><i>columnIndexList</i></code> then the missing sort orders are
assumed to be <code><b>increasing</b></code>. Each sorting
process is controlled by the values of the <code><b><a href=
"#col_sortmode">-sortmode</a></b></code> and <code><b><a href=
"#col_sortcommand">-sortcommand</a></b></code> options for the
respective column. If the column's index was specified among
the first 9 significant elements of
<code><i>columnIndexList</i></code> and both the value of the
<code><b><a href="#showarrow">-showarrow</a></b></code> configuration
option and that of the <code><b><a href=
"#col_showarrow">-showarrow</a></b></code> option for that column are
true then an up- or down-arrow indicating the sort order will be
placed into the column's label. The shape of the arrow depends
on the respective sort order and on the value of the
<code><b><a href="#incrarrowtype">-incrarrowtype</a></b></code>
configuration option. If the label's text is right-aligned then
the arrow will be displayed on the left side of the label, otherwise
on its right side. If more than one sort arrows are to be
displayed then the first 9 sort ranks (<code>1</code> for the first
significant element of <code><i>columnIndexList</i></code>,
<code>2</code> for the second one, and so on) will also be shown to
the right of the arrows. After sorting the items, the vertical
view is adjusted in the same way as in the case of the
<code><b><a href="#sort">sort</a></b></code> subcommand.</p>
</dd>
<dt><a name="sortcolumn"></a><code><i>pathName</i>
<b>sortcolumn</b></code></dt>
<dd>Returns the numerical index of the column by which the items were
last sorted with the aid of the <code><b><a href=
"#sortbycolumn">sortbycolumn</a></b></code> or <code><b><a href=
"#sortbycolumnlist">sortbycolumnlist</a></b></code> command, or
<code>-1</code> if they were last sorted with the <code><b><a href=
"#sort">sort</a></b></code> command or haven't been sorted at all, or
the sort information was reset by invoking <code><b><a href=
"#resetsortinfo">resetsortinfo</a></b></code>.</dd>
<dt><br>
<a name="sortcolumnlist"></a><code><i>pathName</i>
<b>sortcolumnlist</b></code></dt>
<dd>Returns a list consisting of the numerical indices of the columns
by which the items were last sorted with the aid of the
<code><b><a href="#sortbycolumnlist">sortbycolumnlist</a></b></code> or
<code><b><a href="#sortbycolumn">sortbycolumn</a></b></code> command
(in the second case the list will contain exactly one element), or an
empty string if they were last sorted with the <code><b><a href=
"#sort">sort</a></b></code> command or haven't been sorted at all, or
the sort information was reset by invoking <code><b><a href=
"#resetsortinfo">resetsortinfo</a></b></code>.</dd>
<dt><br>
<a name="sortorder"></a><code><i>pathName</i>
<b>sortorder</b></code></dt>
<dd>Returns the sort order (as <code><b>increasing</b></code> or
<code><b>decreasing</b></code>) from the last sorting performed by the
<code><b><a href="#sort">sort</a></b></code>, <code><b><a href=
"#sortbycolumn">sortbycolumn</a></b></code>, or <code><b><a href=
"#sortbycolumnlist">sortbycolumnlist</a></b></code> command, or an
empty string if the items haven't been sorted at all, or the sort
information was reset by invoking <code><b><a href=
"#resetsortinfo">resetsortinfo</a></b></code>.</dd>
<dt><br>
<a name="sortorderlist"></a><code><i>pathName</i>
<b>sortorderlist</b></code></dt>
<dd>Returns a list consisting of the sort orders (as
<code><b>increasing</b></code> or <code><b>decreasing</b></code>) from
the last invocation of the <code><b><a href=
"#sortbycolumnlist">sortbycolumnlist</a></b></code> or
<code><b><a href="#sortbycolumn">sortbycolumn</a></b></code> command
(in the second case the list will contain exactly one element), or an
empty string if the items were last sorted with the <code><b><a href=
"#sort">sort</a></b></code> command or haven't been sorted at all, or
the sort information was reset by invoking <code><b><a href=
"#resetsortinfo">resetsortinfo</a></b></code>.</dd>
<dt><br>
<a name="togglecolumnhide"></a><code><i>pathName</i>
<b>togglecolumnhide</b> <i>firstColumn</i> <i>lastColumn</i></code><br>
<code><i>pathName</i> <b>togglecolumnhide</b>
<i>columnIndexList</i></code></dt>
<dd>Toggles the value of the <code><b><a href=
"#col_hide">-hide</a></b></code> option for one or more columns of the
tablelist. In the first form of the command,
<code><i>firstColumn</i></code> and <code><i>lastColumn</i></code> are
indices specifying the first and last columns in the range whose
visibility is to be toggled. The command's second form accepts a
list <code><i>columnIndexList</i></code> of indices specifying the
columns whose visibility is to be toggled. Returns an empty
string. The main advantage of using this command instead of
invoking <code><b><a href=
"#columnconfigure">columnconfigure</a></b></code> for each of the
specified columns is that it causes only one redisplay of the widget's
contents, thus being significantly faster.</dd>
<dt><br>
<a name="togglerowhide"></a><code><i>pathName</i> <b>togglerowhide</b>
<i>first</i> <i>last</i></code><br>
<code><i>pathName</i> <b>togglerowhide</b> <i>indexList</i></code></dt>
<dd>
Toggles the value of the <code><b><a href=
"#row_hide">-hide</a></b></code> option for one or more rows of the
tablelist. In the first form of the command,
<code><i>first</i></code> and <code><i>last</i></code> are indices
specifying the first and last rows in the range whose visibility is
to be toggled. The command's second form accepts a list
<code><i>indexList</i></code> of indices specifying the rows whose
visibility is to be toggled. Returns an empty string.
Just like the <code><b>-hide</b></code> row configuration option,
this subcommand is not supported for Tk versions earlier than 8.3.
<p><b>CAUTION:</b> Tk versions 8.3 - 8.4.12 had a bug that
caused a segmentation fault if the whole content of a text widget was
elided. This bug was also present in Tk 8.5.a1 - 8.5.a3.
When using one of these earlier Tk versions, this bug will produce a
crash if all the rows of a tablelist widget are hidden. It is
your responsibility to avoid such situations when using a Tk version
having this bug!</p>
</dd>
<dt><a name="unsetattrib"></a><code><i>pathName</i> <b>unsetattrib</b>
<i>name</i></code></dt>
<dd>Unsets the attribute <code><i>name</i></code>. Returns an
empty string.</dd>
<dt><br>
<a name="unsetcellattrib"></a><code><i>pathName</i>
<b>unsetcellattrib</b> <i>cellIndex</i> <i>name</i></code></dt>
<dd>Unsets the attribute <code><i>name</i></code> for the cell given by
<code><i>cellIndex</i></code>. Returns an empty string.</dd>
<dt><br>
<a name="unsetcolumnattrib"></a><code><i>pathName</i>
<b>unsetcolumnattrib</b> <i>columnIndex</i> <i>name</i></code></dt>
<dd>Unsets the attribute <code><i>name</i></code> for the column given
by <code><i>columnIndex</i></code>. Returns an empty string.</dd>
<dt><br>
<a name="unsetrowattrib"></a><code><i>pathName</i>
<b>unsetrowattrib</b> <i>index</i> <i>name</i></code></dt>
<dd>Unsets the attribute <code><i>name</i></code> for the row given by
<code><i>index</i></code>. Returns an empty string.</dd>
<dt><br>
<a name="windowpath"></a><code><i>pathName</i> <b>windowpath</b>
<i>cellIndex</i></code></dt>
<dd>Returns the path name of the window contained in the cell given by
<code><i>cellIndex</i></code>, created with the <code><b><a href=
"#cell_window">-window</a></b></code> option of the <code><b><a href=
"#cellconfigure">cellconfigure</a></b></code> subcommand. If no
window is currently embedded into the cell then the return value is an
empty string.</dd>
<dt><br>
<a name="xview"></a><code><i>pathName</i> <b>xview</b>
<i>args</i></code></dt>
<dd>This command is used to query and change the horizontal position of
the information in the widget's window. It can take any of the
following forms:</dd>
<dd>
<dl>
<dt><br>
<code><i>pathName</i> <b>xview</b></code></dt>
<dd>Returns a list containing two elements. Each element is a
real fraction between <code>0</code> and <code>1</code>; together
they describe the horizontal span that is visible in the
window. For example, if the first element is <code>.2</code>
and the second element is <code>.6</code>, 20% of the tablelist's
scrollable text is off-screen to the left, the middle 40% is
visible in the window, and 40% of the scrollable text is off-screen
to the right. These are the same values passed to scrollbars
via the <code><b>-xscrollcommand</b></code> option.</dd>
<dt><br>
<code><i>pathName</i> <b>xview</b> <i>units</i></code></dt>
<dd>If the value of the <code><b><a href=
"#titlecolumns">-titlecolumns</a></b></code> option is positive
then this command adjusts the view in the window so that the column
whose offset from the end of the title column area equals
<code><i>units</i></code> non-hidden columns is displayed next to
the title columns. Otherwise the command adjusts the view in
the window so that the character position given by
<code><i>units</i></code> is displayed at the left edge of the
window. Character positions are defined by the width of the
character <code><b>0</b></code>.</dd>
<dt><br>
<code><i>pathName</i> <b>xview</b> <b>moveto</b>
<i>fraction</i></code></dt>
<dd>Adjusts the view in the window so that
<code><i>fraction</i></code> of the total width of the scrollable
tablelist text is off-screen to the left.
<code><i>fraction</i></code> must be a fraction between
<code>0</code> and <code>1</code>.</dd>
<dt><br>
<code><i>pathName</i> <b>xview</b> <b>scroll</b> <i>number</i>
<i>what</i></code></dt>
<dd>This command shifts the view in the window left or right
according to <code><i>number</i></code> and
<code><i>what</i></code>. <code><i>number</i></code> must be
an integer. <code><i>what</i></code> must be either
<code><b>units</b></code> or <code><b>pages</b></code> or an
abbreviation of one of these. If <code><i>what</i></code> is
<code><b>units</b></code>, the view adjusts left or right by
<code><i>number</i></code> non-hidden columns or character units
(the width of the <code><b>0</b></code> character) on the display,
depending on the value of the <code><b><a href=
"#titlecolumns">-titlecolumns</a></b></code> option; if
<code><i>what</i></code> is <code><b>pages</b></code> then the view
adjusts by <code><i>number</i></code> screenfuls. If
<code><i>number</i></code> is negative then columns or characters
farther to the left become visible; if it is positive then columns
or characters farther to the right become visible.</dd>
</dl>
</dd>
<dt><br>
<a name="yview"></a><code><i>pathName</i> <b>yview</b>
<i>args</i></code></dt>
<dd>This command is used to query and change the vertical position of
the text in the window of the widget's body component. It can
take any of the following forms:</dd>
<dd>
<dl>
<dt><br>
<code><i>pathName</i> <b>yview</b></code></dt>
<dd>Returns a list containing two elements, both of which are real
fractions between <code>0</code> and <code>1</code>. The
first element gives the position of the non-hidden tablelist item
at the top of the window, relative to the tablelist as a whole
(<code>0.5</code> means it is halfway through the tablelist, for
example). The second element gives the position of the
non-hidden tablelist item just after the last one in the window,
relative to the tablelist as a whole. These are the same
values passed to scrollbars via the
<code><b>-yscrollcommand</b></code> option.</dd>
<dt><br>
<code><i>pathName</i> <b>yview</b> <i>units</i></code></dt>
<dd>Adjusts the view in the window so that the item whose offset
equals <code><i>units</i></code> non-hidden rows is displayed at
the top of the window.</dd>
<dt><br>
<code><i>pathName</i> <b>yview</b> <b>moveto</b>
<i>fraction</i></code></dt>
<dd>Adjusts the view in the window so that the non-hidden item
given by <code><i>fraction</i></code> appears at the top of the
window. <code><i>fraction</i></code> is a fraction between
<code>0</code> and <code>1</code>; <code>0</code> indicates the
first non-hidden item in the tablelist, <code>0.33</code> indicates
the non-hidden item one-third the way through the tablelist, and so
on.</dd>
<dt><br>
<code><i>pathName</i> <b>yview</b> <b>scroll</b> <i>number</i>
<i>what</i></code></dt>
<dd>This command shifts the view in the window up or down according
to <code><i>number</i></code> and <code><i>what</i></code>.
<code><i>number</i></code> must be an integer.
<code><i>what</i></code> must be either <code><b>units</b></code>
or <code><b>pages</b></code> or an abbreviation of one of
these. If <code><i>what</i></code> is
<code><b>units</b></code>, the view adjusts up or down by
<code><i>number</i></code> non-hidden rows; if it is
<code><b>pages</b></code> then the view adjusts by
<code><i>number</i></code> screenfuls. If
<code><i>number</i></code> is negative then earlier items become
visible; if it is positive then later items become visible.</dd>
</dl>
</dd>
</dl>
</dd>
<dt><br>
<a name="body_bindings"></a><b>DEFAULT AND INDIVIDUAL BINDINGS FOR THE
TABLELIST BODY</b></dt>
<dd>
The body component of a tablelist is implemented as a text widget whose
binding tag <code><b>Text</b></code> is replaced with a new binding tag
called <code><b>TablelistBody</b></code>. The latter has all the
events of the <code><b>Listbox</b></code> widget class, and several of
its binding scripts are obtained from those of
<code><b>Listbox</b></code> by replacing the event fields
<code><b>%W</b></code>, <code><b>%x</b></code>, and
<code><b>%y</b></code> with the path name of the tablelist widget and the
x and y coordinates relative to the latter. These values are
assigned to the help variables <code><b>tablelist::W</b></code>,
<code><b>tablelist::x</b></code>, and <code><b>tablelist::y</b></code> by
invoking the helper command <code><b><a href=
"tablelistBinding.html#convEventFields">tablelist::convEventFields</a></b></code>
as follows:
<blockquote>
<pre>
foreach {tablelist::W tablelist::x tablelist::y} \
[tablelist::convEventFields %W %x %y] {}
</pre>
</blockquote>
<p>This conversion of the event fields is necessary because the Tcl
command associated with a tablelist expects any coordinates relative to
the widget itself, not its body component. It makes use of help
variables from the <code><b>tablelist</b></code> namespace in order to
avoid any conflicts with global variables.</p>
<p>Several of the events have no <code><b>%x</b></code> and
<code><b>%y</b></code> fields; in this case another helper command
<code><b><a href=
"tablelistBinding.html#getTablelistPath">tablelist::getTablelistPath</a></b></code>
is used to set the help variable <code><b>tablelist::W</b></code> to the
path name of the tablelist widget:</p>
<blockquote>
<pre>
set tablelist::W [tablelist::getTablelistPath %W]
</pre>
</blockquote>
<p>The binding tag <code><b>TablelistBody</b></code> replaces the class
name (<code><b>Frame</b></code> or <code><b>TSeparator</b></code>) of the
separator widgets, too. It also replaces the binding tag
<code><b>Message</b></code> of the message widgets used to display
multi-line elements, as well as the binding tag <code><b>Label</b></code>
of the label widgets used to display embedded images. This makes
sure that the default handling of the mouse events on the column
separators, multi-line cells, and embedded images is the same as in the
rest of the tablelist's body.</p>
<p>When defining individual bindings for tablelist widgets, the same
conversion of the event fields is needed as for the default
bindings. For example, the binding script below for the tablelist
widget <code>.tbl</code> prints the index of the cell where mouse button
1 was clicked:</p>
<blockquote>
<pre>
bind [.tbl bodytag] <Button-1> {
foreach {tablelist::W tablelist::x tablelist::y} \
[tablelist::convEventFields %W %x %y] {}
puts "clicked on cell [.tbl containingcell $tablelist::x $tablelist::y]"
}
</pre>
</blockquote>
<p>By associating the script with the binding tag returned by the
<code><b><a href="#bodytag">bodytag</a></b></code> subcommand instead of
just with the path name of the tablelist's body we make sure to have the
same event handling for the separators, multi-line cells, and embedded
images as for the rest of the tablelist's body.</p>
<p>The bindings associated with the binding tag
<code><b>TablelistBody</b></code>, created automatically by the
<code><b>tablelist::tablelist</b></code> command, ensure that the body
component of a tablelist has the same default behavior as a listbox
widget. If the selection type is <code><b>row</b></code> (which is
the default) then everything described in the "DEFAULT BINDINGS" section
of the <b>listbox</b> manual entry applies to the body component of a
tablelist, too. The only difference is that the word "element" in
that manual page has to be replaced with "item" when applying the
description to the body of a tablelist widget.</p>
<p>If the selection type is <code><b>cell</b></code> then everything
described in the "DEFAULT BINDINGS" section of the <b>listbox</b> manual
entry applies to the body component of a tablelist, too, with the
following extensions and changes:</p>
<ol>
<li>If <code>Tab</code> or <code>Shift-Tab</code> is pressed, the
location cursor (active element) moves to the next/previous
element. If the selection mode is <code><b>browse</b></code> or
<code><b>extended</b></code> then the new active element is also
selected and all other elements are deselected. In
<code><b>extended</b></code> mode the new active element becomes the
selection anchor. Notice that these bindings replace the common
inter-widget navigation via <code>Tab</code> and <code>Shift-Tab</code>
with inter-cell navigation. Just like in the case of the text
widget, <code>Control-Tab</code> and <code>Control-Shift-Tab</code> are
intended to be used for widget-to-widget keyboard navigation.
Unfortunately, this won't always work because some window managers
intercept the latter key sequences and use them for their own purposes
(like inter-workplace navigation). For this reason, Tablelist
supports the additional key sequences <code>Meta-Tab</code> and
<code>Meta-Shift-Tab</code> as replacements for
<code>Control-Tab</code> and <code>Control-Shift-Tab</code>,
respectively.<br>
</li>
<li>If the <code>Left</code> or <code>Right</code> key is pressed, the
location cursor (active element) moves to the previous/next element of
the active row. If the selection mode is
<code><b>browse</b></code> or <code><b>extended</b></code> then the new
active element is also selected and all other elements are
deselected. In <code><b>extended</b></code> mode the new active
element becomes the selection anchor.<br>
</li>
<li>In <code><b>extended</b></code> mode, <code>Shift-Left</code> and
<code>Shift-Right</code> move the location cursor (active element) to
the previous/next element of the active row and also extend the
selection to that element in a fashion similar to dragging with mouse
button 1.<br>
</li>
<li>If the <code>Home</code> or <code>End</code> key is pressed, the
location cursor (active element) moves to the first/last element of the
active row, the new active element is selected, and all other elements
are deselected.<br>
</li>
<li>In <code><b>extended</b></code> mode, <code>Shift-Home</code> and
<code>Shift-End</code> extend the selection to the first/last element
of the active row. In <code><b>multiple</b></code> mode,
<code>Shift-Home</code> and <code>Shift-End</code> move the location
cursor to the first/last element of the active row.<br>
</li>
<li>If the location cursor is in an editable cell then
<code>Return</code> and <code>KP_Enter</code> start the interactive
editing of the active element.</li>
</ol>
<p>Just like in the case of the listbox widget, any changes to the
selection will automatically generate the virtual event
<code><b><<ListboxSelect>></b></code>. Instead of this
event (which is supported for compatibility reasons), the virtual event
<code><b><<TablelistSelect>></b></code> can be used to be
made aware of any changes to tablelist selection. Both events will
be generated independently of the selection type.</p>
<p>The following binding associated with the binding tag
<code><b>TablelistBody</b></code> is only valid if the selection mode is
<code><b>single</b></code> or <code><b>multiple</b></code>: If
mouse button 1 is clicked on an item and then dragged outside that item,
and the value of the <code><b><a href=
"#movablerows">-movablerows</a></b></code> configuration option is true,
then the mouse cursor takes on the shape specified by the
<code><b><a href="#movecursor">-movecursor</a></b></code> option,
indicating that the item in question is being moved to another position,
visualized with the aid of a gap placed before the target item.
This operation ends when mouse button 1 is released, and can be canceled
by pressing the <code>Escape</code> key. In both cases, the mouse
cursor is reset to its original value, specified by the
<code><b>-cursor</b></code> configuration option. After releasing
mouse button 1, the source item is moved before the one indicated by the
gap mentioned above and the virtual event
<code><b><<TablelistRowMoved>></b></code> is generated.</p>
</dd>
<dt><a name="label_bindings"></a><b>DEFAULT BINDINGS FOR THE HEADER
LABELS</b></dt>
<dd>
The <code><b>tablelist::tablelist</b></code> command automatically
creates the following bindings for the header labels:<br>
<ol>
<li>If the mouse pointer is on the right edge of a header label or
within a few pixels of its right edge, and both the value of the
<code><b><a href="#resizablecolumns">-resizablecolumns</a></b></code>
configuration option and that of the <code><b><a href=
"#col_resizable">-resizable</a></b></code> option for the column
corresponding to that label are true, then the mouse cursor takes on
the shape specified by the <code><b><a href=
"#resizecursor">-resizecursor</a></b></code> option. By clicking
mouse button 1 in this area and moving the mouse while its button 1 is
down, the column corresponding to that label will be resized by the
amount of the cursor motion. The interactive column resizing ends
when mouse button 1 is released, and can be canceled by pressing the
<code>Escape</code> key. In both cases, the mouse cursor is reset
to its original value, specified by the <code><b>-cursor</b></code>
configuration option. When the column resize operation is
finished, the virtual event
<code><b><<TablelistColumnResized>></b></code> is
generated.<br>
</li>
<li>If mouse button 1 is pressed over a header label but outside the
resize area described above and then dragged outside the label, and the
value of the <code><b><a href=
"#movablecolumns">-movablecolumns</a></b></code> configuration option
is true, then the mouse cursor takes on the shape specified by the
<code><b><a href="#movecolumncursor">-movecolumncursor</a></b></code>
option, indicating that the column in question is being moved to
another position, visualized with the aid of a gap placed before the
label of the target column. This operation ends when mouse button
1 is released, and can be canceled by pressing the <code>Escape</code>
key when the mouse pointer is outside the label. In both cases,
the mouse cursor is reset to its original value, specified by the
<code><b>-cursor</b></code> configuration option. After releasing
mouse button 1, the source column is moved before the one indicated by
the gap mentioned above and the virtual event
<code><b><<TablelistColumnMoved>></b></code> is
generated.<br>
</li>
<li>If mouse button 1 is pressed over a header label but outside the
resize area described above and later released over the same label, and
the command specified by the <code><b><a href=
"#labelcommand">-labelcommand</a></b></code> option is a nonempty
string, then this command is concatenated with the name of the
tablelist widget and the column index of the respective label, and the
resulting script is evaluated in the global scope. If another
nonempty label command was specified at column level by using the
<code><b><a href="#columnconfigure">columnconfigure</a></b></code>
option of the Tcl command associated with the tablelist widget, then
that column-specific command will be used instead of the global
one. If mouse button 1 was pressed together with the
<code>Shift</code> key then the widget- or column-specific command
mentioned above will be replaced with the one specified by the
<code><b><a href="#labelcommand2">-labelcommand2</a></b></code> option
at widget or column level.<br>
</li>
<li><a name="button3"></a>The Tablelist package defines the virtual
event <code><b><<Button3>></b></code> as
<code><b><Button-3></b></code> for all windowing systems and
additionally as <code><b><Control-Button-1></b></code> for Mac OS
Classic and Mac OS X Aqua. If this event occurs over a header
label and both the value of the <code><b><a href=
"#resizablecolumns">-resizablecolumns</a></b></code> configuration
option and that of the <code><b><a href=
"#col_resizable">-resizable</a></b></code> option for the column
corresponding to that label are true, then the width of that column is
set to zero, i.e., it is made just large enough to hold all the
elements in the column, including the header (but no larger than the
maximum width indicated by the <code><b><a href=
"#col_maxwidth">-maxwidth</a></b></code> column configuration option),
and the virtual event
<code><b><<TablelistColumnResized>></b></code> is
generated.<br>
</li>
<li>The Tablelist package defines the virtual event
<code><b><<ShiftButton3>></b></code> as
<code><b><Shift-Button-3></b></code> for all windowing systems
and additionally as <code><b><Shift-Control-Button-1></b></code>
for Mac OS Classic and Mac OS X Aqua. If this event occurs over a
header label and both the value of the <code><b><a href=
"#resizablecolumns">-resizablecolumns</a></b></code> configuration
option and that of the <code><b><a href=
"#col_resizable">-resizable</a></b></code> option for the column
corresponding to that label are true, then the width of that column is
set to its last static width (if any) and the virtual event
<code><b><<TablelistColumnResized>></b></code> is
generated.</li>
</ol>
<p>If the tablelist's <code><b><a href="#state">state</a></b></code> is
<code><b>disabled</b></code> then none of the above actions occur: the
labels are completely insensitive.</p>
</dd>
<dt><a name="edit_bindings"></a><b>DEFAULT BINDINGS FOR INTERACTIVE CELL
EDITING</b></dt>
<dd>
The <code><b>tablelist::tablelist</b></code> command extends and
partially redefines the bindings of some of the components of the
temporary embedded widget used for interactive cell editing, which is
started by clicking mouse button 1 in an editable cell or using keyboard
navigation to move from one editable cell into another. If the
selection type is <code><b>cell</b></code> and the location cursor is in
an editable cell, then the interactive editing of the active element can
also be started by pressing <code>Return</code> or <code>KP_Enter</code>.
<p>The affected components of the temporary embedded widget depend on the
edit window: the widget itself in case of a Tk or tile checkbutton; the
edit window's entry children in case of a mentry widget; the only entry
or entry-like component of the edit window in all other cases (see also
the <code><b><a href="#entrypath">entrypath</a></b></code>
subcommand). The list of binding tags of these edit window
components contains two addditional tags, inserted just before their path
names: the binding tag whose name is returned by the <code><b><a href=
"#editwintag">editwintag</a></b></code> subcommand, followed by the tag
<code><b>TablelistEdit</b></code>. The bindings described below are
associated with the tag <code><b>TablelistEdit</b></code>, and can be
overridden for individual tablelist widgets by making use of the binding
tag given by the <code><b><a href="#editwintag">editwintag</a></b></code>
subcommand.</p>
<ol>
<li><code>Control-i</code> inserts a tabulator character into the edit
window's entry or entry-like components (if any), at the point of the
insertion cursor.<br>
</li>
<li><code>Control-j</code> inserts a newline character into the edit
window's entry or entry-like components (if any), at the point of the
insertion cursor.<br>
</li>
<li>If the edit window is a text widget then <code>Return</code> and
<code>KP_Enter</code> insert a newline character at the point of the
insertion cursor. Otherwise they terminate the editing and
destroy the edit window.<br>
</li>
<li><code>Control-Return</code> and <code>Control-KP_Enter</code>
terminate the editing and destroy the edit window.<br>
</li>
<li><code>Escape</code> aborts the editing and destroys the edit
window.<br>
</li>
<li>A click with the left mouse button anywhere in the tablelist's
body, outside the cell just being edited, terminates the editing in the
current cell and destroys the edit window or moves it into the cell
that was just clicked into if the latter is editable.<br>
</li>
<li>When editing a cell that is not the only editable cell of the
tablelist widget, <code>Tab</code> and <code>Shift-Tab</code> terminate
the editing in the current cell, move the edit window into the
next/previous editable cell of the tablelist, select the contents of
the edit window's first entry or entry-like component (if any), and set
the insertion cursor to its end. If the new edit window is a text
widget then its contents are left unselected. Notice that these
bindings replace the common inter-widget navigation via
<code>Tab</code> and <code>Shift-Tab</code> with inter-cell
navigation. Just like in the case of the text widget,
<code>Control-Tab</code> and <code>Control-Shift-Tab</code> are
intended to be used for widget-to-widget keyboard navigation during
interactive cell editing. Unfortunately, this won't always work
because some window managers intercept the latter key sequences and use
them for their own purposes (like inter-workplace navigation).
For this reason, Tablelist supports the additional key sequences
<code>Meta-Tab</code> and <code>Meta-Shift-Tab</code> as replacements
for <code>Control-Tab</code> and <code>Control-Shift-Tab</code>,
respectively.<br>
</li>
<li>When editing a cell that is not the first/last editable cell within
its row, <code>Alt-Left</code>/<code>Alt-Right</code>
(<code>Command-Left</code>/<code>Command-Right</code> on Mac OS Classic
and Mac OS X Aqua) terminates the editing in the current cell, moves
the edit window into the previous/next editable cell of the row,
selects the contents of the edit window's first entry or entry-like
component (if any), and sets the insertion cursor to its end. If
the new edit window is a text widget then its contents are left
unselected. The key sequence
<code>Meta-Left</code>/<code>Meta-Right</code> has the same effect as
<code>Alt-Left</code>/<code>Alt-Right</code>. If
<code><b>tk_strictMotif</b></code> is false and the edit window is not
a text widget then <code>Meta-b</code> and <code>Meta-f</code> behave
the same as <code>Alt-Left</code> and <code>Alt-Right</code>,
respectively. If the edit window is a Tk or tile checkbutton
widget then <code>Left</code>/<code>Right</code> has the same effect as
<code>Alt-Left</code>/<code>Alt-Right</code>.<br>
</li>
<li>When editing a cell that is not the first/last editable cell within
its column, <code>Alt-Up</code>/<code>Alt-Down</code>
(<code>Command-Up</code>/<code>Command-Down</code> on Mac OS Classic
and Mac OS X Aqua) terminates the editing in the current cell, moves
the edit window one line up/down within the column, selects the
contents of the edit window's first entry or entry-like component (if
any), and sets the insertion cursor to its end. If the new edit
window is a text widget then its contents are left unselected.
The key sequence <code>Meta-Up</code>/<code>Meta-Down</code> has the
same effect as <code>Alt-Up</code>/<code>Alt-Down</code>. If
<code><b>tk_strictMotif</b></code> is false and the edit window is not
a text widget or an Iwidgets combobox, then <code>Control-p</code> and
<code>Control-n</code> behave the same as <code>Alt-Up</code> and
<code>Alt-Down</code>, respectively. If the edit window is a Tk
or tile entry, Tk or tile checkbutton, BWidget Entry, Iwidgets
entryfield/spinner/spinint, or a mentry widget of type
<code>"FixedPoint"</code>, then <code>Up</code>/<code>Down</code> has
the same effect as <code>Alt-Up</code>/<code>Alt-Down</code>.<br>
</li>
<li>When editing a cell that is not the first/last editable cell within
its column, <code>Alt-Prior</code>/<code>Alt-Next</code>
(<code>Command-Prior</code>/<code>Command-Next</code> on Mac OS Classic
and Mac OS X Aqua) terminates the editing in the current cell, moves
the edit window up/down by one page within the column, selects the
contents of the edit window's first entry or entry-like component (if
any), and sets the insertion cursor to its end. If the new edit
window is a text widget then its contents are left unselected.
The key sequence <code>Meta-Prior</code>/<code>Meta-Next</code> has the
same effect as <code>Alt-Prior</code>/<code>Alt-Next</code>. If
the edit window is not a text widget, BWidget SpinBox, Oakley combobox,
or a mentry widget of type <code>"Date"</code>, <code>"Time"</code>,
<code>"DateTime"</code>, or <code>"IPAddr"</code>, then
<code>Prior</code>/<code>Next</code> has the same effect as
<code>Alt-Prior</code>/<code>Alt-Next</code>.<br>
</li>
<li>When editing a cell that is not the only editable cell of the
tablelist widget, <code>Alt-Home</code>/<code>Alt-End</code>
(<code>Command-Home</code>/<code>Command-End</code> on Mac OS Classic
and Mac OS X Aqua) terminates the editing in the current cell, moves
the edit window into the first/last editable cell of the tablelist,
selects the contents of the edit window's first entry or entry-like
component (if any), and sets the insertion cursor to its end. If
the new edit window is a text widget then its contents are left
unselected. The key sequence
<code>Meta-Home</code>/<code>Meta-End</code> has the same effect as
<code>Alt-Home</code>/<code>Alt-End</code>. If
<code><b>tk_strictMotif</b></code> is false and the edit window is not
a text widget then <code>Meta-<</code> and <code>Meta-></code>
behave the same as <code>Alt-Home</code> and <code>Alt-End</code>,
respectively. If the edit window is not a text widget then
<code>Control-Home</code>/<code>Control-End</code> has the same effect
as <code>Alt-Home</code>/<code>Alt-End</code>.</li>
</ol>
<p>Before moving the edit window, the key sequences mentioned under 7 -
11 move the active item or element and change the (cell)selection and the
(cell)selection anchor in the body of the tablelist widget. For
example, if <code>Alt-Up</code>/<code>Alt-Down</code> or
<code>Meta-Up</code>/<code>Meta-Down</code>
(<code>Command-Up</code>/<code>Command-Down</code> on Mac OS Classic and
Mac OS X Aqua) is pressed when editing a cell that is not the first/last
editable cell within its column, then the active item or element
(depending on the selection type) moves one line up/down. If the
selection mode is <code><b>browse</b></code> or
<code><b>extended</b></code> then the new active item or element is also
selected and all other items or elements are deselected. In
<code><b>extended</b></code> mode the new active item or element becomes
the (cell)selection anchor. This is exactly the same behavior as
the one exhibited by the <code>Up</code> and <code>Down</code> keys in
the tablelist's body.</p>
<p>If the tablelist's <code><b><a href="#state">state</a></b></code> is
<code><b>disabled</b></code> then none of the above actions occur.</p>
</dd>
<dt><a name="keywords"></a><b>KEYWORDS</b></dt>
<dd>tablelist, multi-column, listbox, widget</dd>
</dl>
<div align="center">
<p><a href="#contents">Contents</a> <a href=
"index.html">Start page</a></p>
</div>
</body>
</html>
|