1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967
|
<!DOCTYPE html>
<html>
<head>
<title>The tablelist::tablelist Command</title>
<meta name="Author" content="Csaba Nemethi">
<meta name="Keywords" content=
"tablelist, multi-column, listbox, tree, widget">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
<body>
<div align="center">
<h1>The <code><b>tablelist::tablelist</b></code> Command</h1>
<h2>For Tablelist Version 6.11</h2>
<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 id="contents">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 id="quick_ref">Quick Reference</h2>
<dl>
<dt><a href="#name">NAME</a></dt>
<dd><code>tablelist::tablelist</code> – Create and manipulate
tablelist widgets</dd>
<dt class="tm"><a href="#synopsis">SYNOPSIS</a></dt>
<dd>
<pre>
<b>tablelist::tablelist</b> <i>pathName</i> ?<i>options</i>?
</pre>
</dd>
<dt><a href="#description">DESCRIPTION</a></dt>
<dt class="tm"><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 AND HEADER COMPONENTS 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="#acceptchildcommand">-acceptchildcommand</a></b>
<i>command</i></code></dd>
<dd><code><b><a href="#acceptdropcommand">-acceptdropcommand</a></b>
<i>command</i></code></dd>
<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="#arrowdisabledcolor">-arrowdisabledcolor</a></b>
<i>color</i></code></dd>
<dd><code><b><a href="#arrowstyle">-arrowstyle</a></b>
<b>flat6x4</b>|<b>flat7x4</b>|<b>flat7x5</b>|<b>flat7x7</b>|<b>flat8x4</b>|<b>flat8x5</b>|<br>
<b> flat9x5</b>|<b>flat9x6</b>|<b>flat11x6</b>|<b>flat13x7</b>|<b>flat15x8</b>|<b>flatAngle7x4</b>|<br>
<b> flatAngle7x5</b>|<b>flatAngle9x5</b>|<b>flatAngle9x6</b>|<b>flatAngle9x7</b>|<br>
<b> flatAngle10x6</b>|<b>flatAngle10x7</b>|<b>flatAngle11x6</b>|<b>flatAngle13x7</b>|<br>
<b> flatAngle15x8</b>|<b>photo7x4</b>|<b>photo7x7</b>|<b>photo9x5</b>|<b>photo11x6</b>|<br>
<b> photo13x7</b>|<b>photo15x8</b>|<b>sunken8x7</b>|<b>sunken10x9</b>|<b>sunken12x11</b></code></dd>
<dd><code><b><a href="#autofinishediting">-autofinishediting</a></b>
<i>boolean</i></code></dd>
<dd><code><b><a href="#autoscan">-autoscan</a></b>
<i>boolean</i></code></dd>
<dd><code><b><a href="#collapsecommand">-collapsecommand</a></b>
<i>command</i></code></dd>
<dd><code><b><a href="#colorizecommand">-colorizecommand</a></b>
<i>command</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="#columntitles">-columntitles</a></b> {<i>title</i>
<i>title</i> ...}</code></dd>
<dd><code><b><a href="#customdragsource">-customdragsource</a></b>
<i>boolean</i></code></dd>
<dd><code><b><a href="#displayondemand">-displayondemand</a></b>
<i>boolean</i></code></dd>
<dd><code><b><a href="#editendcommand">-editendcommand</a></b>
<i>command</i></code></dd>
<dd><code><b><a href="#editselectedonly">-editselectedonly</a></b>
<i>boolean</i></code></dd>
<dd><code><b><a href="#editstartcommand">-editstartcommand</a></b>
<i>command</i></code></dd>
<dd><code><b><a href="#expandcommand">-expandcommand</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="#fullseparators">-fullseparators</a></b>
<i>boolean</i></code></dd>
<dd><code><b><a href="#height">-height</a></b> <i>units</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="#instanttoggle">-instanttoggle</a></b>
<i>boolean</i></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="#populatecommand">-populatecommand</a></b>
<i>command</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="#selectfiltercommand">-selectfiltercommand</a></b>
<i>command</i></code></dd>
<dd><code><b><a href="#selectmode">-selectmode</a></b>
<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="#showbusycursor">-showbusycursor</a></b>
<i>boolean</i></code></dd>
<dd><code><b><a href="#showeditcursor">-showeditcursor</a></b>
<i>boolean</i></code></dd>
<dd><code><b><a href="#showhorizseparator">-showhorizseparator</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="#tight">-tight</a></b> <i>boolean</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="#treecolumn">-treecolumn</a></b>
<i>columnIndex</i></code></dd>
<dd><code><b><a href="#treestyle">-treestyle</a></b>
<b>adwaita</b>|<b>ambiance</b>|<b>aqua</b>|<b>arc</b>|<b>baghira</b>|<b>bicolor100</b>|<b>bicolor125</b>|<b>bicolor150</b>|<br>
<b> bicolor175</b>|<b>bicolor200</b>|<b>blueMenta</b>|<b>classic100</b>|<b>classic125</b>|<b>classic150</b>|<br>
<b> classic175</b>|<b>classic200</b>|<b>dust</b>|<b>dustSand</b>|<b>gtk</b>|<b>klearlooks</b>|<b>mate</b>|<b>menta</b>|<br>
<b> mint</b>|<b>mint2</b>|<b>newWave</b>|<b>oxygen1</b>|<b>oxygen2</b>|<b>phase</b>|<b>plain100</b>|<b>plain125</b>|<br>
<b> plain150</b>|<b>plain175</b>|<b>plain200</b>|<b>plastik</b>|<b>plastique</b>|<b>radiance</b>|<b>ubuntu</b>|<br>
<b> ubuntu2</b>|<b>ubuntu3</b>|<b>ubuntuMate</b>|<b>vistaAero</b>|<b>vistaClassic</b>|<b>white100</b>|<br>
<b> white125</b>|<b>white150</b>|<b>white175</b>|<b>white200</b>|<b>win7Aero</b>|<b>win7Classic</b>|<br>
<b> win10</b>|<b>winnative</b>|<b>winxpBlue</b>|<b>winxpOlive</b>|<b>winxpSilver</b>|<b>yuyo</b></code></dd>
<dd><code><b><a href="#width">-width</a></b> <i>characters</i></code></dd>
<dd><code><b><a href="#xmousewheelwindow">-xmousewheelwindow</a></b>
<i>window</i></code></dd>
<dd><code><b><a href="#ymousewheelwindow">-ymousewheelwindow</a></b>
<i>window</i></code></dd>
<dt class="tm"><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_changetitlesnipside">-changetitlesnipside</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_labelvalign">-labelvalign</a></b>
<b>center</b>|<b>top</b>|<b>bottom</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_labelopts">-selectfiltercommand</a></b>
<i>command</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>asciinocase</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_stripebackground">-stripebackground</a></b>
<i>color</i></code></dd>
<dd><code><b><a href="#col_stripeforeground">-stripeforeground</a></b>
<i>color</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_valign">-valign</a></b>
<b>center</b>|<b>top</b>|<b>bottom</b></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 class="tm"><a href="#row_options">ROW CONFIGURATION OPTIONS IN THE
TABLELIST BODY</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 class="tm"><a href="#hdr_row_options">ROW CONFIGURATION OPTIONS IN THE
TABLELIST HEADER</a></dt>
<dd><code><b><a href="#hdr_row_background">-background</a></b>
<i>color</i></code> or <code><b>-bg</b>
<i>color</i></code></dd>
<dd><code><b><a href="#hdr_row_font">-font</a></b> <i>font</i></code></dd>
<dd><code><b><a href="#hdr_row_foreground">-foreground</a></b>
<i>color</i></code> or <code><b>-fg</b>
<i>color</i></code></dd>
<dd><code><b><a href="#hdr_row_name">-name</a></b> <i>name</i></code></dd>
<dd><code><b><a href="#hdr_row_text">-text</a></b> <i>list</i></code></dd>
<dt class="tm"><a href="#cell_options">CELL CONFIGURATION OPTIONS IN THE
TABLELIST BODY</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_imagebackground">-imagebackground</a></b>
<i>color</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_valign">-valign</a></b>
<b>center</b>|<b>top</b>|<b>bottom</b></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>
<dd><code><b><a href="#cell_windowupdate">-windowupdate</a></b>
<i>command</i></code></dd>
<dt class="tm"><a href="#hdr_cell_options">CELL CONFIGURATION OPTIONS IN
THE TABLELIST HEADER</a></dt>
<dd><code><b><a href="#hdr_cell_background">-background</a></b>
<i>color</i></code> or <code><b>-bg</b>
<i>color</i></code></dd>
<dd><code><b><a href="#hdr_cell_font">-font</a></b> <i>font</i></code></dd>
<dd><code><b><a href="#hdr_cell_foreground">-foreground</a></b>
<i>color</i></code> or <code><b>-fg</b>
<i>color</i></code></dd>
<dd><code><b><a href="#hdr_cell_image">-image</a></b>
<i>image</i></code></dd>
<dd><code><b><a href="#hdr_cell_imagebackground">-imagebackground</a></b>
<i>color</i></code></dd>
<dd><code><b><a href="#hdr_cell_stretchwindow">-stretchwindow</a></b>
<i>boolean</i></code></dd>
<dd><code><b><a href="#hdr_cell_text">-text</a></b> <i>text</i></code></dd>
<dd><code><b><a href="#hdr_cell_valign">-valign</a></b>
<b>center</b>|<b>top</b>|<b>bottom</b></code></dd>
<dd><code><b><a href="#hdr_cell_window">-window</a></b>
<i>command</i></code></dd>
<dd><code><b><a href="#hdr_cell_windowdestroy">-windowdestroy</a></b>
<i>command</i></code></dd>
<dd><code><b><a href="#hdr_cell_windowupdate">-windowupdate</a></b>
<i>command</i></code></dd>
<dt class="tm"><a href="#colors_and_fonts">COLORS AND FONTS</a></dt>
<dt class="tm"><a href="#tree_widget">USING A TABLELIST AS MULTI-COLUMN
TREE WIDGET</a></dt>
<dt class="tm"><a href="#cell_editing">INTERACTIVE CELL EDITING</a></dt>
<dt class="tm"><a href="#drag_and_drop_support">DRAG & DROP
SUPPORT</a></dt>
<dt class="tm"><a href="#virtual_events">VIRTUAL EVENTS</a></dt>
<dt class="tm"><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>last</b> <b>top</b> <b>bottom</b> <b>@</b><i>x</i><b>,</b><i>y</i> <i>name</i>
</pre>
</dd>
<dt><a href="#node_indices">NODE INDICES</a></dt>
<dd>
<pre>
<b>root</b> <i>number</i> <b>k</b><i>number</i> <b>active</b> <b>anchor</b> <b>end</b> <b>last</b> <b>top</b> <b>bottom</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>last</b> <b>left</b> <b>right</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>last</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> <b>last</b> <b>top</b> <b>bottom</b> <i>name</i>
<i>col</i>: <i>number</i> <b>active</b> <b>anchor</b> <b>end</b> <b>last</b> <b>left</b> <b>right</b> <i>name</i>
</pre>
</dd>
<dt class="tm"><a href="#hdr_row_indices">HEADER ROW INDICES</a></dt>
<dd>
<pre>
<i>number</i> <b>hk</b><i>number</i> <b>end</b> <b>last</b> <b>@</b><i>x</i><b>,</b><i>y</i> <i>name</i>
</pre>
</dd>
<dt><a href="#hdr_cell_indices">HEADER CELL INDICES</a></dt>
<dd>
<pre>
<i>headerRow</i><b>,</b><i>col</i> <b>end</b> <b>last</b> <b>@</b><i>x</i><b>,</b><i>y</i>
<i>headerRow</i>: <i>number</i> <b>hk</b><i>number</i> <b>end</b> <b>last</b> <i>name</i>
<i>col</i>: <i>number</i> <b>active</b> <b>anchor</b> <b>end</b> <b>last</b> <b>left</b> <b>right</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="#applysorting">applysorting</a></b>
<i>itemList</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=
"#canceledediting">canceledediting</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="#cellbbox">cellbbox</a></b>
<i>cellIndex</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 anchor</b>
<i>cellIndex</i></code></dd>
<dd><code><i>pathName</i> <b>cellselection clear</b> <i>firstCell</i>
<i>lastCell</i></code></dd>
<dd><code><i>pathName</i> <b>cellselection clear</b>
<i>cellIndexList</i></code></dd>
<dd><code><i>pathName</i> <b>cellselection includes</b>
<i>cellIndex</i></code></dd>
<dd><code><i>pathName</i> <b>cellselection set</b> <i>firstCell</i>
<i>lastCell</i></code></dd>
<dd><code><i>pathName</i> <b>cellselection 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="#childcount">childcount</a></b>
<i>nodeIndex</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#childindex">childindex</a></b>
<i>index</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#childkeys">childkeys</a></b>
<i>nodeIndex</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#collapse">collapse</a></b>
<i>indexList</i> ?<b>-fully</b>|<b>-partly</b>?</code></dd>
<dd><code><i>pathName</i> <b><a href="#collapseall">collapseall</a></b>
?<b>-fully</b>|<b>-partly</b>?</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=
"#cornerlabelpath">cornerlabelpath</a></b></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#cornerpath">cornerpath</a></b> ?<b>-ne</b>|<b>-sw</b>?</code></dd>
<dd><code><i>pathName</i> <b><a href=
"#curcellselection">curcellselection</a></b>
?<b>-all</b>|<b>-nonhidden</b>|<b>-viewable</b>?</code></dd>
<dd><code><i>pathName</i> <b><a href="#curselection">curselection</a></b>
?<b>-all</b>|<b>-nonhidden</b>|<b>-viewable</b>?</code></dd>
<dd><code><i>pathName</i> <b><a href="#delete">delete</a></b>
<i>firstIndex</i> <i>lastIndex</i></code></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></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="#depth">depth</a></b>
<i>nodeIndex</i></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#descendantcount">descendantcount</a></b> <i>nodeIndex</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#dicttoitem">dicttoitem</a></b>
<i>dictionary</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=
"#editinfo">editinfo</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=
"#editwintag">editwintag</a></b></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#embedcheckbutton">embedcheckbutton</a></b> <i>cellIndex</i>
?<i>command</i>?</code></dd>
<dd><code><i>pathName</i> <b><a href=
"#embedcheckbuttons">embedcheckbuttons</a></b> <i>columnIndex</i>
?<i>command</i>?</code></dd>
<dd><code><i>pathName</i> <b><a href=
"#embedttkcheckbutton">embedttkcheckbutton</a></b> <i>cellIndex</i>
?<i>command</i>?</code></dd>
<dd><code><i>pathName</i> <b><a href=
"#embedttkcheckbuttons">embedttkcheckbuttons</a></b> <i>columnIndex</i>
?<i>command</i>?</code></dd>
<dd><code><i>pathName</i> <b><a href=
"#entrypath">entrypath</a></b></code></dd>
<dd><code><i>pathName</i> <b><a href="#expand">expand</a></b>
<i>indexList</i> ?<b>-fully</b>|<b>-partly</b>?</code></dd>
<dd><code><i>pathName</i> <b><a href="#expandall">expandall</a></b>
?<b>-fully</b>|<b>-partly</b>?</code></dd>
<dd><code><i>pathName</i> <b><a href=
"#expandedkeys">expandedkeys</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=
"#findcolumnname">findcolumnname</a></b> <i>name</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#findrowname">findrowname</a></b>
<i>name</i> ?<b>-descend</b>? ?<b>-parent</b> <i>nodeIndex</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>firstIndex</i>
<i>lastIndex</i></code></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></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></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="#getformatted">getformatted</a></b>
<i>firstIndex</i> <i>lastIndex</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#getformatted">getformatted</a></b>
<i>indexList</i></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#getformattedcells">getformattedcells</a></b> <i>firstCell</i>
<i>lastCell</i></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#getformattedcells">getformattedcells</a></b>
<i>cellIndexList</i></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#getformattedcolumns">getformattedcolumns</a></b> <i>firstColumn</i>
<i>lastColumn</i></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#getformattedcolumns">getformattedcolumns</a></b>
<i>columnIndexList</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#getfullkeys">getfullkeys</a></b>
<i>firstIndex</i> <i>lastIndex</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#getfullkeys">getfullkeys</a></b>
<i>indexList</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#getkeys">getkeys</a></b>
<i>firstIndex</i> <i>lastIndex</i></code></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="#header">header</a></b> <i>option</i>
?<i>arg</i> <i>arg</i> ...?</code></dd>
<dd><code><i>pathName</i> <b><a href=
"#headerpath">headerpath</a></b></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#headertag">headertag</a></b></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#hidetargetmark">hidetargetmark</a></b></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=
"#insertchildlist">insertchildlist</a></b> <i>parentNodeIndex</i>
<i>childIndex</i> <i>itemList</i></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#insertchildren">insertchild(ren)</a></b> <i>parentNodeIndex</i>
<i>childIndex</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="#isexpanded">isexpanded</a></b>
<i>index</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="#isviewable">isviewable</a></b>
<i>index</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="#itemtodict">itemtodict</a></b>
<i>item</i></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=
"#labeltag">labeltag</a></b></code></dd>
<dd><code><i>pathName</i> <b><a href="#move">move</a></b>
<i>sourceIndex</i> <i>targetIndex</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#move">move</a></b>
<i>sourceIndex</i> <i>targetParentNodeIndex</i>
<i>targetChildIndex</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="#noderow">noderow</a></b>
<i>parentNodeIndex</i> <i>childIndex</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#parentkey">parentkey</a></b>
<i>nodeIndex</i></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#refreshsorting">refreshsorting</a></b>
?<i>parentNodeIndex</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=
"#restorecursor">restorecursor</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="#searchcolumn">searchcolumn</a></b>
<i>columnIndex</i> <i>pattern</i> ?<i>options</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 anchor</b>
<i>index</i></code></dd>
<dd><code><i>pathName</i> <b>selection clear</b> <i>firstIndex</i>
<i>lastIndex</i></code></dd>
<dd><code><i>pathName</i> <b>selection clear</b>
<i>indexList</i></code></dd>
<dd><code><i>pathName</i> <b>selection includes</b>
<i>index</i></code></dd>
<dd><code><i>pathName</i> <b>selection set</b> <i>firstIndex</i>
<i>lastIndex</i></code></dd>
<dd><code><i>pathName</i> <b>selection 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=
"#setbusycursor">setbusycursor</a></b></code></dd>
<dd><code><i>pathName</i> <b><a href=
"#showtargetmark">showtargetmark</a></b> <b>before</b>|<b>inside</b>
<i>index</i></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=
"#targetmarkpath">targetmarkpath</a></b></code></dd>
<dd><code><i>pathName</i> <b><a href="#targetmarkpos">targetmarkpos</a></b>
<i>y</i> ?<b>-any</b>|<b>-horizontal</b>|<b>-vertical</b>?</code></dd>
<dd><code><i>pathName</i> <b><a href=
"#togglecolumnhide">togglecolumnhide</a></b> <i>firstColumn</i>
<i>lastColumn</i></code></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>firstIndex</i> <i>lastIndex</i></code></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="#toplevelkey">toplevelkey</a></b>
<i>index</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=
"#viewablerowcount">viewablerowcount</a></b> ?<i>firstIndex</i>
<i>lastIndex</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 moveto</b>
<i>fraction</i></code></dd>
<dd><code><i>pathName</i> <b>xview 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 moveto</b>
<i>fraction</i></code></dd>
<dd><code><i>pathName</i> <b>yview scroll</b> <i>number</i>
<b>units</b>|<b>pages</b></code></dd>
</dl>
</dd>
<dt class="tm"><a href="#hdr_subcommands">HEADER-RELATED
SUBCOMMANDS</a></dt>
<dd><code><i>pathName</i> <b><a href="#hdr_bbox">header bbox</a></b>
<i>headerIndex</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_cellattrib">header
cellattrib</a></b> <i>headerCellIndex</i> ?<i>name</i>? ?<i>value</i>
<i>name</i> <i>value</i> ...?</code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_cellbbox">header
cellbbox</a></b> <i>headerCellIndex</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_cellcget">header
cellcget</a></b> <i>headerCellIndex</i> <i>option</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_cellconfigure">header
cellconfigure</a></b> <i>headerCellIndex</i> ?<i>option</i>? ?<i>value</i>
<i>option</i> <i>value</i> ...?</code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_cellindex">header
cellindex</a></b> <i>headerCellIndex</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_configcelllist">header
configcelllist</a></b> {<i>headerCellIndex</i> <i>option</i> <i>value</i>
<i>headerCellIndex</i> <i>option</i> <i>value</i> ...}</code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_configcells">header
configcells</a></b> ?<i>headerCellIndex</i> <i>option</i> <i>value</i>
<i>headerCellIndex</i> <i>option</i> <i>value</i> ...?</code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_configrowlist">header
configrowlist</a></b> {<i>headerIndex</i> <i>option</i> <i>value</i>
<i>headerIndex</i> <i>option</i> <i>value</i> ...}</code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_configrows">header
configrows</a></b> ?<i>headerIndex</i> <i>option</i> <i>value</i>
<i>headerIndex</i> <i>option</i> <i>value</i> ...?</code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_containing">header
containing</a></b> <i>y</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_containingcell">header
containingcell</a></b> <i>x</i> <i>y</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_delete">header delete</a></b>
<i>firstHeaderIndex</i> <i>lastHeaderIndex</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_delete">header delete</a></b>
<i>headerIndexList</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_embedcheckbutton">header
embedcheckbutton</a></b> <i>headerCellIndex</i>
?<i>command</i>?</code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_embedcheckbuttons">header
embedcheckbuttons</a></b> <i>columnIndex</i> ?<i>command</i>?</code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_embedttkcheckbutton">header
embedttkcheckbutton</a></b> <i>headerCellIndex</i>
?<i>command</i>?</code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_embedttkcheckbuttons">header
embedttkcheckbuttons</a></b> <i>columnIndex</i>
?<i>command</i>?</code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_fillcolumn">header
fillcolumn</a></b> <i>columnIndex</i> <i>text</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_findrowname">header
findrowname</a></b> <i>name</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_get">header get</a></b>
<i>firstHeaderIndex</i> <i>lastHeaderIndex</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_get">header get</a></b>
<i>headerIndexList</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_getcells">header
getcells</a></b> <i>firstHeaderCell</i> <i>lastHeaderCell</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_getcells">header
getcells</a></b> <i>headerCellIndexList</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_getcolumns">header
getcolumns</a></b> <i>firstColumn</i> <i>lastColumn</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_getcolumns">header
getcolumns</a></b> <i>columnIndexList</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_getformatted">header
getformatted</a></b> <i>firstHeaderIndex</i>
<i>lastHeaderIndex</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_getformatted">header
getformatted</a></b> <i>headerIndexList</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_getformattedcells">header
getformattedcells</a></b> <i>firstHeaderCell</i>
<i>lastHeaderCell</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_getformattedcells">header
getformattedcells</a></b> <i>headerCellIndexList</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_getformattedcolumns">header
getformattedcolumns</a></b> <i>firstColumn</i>
<i>lastColumn</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_getformattedcolumns">header
getformattedcolumns</a></b> <i>columnIndexList</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_getfullkeys">header
getfullkeys</a></b> <i>firstHeaderIndex</i>
<i>lastHeaderIndex</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_getfullkeys">header
getfullkeys</a></b> <i>headerIndexList</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_getkeys">header getkeys</a></b>
<i>firstHeaderIndex</i> <i>lastHeaderIndex</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_getkeys">header getkeys</a></b>
<i>headerIndexList</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_hascellattrib">header
hascellattrib</a></b> <i>headerCellIndex</i> <i>name</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_hasrowattrib">header
hasrowattrib</a></b> <i>headerIndex</i> <i>name</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_imagelabelpath">header
imagelabelpath</a></b> <i>headerCellIndex</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_index">header index</a></b>
<i>headerIndex</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_insert">header insert</a></b>
<i>headerIndex</i> ?<i>item</i> <i>item</i> ...?</code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_insertlist">header
insertlist</a></b> <i>headerIndex</i> <i>itemList</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_iselemsnipped">header
iselemsnipped</a></b> <i>headerCellIndex</i>
<i>fullTextName</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_itemlistvar">header
itemlistvar</a></b></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_nearest">header nearest</a></b>
<i>y</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_nearestcell">header
nearestcell</a></b> <i>x</i> <i>y</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_rowattrib">header
rowattrib</a></b> <i>headerIndex</i> ?<i>name</i>? ?<i>value</i>
<i>name</i> <i>value</i> ...?</code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_rowcget">header rowcget</a></b>
<i>headerIndex</i> <i>option</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_rowconfigure">header
rowconfigure</a></b> <i>headerIndex</i> ?<i>option</i>? ?<i>value</i>
<i>option</i> <i>value</i> ...?</code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_size">header
size</a></b></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_unsetcellattrib">header
unsetcellattrib</a></b> <i>headerCellIndex</i> <i>name</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_unsetrowattrib">header
unsetrowattrib</a></b> <i>headerIndex</i> <i>name</i></code></dd>
<dd><code><i>pathName</i> <b><a href="#hdr_windowpath">header
windowpath</a></b> <i>headerCellIndex</i></code></dd>
<dt class="tm"><a href="#body_bindings">DEFAULT AND INDIVIDUAL BINDINGS FOR
THE TABLELIST BODY</a></dt>
<dt class="tm"><a href="#header_bindings">DEFAULT AND INDIVIDUAL BINDINGS
FOR THE HEADER ITEMS</a></dt>
<dt class="tm"><a href="#label_bindings">DEFAULT AND INDIVIDUAL BINDINGS
FOR THE HEADER LABELS</a></dt>
<dt class="tm"><a href="#edit_bindings">DEFAULT BINDINGS FOR INTERACTIVE
CELL EDITING</a></dt>
<dt class="tm"><a href="#keywords">KEYWORDS</a></dt>
<dd>tablelist, multi-column, listbox, tree, widget</dd>
</dl>
<div align="center">
<p><a href="#contents">Contents</a> <a href=
"index.html">Start page</a></p>
</div>
<hr>
<h2 id="detailed_ref">Detailed Reference</h2>
<dl>
<dt id="name"><b>NAME</b></dt>
<dd><code>tablelist::tablelist</code> – Create and manipulate
tablelist widgets</dd>
<dt class="tm" id="synopsis"><b>SYNOPSIS</b></dt>
<dd>
<pre>
<b>tablelist::tablelist</b> <i>pathName</i> ?<i>options</i>?
</pre>
</dd>
<dt id="description"><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 below, 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 class="tm">A tablelist is a multi-column listbox and tree widget,
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 content of a row, and an
element is the text contained in a cell. The header consists of label
widgets displaying the column titles. They can be used, among others,
for interactive column resizing and column-based sorting of the body items,
as described below. For Tk versions 8.5 and higher, the header
component can also contain (a typically small number of) items, just like
the body. The order of the header items is not affected by any
sorting-related commands or bindings. The end of the header row area
is visualized with the aid of a horizontal separator, placed just below the
last header row (if any).</dd>
<dd class="tm">The reason for restricting the support for header items to
Tk versions 8.5 and later is that the header's height is set to be just
large enough to hold all its items. This is done with the aid of
the <code><b>count -ypixels</b></code> text widget command,
which was introduced in Tk 8.5.</dd>
<dd class="tm">Each cell (in both the body and the header) 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 (in both the body and the header) can
also contain an embedded window, placed to the left or right of the text,
just like an embedded image.</dd>
<dd class="tm">When a tablelist is used as a tree widget, one of its
columns will display the tree hierarchy with the aid of indentations and
expand/collapse controls. The Tablelist package provides a great
variety of tree styles controlling the look & feel of that column, and
chooses the correct default style depending on the windowing system,
operating system version, and tile theme. In a tablelist used as a
multi-column tree widget, every row of its body (but not of its header) is
at the same time a tree <b>node</b>, having exactly one <b>parent</b> node
and any number of <b>child</b> nodes. The tree's origin is the
invisible <b>root</b> node, which has no parent itself and whose children
are the <b>top-level</b> nodes.</dd>
<dd class="tm">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 of the widget's body. 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),
ctext, and Mentry (or Mentry_tile), as well as Tk core text, spinbox,
checkbutton, and menubutton widgets, along with tile entry, spinbox,
combobox, checkbutton, and menubutton 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 class="tm">When first created, a new tablelist widget has no
items. Items (in both the body and the header) may be added, deleted,
or updated using widget commands described below. In addition, one or
more items or elements of the widget's body 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 <a href=
"#isviewable">viewable</a> 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 class="tm">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 horizontal view in the window and the vertical view in the body
(but not in the header). Tablelist widgets allow scrolling in both
directions (but no vertical scrolling in the header component), using the
standard <code><b>-xscrollcommand</b></code> and
<code><b>-yscrollcommand</b></code> options. They also support
scanning in the widget's body (but not in its header), as described
below.</dd>
<dd class="tm">Each tablelist widget, as well as each tablelist column,
row, and cell (in both the body and the header) 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 class="tm" id="std_options"><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>
<dd class="tm"><b>REMARK 1:</b> If the value of the <code><b><a href=
"#width">-width</a></b></code> configuration option is zero or less and the
tablelist has <a href="#stretch">stretchable</a> columns, then the
<code><b>-setgrid</b></code> option will be ignored. This minor
restriction has technical reasons and is only relevant on X11.</dd>
<dd class="tm"><b>REMARK 2:</b> Instead of creating the scrollbar(s)
manually and setting the <code><b>-xscrollcommand</b></code> and/or
<code><b>-yscrollcommand</b></code> options accordingly, you might consider
to use the <a href=
"https://www.nemethi.de/scrollutil/scrollarea.html">scrollarea</a> widget
of the <a href="https://www.nemethi.de/scrollutil/">Scrollutil</a> package,
which greatly simplifies the creation of arbitrary scrolled widgets,
supports both static and dynamic scrollbars, and respects the header
component and title columns of tablelist widgets.</dd>
<dt class="tm" id="body_options"><b>OPTIONS FOR THE BODY AND HEADER
COMPONENTS 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 and header components of the tablelist widget. As
discussed in the next section, the colors and font used when drawing the
header <i>labels</i> can be different from those specified for the body and
header <i>items</i>. When using the package Tablelist_tile, these
options have theme-specific default values.</dd>
<dt class="tm" id="widget_options"><b>WIDGET-SPECIFIC OPTIONS</b></dt>
<dd class="tm" id="acceptchildcommand">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-acceptchildcommand</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> acceptChildCommand</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> AcceptChildCommand</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies a Tcl command used to decide whether a given tablelist
node may accept a specified item being <a href=
"#local_drag_and_drop">moved interactively</a> as a child. The
specified command is automatically concatenated with the path name of
the tablelist widget, the node index of the would-be new parent node,
and the row index of the dragged item, the resulting script is
evaluated in the global scope, and the return value (which must be a
boolean) will determine whether to allow to move the source item to the
current mouse position as a child of the given parent node.</p>
<p>For example, in the case of a tablelist widget used as a file
manager, in which the top-level items represent volumes mounted on the
system, the command specified by this option might look like in the
(pseudo-)code below:</p>
<blockquote>
<pre>
proc acceptChildCmd {tbl targetParentNodeIdx sourceRow} {
if {[string compare $targetParentNodeIdx "root"] == 0} {
<span class="cmt"># Allow only volumes as top-level items</span>
return [expr {[$tbl <a href="#depth">depth</a> $sourceRow] == 1}]
} else {
<span class="cmt"># Allow only directories as parent items</span>
return [<i>$targetParentNodeIdx represents a directory</i>]
}
}
</pre>
</blockquote>
<p>For technical reasons (the use of the <code><b>-elide</b></code>
text widget tag option for collapsing a row), this option is not
supported for Tk versions earlier than 8.3.</p>
</blockquote>
</dd>
<dd id="acceptdropcommand">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-acceptdropcommand</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> acceptDropCommand</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> AcceptDropCommand</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies a Tcl command used to decide whether a given tablelist row
may accept a specified item being <a href="#local_drag_and_drop">moved
interactively</a> to be dropped as a sibling just before that
row. The specified command is automatically concatenated with the
path name of the tablelist widget, the row index of the would-be new
target, and the row index of the dragged item, the resulting script is
evaluated in the global scope, and the return value (which must be a
boolean) will determine whether to allow to move the source item to the
current mouse position, just before the given row.</p>
<p>For example, to make sure that the position of the last row of a
tablelist widget won't be affected by the interactive row move
operation, the command specified by this option might look like in the
code below:</p>
<blockquote>
<pre>
proc acceptDropCmd {tbl targetRow sourceRow} {
set rowCount [[$tbl <a href="#size">size</a>]
return [expr {$sourceRow != $rowCount - 1 && $targetRow < $rowCount}]
}
</pre>
</blockquote>
</blockquote>
</dd>
<dd id="activestyle">
<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 id="arrowcolor">
<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 arrow
color is <code>black</code> and the <code><b><a href=
"#arrowstyle">-arrowstyle</a></b></code> option has the default value
<code><b>flat8x4</b></code>. The same holds true for some tile
themes, like <code><b>alt</b></code>, <code><b>clam</b></code>, and
<code><b>default</b></code>. On the windowing system
<code><b>win32</b></code>, the default arrow color is
<code>#595959</code> for Windows 10, <code>#569bc0</code> for Windows
Vista, 7, and 8, <code>#aca899</code> for Windows XP, and an empty
string for older Windows versions, paired with the default arrow style
<code><b>flatAngle7x4</b></code>, <code><b>photo7x4</b></code>,
<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 and style depend on the version of
the operating system: Starting with version 10.10 (Yosemite) of
Mac OS X, the default arrow color for the windowing system
<code><b>aqua</b></code> is <code>#404040</code> and the default arrow
style is <code><b>flatAngle7x4</b></code>. For earlier operating
system versions on the Mac, the default values are the arrow color
<code>#777777</code> and the arrow style <code><b>flat7x7</b></code>
(or <code><b>photo7x7</b></code>, in the presence of PNG support).</p>
<p><b>REMARK:</b> If the arrow color is as empty string then the
sort arrow will inherit the background color of the header label in
which it is placed. In this case, the arrow style should be set
to one of <code><b>sunken8x7</b></code>,
<code><b>sunken10x9</b></code>, or <code><b>sunken12x11</b></code>,
which will give rise to sort arrows with 3-D border and sunken
relief.</p>
</blockquote>
</dd>
<dd id="arrowdisabledcolor">
<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 id="arrowstyle">
<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, shape, 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>flat6x4</b></code>,
<code><b>flat7x4</b></code>, <code><b>flat7x5</b></code>,
<code><b>flat7x7</b></code>, <code><b>flat8x4</b></code>,
<code><b>flat8x5</b></code>, <code><b>flat9x5</b></code>,
<code><b>flat9x6</b></code>, <code><b>flat11x6</b></code>,
<code><b>flat13x7</b></code>, <code><b>flat15x8</b></code>,
<code><b>flatAngle7x4</b></code>, <code><b>flatAngle7x5</b></code>,
<code><b>flatAngle9x5</b></code>, <code><b>flatAngle9x6</b></code>,
<code><b>flatAngle9x7</b></code>, <code><b>flatAngle10x6</b></code>,
<code><b>flatAngle10x7</b></code>, <code><b>flatAngle11x6</b></code>,
<code><b>flatAngle13x7</b></code>, <code><b>flatAngle15x8</b></code>,
<code><b>photo7x4</b></code>, <code><b>photo7x7</b></code>,
<code><b>photo9x5</b></code>, <code><b>photo11x6</b></code>,
<code><b>photo13x7</b></code>, <code><b>photo15x8</b></code>,
<code><b>sunken8x7</b></code>, <code><b>sunken10x9</b></code>, and
<code><b>sunken12x11</b></code>, as shown in the picture below.
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. As mentioned there, the default arrow style on X11
and in some tile themes is <code><b>flat8x4</b></code>. While
this is in most cases true, notice that the default chosen by Tablelist
can also be <code><b>flat9x5</b></code>, <code><b>flat11x6</b></code>,
<code><b>flat13x7</b></code>, or <code><b>flat15x8</b></code>,
depending on the display's scaling level. Similarly, on Windows
10 the default arrow style is <code><b>flatAngle7x4</b></code>,
<code><b>flatAngle9x5</b></code>, <code><b>flatAngle11x6</b></code>,
<code><b>flatAngle13x7</b></code>, or
<code><b>flatAngle15x8</b></code>, and on Windows Vista, 7, and 8, the
default chosen by Tablelist is <code><b>photo7x4</b></code>,
<code><b>photo9x5</b></code>, <code><b>photo11x6</b></code>,
<code><b>photo13x7</b></code>, or <code><b>photo15x8</b></code>,
depending on the display's scaling level.</p>
<p><img src="arrowStyles.png" alt="Arrow Styles" width="826" height=
"113"></p>
<p>While the sort arrows of the styles <code><b>flat*</b></code> and
<code><b>sunken*</b></code> are created from bitmaps, the arrow styles
<code><b>photo7x4</b></code>, <code><b>photo9x5</b></code>,
<code><b>photo11x6</b></code>, <code><b>photo13x7</b></code>, and
<code><b>photo15x8</b></code> use GIF images that look very close to
the native sort arrows on Windows Vista, 7, and 8. When using one
of these styles, the <code><b><a href=
"#arrowcolor">-arrowcolor</a></b></code> and <code><b><a href=
"#arrowdisabledcolor">-arrowdisabledcolor</a></b></code> options have
no effect.</p>
<p>On Windows Vista, 7, 8, and 10, the sort arrows are shown
horizontally centered in the header labels, just below their top
edges:</p>
<p><img src="arrowStyles_vista.png" alt="Arrow Styles Vista" width=
"824" height="123"></p>
<p>The arrow style <code><b>photo7x7</b></code> uses PNG images that
look and behave very close to the native sort arrows on Mac OS X Aqua
versions earlier than 10.10 (Yosemite). This arrow style is only
supported if the Tk version is either 8.6 (with built-in PNG support),
or 8.5 and the <code><b>img::png</b></code> package can be loaded into
the interpreter. When supported, <code><b>photo7x7</b></code>
will be the default value of the <code><b>-arrowstyle</b></code> option
in Tablelist_tile with the <code><b>aqua</b></code> theme for Mac OS X
versions earlier than 10.10 (otherwise <code><b>flat7x7</b></code> will
be used as default for these earlier OS X versions). When using
this arrow style, the <code><b><a href=
"#arrowcolor">-arrowcolor</a></b></code> and <code><b><a href=
"#arrowdisabledcolor">-arrowdisabledcolor</a></b></code> options have
no effect, but, due to the transparency information contained in the
PNG images, the arrows will automatically adapt their color to the
various states of the header labels, just like the native sort
arrows.</p>
</blockquote>
</dd>
<dd id="autofinishediting">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-autofinishediting</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> autoFinishEditing</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> AutoFinishEditing</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies a boolean value that controls whether the interactive cell
editing with the aid of a tile combobox, BWidget ComboBox, Iwidgets
combobox, Oakley combobox, Tk core menubutton, or tile menubutton
widget will be finished automatically by selecting an entry of the
combobox or of the menu associated with the menubutton. The
default value is <code>0</code>.</p>
</blockquote>
</dd>
<dd id="autoscan">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-autoscan</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> autoScan</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> AutoScan</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies a boolean value that controls whether to trigger the
automatic scrolling when the mouse leaves the tablelist window with
button 1 down. The default is <code>1</code>, meaning that
automatic scrolling will be in effect, just like in the case of the Tk
listbox widget. However, when using the TkDND package or some
other drag & drop implementation, you might want to set this option to
<code>0</code>, in order to avoid any conflicts between the drag
operation and the automatic scrolling.</p>
<p><b>REMARK:</b> Starting with Tablelist version 5.12, this
option has become obsolete, because the default bindings now suppress
the above-mentioned automatic scrolling if the tablelist's body
component was registered as a drag source for mouse button 1 via
the <code><b>tkdnd::drag_source register</b></code> or the
BWidget <code><b>DragSite::register</b></code> command, or the
tablelist's <code><b><a href=
"#customdragsource">-customdragsource</a></b></code> option was set to
true.</p>
</blockquote>
</dd>
<dd id="collapsecommand">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-collapsecommand</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> collapseCommand</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> CollapseCommand</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies a Tcl command to be invoked when collapsing a row of a
tablelist used as a tree widget (with the aid of the <code><b><a href=
"#collapse">collapse</a></b></code> or <code><b><a href=
"#collapseall">collapseall</a></b></code> subcommand). The
specified command is automatically concatenated with the path name of
the tablelist widget and the row index, and the resulting script is
evaluated in the global scope, before hiding the descendants of the row
in question.</p>
<p>For technical reasons (the use of the <code><b>-elide</b></code>
text widget tag option for collapsing a row), this option is not
supported for Tk versions earlier than 8.3.</p>
</blockquote>
</dd>
<dd id="colorizecommand">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-colorizecommand</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> colorizeCommand</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> ColorizeCommand</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies a Tcl command that can be used to change the colors of
arbitrary character regions within the cells of the currently visible
rows. Whenever the Tablelist package needs to display the various
foreground and background colors (including the stripe- and
selection-specific ones), it runs over the cells of the body and header
rows that are currently visible in the tablelist window and displays
the colors by adding appropriate tags to the body and header text
widget areas making up the formatted contents of the cells. After
activating the colors for a cell, the Tablelist code invokes the
command specified as the value of this configuration option (provided
that it is a nonempty string), in the global scope and with the
following arguments specific to the body or header cell being
processed:</p>
<ul>
<li>the path name of the tablelist widget;</li>
<li>the path name of the tablelist's body or header text widget;</li>
<li>the full key of the item containing the element being processed
(remember that this starts with the prefix <code><b>k</b></code> for
a body item and with <code><b>hk</b></code> for a header item);</li>
<li>the numerical row or header row index of that item;</li>
<li>the numerical index of the cell's column;</li>
<li>the text index (of the form <code><i>line</i>.<i>char</i></code>)
of the first <code>\t</code> character delimiting the cell in the
underlying text widget;</li>
<li>the text index (of the form <code><i>line</i>.<i>char</i></code>)
of the second <code>\t</code> character delimiting the cell in the
underlying text widget;</li>
<li>the boolean value <code>0</code> or <code>1</code> indicating
whether the cell being processed is contained in a stripe (see, e.g.,
the description of the <code><b><a href=
"#stripebackground">-stripebackground</a></b></code> option);</li>
<li>the boolean value <code>0</code> or <code>1</code> indicating
whether the cell being processed is currently selected.</li>
</ul>
<p>From the above it follows that the value of this configuration
option will typically be the name of a procedure like in the following
example:</p>
<blockquote>
<pre>
proc myColorizeCmd {tbl textWidget key row col tabIdx1 tabIdx2 inStripe selected} { ... }
</pre>
</blockquote>
<p><b>REMARK 1:</b> To change the colors of some parts of a
cell's displayed content, the command specified as the value of this
configuration option will have to make use of text widget tags having
the desired background and/or foreground colors. Besides
<code><b>-background</b></code> and <code><b>-foreground</b></code>,
the command may also use a few other tag configuration options, like
<code><b>-overstrike</b></code> and
<code><b>-underline</b></code>. On the other hand, be aware that
the use of some other tag configuration options (particularly
<code><b>-elide</b></code> and <code><b>-font</b></code>) can cause
conflicts with the way Tablelist renders the elements, thus giving rise
to various layout problems within the body or header of your tablelist
widget!</p>
<p><b>REMARK 2:</b> Since the multi-line elements are displayed
with the aid of embedded message widgets, there is currently no way to
change the colors of text areas within multi-line cells.</p>
</blockquote>
</dd>
<dd id="columns">
<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> Columns whose width was specified as zero are
called <b>dynamic-width</b> columns. In general, they are more
user-friendly than their <b>static-width</b> counterparts, being that
their widths are automatically adapted to their contents. On the
other hand, if the <code><b><a href=
"#displayondemand">-displayondemand</a></b></code> option is true
(which is the default) then the static-width columns perform
significantly better on item insertion and sorting than the
dynamic-width ones.</p>
</blockquote>
</dd>
<dd id="columntitles">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-columntitles</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> columnTitles</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> ColumnTitles</b></code></td>
</tr>
</table>
<blockquote>
<p>This option provides a simplified form of specifying dynamic-width,
left-aligned tablelist columns. Its value is viewed as a list of
column titles. The default is an empty list.</p>
<p>In the simplest case that no columns have been specified yet,
setting this option to the value given by the list</p>
<blockquote>
<pre>
<i>title</i> <i>title</i> ...
</pre>
</blockquote>
<p>is equivalent to setting the <code><b><a href=
"#columns">-columns</a></b></code> option to the value given by the
list</p>
<blockquote>
<pre>
0 <i>title</i> left 0 <i>title</i> left ...
</pre>
</blockquote>
<p>If the columns have already been specified then this option updates
their titles (as many of them as possible) and, if the number of
elements of its value is greater than the number of columns then it
uses the remaining elements as titles of additional dynamic-width,
left-aligned columns. For example, if the widget has 3 columns
and the option's value is a list of length 5 then the option will
update the titles of the 3 columns and will append 2 new dynamic-width,
left-aligned columns having as titles the last 2 elements of the
list. If the widget has 3 columns and the option specifies just 2
texts then it will update the titles of the first 2 columns only.</p>
</blockquote>
</dd>
<dd id="customdragsource">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-customdragsource</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> customDragSource</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> CustomDragSource</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies a boolean value that indicates whether the tablelist
widget is a drag source for some drag & drop implementation other than
TkDND and the drag & drop framework included in BWidget. If true
then the default bindings will perform an automatic <a href=
"#global_drag_and_drop">drag-friendly handling of the selection</a> and
will suppress the automatic scrolling when the mouse leaves the
tablelist window with button 1 down. The default is
<code>0</code>.</p>
</blockquote>
</dd>
<dd id="displayondemand">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-displayondemand</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> displayOnDemand</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> DisplayOnDemand</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies a boolean value that controls the way the texts of newly
inserted rows in the tablelist's body will be displayed in the
underlying text widget. If true then the texts of the new rows
won't be inserted into the body text widget until the corresponding
cells become visible (e.g., as a result of horizontal or vertical
scrolling). Otherwise the texts of the new rows will be displayed
in the underlying text widget immediately after inserting the
rows. The default is <code>1</code>.</p>
<p><b>REMARK 1:</b> The default value true of this option makes
the item insertion and sorting significantly faster, especially in the
presence of static-width columns, because the snipping of elements that
don't fit into their cells will be postponed to the time when they get
displayed in the body text widget. On the other hand, this
display on demand imposes some performance penalty on the scrolling,
especially if the tablelist widget has many columns. To speed up
the scrolling, you might consider setting this option to false.</p>
<p><b>REMARK 2:</b> Newly inserted header rows are displayed
immediately in the underlying text widget, independently of the value
of this option.</p>
</blockquote>
</dd>
<dd id="editendcommand">
<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 content 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
path name of the tablelist widget, the cell's row and column indices,
as well as the final content of the edit window, the resulting script
is evaluated in the global scope, and the return value becomes the
cell's new content after destroying the temporary embedded
widget. The main purpose of this script is to perform a final
validation of the edit window's content. 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 id="editselectedonly">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-editselectedonly</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> editSelectedOnly</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> EditSelectedOnly</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies a boolean value that controls whether to start the
interactive cell editing when mouse button 1 is pressed in an editable
cell. If this value is true then the editing will only be started
if the cell has previously been selected (interactively or
programmatically). In this case, a first left-click will usually
just select the cell (or its row, depending on the value of the
<code><b><a href="#selecttype">-selecttype</a></b></code> option), and
a second mouse click will start the editing session. The default
is <code>0</code>, meaning that the editing will be started regardless
of whether the cell is selected or not.</p>
</blockquote>
</dd>
<dd id="editstartcommand">
<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 content is started. The command is automatically
concatenated with the path 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 content of the temporary embedded widget used for
the editing. The main purpose of this script is to define
validations for the edit window's content. See the <a href=
"#cell_editing">INTERACTIVE CELL EDITING</a> section for details on the
editing process.</p>
</blockquote>
</dd>
<dd id="expandcommand">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-expandcommand</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> expandCommand</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> ExpandCommand</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies a Tcl command to be invoked when expanding a row of a
tablelist used as a tree widget (with the aid of the <code><b><a href=
"#expand">expand</a></b></code> or <code><b><a href=
"#expandall">expandall</a></b></code> subcommand). The specified
command is automatically concatenated with the path name of the
tablelist widget and the row index, and the resulting script is
evaluated in the global scope, before displaying the children of the
row in question.</p>
<p>For technical reasons (the use of the <code><b>-elide</b></code>
text widget tag option for collapsing a row), this option is not
supported for Tk versions earlier than 8.3.</p>
<p><b>REMARK:</b> It is common practice to use the command
specified as the value of this option to insert the children of the row
that is about to be expanded, if it has no children yet. For
example, the <a href="tablelist.html#ex_dirViewer">Directory Viewer</a>
demo script uses the command implemented as follows:</p>
<blockquote>
<pre>
proc expandCmd {tbl row} {
if {[$tbl <a href="#childcount">childcount</a> $row] == 0} {
<span class="cmt"># Get the name of the directory whose leaf name is
# displayed in the first cell of the specified row</span>
set dir [$tbl <a href="#rowattrib">rowattrib</a> $row pathName]
<span class="cmt"># Display the content of the directory $dir
# as child items of the one identified by $row</span>
putContents $dir $tbl $row
}
<span class="cmt"># The rest is just eye candy:</span>
if {[$tbl <a href="#childcount">childcount</a> $row] != 0} {
<span class="cmt"># Update the image displayed in the row's first cell</span>
$tbl <a href=
"#cellconfigure">cellconfigure</a> $row,0 -image openFolderImg
}
}
</pre>
</blockquote>
</blockquote>
</dd>
<dd id="forceeditendcommand">
<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 content, 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>If the option's value is true and no value for the
<code><b>-editendcommand</b></code> option was specified, then on
normal termination of the editing process the cell's new content will
be set to the text contained in the edit window, even if it has not
been changed interactively (but might have been returned by the command
given by the the <code><b><a href=
"#editstartcommand">-editstartcommand</a></b></code> option).</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 id="fullseparators">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-fullseparators</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> fullSeparators</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> FullSeparators</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies a boolean value that controls whether the separators (if
any) shall extend all of the way to the bottom of the tablelist's
body. The default is <code>0</code>, meaning that the height of
the separators will be adjusted to the widget's content, i.e., they
won't extend to the bottom of the tablelist's body if there is free
vertical space left below the widget's last row.</p>
</blockquote>
</dd>
<dd id="height">
<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 tablelist's body, in units of
characters in the font given by the <code><b>-font</b></code>
option. This is at the same time the desired height in rows,
provided that no column-, row-, or cell-specific fonts, multi-line
elements, or embedded images or windows make the height of any of the
body items different from the one corresponding to the above-mentioned
font. If the option's value is zero or less, then the body's
desired height in units of characters in the widget's font is kept in
sync with the number of <a href="#isviewable">viewable</a> body items;
again, if all the items in the tablelist's body have the height
corresponding to the widget's font then this means that the body's
desired height is made just large enough to hold all the viewable body
items.</p>
<p><b>REMARK:</b> Embedded images and windows often make the rows
of the tablelist higher, resulting in a discrepancy between the value
of this option and the number of rows visible in the body window.
In most cases you can work around this problem by saving the value of
the widget's <code><b>-font</b></code> option, setting the latter to a
sufficiently large font, and then setting the <code><b>-font</b></code>
row configuration option of each body and header item to the saved
widget font value.</p>
</blockquote>
</dd>
<dd id="incrarrowtype">
<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 id="instanttoggle">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-instanttoggle</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> instantToggle</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> InstantToggle</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies a boolean value that controls whether the interactive cell
editing with the aid of a Tk or tile checkbutton widget, if started
with the left mouse button, will be finished immediately after
automatically toggling the checked state of the temporary embedded
checkbutton. The default value is <code>0</code>, meaning that a
mouse click into the cell will only start the editing session (and
automatically toggle the checkbutton's checked state), but not also
finish it.</p>
</blockquote>
</dd>
<dd id="labelactivebackground">
<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 id="labelactiveforeground">
<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 id="labelbackground">
<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. This option is only supported by the Tablelist package,
but not by Tablelist_tile.</p>
</blockquote>
</dd>
<dd id="labelborderwidth">
<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>
<p><b>REMARK:</b> Please take into account that in some themes,
setting this option to a value other than the default might be ignored
by tile and thus could cause alignment problems. This is because
the border of tile widgets is drawn with theme-specific methods, which
will not always produce the results known from Tk widgets.</p>
</blockquote>
</dd>
<dd id="labelcommand">
<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 a Tcl command to be invoked when mouse button 1 is pressed
over one of the header labels and later released over the same
label. Provided that the option's value is a nonempty string,
when the <code><b><ButtonRelease-1></b></code> event occurs, the
command is automatically concatenated with the path 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 command was specified as the value of the option of the same
name at column level then that column-specific command will be used
instead of the global one. 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 id="labelcommand2">
<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 a 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. Provided that the
option's value is a nonempty string, when the
<code><b><ButtonRelease-1></b></code> event occurs, the command
is automatically concatenated with the path 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
command was specified as the value of the option of the same name at
column level then that column-specific command will be used instead of
the global one. 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 id="labeldisabledforeground">
<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 id="labelfont">
<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 id="labelforeground">
<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 id="labelheight">
<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 id="labelpady">
<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 id="labelrelief">
<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 id="listvariable">
<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 global varable or a qualified name of a
namespace variable. The value of the variable is a list to be
displayed inside the widget's body; 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's body, 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 fulfill 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 1:</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 <a href="#cellconfigure">cellconfigure</a> $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 <a href="#cellconfigure">cellconfigure</a> $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>
<p><b>REMARK 2:</b> It is not recommended to set this option for
a tablelist used as a tree widget, because adding new items to the list
specified as its value will result in inserting those list elements
into the widget without respecting the tree's internal structure.
There is no problem if you access the variable for reading only, but
for that purpose it is more efficient to use the <code><b><a href=
"#itemlistvar">itemlistvar</a></b></code> subcommand rather than the
<code><b>-listvariable</b></code> option.</p>
</blockquote>
</dd>
<dd id="movablecolumns">
<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
AND INDIVIDUAL 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 id="movablerows">
<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 displayed
in the tablelist's body can be moved interactively. See the
<a href="#local_drag_and_drop">LOCAL DRAG & DROP</a> subsection of 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>
<p><b>REMARK:</b> The support for moving a row is restricted to
the widget's body component. Moving of header rows is not
supported.</p>
</blockquote>
</dd>
<dd id="movecolumncursor">
<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> on
the windowing systems <code><b>x11</b></code> and
<code><b>win32</b></code>, and the native cursor
<code><b>closedhand</b></code> on the Macintosh windowing systems
<code><b>classic</b></code> and <code><b>aqua</b></code>.</p>
</blockquote>
</dd>
<dd id="movecursor">
<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> on
the windowing systems <code><b>x11</b></code> and
<code><b>win32</b></code>, and the native cursor
<code><b>pointinghand</b></code> on the Macintosh windowing systems
<code><b>classic</b></code> and <code><b>aqua</b></code>.</p>
</blockquote>
</dd>
<dd id="populatecommand">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-populatecommand</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> populateCommand</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> PopulateCommand</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies a Tcl command to be invoked by the <code><b><a href=
"#searchcolumn">searchcolumn</a></b></code> subcommand before examining
the children (or descendants, when used with the
<code><b>-descend</b></code> option) of a tablelist row whose children
have not been inserted yet. The specified command is
automatically concatenated with the path name of the tablelist widget
and the row index, and the resulting script is evaluated in the global
scope. It is expected that this script will insert the children
of the row in question, without expanding the node or changing its
appearance in any other way.</p>
<p>For technical reasons (the use of the <code><b>-elide</b></code>
text widget tag option for collapsing a row), this option is not
supported for Tk versions earlier than 8.3.</p>
<p><b>REMARK:</b> There are many similarities between this option
and <code><b><a href=
"#expandcommand">-expandcommand</a></b></code>. Both options are
used in the first place to insert children on demand. The main
differences between them are as follows:</p>
<ol>
<li class="tm">The command specified by the
<code><b>-populatecommand</b></code> option is only invoked for rows
whose children have not been inserted yet, while the one specified by
<code><b>-expandcommand</b></code> is always invoked before expanding
a row, regardless of whether the children of that row are already
present in the widget or not.</li>
<li class="tm">The command specified by the
<code><b>-expandcommand</b></code> option may perform visual changes
on the node in question, while the role of the one specified by
<code><b>-populatecommand</b></code> is restricted to inserting the
children, without altering the node's appearance in any way.</li>
</ol>
<p>A logical consequence of the above is that the value of
<code><b>-populatecommand</b></code> is usually just a stripped-down
version of the command specified by the
<code><b>-expandcommand</b></code> option. For example, the
<a href="tablelist.html#ex_dirViewer">Directory Viewer</a> demo script
might use a command implemented as follows:</p>
<blockquote>
<pre>
proc populateCmd {tbl row} {
<span class="cmt"># Get the name of the directory whose leaf name is
# displayed in the first cell of the specified row</span>
set dir [$tbl <a href="#rowattrib">rowattrib</a> $row pathName]
<span class="cmt"># Display the content of the directory $dir
# as child items of the one identified by $row</span>
putContents $dir $tbl $row
}
</pre>
</blockquote>
<p>Moreover, the <code><b>-expandcommand</b></code> option can be set
to a command that invokes the one specified by the
<code><b>-populatecommand</b></code> option:</p>
<blockquote>
<pre>
proc expandCmd {tbl row} {
if {[$tbl <a href="#childcount">childcount</a> $row] == 0} {
populateCmd $tbl $row
}
<span class="cmt"># The rest is just eye candy:</span>
if {[$tbl <a href="#childcount">childcount</a> $row] != 0} {
<span class="cmt"># Update the image displayed in the row's first cell</span>
$tbl <a href=
"#cellconfigure">cellconfigure</a> $row,0 -image openFolderImg
}
}
</pre>
</blockquote>
</blockquote>
</dd>
<dd id="protecttitlecolumns">
<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
AND INDIVIDUAL 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 id="resizablecolumns">
<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
AND INDIVIDUAL 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 id="resizecursor">
<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> on the windowing systems
<code><b>x11</b></code> and <code><b>win32</b></code>, and the native
cursor <code><b>resizeleftright</b></code> on the Macintosh windowing
systems <code><b>classic</b></code> and <code><b>aqua</b></code>.</p>
</blockquote>
</dd>
<dd id="selectfiltercommand">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-selectfiltercommand</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> selectFilterCommand</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> SelectFilterCommand</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies a Tcl command which can be used for filtering the cells
that will be selected when the default bindings for the header labels
perform a <a href="#columnwise_selection">column-wise cell
selection</a>. If the option's value is a nonempty string then
this command is concatenated with the path name of the tablelist widget
and the numerical index of the respective column, and the resulting
script is evaluated in the global scope. If another nonempty
command was specified as the value of the option of the same name at
column level then that column-specific command will be used instead of
the global one. In both cases, the resulting script is expected
to return a list consisting of the row numbers of those cells contained
in the column in question that are to be selected by the column-wise
cell selection operation.</p>
</blockquote>
</dd>
<dd id="selectmode">
<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 id="selecttype">
<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 id="setfocus">
<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 id="showarrow">
<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 id="showbusycursor">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-showbusycursor</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> showBusyCursor</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> ShowBusyCursor</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies a boolean value indicating whether the default bindings
should display a windowing system-specific busy cursor during the
actions that can take a long time to complete, using the
<code><b><a href="#setbusycursor">setbusycursor</a></b></code> and
<code><b><a href="#restorecursor">restorecursor</a></b></code>
subcommands. The default value is <code>1</code>.</p>
<p>The potentially long-running actions that will temporarily change
the mouse cursor when this option is on are as follows:</p>
<ul>
<li>resizing or moving a column;</li>
<li>invoking the command specified by the <code><b><a href=
"#labelcommand">-labelcommand</a></b></code> or <code><b><a href=
"#labelcommand2">-labelcommand2</a></b></code> option at widget or
column level (e.g., sorting the items by one or more columns);</li>
<li>expanding or collapsing a row;</li>
<li>extending, toggling, or canceling the (cell) selection if the
<code><b><a href="#selectmode">-selectmode</a></b></code> option was
set to <code><b>extended</b></code>.</li>
</ul>
<p><b>REMARK:</b> If showing the busy cursor per default during
potentially long-running actions is not what you prefer, you can
override the default for all tablelist instances by inserting the
line</p>
<blockquote>
<pre>
option add *Tablelist.showBusyCursor 0
</pre>
</blockquote>
<p>somewhere at the beginning of your script (before creating any
tablelist widgets).</p>
</blockquote>
</dd>
<dd id="showeditcursor">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-showeditcursor</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> showEditCursor</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> ShowEditCursor</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies a boolean value indicating whether the mouse cursor should
change automatically to one having the shape of a pencil whenever a
click with mouse button 1 would start an editing session. The
default value is <code>1</code>.</p>
<p>On X11 and Mac OS X Aqua, the cursor set by Tablelist when a mouse
click would start the interactive cell editing, is Tk's built-in cursor
<code><b>pencil</b></code>. Since on Windows this cursor is ugly
and not really usable, the edit cursor shown by Tablelist on this
platform will be the one loaded from the file <code>pencil.cur</code>,
located in the <code>scripts</code> subdirectory of the Tablelist
installation directory. If the application was started as a
starpack containing the Tablelist package, then the edit cursor will be
loaded from a copy of this file, created automatically by Tablelist in
the user's <code>Temp</code> directory. The file
<code>pencil.cur</code> is a copy of the file <code>Ubuntu
Handwriting.cur</code>, downloaded from the address</p>
<blockquote>
<address>
<a href=
"http://www.rw-designer.com/cursor-detail/46922">http://www.rw-designer.com/cursor-detail/46922</a>
</address>
</blockquote>
<p><b>REMARK:</b> If showing the edit cursor per default
whenever a click with mouse button 1 would start the editing is not
what you prefer, you can override the default for all tablelist
instances by inserting the line</p>
<blockquote>
<pre>
option add *Tablelist.showEditCursor 0
</pre>
</blockquote>
<p>somewhere at the beginning of your script (before creating any
tablelist widgets).</p>
</blockquote>
</dd>
<dd id="showhorizseparator">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-showhorizseparator</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> showHorizSeparator</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> ShowHorizSeparator</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies a boolean value that controls whether to place a
horizontal separator just below the last row if the value of the
<code><b><a href="#showseparators">-showseparators</a></b></code>
option is true, that of the <code><b><a href=
"#fullseparators">-fullseparators</a></b></code> option is false, and
there is free space left between the last row and the bottom of the
tablelist window. The default value is <code>1</code>.</p>
<p><b>REMARK:</b> If showing the horizontal separator per default
under the above-mentioned circumstancies is not what you prefer, you
can override the default for all tablelist instances by inserting the
line</p>
<blockquote>
<pre>
option add *Tablelist.showHorizSeparator 0
</pre>
</blockquote>
<p>somewhere at the beginning of your script (before creating any
tablelist widgets).</p>
</blockquote>
</dd>
<dd id="showlabels">
<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 id="showseparators">
<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. In this case, a horizontal separator will
also be created and placed just below the last row, provided that the
value of the <code><b><a href=
"#showhorizseparator">-showhorizseparator</a></b></code> option is
true, that of the <code><b><a href=
"#fullseparators">-fullseparators</a></b></code> option is false, and
there is free space left between the last row and the bottom of the
tablelist window.</p>
<p><b>REMARK:</b> Tablelist doesn't support horizontal separators
(except for the one mentioned above and another one placed just below
the last header row), but a nice distinguishing effect for the rows in
the widget's body can be achieved with the aid of the <code><b><a href=
"#stripebackground">-stripebackground</a></b></code> option described
below.</p>
</blockquote>
</dd>
<dd id="snipstring">
<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 id="sortcommand">
<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 id="spacing">
<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, in both the body and the header. The option's value
may have any of the standard forms for screen distances. It
defaults to <code>0</code>. See also the <code><b><a href=
"#tight">-tight</a></b></code> option.</p>
</blockquote>
</dd>
<dd id="state">
<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 id="stretch">
<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 <b>stretchable</b> columns, i.e., 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 <code><b>end</b></code> and
<code><b>last</b></code>, which are viewed as dynamic column indices
whose numerical equivalent (i.e., the index of the tablelist's last
column) 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.)</p>
<p><b>REMARK:</b> If the value of the <code><b><a href=
"#width">-width</a></b></code> configuration option is zero or less and
the tablelist has stretchable columns, then the
<code><b>-setgrid</b></code> option will be ignored. This minor
restriction has technical reasons and is only relevant on X11.</p>
</blockquote>
</dd>
<dd id="stripebackground">
<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 body items
belonging to a stripe. Each stripe is composed of the same number
<code><i>stripeHeight</i></code> of consecutive <a href=
"#isviewable">viewable</a> items, according to the value of the
<code><b><a href="#stripeheight">-stripeheight</a></b></code>
configuration option. The first <code><i>stripeHeight</i></code>
viewable items are "normal" ones; they are followed by a stripe
composed of the next <code><i>stripeHeight</i></code> viewable items,
which in turn is followed by the same number of "normal" viewable
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 id="stripeforeground">
<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 body items
belonging to a stripe. Each stripe is composed of the same number
<code><i>stripeHeight</i></code> of consecutive <a href=
"#isviewable">viewable</a> items, according to the value of the
<code><b><a href="#stripeheight">-stripeheight</a></b></code>
configuration option. The first <code><i>stripeHeight</i></code>
viewable items are "normal" ones; they are followed by a stripe
composed of the next <code><i>stripeHeight</i></code> viewable items,
which in turn is followed by the same number of "normal" viewable
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 id="stripeheight">
<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 id="takefocus">
<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 will receive the focus during keyboard traversal with
the standard keys (<code>Tab</code> and <code>Shift-Tab</code>).</p>
</blockquote>
</dd>
<dd id="targetcolor">
<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 gap displayed in the tablelist's body or
header label area to indicate the target position when moving a row or
column interactively. The target indicator belonging to the
tablelist's body can also be displayed explicitly with the aid of the
<code><b><a href="#showtargetmark">showtargetmark</a></b></code>
subcommand, and its path name can be retrieved via <code><b><a href=
"#targetmarkpath">targetmarkpath</a></b></code>. The default
value is <code><b>black</b></code>.</p>
</blockquote>
</dd>
<dd id="tight">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-tight</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> tight</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> Tight</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies a boolean value that determines whether to eliminate the
one-pixel additional space left below each tablelist row for Tk listbox
compatibility, in both the body and the header. The default value
is <code>0</code>, which draws a one-pixel additional space below each
row, just like a Tk core listbox.</p>
<p><b>REMARK:</b> You can set this option to true and at the same
time provide additional space above and below each row with the aid of
the <code><b><a href="#spacing">-spacing</a></b></code> configuratiom
option. As a result, the space below each row will be the same as
above the row (and not one pixel higher).</p>
</blockquote>
</dd>
<dd id="titlecolumns">
<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
separators.</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 id="tooltipaddcommand">
<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
in the tablelist's body, the command is automatically concatenated with
the path 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 path 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. Finally, when the mouse pointer enters a cell in
the tablelist's header, the command is automatically concatenated with
the path name of the tablelist widget, the header cell's row index
prefixed by the letter <code><b>h</b></code>, as well as the cell's
column index, and the resulting script is evaluated in the global
scope. In all three 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><b>DynamicHelp::add</b></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 <a href=
"#iselemsnipped">iselemsnipped</a> $row,$col fullText]) ||
($row < 0 && [$tbl <a href=
"#istitlesnipped">istitlesnipped</a> $col fullText])} {
DynamicHelp::add $tbl -text $fullText
}
}
</pre>
</blockquote>
<p>If the widget can also contain header items then a slightly more
complicated procedure is needed:</p>
<blockquote>
<pre>
proc tooltipAddCmd {tbl row col} {
if {[string is integer $row]} {
if {($row >= 0 && [$tbl <a href=
"#iselemsnipped">iselemsnipped</a> $row,$col fullText]) ||
($row < 0 && [$tbl <a href=
"#istitlesnipped">istitlesnipped</a> $col fullText])} {
DynamicHelp::add $tbl -text $fullText
}
} else {
set row [string range $row 1 end]
if {[$tbl <a href=
"#hdr_iselemsnipped">header iselemsnipped</a> $row,$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><b>tooltip::tooltip</b></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 <a href=
"#iselemsnipped">iselemsnipped</a> $row,$col fullText]) ||
($row < 0 && [$tbl <a href=
"#istitlesnipped">istitlesnipped</a> $col fullText])} {
tooltip::tooltip $tbl $fullText
}
}
</pre>
</blockquote>
<p>or, to cover also the case of header items:</p>
<blockquote>
<pre>
proc tooltipAddCmd {tbl row col} {
if {[string is integer $row]} {
if {($row >= 0 && [$tbl <a href=
"#iselemsnipped">iselemsnipped</a> $row,$col fullText]) ||
($row < 0 && [$tbl <a href=
"#istitlesnipped">istitlesnipped</a> $col fullText])} {
tooltip::tooltip $tbl $fullText
}
} else {
set row [string range $row 1 end]
if {[$tbl <a href=
"#hdr_iselemsnipped">header iselemsnipped</a> $row,$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>Please note that in the less common case that the name of your
tablelist widget contains spaces, the <code><b>tooltip::tooltip
clear</b></code> command won't work as expected. As a
workaround you can use the slightly modified approach shown below:</p>
<blockquote>
<pre>
proc tooltipDelCmd tbl { tooltip::tooltip $tbl "" }
... -tooltipaddcommand tooltipAddCmd -tooltipdelcommand tooltipDelCmd
</pre>
</blockquote>
<p>Both examples above make use of the <code><b><a href=
"#iselemsnipped">iselemsnipped</a></b></code>, <code><b><a href=
"#hdr_iselemsnipped">header 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 id="tooltipdelcommand">
<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 path 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 id="treecolumn">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-treecolumn</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> treeColumn</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> TreeColumn</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies the column to contain the indentations and expand/collapse
controls in the body of a tablelist used as a tree widget. The
option's value may be a column index in any of the forms described in
the <a href="#col_indices">COLUMN INDICES</a> section below. The
specified column index is replaced with its numerical equivalent, and
it will be updated automatically whenever columns are inserted,
deleted, or moved. The default value is <code>0</code>.</p>
<p>For technical reasons (the use of the <code><b>-elide</b></code>
text widget tag option for collapsing a row), this option is not
supported for Tk versions earlier than 8.3.</p>
<p><b>REMARK:</b> Please note that the tree structure will only
be displayed as expected if the column specified by this option is
left-aligned. It is your responsibility to make sure that this
restriction is fulfilled when using a tablelist as a tree widget.</p>
</blockquote>
</dd>
<dd id="treestyle">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-treestyle</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> treeStyle</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> TreeStyle</b></code></td>
</tr>
</table>
<blockquote>
<p>Specifies the look & feel of the column containing the indentations
and expand/collapse controls in the body of a a tablelist used as a
tree widget. This includes, among others, the images used for
displaying the expand/collapse controls, the indentation width, and
whether expand/collapse controls and indentations are to be protected
when selecting a row or cell. The currently supported values are
shown at a glance in the two tables below:</p>
<p>Tree styles for native look & feel:</p>
<table border="2" cellspacing="0" cellpadding="3" rules="groups">
<colgroup></colgroup>
<colgroup></colgroup>
<colgroup></colgroup>
<colgroup></colgroup>
<colgroup></colgroup>
<colgroup></colgroup>
<tbody align="center">
<tr>
<td><img src="gtk.png" alt="gtk" width="120" height="51"></td>
<td><img src="adwaita.png" alt="adwaita" width="120" height=
"51"></td>
<td><img src="blueMenta.png" alt="blueMenta" width="120" height=
"51"></td>
<td><img src="ubuntu.png" alt="ubuntu" width="120" height=
"51"></td>
<td><img src="ubuntu2.png" alt="ubuntu2" width="120" height=
"51"></td>
<td><img src="ubuntu3.png" alt="ubuntu3" width="120" height=
"51"></td>
</tr>
<tr>
<th><code>gtk</code></th>
<th><code>adwaita</code></th>
<th><code>blueMenta</code></th>
<th><code>ubuntu</code></th>
<th><code>ubuntu2</code></th>
<th><code>ubuntu3</code></th>
</tr>
</tbody>
<tbody align="center">
<tr>
<td><img src="mint.png" alt="mint" width="120" height="51"></td>
<td><img src="mint2.png" alt="mint2" width="120" height=
"51"></td>
<td><img src="mate.png" alt="mate" width="120" height="51"></td>
<td><img src="menta.png" alt="menta" width="120" height=
"51"></td>
<td><img src="ubuntuMate.png" alt="ubuntuMate" width="120"
height="51"></td>
<td><img src="yuyo.png" alt="yuyo" width="120" height="51"></td>
</tr>
<tr>
<th><code>mint</code></th>
<th><code>mint2</code></th>
<th><code>mate</code></th>
<th><code>menta</code></th>
<th><code>ubuntuMate</code></th>
<th><code>yuyo</code></th>
</tr>
</tbody>
<tbody align="center">
<tr>
<td><img src="arc.png" alt="arc" width="120" height="51"></td>
<td><img src="oxygen1.png" alt="oxygen1" width="120" height=
"51"></td>
<td><img src="oxygen2.png" alt="oxygen2" width="120" height=
"51"></td>
<td><img src="klearlooks.png" alt="klearlooks" width="120"
height="51"></td>
<td><img src="baghira.png" alt="baghira" width="120" height=
"51"></td>
<td><img src="phase.png" alt="phase" width="120" height=
"51"></td>
</tr>
<tr>
<th><code>arc</code></th>
<th><code>oxygen1</code></th>
<th><code>oxygen2</code></th>
<th><code>klearlooks</code></th>
<th><code>baghira</code></th>
<th><code>phase</code></th>
</tr>
</tbody>
<tbody align="center">
<tr>
<td><img src="plastique.png" alt="plastique" width="120" height=
"51"></td>
<td><img src="plastik.png" alt="plastik" width="120" height=
"51"></td>
<td><img src="winnative.png" alt="winnative" width="120" height=
"51"></td>
<td><img src="winxpBlue.png" alt="winxpBlue" width="120" height=
"51"></td>
<td><img src="winxpOlive.png" alt="winxpOlive" width="120"
height="51"></td>
<td><img src="winxpSilver.png" alt="winxpSilver" width="120"
height="51"></td>
</tr>
<tr>
<th><code>plastique</code></th>
<th><code>plastik</code></th>
<th><code>winnative</code></th>
<th><code>winxpBlue</code></th>
<th><code>winxpOlive</code></th>
<th><code>winxpSilver</code></th>
</tr>
</tbody>
<tbody align="center">
<tr>
<td><img src="aqua.png" alt="aqua" width="120" height="54"></td>
<td><img src="vistaAero.png" alt="vistaAero" width="120" height=
"54"></td>
<td><img src="vistaClassic.png" alt="vistaClassic" width="120"
height="51"></td>
<td><img src="win7Aero.png" alt="win7Aero" width="120" height=
"54"></td>
<td><img src="win7Classic.png" alt="win7Classic" width="120"
height="51"></td>
<td><img src="win10.png" alt="win110" width="120" height=
"54"></td>
</tr>
<tr>
<th><code>aqua</code></th>
<th><code>vistaAero</code></th>
<th><code>vistaClassic</code></th>
<th><code>win7Aero</code></th>
<th><code>win7Classic</code></th>
<th><code>win10</code></th>
</tr>
</tbody>
<tbody align="center">
<tr>
<td><img src="ambiance.png" alt="ambiance" width="120" height=
"63"></td>
<td><img src="dust.png" alt="dust" width="120" height="63"></td>
<td><img src="dustSand.png" alt="dustSand" width="120" height=
"63"></td>
<td><img src="radiance.png" alt="radiance" width="120" height=
"63"></td>
<td><img src="newWave.png" alt="newWave.png" width="120" height=
"63"></td>
<td></td>
</tr>
<tr>
<th><code>ambiance</code></th>
<th><code>dust</code></th>
<th><code>dustSand</code></th>
<th><code>radiance</code></th>
<th><code>newWave</code></th>
<th></th>
</tr>
</tbody>
</table>
<p>The sizes used by the tree styles <code><b>vistaAero</b></code>,
<code><b>vistaClassic</b></code>, <code><b>win7Aero</b></code>,
<code><b>win7Classic</b></code>, and <code><b>win10</b></code> are
<i>automatically</i> adapted to the display's scaling level.
Platform-independent <i>manual</i> scaling is supported by the
following tree styles:</p>
<table border="2" cellspacing="0" cellpadding="3" rules="groups">
<colgroup></colgroup>
<colgroup></colgroup>
<colgroup></colgroup>
<colgroup></colgroup>
<colgroup></colgroup>
<tbody align="center">
<tr bgcolor="#FFFFE0">
<th>100 %</th>
<th>125 %</th>
<th>150 %</th>
<th>175 %</th>
<th>200 %</th>
</tr>
</tbody>
<tbody align="center">
<tr>
<td><img src="plain100.png" alt="plain100" width="120" height=
"57"></td>
<td><img src="plain125.png" alt="plain125" width="140" height=
"69"></td>
<td><img src="plain150.png" alt="plain150" width="160" height=
"81"></td>
<td><img src="plain175.png" alt="plain175" width="185" height=
"93"></td>
<td><img src="plain200.png" alt="plain200" width="210" height=
"105"></td>
</tr>
<tr>
<th><code>plain100</code></th>
<th><code>plain125</code></th>
<th><code>plain150</code></th>
<th><code>plain175</code></th>
<th><code>plain200</code></th>
</tr>
</tbody>
<tbody align="center">
<tr>
<td><img src="bicolor100.png" alt="bicolor100" width="120"
height="57"></td>
<td><img src="bicolor125.png" alt="bicolor125" width="140"
height="69"></td>
<td><img src="bicolor150.png" alt="bicolor150" width="160"
height="81"></td>
<td><img src="bicolor175.png" alt="bicolor175" width="185"
height="93"></td>
<td><img src="bicolor200.png" alt="bicolor200" width="210"
height="105"></td>
</tr>
<tr>
<th><code>bicolor100</code></th>
<th><code>bicolor125</code></th>
<th><code>bicolor150</code></th>
<th><code>bicolor175</code></th>
<th><code>bicolor200</code></th>
</tr>
</tbody>
<tbody align="center">
<tr>
<td><img src="classic100.png" alt="classic100" width="120"
height="57"></td>
<td><img src="classic125.png" alt="classic125" width="140"
height="69"></td>
<td><img src="classic150.png" alt="classic150" width="160"
height="81"></td>
<td><img src="classic175.png" alt="classic175" width="185"
height="93"></td>
<td><img src="classic200.png" alt="classic200" width="210"
height="105"></td>
</tr>
<tr>
<th><code>classic100</code></th>
<th><code>classic125</code></th>
<th><code>classic150</code></th>
<th><code>classic175</code></th>
<th><code>classic200</code></th>
</tr>
</tbody>
<tbody align="center">
<tr>
<td><img src="white100.png" alt="white100" width="120"
height="57"></td>
<td><img src="white125.png" alt="white125" width="140"
height="69"></td>
<td><img src="white150.png" alt="white150" width="160"
height="81"></td>
<td><img src="white175.png" alt="white175" width="185"
height="93"></td>
<td><img src="white200.png" alt="white200" width="210"
height="105"></td>
</tr>
<tr>
<th><code>white100</code></th>
<th><code>white125</code></th>
<th><code>white150</code></th>
<th><code>white175</code></th>
<th><code>white200</code></th>
</tr>
</tbody>
</table>
<p>If the tree style is <code><b>gtk</b></code>,
<code><b>adwaita</b></code>, <code><b>blueMenta</b></code>,
<code><b>ubuntu</b></code>, <code><b>ubuntu2</b></code>,
<code><b>ubuntu3</b></code>, <code><b>mint</b></code>,
<code><b>mint2</b></code>, <code><b>mate</b></code>,
<code><b>menta</b></code>, <code><b>ubuntuMate</b></code>,
<code><b>arc</b></code>, <code><b>oxygen2</b></code>,
<code><b>aqua</b></code>, <code><b>vistaAero</b></code>,
<code><b>win7Aero</b></code>, <code><b>win10</b></code>,
<code><b>newWave</b></code>, <code><b>plain*</b></code>, or
<code><b>bicolor*</b></code>, and the Tk version is either 8.6 (with
built-in PNG support) or 8.5 and the <code><b>img::png</b></code>
package can be loaded into the interpreter, then the images used for
displaying the expand/collapse controls are PNG images with alpha
channel. Otherwise (i.e., for the other tree styles or in the
absence of PNG support) GIF images are used for the expand/collapse
controls.</p>
<p>The following table contains a detailed description of the tree
styles, in alphabetical order:</p>
<table border="2" cellspacing="0" cellpadding="3">
<tr bgcolor="#FFFFE0">
<th align="left">Value</th>
<th align="center">Screenshot</th>
<th align="left">Comments</th>
</tr>
<tr>
<td><code><b>adwaita</b></code></td>
<td><img src="adwaita.png" alt="adwaita" width="120" height=
"51"></td>
<td>Inspired by the GTK 3 theme Adwaita.</td>
</tr>
<tr>
<td><code><b>ambiance</b></code></td>
<td><img src="ambiance.png" alt="ambiance" width="120" height=
"63"></td>
<td>Inspired by the GTK 2 theme Ambiance. Recommended to be
used with large fonts and images.</td>
</tr>
<tr>
<td><code><b>aqua</b></code></td>
<td><img src="aqua.png" alt="aqua" width="120" height="54"></td>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td>Tablelist: </td>
<td>Default for the windowing systems
<code><b>aqua</b></code> and
<code><b>classic</b></code>.</td>
</tr>
<tr valign="top">
<td>Tablelist_tile: </td>
<td>Default for the themes <code><b>aqua</b></code> and
<code><b>Aquativo</b></code>.</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><code><b>arc</b></code></td>
<td><img src="arc.png" alt="arc" width="120" height="51"></td>
<td>Inspired by the Arc icon theme (of the GTK 2/3 theme Arc).</td>
</tr>
<tr>
<td><code><b>baghira</b></code></td>
<td><img src="baghira.png" alt="baghira" width="120" height=
"51"></td>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td>Tablelist_tile: </td>
<td>Default for the Qt styles <code><b>baghira</b></code>,
<code><b>cde</b></code>, and <code><b>motif</b></code> within
the <code><b>tileqt</b></code> theme. Also used by some
flavors of <code><b>qtcurve</b></code>.</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><code><b>bicolor100</b></code>,<br>
. . .<br>
<code><b>bicolor200</b></code></td>
<td><img src="bicolor100.png" alt="bicolor100" width="120" height=
"57"></td>
<td>While the tree style <code><b>bicolor100</b></code> uses
"normal" sizes, the four other styles are suitable for use with
large fonts and images (needed on high-resolution displays).<br>
Tablelist_tile: Default for the themes <code><b>awlight</b></code>,
<code><b>black</b></code>, <code><b>breeze</b></code>, and
<code><b>winxpblue</b></code> of the awthemes package.</td>
</tr>
<tr>
<td><code><b>classic100</b></code>,<br>
. . .<br>
<code><b>classic200</b></code></td>
<td><img src="classic100.png" alt="classic100" width="120" height=
"57"></td>
<td>While the tree style <code><b>classic100</b></code> uses
"normal" sizes, the four other styles are suitable for use with
large fonts and images (needed on high-resolution displays).<br>
Tablelist_tile: Default for the <code><b>arc</b></code> theme of
the awthemes package.</td>
</tr>
<tr>
<td><code><b>blueMenta</b></code></td>
<td><img src="blueMenta.png" alt="blueMenta" width="120" height=
"51"></td>
<td>Inspired by the GTK 3 theme BlueMenta of versions 1.14 and
later of the MATE desktop.</td>
</tr>
<tr>
<td><code><b>dust</b></code></td>
<td><img src="dust.png" alt="dust" width="120" height="63"></td>
<td>Inspired by the GTK 2 theme Dust. Recommended to be used
with large fonts and images.</td>
</tr>
<tr>
<td><code><b>dust</b></code></td>
<td><img src="dust.png" alt="dust" width="120" height="63"></td>
<td>Inspired by the GTK 2 theme Dust. Recommended to be used
with large fonts and images.</td>
</tr>
<tr>
<td><code><b>dustSand</b></code></td>
<td><img src="dustSand.png" alt="dustSand" width="120" height=
"63"></td>
<td>Inspired by the GTK 2 theme Dust Sand. Recommended to be
used with large fonts and images.</td>
</tr>
<tr>
<td><code><b>gtk</b></code></td>
<td><img src="gtk.png" alt="gtk" width="120" height="51"></td>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td>Tablelist: </td>
<td>Default for the windowing system
<code><b>x11</b></code>.</td>
</tr>
<tr valign="top">
<td>Tablelist_tile: </td>
<td>Default for the themes <code><b>alt</b></code>,
<code><b>blue</b></code>, <code><b>clam</b></code>,
<code><b>classic</b></code>, <code><b>clearlooks</b></code>,
<code><b>default</b></code>, <code><b>kroc</b></code>,
<code><b>sriv</b></code>, <code><b>srivlg</b></code>, and
<code><b>step</b></code>, as well as for the Qt style
<code><b>gtk+</b></code> within the
<code><b>tileqt</b></code> theme.</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><code><b>klearlooks</b></code></td>
<td><img src="klearlooks.png" alt="klearlooks" width="120" height=
"51"></td>
<td>
Inspired by the KDE 4 style Klearlooks.<br>
<table border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td>Tablelist_tile: </td>
<td>Default for the Qt style <code><b>qtcurve</b></code>
within the <code><b>tileqt</b></code> theme.</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><code><b>mate</b></code></td>
<td><img src="mate.png" alt="mate" width="120" height="51"></td>
<td>Inspired by a few GTK 2 themes of versions earlier than 1.14 of
the MATE desktop.</td>
</tr>
<tr>
<td><code><b>menta</b></code></td>
<td><img src="menta.png" alt="menta" width="120" height="51"></td>
<td>Inspired by the GTK 3 theme Menta of versions 1.14 and later of
the MATE desktop.</td>
</tr>
<tr>
<td><code><b>mint</b></code></td>
<td><img src="mint.png" alt="mint" width="120" height="51"></td>
<td>Inspired by a few GTK 3 themes bundled with versions earlier
than 18 of the Linux Mint distribution.</td>
</tr>
<tr>
<td><code><b>mint2</b></code></td>
<td><img src="mint2.png" alt="mint" width="120" height="51"></td>
<td>Inspired by a few GTK 3 themes bundled with versions 18 and
later of the Linux Mint distribution.</td>
</tr>
<tr>
<td><code><b>newWave</b></code></td>
<td><img src="newWave.png" alt="newWave" width="120" height=
"63"></td>
<td>Inspired by the GTK 2 theme New Wave. Recommended to be
used with large fonts and images.</td>
</tr>
<tr>
<td><code><b>oxygen1</b></code></td>
<td><img src="oxygen1.png" alt="oxygen1" width="120" height=
"51"></td>
<td>Inspired by the KDE 4 style Oxygen.</td>
</tr>
<tr>
<td><code><b>oxygen2</b></code></td>
<td><img src="oxygen2.png" alt="oxygen2" width="120" height=
"51"></td>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td>Tablelist_tile: </td>
<td>Default for the Qt style <code><b>oxygen</b></code>
within the <code><b>tileqt</b></code> theme.</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><code><b>phase</b></code></td>
<td><img src="phase.png" alt="phase" width="120" height="51"></td>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td>Tablelist_tile: </td>
<td>Default for the Qt style <code><b>phase</b></code> within
the <code><b>tileqt</b></code> theme.</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><code><b>plain100</b></code>,<br>
. . .<br>
<code><b>plain200</b></code></td>
<td><img src="plain100.png" alt="plain100" width="120" height=
"57"></td>
<td>While the tree style <code><b>plain100</b></code> uses "normal"
sizes, the four other styles are suitable for use with large fonts
and images (needed on high-resolution displays).<br>
Tablelist_tile: Default for the <code><b>clearlooks</b></code>
theme of the awthemes package.</td>
</tr>
<tr>
<td><code><b>plastik</b></code></td>
<td><img src="plastik.png" alt="plastik" width="120" height=
"51"></td>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td>Tablelist_tile: </td>
<td>Default for the <code><b>plastik</b></code> theme and the
Qt style <code><b>plastik</b></code> within the
<code><b>tileqt</b></code> theme.</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><code><b>plastique</b></code></td>
<td><img src="plastique.png" alt="plastique" width="120" height=
"51"></td>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td>Tablelist_tile: </td>
<td>Default for the Qt style <code><b>plastique</b></code>
within the <code><b>tileqt</b></code> theme.</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><code><b>radiance</b></code></td>
<td><img src="radiance.png" alt="radiance" width="120" height=
"63"></td>
<td>Inspired by the GTK 2 theme Radiance. Recommended to be
used with large fonts and images.</td>
</tr>
<tr>
<td><code><b>ubuntu</b></code></td>
<td><img src="ubuntu.png" alt="ubuntu" width="120" height=
"51"></td>
<td>Inspired by a couple of GTK 3 themes bundled with versions
earlier than 15.04 of the Ubuntu Linux distribution.</td>
</tr>
<tr>
<td><code><b>ubuntu2</b></code></td>
<td><img src="ubuntu2.png" alt="ubuntu2" width="120" height=
"51"></td>
<td>Inspired by a couple of GTK 3 themes bundled with versions
15.04 – 16.04 of the Ubuntu Linux distribution.</td>
</tr>
<tr>
<td><code><b>ubuntu3</b></code></td>
<td><img src="ubuntu3.png" alt="ubuntu3" width="120" height=
"51"></td>
<td>Inspired by a couple of GTK 3 themes bundled with versions
16.10 and later of the Ubuntu Linux distribution.</td>
</tr>
<tr>
<td><code><b>ubuntuMate</b></code></td>
<td><img src="ubuntuMate.png" alt="ubuntuMate" width="120" height=
"51"></td>
<td>Inspired by the themes Ambiant-MATE and Radiant-MATE, bundled
with versions 16.10 and later of the Ubuntu MATE distribution and
noticeably improved in Ubuntu MATE 20.04.</td>
</tr>
<tr>
<td><code><b>vistaAero</b></code></td>
<td><img src="vistaAero.png" alt="vistaAero" width="120" height=
"54"></td>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td>Tablelist: </td>
<td>Default for the windowing system
<code><b>win32</b></code> on Windows Vista.</td>
</tr>
<tr valign="top">
<td>Tablelist_tile: </td>
<td>Default for the <code><b>vista</b></code> theme on
Windows Vista with the Aero style.</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><code><b>vistaClassic</b></code></td>
<td><img src="vistaClassic.png" alt="vistaClassic" width="120"
height="51"></td>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td>Tablelist: </td>
<td>Default for the windowing system
<code><b>win32</b></code> on Windows Vista with the Windows
Classic style.</td>
</tr>
<tr valign="top">
<td>Tablelist_tile: </td>
<td>Default for the <code><b>vista</b></code> theme on
Windows Vista with the Windows Classic style.</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><code><b>white100</b></code>,<br>
. . .<br>
<code><b>white200</b></code></td>
<td><img src="white100.png" alt="white100" width="120" height=
"57"></td>
<td>While the tree style <code><b>white100</b></code> uses "normal"
sizes, the four other styles are suitable for use with large fonts
and images (needed on high-resolution displays).<br>
Tablelist_tile: Default for the <code><b>awdark</b></code>
theme.</td>
</tr>
<tr>
<td><code><b>win7Aero</b></code></td>
<td><img src="win7Aero.png" alt="win7Aero" width="120" height=
"54"></td>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td>Tablelist: </td>
<td>Default for the windowing system
<code><b>win32</b></code> on Windows 7 and 8.</td>
</tr>
<tr valign="top">
<td>Tablelist_tile: </td>
<td>Default for the <code><b>vista</b></code> theme on
Windows 7 and 8, with the Aero style.</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><code><b>win7Classic</b></code></td>
<td><img src="win7Classic.png" alt="win7Classic" width="120"
height="51"></td>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td>Tablelist: </td>
<td>Default for the windowing system
<code><b>win32</b></code> on Windows 7 and 8 with the Windows
Classic style.</td>
</tr>
<tr valign="top">
<td>Tablelist_tile: </td>
<td>Default for the <code><b>vista</b></code> theme on
Windows 7 and 8 with the Windows Classic style.</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><code><b>win10</b></code></td>
<td><img src="win10.png" alt="win10" width="120" height="54"></td>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td>Tablelist: </td>
<td>Default for the windowing system
<code><b>win32</b></code> on Windows 10.</td>
</tr>
<tr valign="top">
<td>Tablelist_tile: </td>
<td>Default for the <code><b>vista</b></code> theme on
Windows 10.</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><code><b>winnative</b></code></td>
<td><img src="winnative.png" alt="winnative" width="120" height=
"51"></td>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td>Tablelist: </td>
<td>Default for the windowing system
<code><b>win32</b></code> on Windows 2000 and Windows XP with
the Windows Classic style.</td>
</tr>
<tr valign="top">
<td>Tablelist_tile: </td>
<td>Default for the themes <code><b>keramik</b></code>,
<code><b>keramik_alt</b></code>,
<code><b>winnative</b></code>, and
<code><b>xpnative</b></code> with the Windows Classic style,
as well as for most Qt styles within the
<code><b>tileqt</b></code> theme.</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><code><b>winxpBlue</b></code></td>
<td><img src="winxpBlue.png" alt="winxpBlue" width="120" height=
"51"></td>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td>Tablelist: </td>
<td>Default for the windowing system
<code><b>win32</b></code> on Windows XP with the Blue color
scheme.</td>
</tr>
<tr valign="top">
<td>Tablelist_tile: </td>
<td>Default for the original <code><b>winxpblue</b></code>
theme and the <code><b>xpnative</b></code> theme on Windows
XP with the Blue color scheme.</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><code><b>winxpOlive</b></code></td>
<td><img src="winxpOlive.png" alt="winxpOlive" width="120" height=
"51"></td>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td>Tablelist: </td>
<td>Default for the windowing system
<code><b>win32</b></code> on Windows XP with the Olive Green
color scheme.</td>
</tr>
<tr valign="top">
<td>Tablelist_tile: </td>
<td>Default for the <code><b>xpnative</b></code> theme on
Windows XP with the Olive Green color scheme.</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><code><b>winxpSilver</b></code></td>
<td><img src="winxpSilver.png" alt="winxpSilver" width="120"
height="51"></td>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td>Tablelist: </td>
<td>Default for the windowing system
<code><b>win32</b></code> on Windows XP with the Silver color
scheme.</td>
</tr>
<tr valign="top">
<td>Tablelist_tile: </td>
<td>Default for the <code><b>xpnative</b></code> theme on
Windows XP with the Silver color scheme.</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><code><b>yuyo</b></code></td>
<td><img src="yuyo.png" alt="yuyo" width="120" height="51"></td>
<td>Inspired by the GTK 2 theme Yuyo on Ubuntu MATE.</td>
</tr>
</table>
<p>For technical reasons (the use of the <code><b>-elide</b></code>
text widget tag option for collapsing a row), this option is not
supported for Tk versions earlier than 8.3.</p>
</blockquote>
</dd>
<dd id="width">
<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>
<p><b>REMARK:</b> If the value of this configuration option is
zero or less and the tablelist has <a href="#stretch">stretchable</a>
columns, then the <code><b>-setgrid</b></code> option will be
ignored. This minor restriction has technical reasons and is only
relevant on X11.</p>
</blockquote>
</dd>
<dd id="xmousewheelwindow">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-xmousewheelwindow</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> xMouseWheelWindow</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> MouseWheelWindow</b></code></td>
</tr>
</table>
<blockquote>
<p>This option is only relevant if the mouse wheel events are reported
to the widget under the pointer rather than to the one having the
focus. This condition is fulfilled on X11 and Mac OS X, and for
Tk 8.6b2 and later on Windows, too (in earlier Tk versions the mouse
wheel events on Windows were sent to the widget having the focus).</p>
<p>The <code><b>-xmousewheelwindow</b></code> option specifies the path
name of the window to which the default bindings for the binding tags
<code><b><a href="#body_bindings">TablelistBody</a></b></code> and
<code><b><a href="#edit_bindings">TablelistEdit</a></b></code> should
redirect the mouse wheel events along the x axis via
<code><b>event generate</b></code> if the focus window on the
display containing the tablelist widget is outside the tablelist.
The default is an empty string, meaning that the mouse wheel events
along the x axis received by a widget having one of the two
above-mentioned binding tags will give rise to horizontal scrolling of
the tablelist or its edit window, regardless of whether the focus is
inside or outside the tablelist widget.</p>
<p><b>REMARK 1:</b> The mouse wheel events along the horizontal
axis are <code><b><Shift-MouseWheel></b></code> on Windows,
<code><b><Shift-MouseWheel></b></code> and
<code><b><Shift-Option-MouseWheel></b></code> on Mac OS X, and
<code><b><Shift-MouseWheel></b></code>,
<code><b><Shift-Button-4></b></code> and
<code><b><Shift-Button-5></b></code> on X11 (where
<code><b><Shift-MouseWheel></b></code> is not triggered by the X
server, but can be produced using <code><b>event
generate</b></code>). On X11, when using Tk 8.7a3 or later, there
are two more mouse wheel events along the horizontal axis:
<code><b><Button-6></b></code> and
<code><b><Button-7></b></code>, which are handled just like
<code><b><Shift-Button-4></b></code> and
<code><b><Shift-Button-5></b></code>, respectively. These
events are commonly triggered by left/right tilting the scroll wheel of
a mouse having one or two additional (thumb) buttons. (In Tk
versions 8.6.x, with x >= 10, left/right tilting the scroll wheel of
such a mouse gives rise to <code><b><Shift-MouseWheel></b></code>
events on Windows and Mac OS X Aqua, and to
<code><b><Shift-Button-4></b></code> and
<code><b><Shift-Button-5></b></code> events on X11.)</p>
<p><b>REMARK 2:</b> If the tablelist is contained in a scrollable
widget container like a <a href=
"https://www.nemethi.de/scrollutil/scrollableframe.html">scrollutil::scrollableframe</a>,
BWidget ScrollableFrame, or iwidgets::scrolledframe, and you set this
option to the path name of that container window or that of the
containing toplevel widget, then a horizontal mouse wheel event over
the tablelist's body will be handled as follows:</p>
<ul>
<li class="tm">If the focus is inside the tablelist widget then the
event will scroll the tablelist or its edit window horizontally and
no further processing of the event will take place.</li>
<li class="tm">If the focus is outside the tablelist widget then no
scrolling of the tablelist's body or edit window will happen.
Instead, the event will be redirected to the widget container or the
toplevel widget with the aid of the <code><b>event
generate</b></code> command. This in turn will give rise
to horizontal scrolling of the widget container, provided that the
containing toplevel widget or the binding tag <code><b>all</b></code>
has the necessary mouse wheel event bindings.</li>
</ul>
<p><b>REMARK 3:</b> If you pass the tablelist widget to the
<code><b><a href=
"https://www.nemethi.de/scrollutil/wheelEvent.html#adapt">scrollutil::adaptWheelEventHandling</a></b></code>
command then the latter sets this option to the path name of the
containing toplevel window.</p>
</blockquote>
</dd>
<dd id="ymousewheelwindow">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Command-Line Name: </td>
<td><code><b>-ymousewheelwindow</b></code></td>
</tr>
<tr>
<td>Database Name:</td>
<td><code><b> yMouseWheelWindow</b></code></td>
</tr>
<tr>
<td>Database Class:</td>
<td><code><b> MouseWheelWindow</b></code></td>
</tr>
</table>
<blockquote>
<p>This option is only relevant if the mouse wheel events are reported
to the widget under the pointer rather than to the one having the
focus. This condition is fulfilled on X11 and Mac OS X, and for
Tk 8.6b2 and later on Windows, too (in earlier Tk versions the mouse
wheel events on Windows were sent to the widget having the focus).</p>
<p>The <code><b>-ymousewheelwindow</b></code> option specifies the path
name of the window to which the default bindings for the binding tags
<code><b><a href="#body_bindings">TablelistBody</a></b></code> and
<code><b><a href="#edit_bindings">TablelistEdit</a></b></code> should
redirect the mouse wheel events along the y axis via
<code><b>event generate</b></code> if the focus window on the
display containing the tablelist widget is outside the tablelist.
The default is an empty string, meaning that the mouse wheel events
along the y axis received by a widget having one of the two
above-mentioned binding tags will give rise to vertical scrolling of
the tablelist or its edit window, regardless of whether the focus is
inside or outside the tablelist widget.</p>
<p><b>REMARK 1:</b> The mouse wheel events along the vertical
axis are <code><b><MouseWheel></b></code> on Windows,
<code><b><MouseWheel></b></code> and
<code><b><Option-MouseWheel></b></code> on Mac OS X, and
<code><b><MouseWheel></b></code>,
<code><b><Button-4></b></code> and
<code><b><Button-5></b></code> on X11 (where
<code><b><MouseWheel></b></code> is not triggered by the X
server, but can be produced using <code><b>event
generate</b></code>).</p>
<p><b>REMARK 2:</b> If the tablelist is contained in a scrollable
widget container like a <a href=
"https://www.nemethi.de/scrollutil/scrollableframe.html">scrollutil::scrollableframe</a>,
BWidget ScrollableFrame, or iwidgets::scrolledframe, and you set this
option to the path name of that container window or that of the
containing toplevel widget, then a vertical mouse wheel event over the
tablelist's body will be handled as follows:</p>
<ul>
<li class="tm">If the focus is inside the tablelist widget then the
event will scroll the tablelist or its edit window vertically and no
further processing of the event will take place.</li>
<li class="tm">If the focus is outside the tablelist widget then no
scrolling of the tablelist's body or edit window will happen.
Instead, the event will be redirected to the widget container or the
toplevel widget with the aid of the <code><b>event
generate</b></code> command. This in turn will give rise
to vertical scrolling of the widget container, provided that the
containing toplevel widget or the binding tag <code><b>all</b></code>
has the necessary mouse wheel event bindings.</li>
</ul>
<p><b>REMARK 3:</b> If you pass the tablelist widget to the
<code><b><a href=
"https://www.nemethi.de/scrollutil/wheelEvent.html#adapt">scrollutil::adaptWheelEventHandling</a></b></code>
command then the latter sets this option to the path name of the
containing toplevel window.</p>
</blockquote>
</dd>
<dt id="col_options"><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 class="tm" id="col_align"><code><b>-align</b>
<i>alignment</i></code></dt>
<dd>Specifies how to align the body and header 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 class="tm" id="col_background"><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
content of the column in both the body and the header.</dd>
<dt class="tm" id="col_changesnipside"><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 body and header 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 class="tm" id="col_changetitlesnipside">
<code><b>-changetitlesnipside</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 column's title. The default value is
<code>0</code>, meaning that the snip string will be appended to the
title if the column's alignment is <code><b>left</b></code> or
<code><b>center</b></code> and prepended to it in case the alignment is
<code><b>right</b></code>.</dd>
<dt class="tm" id="col_editable"><code><b>-editable</b>
<i>boolean</i></code></dt>
<dd>Specifies whether the elements of the column in the tablelist's
body 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>
<dd class="tm"><b>REMARK:</b> The support for interactive editing
is restricted to the widget's body component</dd>
<dt class="tm" id="col_editwindow"><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 body
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 versions 8.4 or higher), <code><b>checkbutton</b></code>,
<code><b>menubutton</b></code>, <code><b>ttk::entry</b></code>,
<code><b>ttk::spinbox</b></code>, <code><b>ttk::combobox</b></code>,
<code><b>ttk::checkbutton</b></code>, or
<code><b>ttk::menubutton</b></code> (the latter five 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), <a href=
"tablelistCtext.html">ctext</a>, 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 class="tm" id="col_font"><code><b>-font</b> <i>font</i></code></dt>
<dd>Specifies the font to use when displaying the content of the column
in both the body and the header.</dd>
<dt class="tm" id="col_foreground"><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
content of the column in both the body and the header.</dd>
<dt class="tm" id="col_formatcommand"><code><b>-formatcommand</b>
<i>command</i></code></dt>
<dd>Specifies a Tcl command to be invoked when displaying the content
of a body or header cell within this column or adding a body cell's
content 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.</dd>
<dd class="tm">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</dd>
<dd>
<blockquote>
<pre>
proc formatDate clockVal {
return [clock format $clockVal -format "%Y-%m-%d"]
}
</pre>
</blockquote>
</dd>
<dd>then the text displayed in the cell will be the date in the
specified format, not the time value in seconds.</dd>
<dd class="tm">This option is also used by Tablelist when building the
return values of the <code><b><a href=
"#getformatted">getformatted</a></b></code>, <code><b><a href=
"#getformattedcolumns">getformattedcolumns</a></b></code>, and
<code><b><a href="#getformattedcells">getformattedcells</a></b></code>
subcommands, as well as their header-related counterparts, or searching
for a text pattern passed to the <code><b><a href=
"#searchcolumn">searchcolumn</a></b></code> subcommand with the
<code><b>-formatted</b></code> option. All the other subcommands,
notably <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>, along with their counterparts for
the header, <code><b><a href="#columncget">columncget</a></b></code>,
<code><b><a href="#cellcget">cellcget</a></b></code>, along with the
latter's header-related counterpart, <code><b><a href=
"#sort">sort</a></b></code>, <code><b><a href=
"#sortbycolumn">sortbycolumn</a></b></code>, <code><b><a href=
"#sortbycolumnlist">sortbycolumnlist</a></b></code>, and
<code><b><a href="#refreshsorting">refreshsorting</a></b></code>
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 quite easily by time, with a second's
precision, even if their visual representation only contains the year,
month, and day.</dd>
<dd class="tm">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:</dd>
<dd>
<blockquote>
<pre>
proc emptyStr val { return "" }
</pre>
</blockquote>
</dd>
<dd>Another important use case is related to tablelist columns whose
<code><b><a href="#col_sortmode">-sortmode</a></b></code> option was
set to <code><b>integer</b></code> or <code><b>real</b></code>.
If some of the cells of such a column are empty then an attempt to sort
the items by that column via <code><b><a href=
"#sortbycolumn">sortbycolumn</a></b></code> or <code><b><a href=
"#sortbycolumnlist">sortbycolumnlist</a></b></code> would generate an
error, because the <code><b>lsort -integer</b></code>
or <code><b>lsort -real</b></code> invocation made by
Tablelist would complain about getting an unexpected empty string
instead of an integer or floating-point number. To avoid this,
make sure that the cells intended to display an empty string have as
internal value a number that is either strictly less or strictly
greater than all the other integer or real numbers contained in the
column in question, and use the <code><b>-formatcommand</b></code>
option to control what will be displayed in the column's cells.
For example, if all the elements of the column are non-negative values
then you can use the number <code>-1</code> as internal value for the
cells that should display an empty string, and set the value of the
<code><b>-formatcommand</b></code> option to <code>formatNumber</code>,
where <code>formatNumber</code> is the procedure implemented as
follows:</dd>
<dd>
<blockquote>
<pre>
proc formatNumber val { return [expr {$val == -1 ? "" : $val}] }
</pre>
</blockquote>
</dd>
<dd>This will make the cells displaying an empty string appear before
all the others when sorting the column in increasing order. To
achieve the opposite effect, you will have to replace the
<code>-1</code> with an application-specific value that is strictly
greater than all the other numbers contained in the column in
question.</dd>
<dd class="tm">The demo scripts included in the Tablelist distribution
contain further examples demonstrating the use of this option.
The most interesting ones are also described in <a href=
"tablelist.html">Tablelist Programmer's Guide</a>.</dd>
<dd class="tm">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.</dd>
<dd class="tm" id="col_formatted">Due to the
<code><b>-formatcommand</b></code> column configuration option, we will
distinguish between the internal value of a tablelist element and its
<b>formatted</b> version. The latter is the result of the
invocation of the script corresponding to the
<code><b>-formatcommand</b></code> option of the element's column, or
the element itself if this option was not set for that column.
Consequently, the formatted version of a tablelist item is a list
comprised of the formatted elements of the original item.</dd>
<dt class="tm" id="col_hide"><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>. After toggling the hidden state of a column, the
<code><b><<TablelistColHiddenStateChanged>></b></code>
virtual event is generated, with its <code><b>-data</b></code> option
set to the numerical column index for Tk versions 8.5 and higher.</dd>
<dt class="tm" id="col_labelalign"><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 class="tm" id="col_labelopts"><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><br>
<code><b>-selectfiltercommand</b> <i>command</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>-labelbackground</b></code> and
<code><b>-labelheight</b></code> options are only supported by the
Tablelist package, but not by Tablelist_tile.</dd>
<dt class="tm" id="col_labelimage"><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 class="tm" id="col_labelvalign"><code><b>-labelvalign</b>
<i>verticalAlignment</i></code></dt>
<dd>Specifies the vertical alignment of the Tk image (if any) displayed
in the header label. The <code><i>verticalAlignment</i></code>
must be one of <code><b>center</b></code> (which is the default),
<code><b>top</b></code>, or <code><b>bottom</b></code>.
Especially if the label contains a multi-line text, the image is often
not as tall as the text; in such cases, this option enables you to
control the column-dependent vertical alignment of the image.</dd>
<dt class="tm" id="col_maxwidth"><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 class="tm" id="col_name"><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 body cell index of the form
<code><i>row</i><b>,</b><i>col</i></code> or a header cell index of the
form <code><i>headerRow</i><b>,</b><i>col</i></code>, as described in
the <a href="#cell_indices">CELL INDICES</a> and <a href=
"#hdr_cell_indices">HEADER CELL INDICES</a> sections. 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>,
<code><b>last</b></code>, <code><b>left</b></code>,
<code><b>right</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 class="tm" id="col_resizable"><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 AND INDIVIDUAL 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 class="tm" id="col_selectbackground"><code><b>-selectbackground</b>
<i>color</i></code></dt>
<dd>Specifies the background color to use when displaying the content
of a body cell in the given column while the cell is selected.</dd>
<dt class="tm" id="col_selectforeground"><code><b>-selectforeground</b>
<i>color</i></code></dt>
<dd>Specifies the foreground color to use when displaying the content
of a body cell in the given column while the cell is selected.</dd>
<dt class="tm" id="col_showarrow"><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 class="tm" id="col_showlinenumbers"><code><b>-showlinenumbers</b>
<i>boolean</i></code></dt>
<dd>Specifies whether the body part of 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>.</dd>
<dd class="tm">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 body items are inserted, deleted, updated,
moved, or sorted, or their <code><b><a href=
"#row_hide">-hide</a></b></code> option is toggled. For increased
efficiency, this is done at idle time. For example, if several
items are inserted into or deleted from the body of a 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.</dd>
<dd class="tm">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).</dd>
<dd class="tm"><b>REMARK:</b> Please note that the line numbers
refer to the <i>non-hidden</i> rows, which in case of a tablelist used
as a tree widget might be different from the <a href=
"#isviewable">viewable</a> ones. Consequently, collapsing a row
will, in general, not lead to renumbering the lines (instead, it will
just elide the corresponding range of line numbers).</dd>
<dt class="tm" id="col_sortcommand"><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 class="tm" id="col_sortmode"><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:</dd>
<dd class="tm">
<table border="0" cellpadding="6" cellspacing="0">
<tr valign="top">
<td><code><b>ascii</b></code></td>
<td>Use string comparison with Unicode code-point collation order
(the name is for backward-compatibility reasons). This is
the default.</td>
</tr>
<tr valign="top">
<td><code><b>asciinocase </b></code></td>
<td>This is the same as <code><b>ascii</b></code>, except that
comparisons are handled in a case-insensitive manner.</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.</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>.</td>
</tr>
<tr valign="top">
<td><code><b>integer</b></code></td>
<td>Convert the elements to integers and use integer
comparison. If any of the elements cannot be converted to
an integer (e.g., because it is an empty string) then a sort
attempt will generate an error. See the description of the
<code><b><a href=
"#col_formatcommand">-formatcommand</a></b></code> option for the
recommended way to avoid this problem.</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. If any of the elements cannot be
converted to a floating-point value (e.g., because it is an empty
string) then a sort attempt will generate an error. See the
description of the <code><b><a href=
"#col_formatcommand">-formatcommand</a></b></code> option for the
recommended way to avoid this problem.</td>
</tr>
</table>
</dd>
<dt class="tm" id="col_stretchable"><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 class="tm" id="col_stripebackground"><code><b>-stripebackground</b>
<i>color</i></code></dt>
<dd>Specifies the background color to use when displaying the content
of a body cell in the given column if the cell's row belongs to a
stripe.</dd>
<dt class="tm" id="col_stripeforeground"><code><b>-stripeforeground</b>
<i>color</i></code></dt>
<dd>Specifies the foreground color to use when displaying the content
of a body cell in the given column if the cell's row belongs to a
stripe.</dd>
<dt class="tm" id="col_text"><code><b>-text</b> <i>list</i></code></dt>
<dd>Specifies a list of strings to be displayed in the body cells of
the given column, i.e., updates the elements contained in the column's
body part. 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 class="tm" id="col_title"><code><b>-title</b>
<i>title</i></code></dt>
<dd>Specifies the text to be displayed in the column's header
label. 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 class="tm" id="col_valign"><code><b>-valign</b>
<i>verticalAlignment</i></code></dt>
<dd>Specifies the vertical alignment of embedded images and windows
displayed in the given column. The
<code><i>verticalAlignment</i></code> must be one of
<code><b>center</b></code> (which is the default),
<code><b>top</b></code>, or <code><b>bottom</b></code>.
Especially in rows containing multi-line elements, embedded images or
windows are often not as tall as the rows themselves; in such cases,
this option enables you to control the column-dependent vertical
alignment of these embedded objects. The value of this option can
be overridden for individual cells by using the <a href=
"#cell_valign">cell configuration option</a> of the same name.</dd>
<dt class="tm" id="col_width"><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 class="tm" id="col_wrap"><code><b>-wrap</b>
<i>boolean</i></code></dt>
<dd>Specifies whether to display those body and header 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 or a
nonzero <code><b><a href="#col_maxwidth">-maxwidth</a></b></code> value
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>
</dl>
</dd>
<dd class="tm">The <code><b>-background</b></code>,
<code><b>-font</b></code>, <code><b>-foreground</b></code>,
<code><b>-selectbackground</b></code>,
<code><b>-selectforeground</b></code>,
<code><b>-stripebackground</b></code>, and
<code><b>-stripeforeground</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.</dd>
<dt class="tm" id="row_options"><b>ROW CONFIGURATION OPTIONS IN THE
TABLELIST BODY</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 class="tm" id="row_background"><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
content of the row.</dd>
<dt class="tm" id="row_font"><code><b>-font</b> <i>font</i></code></dt>
<dd>Specifies the font to use when displaying the content of the
row.</dd>
<dt class="tm" id="row_foreground"><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
content of the row.</dd>
<dt class="tm" id="row_hide"><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>. After toggling the hidden state of a row, the
<code><b><<TablelistRowHiddenStateChanged>></b></code>
virtual event is generated, with its <code><b>-data</b></code> option
set to the numerical row index for Tk versions 8.5 and higher.</dd>
<dd class="tm">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.</dd>
<dd class="tm"><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!</dd>
<dt class="tm" id="row_name"><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, full keys, <code><b>active</b></code>,
<code><b>anchor</b></code>, <code><b>end</b></code>,
<code><b>last</b></code>, <code><b>top</b></code>,
<code><b>bottom</b></code>, or any of their abbreviations). The
default value is an empty string.</dd>
<dt class="tm" id="row_selectable"><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 class="tm" id="row_selectbackground"><code><b>-selectbackground</b>
<i>color</i></code></dt>
<dd>Specifies the background color to use when displaying the content
of a cell in the given row while the cell is selected.</dd>
<dt class="tm" id="row_selectforeground"><code><b>-selectforeground</b>
<i>color</i></code></dt>
<dd>Specifies the foreground color to use when displaying the content
of a cell in the given row while the cell is selected.</dd>
<dt class="tm" id="row_text"><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>
</dl>
</dd>
<dd class="tm">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.</dd>
<dt class="tm" id="hdr_row_options"><b>ROW CONFIGURATION OPTIONS IN THE
TABLELIST HEADER</b></dt>
<dd>The following options are currently supported by the
<code><b><a href="#hdr_rowcget">header rowcget</a></b></code>,
<code><b><a href="#hdr_rowconfigure">header
rowconfigure</a></b></code>, <code><b><a href=
"#hdr_configrowlist">header configrowlist</a></b></code>, and
<code><b><a href="#hdr_configrows">header configrows</a></b></code>
commands:</dd>
<dd>
<dl>
<dt class="tm" id="hdr_row_background"><code><b>-background</b>
<i>color</i></code> or <code><b>-bg</b> <i>color</i></code></dt>
<dd>Specifies the background color to use when displaying the content
of the header row.</dd>
<dt class="tm" id="hdr_row_font"><code><b>-font</b>
<i>font</i></code></dt>
<dd>Specifies the font to use when displaying the content of the header
row.</dd>
<dt class="tm" id="hdr_row_foreground"><code><b>-foreground</b>
<i>color</i></code> or <code><b>-fg</b> <i>color</i></code></dt>
<dd>Specifies the foreground color to use when displaying the content
of the header row.</dd>
<dt class="tm" id="hdr_row_name"><code><b>-name</b>
<i>name</i></code></dt>
<dd>Specifies a name associated with the header row. While the
numerical index of a header row might change by inserting or deleting
header rows, its name remains constant and can be used as a safe
alternative header row index (see the <a href="#hdr_row_indices">HEADER
ROW INDICES</a> section for details). Similarly, it can also be
used as the first component of a header cell index of the form
<code><i>headerRow</i><b>,</b><i>col</i></code>, as described in the
<a href="#hdr_cell_indices">HEADER CELL INDICES</a> section. To
avoid ambiguities, header row names should be different from any other
forms of header row indices (like numbers, full keys,
<code><b>end</b></code>, <code><b>last</b></code>, or any of their
abbreviations). The default value is an empty string.</dd>
<dt class="tm" id="hdr_row_text"><code><b>-text</b>
<i>list</i></code></dt>
<dd>Specifies a list of strings to be displayed in the cells of the
given header row, i.e., updates the item contained in the header
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>
</dl>
</dd>
<dd class="tm">The <code><b>-background</b></code>,
<code><b>-font</b></code>, and <code><b>-foreground</b></code> header row
configuration options override the options of the same names set at column
or widget level (but not the ones set at header 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.</dd>
<dt class="tm" id="cell_options"><b>CELL CONFIGURATION OPTIONS IN THE
TABLELIST BODY</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 class="tm" id="cell_background"><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
content of the cell.</dd>
<dt class="tm" id="cell_editable"><code><b>-editable</b>
<i>boolean</i></code></dt>
<dd>Specifies whether the content 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 class="tm" id="cell_editwindow"><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 content. 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 class="tm" id="cell_font"><code><b>-font</b>
<i>font</i></code></dt>
<dd>Specifies the font to use when displaying the content of the
cell.</dd>
<dt class="tm" id="cell_foreground"><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
content of the cell.</dd>
<dt class="tm" id="cell_image"><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.</dd>
<dd class="tm">To display an image in a cell, Tablelist makes use of an
embedded label widget (which is created on demand). This has the
main advantage of making it possible to adjust the width of the label
containing the image to fit into its column. This has the visual
effect of cutting off part of the image from its right side. The
above-mentioned gap to the left or right of the image is also part of
this label. To make sure that an image with fully or partially
transparent background will be displayed correctly, the background
color of the label widget containing the embedded image is
automatically synchronized with the cell's background color whenever
necessary (e.g., when selecting or deselecting the cell's content, or
changing its background color), provided that the <code><b><a href=
"#cell_imagebackground">-imagebackground</a></b></code> option was not
set or its value is an empty string. This automatic color
synchronization makes also sure that the gap between the text and the
image is displayed in the right color.</dd>
<dt class="tm" id="cell_imagebackground"> <code><b>-imagebackground</b>
<i>color</i></code></dt>
<dd>Specifies the background color of the label widget containing the
embedded image (if any). If the value of this option is a valid
nonempty color specification then the fully transparent pixels of the
embedded image will appear in the specified color, and the partially
transparent ones will be shown modified according to their alpha
value and the image background color. The default value is an
empty string, meaning that the background color of the label widget
containing the embedded image will be automatically updated whenever
necessary.</dd>
<dd class="tm"><b>REMARK:</b> This option works fine if the
cell's text (or at least the latter's <a href=
"#col_formatted">formatted</a> version) is an empty string.
Otherwise there will be a gap between the text and the image, and this
gap will appear in the specified image background color if the latter
is a nonempty string.</dd>
<dt class="tm" id="cell_selectbackground">
<code><b>-selectbackground</b> <i>color</i></code></dt>
<dd>Specifies the background color to use when displaying the content
of the cell while it is selected.</dd>
<dt class="tm" id="cell_selectforeground">
<code><b>-selectforeground</b> <i>color</i></code></dt>
<dd>Specifies the foreground color to use when displaying the content
of the cell while it is selected.</dd>
<dt class="tm" id="cell_stretchwindow"><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 empty 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 class="tm" id="cell_text"><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 class="tm" id="cell_valign"><code><b>-valign</b>
<i>verticalAlignment</i></code></dt>
<dd>Specifies the vertical alignment of the embedded image or window
displayed in the cell (if any). The default value is
<code><b>center</b></code>. This option overrides <a href=
"#col_valign">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 class="tm" id="cell_window"><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 path
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.</dd>
<dd class="tm"><b>REMARK:</b> 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 content
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.</dd>
<dt class="tm" id="cell_windowdestroy"><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 path 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 class="tm" id="cell_windowupdate"><code><b>-windowupdate</b>
<i>command</i></code></dt>
<dd>Specifies a Tcl command responsible for adapting the background and
foreground colors of a window embedded into the cell to the current
background and foreground colors of the cell itself. The current
cell colors depend on whether the tablelist widget's <code><b><a href=
"#state">state</a></b></code> is <code><b>normal</b></code> or
<code><b>disabled</b></code>, whether the cell is selected, and whether
its row is displayed with the colors specified by the <code><b><a href=
"#stripebackground">-stripebackground</a></b></code> and
<code><b><a href="#stripeforeground">-stripeforeground</a></b></code>
widget or column configuration options. The command is
automatically concatenated with the path name of the tablelist widget,
the cell's row and column indices, the path name of the embedded
window, the option name <code><b>-background</b></code> and the cell's
current background color, as well as the option name
<code><b>-foreground</b></code> and the cell's current foreground
color. The resulting script is then evaluated in the global
scope. The specified command can use the colors passed to it as
arguments to set the corresponding colors of the embedded window to the
same values.</dd>
<dd class="tm">For example, if the embedded window is a text or ctext
widget and you want for its background and foreground colors to be
automatically adapted to the cell's current background and foreground
colors, then you can achieve this by setting the
<code><b>-windowupdate</b></code> cell configuration option to
<code>updateWindow</code>, where the latter is the procedure
implemented as follows:</dd>
<dd>
<blockquote>
<pre>
proc updateWindow {tbl row col w args} {
eval [list $w configure] $args
}
</pre>
</blockquote>
</dd>
<dd>With Tcl/Tk 8.5 or above, you can use the more compact form</dd>
<dd>
<blockquote>
<pre>
proc updateWindow {tbl row col w args} {
$w configure {*}$args
}
</pre>
</blockquote>
</dd>
<dd>In this example, <code>args</code> is a list of the form</dd>
<dd>
<blockquote>
<pre>
-background <i>backgroundColor</i> -foreground <i>foregroundColor</i>
</pre>
</blockquote>
</dd>
</dl>
</dd>
<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> 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.</dd>
<dt class="tm" id="hdr_cell_options"><b>CELL CONFIGURATION OPTIONS IN THE
TABLELIST HEADER</b></dt>
<dd>The following options are currently supported by the
<code><b><a href="#hdr_cellcget">header cellcget</a></b></code>,
<code><b><a href="#hdr_cellconfigure">header
cellconfigure</a></b></code>, <code><b><a href=
"#hdr_configcelllist">header configcelllist</a></b></code>, and
<code><b><a href="#hdr_configcells">header configcells</a></b></code>
commands:</dd>
<dd>
<dl>
<dt class="tm" id="hdr_cell_background"><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
content of the header cell.</dd>
<dt class="tm" id="hdr_cell_font"><code><b>-font</b>
<i>font</i></code></dt>
<dd>Specifies the font to use when displaying the content of the header
cell.</dd>
<dt class="tm" id="hdr_cell_foreground"><code><b>-foreground</b>
<i>color</i></code> or <code><b>-fg</b> <i>color</i></code></dt>
<dd>Specifies the foreground color to use when displaying the content
of the header cell.</dd>
<dt class="tm" id="hdr_cell_image"><code><b>-image</b>
<i>image</i></code></dt>
<dd>Specifies the name of the Tk image to be displayed in the header
cell. The details are the same as <a href="#cell_image">for a
cell in the tablelist body</a>.</dd>
<dt class="tm" id="hdr_cell_imagebackground">
<code><b>-imagebackground</b> <i>color</i></code></dt>
<dd>Specifies the background color of the label widget containing the
embedded image (if any). The details are the same as <a href=
"#cell_imagebackground">for a cell in the tablelist body</a>.</dd>
<dt class="tm" id="hdr_cell_stretchwindow"><code><b>-stretchwindow</b>
<i>boolean</i></code></dt>
<dd>Specifies whether the width of the window embedded into the header
cell shall be adapted dynamically to the width of the cell's column if
the latter is non-zero (i.e., static). The details are the same
as <a href="#cell_stretchwindow">for a cell in the tablelist
body</a>.</dd>
<dt class="tm" id="hdr_cell_text"><code><b>-text</b>
<i>text</i></code></dt>
<dd>Specifies the string to be displayed in the given header 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 class="tm" id="hdr_cell_valign"><code><b>-valign</b>
<i>verticalAlignment</i></code></dt>
<dd>Specifies the vertical alignment of the embedded image or window
displayed in the header cell (if any). The default value is
<code><b>center</b></code>. This option overrides <a href=
"#col_valign">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 class="tm" id="hdr_cell_window"><code><b>-window</b>
<i>command</i></code></dt>
<dd>Specifies a Tcl command creating the window to be embedded into the
header cell. The details are similar to those <a href=
"#cell_window">for a cell in the tablelist body</a>.</dd>
<dt class="tm" id="hdr_cell_windowdestroy"><code><b>-windowdestroy</b>
<i>command</i></code></dt>
<dd>Specifies a Tcl command to be invoked when a window embedded into
the header cell is destroyed. The details are the same as
<a href="#cell_windowdestroy">for a cell in the tablelist
body</a>.</dd>
<dt class="tm" id="hdr_cell_windowupdate"><code><b>-windowupdate</b>
<i>command</i></code></dt>
<dd>Specifies a Tcl command responsible for adapting the background and
foreground colors of a window embedded into the header cell to the
current background and foreground colors of the cell itself. The
current header cell colors depend on whether the tablelist widget's
<code><b><a href="#state">state</a></b></code> is
<code><b>normal</b></code> or <code><b>disabled</b></code>. The
other details are the same as <a href="#cell_windowupdate">for a cell
in the tablelist body</a>.</dd>
</dl>
</dd>
<dd class="tm">The <code><b>-background</b></code>,
<code><b>-font</b></code>, and <code><b>-foreground</b></code> header cell
configuration options override the options of the same names set at header
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.</dd>
<dt class="tm" id="colors_and_fonts"><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> (or <code><b><a href=
"#configcolumnlist">configcolumnlist</a></b></code>, or <code><b><a href=
"#configcolumns">configcolumns</a></b></code>), <code><b><a href=
"#rowconfigure">rowconfigure</a></b></code> (or <code><b><a href=
"#configrowlist">configrowlist</a></b></code>, or <code><b><a href=
"#configrows">configrows</a></b></code>), and <code><b><a href=
"#cellconfigure">cellconfigure</a></b></code> (or <code><b><a href=
"#configcelllist">configcelllist</a></b></code>, or <code><b><a href=
"#configcells">configcells</a></b></code>) subcommands of the Tcl command
associated with the tablelist widget. Similarly, the first three of
these options can also be specified for the widget's header at row and cell
level, with the aid of the <code><b><a href=
"#hdr_rowconfigure">header rowconfigure</a></b></code> (or
<code><b><a href="#hdr_configrowlist">header
configrowlist</a></b></code> , or <code><b><a href=
"#hdr_configrows">header configrows</a></b></code>) and
<code><b><a href="#hdr_cellconfigure">header
cellconfigure</a></b></code> (or <code><b><a href=
"#hdr_configcelllist">header configcelllist</a></b></code>, or
<code><b><a href="#hdr_configcells">header
configcells</a></b></code>) subcommands. Likewise, the
<code><b>-stripebackground</b></code> and
<code><b>-stripeforeground</b></code> options can also be specified at
column level. 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.</dd>
<dd class="tm">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.</dd>
<dt class="tm" id="tree_widget"><b>USING A TABLELIST AS MULTI-COLUMN TREE
WIDGET</b></dt>
<dd>When using a tablelist widget to display a tree hierarchy, there are a
few rules to follow:</dd>
<dd>
<ol>
<li class="tm">Do not use the the widget's <code><b><a href=
"#listvariable">-listvariable</a></b></code> option, or at least do not
add new items to the variable specified as its value, because adding
new items to that list will result in inserting those list elements
into the widget without respecting the tree's internal structure.</li>
<li class="tm">Make sure that the column specified by the
<code><b><a href="#treecolumn">-treecolumn</a></b></code> option is
left-aligned so the tree structure can be displayed as expected.</li>
<li class="tm">Use the <code><b><a href=
"#insertchildren">insertchild(ren)</a></b></code> or <code><b><a href=
"#insertchildlist">insertchildlist</a></b></code> subcommand rather
than <code><b><a href="#insert">insert</a></b></code> or
<code><b><a href="#insertlist">insertlist</a></b></code> for inserting
new items into the widget's body.</li>
</ol>
</dd>
<dt class="tm" id="cell_editing"><b>INTERACTIVE CELL EDITING</b></dt>
<dd>Whether or not the content of a cell of a tablelist widget's body can
be edited interactively, depends on the <code><b>-editable</b></code>
option at 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
content. 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, just set their
<code><b>-editable</b></code> option to false.</dd>
<dd class="tm">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 (see the <code><b><a href=
"#editselectedonly">-editselectedonly</a></b></code> option for details) 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, checkbutton, or
menubutton widget, or a tile entry, spinbox, combobox, checkbutton, or
menubutton, or one of the 19 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), <a href=
"tablelistCtext.html">ctext</a>, 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 above-mentioned Tk core and tile widgets are
automatically registered for cell editing.</dd>
<dd class="tm">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 content 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
content. 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 content.
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="https://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 class="tm">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 or ctext 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 or ctext
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 or ctext 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. If the editing was started with the left mouse
button, the edit window is a Tk or tile checkbutton, and the value of the
<code><b><a href="#instanttoggle">-instanttoggle</a></b></code> option is
true, then the normal termination of the editing will take place
automatically, without any user interaction. Similarly, if the edit
window is one of the four combobox widgets supported by Tablelist or a
menubutton widget, and the value of the <code><b><a href=
"#autofinishediting">-autofinishediting</a></b></code> option is true, then
selecting a combobox or menu entry will auomatically terminate the editing
session.</dd>
<dd class="tm">When normal termination of the editing process occurs, the
Tcl command associated with the tablelist widget compares the edit window's
final content with 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 content 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 content. 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 content; 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> content, 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 class="tm" id="drag_and_drop_support"><b>DRAG & DROP SUPPORT</b></dt>
<dd>As <a href="#global_drag_and_drop">described in detail</a> in the
<a href="#body_bindings">DEFAULT AND INDIVIDUAL BINDINGS FOR THE TABLELIST
BODY</a> section, the default binding scripts perform an automatic
drag-friendly handling of the selection and of pointer movements with mouse
button 1 down if the tablelist widget's <code><b><a href=
"#customdragsource">-customdragsource</a></b></code> opton was set to true
or its body component was registered as a drag source for mouse button 1
via the <code><b>tkdnd::drag_source register</b></code> or the
BWidget <code><b>DragSite::register</b></code> command.</dd>
<dd class="tm">On the other hand, you can also register a tablelist widget
as a TkDND drop target, by invoking the <code><b>tkdnd::drop_target
register</b></code> command. Similarly, you can register the
body component of a tablelist widget as a drop target for the drag & drop
framework included in BWidget, with the aid of the
<code><b>DropSite::register</b></code> command. (Notice that for
BWidget it is necessary to register the tablelist's <i>body</i> rather than
the widget itself.)</dd>
<dd class="tm">The action to be triggered by a drop event over a tablelist
widget might depend on the row under the mouse and the vertical position of
the mouse pointer within the containing row (if any). For example,
your application might insert one or more new siblings before or after the
row in question, or a child item having that row as parent, depending on
the vertical position of the mouse pointer within the containing row.
Alternatively, the drop event might update the item under the mouse, using
the data associated with the drag source, or perform some other,
application-specific action. In any case, you can significantly
increase the user-friendliness of your application by displaying a target
indicator (a horizontal gap or vertical bar) before or inside the row that
will be affected by the drop. The examples below demonstrate how to
achieve this for a tablelist widget <code>$tbl</code> with the aid of the
<code><b><a href="#showtargetmark">showtargetmark</a></b></code>,
<code><b><a href="#hidetargetmark">hidetargetmark</a></b></code>,
<code><b><a href="#targetmarkpos">targetmarkpos</a></b></code>, and
<code><b><a href="#targetmarkpath">targetmarkpath</a></b></code>
subcommands.</dd>
<dd class="tm">
<b>TkDND EXAMPLE:</b> For an introduction to TkDND see the online
<a href="https://wiki.tcl.tk/36708">TkDND Tutorial</a> by Georgios
Petasis. For the following example it is strongly recommended to
use TkDND version 2.7 or later, which can be downloaded from the location
<blockquote>
<address>
<a href=
"https://sourceforge.net/projects/tkdnd/files/">https://sourceforge.net/projects/tkdnd/files/</a>
</address>
</blockquote>
<blockquote>
<pre>
package require tkdnd 2.7
tkdnd::drop_target register $tbl DND_Text
bind $tbl <<DropEnter>> { onTblDropEnterOrPos %W %X %Y %a %b }
bind $tbl <<DropPosition>> { onTblDropEnterOrPos %W %X %Y %a %b }
bind $tbl <<DropLeave>> { %W <a href=
"#hidetargetmark">hidetargetmark</a> }
bind $tbl <<Drop>> { onTblDrop %W %A %D }
proc onTblDropEnterOrPos {tbl rootX rootY actions buttons} {
global place row
set y [expr {$rootY - [winfo rooty $tbl]}]
foreach {place row} [$tbl <a href="#targetmarkpos">targetmarkpos</a> $y] {}
if {<i>some_optional_excluding_condition</i>} {
$tbl <a href="#hidetargetmark">hidetargetmark</a>
return refuse_drop
} else {
$tbl <a href="#showtargetmark">showtargetmark</a> $place $row
return copy ;<span class="cmt"># for example</span>
}
}
proc onTblDrop {tbl action data} {
<span class="red">handleTblDrop</span> $tbl $data
return $action
}
</pre>
</blockquote>
</dd>
<dd>
<b>BWidget EXAMPLE:</b> For an introduction to drag & drop with
BWidget see the online tutorial <a href=
"https://wiki.tcl.tk/16126">BWidget example: Drag and Drop Demo</a> by
Kevin Walzer. The <code><b>DropSite::*</b></code> commands used in
the following example are described in the "DropSite" reference page
included in the BWidget distribution. When using this drag & drop
framework, you will have to register not only the tablelist's body, but
also its target indicator as drop sites, to make sure that the target
mark won't get hidden by moving the mouse cursor over it with mouse
button 1 down:
<blockquote>
<pre>
package require BWidget
foreach w [list [$tbl <a href="#bodypath">bodypath</a>] [$tbl <a href=
"#targetmarkpath">targetmarkpath</a>]] {
DropSite::register $w -dropovercmd tblDropOverCmd -dropcmd tblDropCmd \
-droptypes ...
}
proc tblDropOverCmd {dropTarget dragSrc event rootX rootY op dataType data} {
<span class="cmt"># $event may be "enter", "motion", or "leave"</span>
set tbl [<a href=
"tablelistBinding.html#getTablelistPath">tablelist::getTablelistPath</a> $dropTarget]
if {[string equal $event "leave"]} {
set newWidget [winfo containing -displayof $dropTarget $rootX $rootY]
if {![string equal $newWidget [$tbl <a href=
"#targetmarkpath">targetmarkpath</a>]] &&
![string equal $newWidget [$tbl <a href=
"#bodypath">bodypath</a>]]} {
$tbl <a href="#hidetargetmark">hidetargetmark</a>
return 2 ;<span class="cmt"># refuse the drop and re-invoke the callback on motion events</span>
}
}
global place row
set y [expr {$rootY - [winfo rooty $tbl]}]
foreach {place row} [$tbl <a href="#targetmarkpos">targetmarkpos</a> $y] {}
if {<i>some_optional_excluding_condition</i>} {
$tbl <a href="#hidetargetmark">hidetargetmark</a>
DropSite::setcursor dot
return 2 ;<span class="cmt"># refuse the drop and re-invoke the callback on motion events</span>
} else {
$tbl <a href="#showtargetmark">showtargetmark</a> $place $row
DropSite::setcursor based_arrow_down
return 3 ;<span class="cmt"># accept the drop and re-invoke the callback on motion events</span>
}
}
proc tblDropCmd {dropTarget dragSrc rootX rootY op dataType data} {
set tbl [<a href=
"tablelistBinding.html#getTablelistPath">tablelist::getTablelistPath</a> $dropTarget]
<span class="red">handleTblDrop</span> $tbl $data
return 1 ;<span class="cmt"># accept the drop</span>
}
</pre>
</blockquote>
</dd>
<dd>
In both examples above, you can restrict the type of the supported drop
target indicator by appending the argument
<code><b>-horizontal</b></code> or <code><b>-vertical</b></code> to the
<code><b><a href="#targetmarkpos">targetmarkpos</a></b></code>
invocation. When passing the <code><b>-vertical</b></code> option,
you will have to extend the <code><b>if</b></code> statement following
that subcommand invocation as follows:
<blockquote>
<pre>
if {$row < 0 || <i>some_optional_excluding_condition</i>} {
</pre>
</blockquote>
</dd>
<dd class="tm">
Both examples above invoke the <code>handleTblDrop</code> procedure,
implemented as follows:
<blockquote>
<pre>
proc handleTblDrop {tbl data} {
$tbl <a href="#hidetargetmark">hidetargetmark</a>
global place row
if {[string equal $place "before"]}
if {$row < [$tbl <a href="#size">size</a>]} {
<span class="cmt"># Insert a sibling of the item indicated by $row, built from $data
# (For a flat tablelist replace the following 2 lines with
# "set key [$tbl <a href="#insert">insert</a> $row ...]")</span>
set key [$tbl <a href=
"#insertchildren">insertchild</a> [$tbl <a href=
"#parentkey">parentkey</a> $row] \
[$tbl <a href="#childindex">childindex</a> $row] ...]
} else {
<span class="cmt"># Append a top-level item built from $data
# (For a flat tablelist replace the following line with
# "set key [$tbl <a href="#insert">insert</a> end ...]")</span>
set key [$tbl <a href=
"#insertchildren">insertchild</a> root end ...]
}
} else { ;<span class="cmt"># "inside"</span>
<span class="cmt"># Insert a child of the item indicated by $row, built from $data
# Alternatively, update the item indicated by $row, using $data</span>
set key [$tbl <a href="#insertchildren">insertchild</a> $row end ...]
$tbl <a href="#expand">expand</a> $row -partly
}
. . .
}
</pre>
</blockquote>
</dd>
<dt id="virtual_events"><b>VIRTUAL EVENTS</b></dt>
<dd>Tablelist defines a few virtual events for the purposes of
notification, and makes use of the <code><b>event
generate</b></code> command to send them to the tablelist widget in
question (whose path name will be the value of the <code><b>%W</b></code>
substitution in event scripts). When using Tk 8.5 or above, most of
these virtual events are generated with their <code><b>-data</b></code>
option set to an appropriate event-specific value. Binding scripts
can access this user data as the value of the <code><b>%d</b></code>
substitution. Unfortunately, the <code><b>-data</b></code> option
to <code><b>event generate</b></code> was not supported by Tk
versions earlier than 8.5. For these Tk versions, the
<code><b>event generate</b></code> command will be invoked without
the <code><b>-data</b></code> option.</dd>
<dd class="tm">The virtual events defined by Tablelist and sent to the
tablelist widgets are as follows:</dd>
<dd class="tm">
<table border="2" cellspacing="0" cellpadding="3">
<tr bgcolor="#FFFFE0">
<th align="left">Virtual Event</th>
<th align="left">Description</th>
<th align="left">User Data (for Tk 8.5 or Later)</th>
</tr>
<tr valign="top">
<td><code><b><<TablelistCellRestored>></b></code></td>
<td>Generated by the <code><b><a href=
"#cancelediting">cancelediting</a></b></code> subcommand.</td>
<td>A list consisting of the numerical row and column indices of the
cell whose content is being edited.</td>
</tr>
<tr valign="top">
<td><code><b><<TablelistCellUpdated>></b></code></td>
<td>Generated by the <code><b><a href=
"#finishediting">finishediting</a></b></code> subcommand.</td>
<td>A list consisting of the numerical row and column indices of the
cell whose content is being edited.</td>
</tr>
<tr valign="top">
<td>
<code><b><<TablelistColHiddenStateChanged>></b></code></td>
<td>Generated whenever the hidden state of one or more columns is
toggled by using the <code><b><a href=
"#columnconfigure">columnconfigure</a></b></code>, <code><b><a href=
"#configcolumnlist">configcolumnlist</a></b></code>,
<code><b><a href="#configcolumns">configcolumns</a></b></code>, or
<code><b><a href="#togglecolumnhide">togglecolumnhide</a></b></code>
subcommand.</td>
<td>A list consisting of the numerical indices of the columns whose
hidden state changed.</td>
</tr>
<tr valign="top">
<td><code><b><<TablelistColumnMoved>></b></code></td>
<td>Generated by the default bindings whenever a column is moved
interactively to a new position.</td>
<td>A list of length 4, whose first two elements are identical to the
two arguments passed to the <code><b><a href=
"#movecolumn">movecolumn</a></b></code> subcommand invoked for moving
the source column to the target position, and the last two elements
are the corresponding column names, retrieved with the aid of
the <code><b><a href="#columncget">columncget</a> ...
-name</b></code> subcommand.</td>
</tr>
<tr valign="top">
<td><code><b><<TablelistColumnResized>></b></code></td>
<td>Generated by the default bindings whenever a column is resized
interactively.</td>
<td>The numerical index of the column that was resized.</td>
</tr>
<tr valign="top">
<td><code><b><<TablelistColumnSorted>></b></code></td>
<td>Generated by the <code><b><a href=
"tablelistColSort.html#sortByColumn">tablelist::sortByColumn</a></b></code>
command.</td>
<td>A list consisting of the numerical column index and the sort
order (<code><b>decreasing</b></code> or
<code><b>increasing</b></code>).</td>
</tr>
<tr valign="top">
<td><code><b><<TablelistColumnsSorted>></b></code></td>
<td>Generated by the <code><b><a href=
"tablelistColSort.html#addToSortColumns">tablelist::addToSortColumns</a></b></code>
command.</td>
<td>A list consisting of the two lists passed to the
<code><b><a href="tablelistWidget.html#sortbycolumnlist">sortbycolumnlist</a></b></code>
subcommand, invoked to perform the multi-column sorting.</td>
</tr>
<tr valign="top">
<td>
<code><b><<TablelistHeaderHeightChanged>></b></code></td>
<td>Generated whenever the (requested) height of the tablelist's
header changes. Used by the <a href=
"https://www.nemethi.de/scrollutil/scrollarea.html">scrollarea</a>
widget of the <a href=
"https://www.nemethi.de/scrollutil/">Scrollutil</a> package.</td>
<td>The (requested) height of the tablelist's header.</td>
</tr>
<tr valign="top">
<td>
<code><b><<TablelistRowHiddenStateChanged>></b></code></td>
<td>Generated whenever the hidden state of one or more rows is
toggled by using the <code><b><a href=
"#rowconfigure">rowconfigure</a></b></code>, <code><b><a href=
"#configrowlist">configrowlist</a></b></code>, <code><b><a href=
"#configrows">configrows</a></b></code>, or <code><b><a href=
"#togglerowhide">togglerowhide</a></b></code> subcommand.</td>
<td>A list consisting of the numerical indices of the rows whose
hidden state changed.</td>
</tr>
<tr valign="top">
<td><code><b><<TablelistRowMoved>></b></code></td>
<td>Generated by the default bindings whenever a row is moved
interactively to a new position.</td>
<td>A list of length 3, whose elements are derived from the arguments
passed to the second form of the <code><b><a href=
"#move">move</a></b></code> subcommand invoked for moving the source
row to the target position. The first list element will be the
full key corresponding to the first argument, the second one will be
<code><b>root</b></code> or the full key corresponding to the second
argument, and the third list element will be identical to the third
argument passed to the <code><b>move</b></code> subcommand.</td>
</tr>
<tr valign="top">
<td><code><b><<TablelistSelect>></b></code>,
<code><b><<ListboxSelect>></b></code></td>
<td>Generated by the default bindings whenever the selection changes
in the tablelist widget due to user interaction.</td>
<td>Not used.</td>
</tr>
<tr valign="top">
<td><code><b><<TablelistSelectionLost>></b></code></td>
<td>Sent to the tablelist widget whenever it loses ownership of the
PRIMARY selection.</td>
<td>Not used.</td>
</tr>
<tr valign="top">
<td><code><b><<TablelistTitleColsWidthChanged>></b></code></td>
<td>Generated whenever the total width of the non-hidden title
columns changes. Used by the <a href=
"https://www.nemethi.de/scrollutil/scrollarea.html">scrollarea</a>
widget of the <a href=
"https://www.nemethi.de/scrollutil/">Scrollutil</a> package.</td>
<td>The total width of the non-hidden title columns.</td>
</tr>
<tr valign="top">
<td><code><b><<TablelistViewUpdated>></b></code></td>
<td>Generated whenever the tablelist widget has finished updating its
view (which, for performance reasons, is performed at idle
time).</td>
<td>Not used.</td>
</tr>
</table>
</dd>
<dd class="tm">In addition, Tablelist_tile defines the virtual event
<code><b><<TablelistThemeDefaultsChanged>></b></code> and sends
it (without any user data) <i>to the main window</i> (!) after invoking the
<code><b><a href=
"tablelistThemes.html#setThemeDefaults">tablelist::setThemeDefaults</a></b></code>
command when handling the virtual events
<code><b><<ThemeChanged>></b></code>,
<code><b><<LightAqua>></b></code>, and
<code><b><<DarkAqua>></b></code>. To handle it, use the
binding tag <code><b>TablelistMain</b></code>, which is assigned by
Tablelist_tile to the main window.</dd>
<dt class="tm" id="row_indices"><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's body component, in any of the following ways:</dd>
<dd class="tm">
<table border="0" cellpadding="6" cellspacing="0">
<tr valign="top">
<td><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's body.</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 prefix
<code><b>k</b></code> and the sequence number associated with the
item. You can use the <code><b><a href=
"#getkeys">getkeys</a></b></code> widget command to get this sequence
number, or the <code><b><a href=
"#getfullkeys">getfullkeys</a></b></code> widget command to retrieve
the full key. In addition, the <code><b><a href=
"#insert">insert</a></b></code>, <code><b><a href=
"#insertlist">insertlist</a></b></code>, <code><b><a href=
"#insertchildren">insertchildren</a></b></code>, and
<code><b><a href="#insertchildlist">insertchildlist</a></b></code>
subcommands return the list of full keys associated with the items
just inserted.</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.</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.</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>, <code><b><a href=
"#insertlist">insertlist</a></b></code>, and <code><b><a href=
"#showtargetmark">showtargetmark before</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.</td>
</tr>
<tr valign="top">
<td><code><b>last</b></code></td>
<td>Indicates the last item of the tablelist.</td>
</tr>
<tr valign="top">
<td><code><b>top</b></code></td>
<td>Indicates the topmost body item visible in the tablelist
window.</td>
</tr>
<tr valign="top">
<td><code><b>bottom</b></code></td>
<td>Indicates the bottommost body item visible in the tablelist
window.</td>
</tr>
<tr valign="top">
<td><code><b>@</b><i>x</i><b>,</b><i>y</i></code></td>
<td>Indicates the body 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).</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>
</dd>
<dd class="tm">In the widget command descriptions below, arguments named
<code><i>index</i></code>, <code><i>firstIndex</i></code>,
<code><i>lastIndex</i></code>, <code><i>sourceIndex</i></code>, and
<code><i>targetIndex</i></code> always contain row indices in one of the
above forms.</dd>
<dt class="tm" id="node_indices"><b>NODE INDICES</b></dt>
<dd>Many of the widget commands for tablelist widgets take a node index as
argument. A node index is either the word <code><b>root</b></code>,
denoting the invisible root node of a tablelist used as a tree widget, or a
regular row index in one of the above forms, specifying a particular item
of the tablelist.</dd>
<dd class="tm">In the widget command descriptions below, arguments named
<code><i>nodeIndex</i></code>, <code><i>parentNodeIndex</i></code>, and
<code><i>targetParentNodeIndex</i></code> always contain node indices.</dd>
<dt class="tm" id="col_indices"><b>COLUMN INDICES</b></dt>
<dd>Many of the widget commands for tablelist widgets take one or more
column indices as arguments. A column index specifies a particular
column of the tablelist, in any of the following ways:</dd>
<dd class="tm">
<table border="0" cellpadding="6" cellspacing="0">
<tr valign="top">
<td><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.</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.</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.</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.</td>
</tr>
<tr valign="top">
<td><code><b>last</b></code></td>
<td>Indicates the last column of the tablelist.</td>
</tr>
<tr valign="top">
<td><code><b>left</b></code></td>
<td>Indicates the leftmost column visible in the tablelist
window.</td>
</tr>
<tr valign="top">
<td><code><b>right</b></code></td>
<td>Indicates the rightmost column visible in the tablelist
window.</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).</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>
</dd>
<dd class="tm">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.</dd>
<dt class="tm" id="cell_indices"><b>CELL INDICES</b></dt>
<dd>Many of the widget commands for tablelist widgets take one or more cell
indices as arguments. A cell index specifies a particular cell of the
tablelist's body component, in any of the following ways:</dd>
<dd class="tm">
<table border="0" cellpadding="6" cellspacing="0">
<tr valign="top">
<td><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), <code><b>last</b></code>,
<code><b>top</b></code>, <code><b>bottom</b></code>, 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>, <code><b>last</b></code>,
<code><b>left</b></code>, <code><b>right</b></code>, or a column
name.</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.</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.</td>
</tr>
<tr valign="top">
<td><code><b>end</b></code></td>
<td>Indicates the last cell in the last row of the tablelist.</td>
</tr>
<tr valign="top">
<td><code><b>last</b></code></td>
<td>Indicates the last cell in the last row of the tablelist (same as
<code><b>end</b></code>).</td>
</tr>
<tr valign="top">
<td><code><b>@</b><i>x</i><b>,</b><i>y</i></code></td>
<td>Indicates the body 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 body cell covers that point, then
the closest body 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>
</dd>
<dd class="tm">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.</dd>
<dt class="tm" id="hdr_row_indices"><b>HEADER ROW INDICES</b></dt>
<dd>Many of the subcommands of the <code><b><a href=
"#header">header</a></b></code> tablelist widget command take one or more
header row indices as arguments. A header row index specifies a
particular item of the tablelist's header component, in any of the
following ways:</dd>
<dd class="tm">
<table border="0" cellpadding="6" cellspacing="0">
<tr valign="top">
<td><code><i>number</i></code></td>
<td>Specifies the header item as a numerical index, where
<code>0</code> corresponds to the first item in the tablelist's
header.</td>
</tr>
<tr valign="top">
<td><code><b>hk</b><i>number</i></code></td>
<td>Specifies the header item by its full key, composed of the prefix
<code><b>hk</b></code> and the sequence number associated with the
item. You can use the <code><b><a href=
"#hdr_getkeys">header getkeys</a></b></code> widget command to
get this sequence number, or the <code><b><a href=
"#hdr_getfullkeys">header getfullkeys</a></b></code> widget
command to retrieve the full key. In addition, the
<code><b><a href="#hdr_insert">header insert</a></b></code>
and <code><b><a href="#hdr_insertlist">header
insertlist</a></b></code> subcommands return the list of full
keys associated with the header items just inserted.</td>
</tr>
<tr valign="top">
<td><code><b>end</b></code></td>
<td>Indicates the end of the tablelist's header. For most
commands this refers to the last item in the header component, but
for a few commands such as <code><b><a href="#hdr_index">header
index</a></b></code>, <code><b><a href="#hdr_insert">header
insert</a></b></code>, and <code><b><a href=
"#hdr_insertlist">header insertlist</a></b></code> it refers to
the header item just after the last one.</td>
</tr>
<tr valign="top">
<td><code><b>last</b></code></td>
<td>Indicates the last header item of the tablelist.</td>
</tr>
<tr valign="top">
<td><code><b>@</b><i>x</i><b>,</b><i>y</i></code></td>
<td>Indicates the header 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 header item covers that point,
then the closest header 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
header component).</td>
</tr>
<tr valign="top">
<td><code><i>name</i></code></td>
<td>Specifies the header row by the value of its <code><b><a href=
"#hdr_row_name">-name</a></b></code> configuration option.
<code><i>name</i></code> must be different from all the above header
row indices, and should be unique (if several header rows have the
same name then this value is considered to indicate the first
matching header row).</td>
</tr>
</table>
</dd>
<dd class="tm">In the widget command descriptions below, arguments named
<code><i>headerIndex</i></code>, <code><i>firstHeaderIndex</i></code>, and
<code><i>lastHeaderIndex</i></code> always contain header row indices in
one of the above forms.</dd>
<dt class="tm" id="hdr_cell_indices"><b>HEADER CELL INDICES</b></dt>
<dd>Many of the subcommands of the <code><b><a href=
"#header">header</a></b></code> tablelist widget command take one or more
header cell indices as arguments. A header cell index specifies a
particular cell of the tablelist's header component, in any of the
following ways:</dd>
<dd class="tm">
<table border="0" cellpadding="6" cellspacing="0">
<tr valign="top">
<td><code><i>headerRow</i><b>,</b><i>col</i></code></td>
<td>Indicates the cell having the header row index
<code><i>headerRow</i></code> and column index
<code><i>col</i></code>. <code><i>headerRow</i></code> may be a
number, a full key (of the form <code><b>hk</b><i>number</i></code>),
<code><b>end</b></code> (where the latter indicates the last header
row in the tablelist), <code><b>last</b></code>, or a header 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>, <code><b>last</b></code>,
<code><b>left</b></code>, <code><b>right</b></code>, or a column
name.</td>
</tr>
<tr valign="top">
<td><code><b>end</b></code></td>
<td>Indicates the last cell in the last row of the tablelist's
header.</td>
</tr>
<tr valign="top">
<td><code><b>last</b></code></td>
<td>Indicates the last cell in the last row of the tablelist's header
(same as <code><b>end</b></code>).</td>
</tr>
<tr valign="top">
<td><code><b>@</b><i>x</i><b>,</b><i>y</i></code></td>
<td>Indicates the header 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 header cell covers that point,
then the closest header 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>
</dd>
<dd class="tm">In the widget command descriptions below, arguments named
<code><i>headerCellIndex</i></code>, <code><i>firstHeaderCell</i></code>,
and <code><i>lastHeaderCell</i></code> always contain header cell indices
in one of the above forms.</dd>
<dt class="tm" id="widget_command"><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 class="tm" id="activate"><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
non-<a href="#isviewable">viewable</a> item then the closest viewable
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 class="tm" id="activatecell"><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
non-<a href="#isviewable">viewable</a> element, then the closest
viewable 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 class="tm" id="applysorting"><code><i>pathName</i>
<b>applysorting</b> <i>itemList</i></code></dt>
<dd>Sorts the elements of <code><i>itemList</i></code> according to the
parameters of the most recent <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> invocation and
returns a new list in sorted order. The
<code><i>itemList</i></code> argument is supposed to be a well-formed
list of lists, where the length of each sublist is expected to be no
less than the number of columns of the tablelist widget. 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>, then no sorting takes
place and the return value will be identical to
<code><i>itemList</i></code>.</dd>
<dd class="tm"><b>REMARK:</b> This subcommand is usually invoked
from within the command specified as the value of the <code><b><a href=
"#expandcommand">-expandcommand</a></b></code> configuration option,
for a tablelist row whose children have not yet been inserted into the
widget. The most efficient way to insert the child items in the
correct order is to add them to a list, sort this list via
<code><b>applysorting</b></code>, and then insert the items of the
sorted list by invoking the <code><b><a href=
"#insertchildlist">insertchildlist</a></b></code> subcommand.</dd>
<dt class="tm" id="attrib"><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 class="tm" id="bbox"><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 <code><i>index</i></code>. 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
<code><i>index</i></code> is visible on the screen, or if
<code><i>index</i></code> 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 class="tm" id="bodypath"><code><i>pathName</i>
<b>bodypath</b></code></dt>
<dd>Returns the path name of the body component of the widget.</dd>
<dt class="tm" id="bodytag"><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>
<dd class="tm">For example, to register the body of a tablelist widget
<code>$tbl</code> as a drag source for mouse button 1 in such a way
that the drag works also for the separators, multi-line cells, and
embedded images, you can proceed like in the following code
samples:</dd>
<dd class="tm">
<b>TkDND EXAMPLE:</b>
<blockquote>
<pre>
package require tkdnd 2.7
bind [$tbl <span class="red">bodytag</span>] <Button-1> { registerDragSrc %W }
proc registerDragSrc w {
<span class="cmt"># $w can be the tablelist's body, a separator, a message widget
# displaying a multi-line element, or a label widget displaying an
# image. Register this widget as a drag source for mouse button 1</span>
tkdnd::drag_source register $w DND_Text 1
bind $w <<DragInitCmd>> { onTblDragInit %W }
bind $w <<DragEndCmd>> { onTblDragEnd %W %A }
}
proc onTblDragInit w {
set tbl [<a href=
"tablelistBinding.html#getTablelistPath">tablelist::getTablelistPath</a> $w]
. . .
}
proc onTblDragEnd {w action} {
if {![string equal $action "refuse_drop"]} { ;# drop accepted
set tbl [<a href=
"tablelistBinding.html#getTablelistPath">tablelist::getTablelistPath</a> $w]
. . .
}
}
<span class="cmt"># Make sure to register the tablelist's body explicitly as a drag source:</span>
registerDragSrc [$tbl bodypath]
</pre>
</blockquote>
</dd>
<dd>
<b>BWidget EXAMPLE:</b>
<blockquote>
<pre>
package require BWidget
bind [$tbl <span class="red">bodytag</span>] <Button-1> { registerDragSrc %W }
proc registerDragSrc w {
<span class="cmt"># $w can be the tablelist's body, a separator, a message widget
# displaying a multi-line element, or a label widget displaying an
# image. Register this widget as a drag source for mouse button 1</span>
DragSite::register $w -dragevent 1 \
-draginitcmd tblDragInitCmd -dragendcmd tblDragEndCmd
}
proc tblDragInitCmd {dragSrc rootX rootY top} {
set tbl [<a href=
"tablelistBinding.html#getTablelistPath">tablelist::getTablelistPath</a> $dragSrc]
. . .
}
proc tblDragEndCmd {dragSrc dropTarget op dataType data result} {
if {$result != 0} { ;# drop accepted
set tbl [<a href=
"tablelistBinding.html#getTablelistPath">tablelist::getTablelistPath</a> $dragSrc]
. . .
}
}
<span class="cmt"># Make sure to register the tablelist's body explicitly as a drag source:</span>
registerDragSrc [$tbl bodypath]
</pre>
</blockquote>
</dd>
<dd>In both examples above we also invoke the procedure
<code>registerDragSrc</code> explicitly for the tablelist's body,
because the widget registered as a drag source by its invocation on a
<code><Button-1></code> event can be different from the body
component, and the default bindings need the information whether
<i>the tablelist's body</i> was registered as a drag source.</dd>
<dt class="tm" id="canceledediting"><code><i>pathName</i>
<b>canceledediting</b></code></dt>
<dd>Returns the value <code>1</code> if the most recent interactive
cell editing was canceled (by the user or programmatically, with the
aid of the <code><b><a href=
"#cancelediting">cancelediting</a></b></code> subcommand) and
<code>0</code> otherwise.</dd>
<dd class="tm"><b>REMARK:</b> By invoking this subcommand from
within the Tcl command specified by the <code><b><a href=
"#editendcommand">-editendcommand</a></b></code> configuration option,
you can find out whether the editing session was canceled or terminated
normally. Remember that this Tcl command will be invoked in both
cases mentioned above if the <code><b><a href=
"#forceeditendcommand">-forceeditendcommand</a></b></code> option was
set to true.</dd>
<dt class="tm" id="cancelediting"><code><i>pathName</i>
<b>cancelediting</b></code></dt>
<dd>This subcommand cancels the interactive editing of the content 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
content. 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>. For Tk
versions 8.5 and higher, this virtual event is generated with its
<code><b>-data</b></code> option set to a list consisting of the
numerical row and column indices of the cell whose content is being
edited. If no cell was being edited when the command was invoked
then an empty string is returned without generating a virtual
event.</dd>
<dt class="tm" id="cellattrib"><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 class="tm" id="cellbbox"><code><i>pathName</i> <b>cellbbox</b>
<i>cellIndex</i></code></dt>
<dd>Returns a list of four numbers describing the bounding box of the
cell given by <code><i>cellIndex</i></code>. 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 cell (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 cell given by
<code><i>cellIndex</i></code> is visible on the screen, or if
<code><i>cellIndex</i></code> refers to a non-existent cell, then the
result is an empty string; if the cell is partially visible, the result
gives the full area of the cell, including any parts that are not
visible.</dd>
<dt class="tm" id="cellcget"><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 class="tm" id="cellconfigure"><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 IN
THE TABLELIST BODY</a> section.</dd>
<dt class="tm" id="cellindex"><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 class="tm" id="cellselection"><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 the body
of a tablelist widget. It has several forms, depending on
<code><i>option</i></code>:</dd>
<dd>
<dl>
<dt class="tm"><code><i>pathName</i> <b>cellselection 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
non-<a href="#isviewable">viewable</a> element, then the closest
viewable 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 class="tm"><code><i>pathName</i> <b>cellselection clear</b>
<i>firstCell</i> <i>lastCell</i></code><br>
<code><i>pathName</i> <b>cellselection 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 class="tm"><code><i>pathName</i> <b>cellselection 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 class="tm"><code><i>pathName</i> <b>cellselection set</b>
<i>firstCell</i> <i>lastCell</i></code><br>
<code><i>pathName</i> <b>cellselection set</b>
<i>cellIndexList</i></code><br></dt>
<dd class="tm">Selects all of the selectable 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 class="tm">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 class="tm" id="cget"><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 class="tm" id="childcount"><code><i>pathName</i> <b>childcount</b>
<i>nodeIndex</i></code></dt>
<dd>Returns the number of children of the tree node indicated by
<code><i>nodeIndex</i></code>. If this argument is specified as
<code><b>root</b></code> then the return value will be the number of
top-level items of the tablelist widget.</dd>
<dt class="tm" id="childindex"><code><i>pathName</i> <b>childindex</b>
<i>index</i></code></dt>
<dd>Returns the numerical index of the row given by
<code><i>index</i></code> in the list of children of its parent
node.</dd>
<dt class="tm" id="childkeys"><code><i>pathName</i> <b>childkeys</b>
<i>nodeIndex</i></code></dt>
<dd>Returns the list of full keys of the children of the tree node
indicated by <code><i>nodeIndex</i></code>. If this argument is
specified as <code><b>root</b></code> then the return value will be the
list of full keys of the top-level items contained in the tablelist
widget.</dd>
<dt class="tm" id="collapse"><code><i>pathName</i> <b>collapse</b>
<i>indexList</i> ?<b>-fully</b>|<b>-partly</b>?</code></dt>
<dd>This subcommand collapses the specified rows of a tablelist used as
a tree widget, i.e., elides all their descendants. The optional
argument <code><b>-fully</b></code> (which is the default) indicates
that the command will be performed recursively, i.e., all of the
descendants of the nodes specified by <code><i>indexList</i></code>
will be collapsed, so that a subsequent invocation of the non-recursive
version of the <code><b><a href="#expand">expand(all)</a></b></code>
subcommand will only display their children but no further descendants
of them. The <code><b>-partly</b></code> option (which is used by
the default bindings) restricts the operation to just one hierarchy
level, implying that by a subsequent invocation of the non-recursive
version of the <code><b>expand(all)</b></code> subcommand exactly the
same descendants will be displayed again that were visible prior to
collapsing the rows.</dd>
<dd class="tm">Before hiding the descendants of a row, the command
specified as the value of the <code><b><a href=
"#collapsecommand">-collapsecommand</a></b></code> option (if any) is
automatically concatenated with the path name of the tablelist widget
and the row index, and the resulting script is evaluated in the global
scope.</dd>
<dd class="tm">For technical reasons (the use of the
<code><b>-elide</b></code> text widget tag option for collapsing a
row), this subcommand is not supported for Tk versions earlier than
8.3.</dd>
<dd class="tm"><b>REMARK:</b> If you want to collapse several
rows, it is much more efficient to do it by invoking this subcommand
for the list of their indices than by invoking it in a loop, for the
individual rows.</dd>
<dt class="tm" id="collapseall"><code><i>pathName</i>
<b>collapseall</b> ?<b>-fully</b>|<b>-partly</b>?</code></dt>
<dd>This subcommand collapses all top-level rows of a tablelist used as
a tree widget, i.e., elides all their descendants. The optional
argument <code><b>-fully</b></code> (which is the default) indicates
that the command will be performed recursively, i.e., all of the
descendants of the top-level nodes will be collapsed, so that a
subsequent invocation of the non-recursive version of the
<code><b><a href="#expandall">expandall</a></b></code> subcommand will
only display their children but no further descendants of them.
The <code><b>-partly</b></code> option restricts the operation to just
one hierarchy level, implying that by a subsequent invocation of the
non-recursive version of the <code><b>expandall</b></code> subcommand
exactly the same items will be displayed again that were visible prior
to collapsing the top-level ones.</dd>
<dd class="tm">Before hiding the descendants of a row, the command
specified as the value of the <code><b><a href=
"#collapsecommand">-collapsecommand</a></b></code> option (if any) is
automatically concatenated with the path name of the tablelist widget
and the row index, and the resulting script is evaluated in the global
scope.</dd>
<dd class="tm">For technical reasons (the use of the
<code><b>-elide</b></code> text widget tag option for collapsing a
row), this subcommand is not supported for Tk versions earlier than
8.3.</dd>
<dt class="tm" id="columnattrib"><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 class="tm" id="columncget"><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 class="tm" id="columnconfigure"><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 class="tm" id="columncount"><code><i>pathName</i>
<b>columncount</b></code></dt>
<dd>Returns the number of columns in the tablelist widget.</dd>
<dt class="tm" id="columnindex"><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 class="tm" id="columnwidth"><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 <a href=
"#isviewable">viewable</a> 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. Note that
the width of the left and right margins within the column equals the
width of the <code><b>0</b></code> character in the widget's font.</dd>
<dt class="tm" id="configcelllist"><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>
</dd>
<dd>where each <code><i>option</i></code> may have any of the values
described in the <a href="#cell_options">CELL CONFIGURATION OPTIONS IN
THE TABLELIST BODY</a> section. The return value is an empty
string.</dd>
<dd class="tm">
This command has the same effect as
<blockquote>
<pre>
eval [list <i>pathName</i> <a href=
"#configcells">configcells</a>] <i>cellConfigSpecList</i>
</pre>
</blockquote>
</dd>
<dd>but it is more efficient and easier to use.</dd>
<dt class="tm" id="configcells"><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 IN THE TABLELIST
BODY</a> section. The return value is an empty string.</dd>
<dt class="tm" id="configcolumnlist"><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>
</dd>
<dd>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.</dd>
<dd class="tm">
This command has the same effect as
<blockquote>
<pre>
eval [list <i>pathName</i> <a href=
"#configcolumns">configcolumns</a>] <i>columnConfigSpecList</i>
</pre>
</blockquote>
</dd>
<dd>but it is more efficient and easier to use.</dd>
<dt class="tm" id="configcolumns"><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 class="tm" id="configrowlist"><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>
</dd>
<dd>where each <code><i>option</i></code> may have any of the values
described in the <a href="#row_options">ROW CONFIGURATION OPTIONS IN
THE TABLELIST BODY</a> section. The return value is an empty
string.</dd>
<dd class="tm">
This command has the same effect as
<blockquote>
<pre>
eval [list <i>pathName</i> <a href=
"#configrows">configrows</a>] <i>rowConfigSpecList</i>
</pre>
</blockquote>
</dd>
<dd>but it is more efficient and easier to use.</dd>
<dt class="tm" id="configrows"><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 IN THE TABLELIST
BODY</a> section. The return value is an empty string.</dd>
<dt class="tm" id="configure"><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 class="tm" id="containing"><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 body 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 class="tm" id="containingcell"><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 body 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 class="tm" id="containingcolumn"><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 class="tm" id="cornerlabelpath"><code><i>pathName</i>
<b>cornerlabelpath</b></code></dt>
<dd>Returns the path name of the label widget contained in the
north-east corner frame (see the <code><b><a href=
"#cornerpath">cornerpath</a></b></code> subcommand. When using
Tablelist_tile, the return value will be a ttk::label widget of the
same style as the header labels. The global visual options set
for the header labels are automatically applied to this (ttk::)label
widget, too.</dd>
<dt class="tm" id="cornerpath"><code><i>pathName</i>
<b>cornerpath</b> ?<b>-ne</b>|<b>-sw</b>?</code></dt>
<dd>Returns the path name of one out of two frame widgets that are
siblings of the tablelist and are automatically created and destroyed
together with the latter. One of the two frames corresponds to
the tablelist's north-east corner and the other one to its south-west
corner. The corner is specified by means of the optional
argument: <code><b>-ne</b></code> (which is the default) stands for
north-east and <code><b>-sw</b></code> stands for south-west.</dd>
<dd class="tm">If the corner specification has the value
<code><b>-ne</b></code> then the command returns the path name of the
<b>north-east corner frame</b>, which is designed to be shown to the
right of the tablelist widget's top-right corner when managing the
vertical scrollbar on Mac OS X Aqua or X11 (see Remark 1 below).
This corner frame contains a label or ttk::label widget, depending on
whether the package Tablelist or Tablelist_tile is being used (see the
<code><b><a href="#cornerlabelpath">cornerlabelpath</a></b></code>
subcommand). The height of this corner frame is automatically
kept in sync with that of the tablelist's header component, and the
height of the above-mentioned (ttk::)label widget is automatically kept
in sync with that of the header labels. Whenever the (requested)
height of the tablelist's header (and thus that of the north-east
corner frame) changes, the
<code><b><<TablelistHeaderHeightChanged>></b></code>
virtual event is generated, with its <code><b>-data</b></code> option
set to the (requested) height of the header for Tk versions 8.5 and
higher.</dd>
<dd class="tm">If the corner was specified as <code><b>-sw</b></code>
then the return value is the path name of the <b>south-west corner
frame</b>, which is designed to be shown just below the tablelist's
lower-left corner when managing the horizontal scrollbar if the value
of the <code><b><a href="#titlecolumns">-titlecolumns</a></b></code>
option is positive (see Remark 2 below). The width of this corner
frame is automatically kept in sync with the total width of the
non-hidden title columns. When using Tablelist_tile, the
south-west corner frame will be a ttk::frame widget.labels.
Whenever the total width of the non-hidden title columns (and thus the
requested width of the south-west corner frame) changes, the
<code><b><<TablelistTitleColsWidthChanged>></b></code>
virtual event is generated, with its <code><b>-data</b></code> option
set to the total width of the non-hidden title columns for Tk versions
8.5 and higher.</dd>
<dd class="tm">
<b>REMARK 1:</b> This subcommand enables you to manage the
vertical scrollbar (if any) to appear below the tablelist widget's
header, thus respecting the native look & feel on Mac OS X Aqua and
on many modern Linux systems. As shown in the following
example, it is recommended to always create a scrolled tablelist
along with the scrollbar(s) as children of a (ttk::)frame widget:
<blockquote>
<pre>
<span class="cmt"># Add some entries to the Tk option database</span>
option add *ScrollArea.borderWidth 1
option add *ScrollArea.relief sunken
option add *ScrollArea.Tablelist.borderWidth 0
option add *ScrollArea.Tablelist.highlightThickness 0
. . .
<span class="cmt"># Create the tablelist and the scrollbars as
# children of a frame of the class ScrollArea</span>
set frm [(ttk::)frame ... -class ScrollArea]
set tbl $frm.tbl
set vsb $frm.vsb
set hsb $frm.hsb
tablelist::tablelist $tbl ... \
-xscrollcommand [list $hsb set] -yscrollcommand [list $vsb set]
(ttk::)scrollbar $vsb -orient vertical -command [list $tbl yview]
(ttk::)scrollbar $hsb -orient horizontal -command [list $tbl xview]
. . .
<span class="cmt"># Manage the widgets within the frame</span>
grid $tbl -row 0 -rowspan 2 -column 0 -sticky news
if {[string compare [tk windowingsystem] "win32"] == 0} {
grid $vsb -row 0 -rowspan 2 -column 1 -sticky ns
} else {
grid [$tbl <span class="red">cornerpath</span>] -row 0 -column 1 -sticky ew
grid $vsb -row 1 -column 1 -sticky ns
}
grid $hsb -row 2 -column 0 -sticky ew
grid rowconfigure $frm 1 -weight 1
grid columnconfigure $frm 0 -weight 1
<span class="cmt"># Manage the frame</span>
pack $frm -expand yes -fill both -padx 10 -pady 10
</pre>
</blockquote>
</dd>
<dd>
<b>REMARK 2:</b> This subcommand also enables you to manage the
horizontal scrollbar (if any) to start to the right of the tablelist
widget's non-scrollable title column area if the value of the
<code><b><a href="#titlecolumns">-titlecolumns</a></b></code> option
is positive. In the above example, this can be achieved by
modifying its second half as follows:
<blockquote>
<pre>
. . .
<span class="cmt"># Manage the widgets within the frame</span>
grid $tbl -row 0 -rowspan 2 -column 0 -columnspan 2 -sticky news
if {[string compare [tk windowingsystem] "win32"] == 0} {
grid $vsb -row 0 -rowspan 2 -column 2 -sticky ns
} else {
grid [$tbl <span class="red">cornerpath</span>] -row 0 -column 2 -sticky ew
grid $vsb -row 1 -column 2 -sticky ns
}
grid [$tbl <span class="red">cornerpath</span> -sw] -row 2 -column 0 -sticky ns
grid $hsb -row 2 -column 1 -sticky ew
grid rowconfigure $frm 1 -weight 1
grid columnconfigure $frm 1 -weight 1
<span class="cmt"># Manage the frame</span>
pack $frm -expand yes -fill both -padx 10 -pady 10
</pre>
<p>For a tablelist widget having two header rows and one title
column, the scrollbars of the modified example will appear like in
the screenshot below (on Windows this is only valid for the
horizontal scrollbar):</p>
<p><img src="scrollbars.png" alt="Scrollbars" width="461" height=
"274"></p>
</blockquote>
</dd>
<dd>
<b>REMARK 3:</b> You can greatly simplify the creation of
scrolled tablelists (and other scrolled widgets) by using a <a href=
"https://www.nemethi.de/scrollutil/scrollarea.html">scrollarea</a>
widget, which is part of the <a href=
"https://www.nemethi.de/scrollutil/">Scrollutil</a> package. It
supports both static and dynamic scrollbars and respects the header
component and title columns of tablelist widgets. With the aid
of the scrollarea widget, the rather technical code in the above
example can be replaced with just a few lines:
<blockquote>
<pre>
package require scrollutil(_tile)
. . .
<span class="cmt"># Create the tablelist within a scrollarea</span>
set sa [scrollutil::scrollarea ...]
set tbl $sa.tbl
tablelist::tablelist $tbl ...
$sa setwidget $tbl
. . .
<span class="cmt"># Manage the scrollarea</span>
pack $sa -expand yes -fill both -padx 10 -pady 10
</pre>
</blockquote>
</dd>
<dt id="curcellselection"><code><i>pathName</i> <b>curcellselection</b>
?<b>-all</b>|<b>-nonhidden</b>|<b>-viewable</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 elements in the
tablelist that are currently selected. If there are no such
elements in the tablelist then an empty string is returned.</dd>
<dd class="tm">The optional argument can be used to restrict the set of
currently selected elements when building the result list. The
default value <code><b>-all</b></code> means: no restriction. The
value <code><b>-nonhidden</b></code> filters out the elements whose row
or column has its <code><b>-hide</b></code> option set to true.
Finally, the value <code><b>-viewable</b></code> restricts the set of
currently selected elements to the <a href="#isviewable">viewable</a>
ones.</dd>
<dt class="tm" id="curselection"><code><i>pathName</i>
<b>curselection</b>
?<b>-all</b>|<b>-nonhidden</b>|<b>-viewable</b>?</code></dt>
<dd>Returns a list containing the numerical indices of all of the items
in the tablelist that contain at least one selected element. If
there are no such items in the tablelist then an empty string is
returned.</dd>
<dd class="tm">The optional argument can be used to restrict the set of
currently (partly) selected items when building the result list.
The default value <code><b>-all</b></code> means: no restriction.
The value <code><b>-nonhidden</b></code> filters out the items whose
row has its <code><b><a href="#row_hide">-hide</a></b></code> option
set to true. Finally, the value <code><b>-viewable</b></code>
restricts the set of currently (partly) selected items to the <a href=
"#isviewable">viewable</a> ones.</dd>
<dt class="tm" id="delete"><code><i>pathName</i> <b>delete</b>
<i>firstIndex</i> <i>lastIndex</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>firstIndex</i></code> and <code><i>lastIndex</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. In both cases, all descendants of the specified items
will be deleted, too. The return value is an empty string.</dd>
<dt class="tm" id="deletecolumns"><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 class="tm" id="depth"><code><i>pathName</i> <b>depth</b>
<i>nodeIndex</i></code></dt>
<dd>Returns the number of steps from the tree node indicated by
<code><i>nodeIndex</i></code> to the <code><b>root</b></code>
node. The latter's depth is 0, that of the top-level rows is 1,
and so on.</dd>
<dt class="tm" id="descendantcount"><code><i>pathName</i>
<b>descendantcount</b> <i>nodeIndex</i></code></dt>
<dd>Returns the number of descendants of the tree node indicated by
<code><i>nodeIndex</i></code>. If this argument is specified as
<code><b>root</b></code> then the return value will be the number of
items of the tablelist widget.</dd>
<dt class="tm" id="dicttoitem"><code><i>pathName</i> <b>dicttoitem</b>
<i>dictionary</i></code></dt>
<dd>Returns a tablelist item corresponding to the dictionary indicated
by <code><i>dictionary</i></code>. Each key in the specified
dictionary is expected to be a valid column index, in any of the forms
described in the <a href="#col_indices">COLUMN INDICES</a> section
(e.g., a number or a column name). The values corresponding to
the keys will be interpreted as the elements of the resulting tablelist
item. If the number of distinct numerical equivalents of the keys
(see the <code><b><a href="#columnindex">columnindex</a></b></code>
subcommand) is less than the number of columns then the elements
corresponding to the missing column indices will be set to empty
strings.</dd>
<dd class="tm">For example, if your tablelist widget has 3 columns, of
which the first two were configured with <code><a href=
"#col_name">-name</a> forename</code> and <code><a href=
"#col_name">-name</a> surname</code>, respectively, and you pass
the dictionary <code>{forename Joe surname
Black}</code> to the <code><b>dicttoitem</b></code> subcommand,
then the return value will be the list <code>{Joe Black
{}}</code>. If the user swaps the first two columns, then, for
the same dictionary, the subcommand will return the list
<code>{Black Joe {}}</code>.</dd>
<dd class="tm">This subcommand is only available in the presence of the
<code><b>dict</b></code> command, which is the case when using Tcl
version 8.5 or later, or one of the alternative, <a href=
"https://wiki.tcl.tk/10609">Tcl-only <code><b>dict</b></code>
implementations</a>.</dd>
<dt class="tm" id="editcell"><code><i>pathName</i> <b>editcell</b>
<i>cellIndex</i></code></dt>
<dd>Starts the interactive editing of the cell's content if the
tablelist's <code><b><a href="#state">state</a></b></code> is not
<code><b>disabled</b></code> and the cell is <a href=
"#isviewable">viewable</a> and 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 class="tm" id="editinfo"><code><i>pathName</i>
<b>editinfo</b></code></dt>
<dd>Returns a three-element list containing information about the
tablelist cell whose content is being edited. 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 edited. The second and third
elements are the cell's row and column indices. If currently no
cell is being edited then the return value is the list <code>{""
-1 -1}</code>.</dd>
<dt class="tm" id="editwinpath"><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 class="tm" id="editwintag"><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 or menubutton; 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.</dd>
<dd class="tm">
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 <span class="red">editwintag</span>] <Return> "[bind <a href=
"#edit_bindings">TablelistEdit</a> <Tab>]; break"
</pre>
</blockquote>
</dd>
<dt id="embedcheckbutton"><code><i>pathName</i> <b>embedcheckbutton</b>
<i>cellIndex</i> ?<i>command</i>?</code></dt>
<dd>Sets the <code><b><a href="#cell_window">-window</a></b></code>
option of the cell indicated by <code><i>cellIndex</i></code> to a
procedure that creates a frame with a checkbutton child having its
<code><b>-variable</b></code> option set to a global variable whose
name is private to Tablelist and is initialized with the cell's
internal value (which should be the boolean <code>0</code> or
<code>1</code>). Any change in the checkbutton's check state will
automatically set the cell's internal value to the corresponding
boolean value <code>0</code> or <code>1</code>. If the optional
<code><i>command</i></code> argument is a nonempty string then the
checkbutton's <code><b>-command</b></code> option will be set to a
script that concatenates this argument with the path name of the
tablelist widget and the cell's row and column indices and then invokes
the resulting script at idle time, thus making sure that at the time of
its invocation the cell's internal value will already be updated to
reflect the checkbutton's check state.</dd>
<dd class="tm"><b>REMARK 1:</b> Remember that the
<code><b><a href="#windowpath">windowpath</a></b></code> subcommand
will return the path name of the embedded window, which is a frame; to
get the checkbutton's path name, append <code><b>.ckbtn</b></code> to
the frame's one.</dd>
<dd class="tm"><b>REMARK 2:</b> As described above, the
checkbutton's <i>initial</i> check state will reflect the cell's
internal value, and any change in the checkbutton's check state will
automatically update the cell. On the other hand, if you change
the cell's internal value programmatically then it is your
responsibility to synchronize the checkbutton's check state. To
this end you will have to retrieve the checkbutton's path name as
described above, get the name of its associated variable via
<code><b>cget -variable</b></code>, and set this variable to the
cell's internal value.</dd>
<dt class="tm" id="embedcheckbuttons"><code><i>pathName</i>
<b>embedcheckbuttons</b> <i>columnIndex</i>
?<i>command</i>?</code></dt>
<dd>This command is logically equivalent to invoking <code><b><a href=
"#embedcheckbutton">embedcheckbutton</a></b></code> for all body cells
of the column specified by <code><i>columnIndex</i></code>.</dd>
<dt class="tm" id="embedttkcheckbutton"><code><i>pathName</i>
<b>embedttkcheckbutton</b> <i>cellIndex</i>
?<i>command</i>?</code></dt>
<dd>Similar to <code><b><a href=
"#embedcheckbutton">embedcheckbutton</a></b></code>, with the only
difference that the frame embedded into the cell will contain a
ttk::checkbutton child.</dd>
<dt class="tm" id="embedttkcheckbuttons"><code><i>pathName</i>
<b>embedttkcheckbuttons</b> <i>columnIndex</i>
?<i>command</i>?</code></dt>
<dd>This command is logically equivalent to invoking <code><b><a href=
"#embedttkcheckbutton">embedttkcheckbutton</a></b></code> for all body
cells of the column specified by <code><i>columnIndex</i></code>.</dd>
<dt class="tm" id="entrypath"><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, Tk or tile
menubutton, or mentry widget, then the return value is an empty string;
otherwise it is the path name of a Tk or tile entry, text or ctext, Tk
or tile 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 class="tm" id="expand"><code><i>pathName</i> <b>expand</b>
<i>indexList</i> ?<b>-fully</b>|<b>-partly</b>?</code></dt>
<dd>This subcommand expands the specified rows of a tablelist used as a
tree widget, i.e., makes all their children visible. The optional
argument <code><b>-fully</b></code> (which is the default) indicates
that the command will be performed recursively, i.e., all of the
descendants of the nodes specified by <code><i>indexList</i></code>
will be displayed. The <code><b>-partly</b></code> option (which
is used by the default bindings) restricts the operation to just one
hierarchy level, indicating that only the children of the specified
nodes will be displayed, without changing the expanded/collapsed state
of the child nodes.</dd>
<dd class="tm">Before displaying the children of a row, the command
specified as the value of the <code><b><a href=
"#expandcommand">-expandcommand</a></b></code> option (if any) is
automatically concatenated with the path name of the tablelist widget
and the row index, and the resulting script is evaluated in the global
scope. This enables you to insert a tree node's children on
demand, just before expanding it.</dd>
<dd class="tm">For technical reasons (the use of the
<code><b>-elide</b></code> text widget tag option for collapsing a
row), this subcommand is not supported for Tk versions earlier than
8.3.</dd>
<dd class="tm"><b>REMARK:</b> If you want to expand several rows,
it is much more efficient to do it by invoking this subcommand for the
list of their indices than by invoking it in a loop, for the individual
rows.</dd>
<dt class="tm" id="expandall"><code><i>pathName</i> <b>expandall</b>
?<b>-fully</b>|<b>-partly</b>?</code></dt>
<dd>This subcommand expands all top-level rows of a tablelist used as a
tree widget, i.e., makes all their children visible. The optional
argument <code><b>-fully</b></code> (which is the default) indicates
that the command will be performed recursively, i.e., all of the
descendants of the top-level nodes will be displayed. The
<code><b>-partly</b></code> option restricts the operation to just one
hierarchy level, indicating that only the children of the top-level
nodes will be displayed, without changing the expanded/collapsed state
of the child nodes.</dd>
<dd class="tm">Before displaying the children of a row, the command
specified as the value of the <code><b><a href=
"#expandcommand">-expandcommand</a></b></code> option (if any) is
automatically concatenated with the path name of the tablelist widget
and the row index, and the resulting script is evaluated in the global
scope. This enables you to insert a tree node's children on
demand, just before expanding it.</dd>
<dd class="tm">For technical reasons (the use of the
<code><b>-elide</b></code> text widget tag option for collapsing a
row), this subcommand is not supported for Tk versions earlier than
8.3.</dd>
<dt class="tm" id="expandedkeys"><code><i>pathName</i>
<b>expandedkeys</b></code></dt>
<dd>Returns the list of full keys of the expanded items.</dd>
<dt class="tm" id="fillcolumn"><code><i>pathName</i> <b>fillcolumn</b>
<i>columnIndex</i> <i>text</i></code></dt>
<dd>Sets all the elements of the specified column in the tablelist body
to the value <code><i>text</i></code>.</dd>
<dt class="tm" id="findcolumnname"><code><i>pathName</i>
<b>findcolumnname</b> <i>name</i></code></dt>
<dd>Returns the index of the first column whose name (given by the
<code><b><a href="#col_name">-name</a></b></code> column configuration
option) equals <code><i>name</i></code>. If no column has the
specified name then the return value is <code>-1</code>.</dd>
<dt class="tm" id="findrowname"><code><i>pathName</i>
<b>findrowname</b> <i>name</i> ?<b>-descend</b>? ?<b>-parent</b>
<i>nodeIndex</i>?</code></dt>
<dd>Returns the row index of the first child of the tree node indicated
by <code><i>nodeIndex</i></code> whose name (given by the
<code><b><a href="#row_name">-name</a></b></code> row configuration
option) equals <code><i>name</i></code>. The
<code><b>-descend</b></code> option extends the search to all
descendants of the tree node given by the <code><b>-parent</b></code>
option. The default is to restrict the search to the parent
node's children only. The default parent is
<code><b>root</b></code>. When searching for the given name, the
items will be visited in the order of their row indices. If none
of the relevant rows has the specified name then the return value is
<code>-1</code>.</dd>
<dt class="tm" id="finishediting"><code><i>pathName</i>
<b>finishediting</b></code></dt>
<dd>This subcommand attempts to terminate the interactive editing of
the content 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
content. 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
content 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 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 content 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>. For Tk
versions 8.5 and higher, this virtual event is generated with its
<code><b>-data</b></code> option set to a list consisting of the
numerical row and column indices of the cell whose content is being
edited. 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.</dd>
<dd class="tm">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 or ctext 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. If the
editing was started with the left mouse button, the edit window is a Tk
or tile checkbutton, and the value of the <code><b><a href=
"#instanttoggle">-instanttoggle</a></b></code> option is true, then
this subcommand will be invoked automatically, without any user
interaction. Similarly, if the edit window is one of the four
combobox widgets supported by Tablelist or a menubutton widget, and the
value of the <code><b><a href=
"#autofinishediting">-autofinishediting</a></b></code> option is true,
then selecting a combobox or menu entry will auomatically invoke this
subcommand and thus termate the editing session.</dd>
<dd class="tm"><b>REMARK:</b> 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 command 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.</dd>
<dt class="tm" id="formatinfo"><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 body or header 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> or
<code><b>hk</b><i>number</i></code>) associated with the body or header
item containing the tablelist element that is being formatted.
The second and third list elements are the cell's row (or header row)
and column indices.</dd>
<dd class="tm">
<b>REMARK:</b> 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:
<blockquote>
<pre>
.tbl <a href="#columnconfigure">columnconfigure</a> 1 <a href=
"#col_formatcommand">-formatcommand</a> [list formatValue .tbl]
proc formatValue {tbl val} {
<span class="cmt"># Get information about the cell whose content is being formatted</span>
foreach {key row col} [$tbl <span class="red">formatinfo</span>] {}
<span class="cmt"># Return a string depending on $val and $row (or $key)</span>
. . .
}
</pre>
</blockquote>
</dd>
<dt id="get"><code><i>pathName</i> <b>get</b> <i>firstIndex</i>
<i>lastIndex</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>firstIndex</i></code> and <code><i>lastIndex</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 class="tm" id="getcells"><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 class="tm" id="getcolumns"><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 body 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 body 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 body elements contained in that column.</dd>
<dt class="tm" id="getformatted"><code><i>pathName</i>
<b>getformatted</b> <i>firstIndex</i> <i>lastIndex</i></code><br>
<code><i>pathName</i> <b>getformatted</b> <i>indexList</i></code></dt>
<dd>The first form of the command returns a list whose elements are all
of the <a href="#col_formatted">formatted</a> tablelist items (i.e.,
formatted row contents) between <code><i>firstIndex</i></code> and
<code><i>lastIndex</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 formatted 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 formatted
tablelist items corresponding to the indices specified by
<code><i>indexList</i></code>.</dd>
<dt class="tm" id="getformattedcells"><code><i>pathName</i>
<b>getformattedcells</b> <i>firstCell</i> <i>lastCell</i></code><br>
<code><i>pathName</i> <b>getformattedcells</b>
<i>cellIndexList</i></code></dt>
<dd>The first form of the command returns a list whose elements are all
of the <a href="#col_formatted">formatted</a> tablelist elements (i.e.,
formatted 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 formatted tablelist element
indicated by that cell index; otherwise the command returns the list of
all of the formatted tablelist elements corresponding to the cell
indices specified by <code><i>cellIndexList</i></code>.</dd>
<dt class="tm" id="getformattedcolumns"><code><i>pathName</i>
<b>getformattedcolumns</b> <i>firstColumn</i>
<i>lastColumn</i></code><br>
<code><i>pathName</i> <b>getformattedcolumns</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
<a href="#col_formatted">formatted</a> tablelist body 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
formatted tablelist body 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 formatted tablelist body elements contained in that
column.</dd>
<dt class="tm" id="getfullkeys"><code><i>pathName</i>
<b>getfullkeys</b> <i>firstIndex</i> <i>lastIndex</i></code><br>
<code><i>pathName</i> <b>getfullkeys</b> <i>indexList</i></code></dt>
<dd>The first form of the command returns a list whose elements are all
of the full keys associated with the tablelist items between
<code><i>firstIndex</i></code> and <code><i>lastIndex</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 full key
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 full keys associated with the
tablelist items corresponding to the indices specified by
<code><i>indexList</i></code>.</dd>
<dd class="tm">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., numerical row index) changes. This command provides
read-only access to the full keys obtained by prepending the letter
<code><b>k</b></code> to these internal item IDs.</dd>
<dt class="tm" id="getkeys"><code><i>pathName</i> <b>getkeys</b>
<i>firstIndex</i> <i>lastIndex</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>firstIndex</i></code> and <code><i>lastIndex</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>.</dd>
<dd class="tm">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., numerical row index) changes. This command provides
read-only access to these internal item IDs.</dd>
<dt class="tm" id="hasattrib"><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 class="tm" id="hascellattrib"><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 class="tm" id="hascolumnattrib"><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 class="tm" id="hasrowattrib"><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 class="tm" id="header"><code><i>pathName</i> <b>header</b>
<i>option</i> ?<i>arg</i> <i>arg</i> ...?</code></dt>
<dd>This command is only supported for Tk versions 8.5 and later.
It is used to invoke various operations on the items in the widget's
header component. The supported subcommnds are described in the
<a href="#hdr_subcommands">HEADER-RELATED SUBCOMMANDS</a> section.</dd>
<dt class="tm" id="headerpath"><code><i>pathName</i>
<b>headerpath</b></code></dt>
<dd>This command is only supported for Tk versions 8.5 and later.
It returns the path name of the text widget containing the header
items.</dd>
<dt class="tm" id="headertag"><code><i>pathName</i>
<b>headertag</b></code></dt>
<dd>This command is only supported for Tk versions 8.5 and later.
It returns the name of a binding tag whose name depends on the path
name of the tablelist widget and which is associated with the text
widget containing the header items, as well as the message and label
widgets used for displaying multi-line elements and images,
respectively in the header cells. This binding tag precedes the
tag <code><b><a href="#header_bindings">TablelistHeader</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 text widget containing the header
items is that it enables you to write event handling scripts that are
valid not only for the above-mentioned text widget but also for the
multi-line cells and embedded images contained in it.</dd>
<dt class="tm" id="hidetargetmark"><code><i>pathName</i>
<b>hidetargetmark</b></code></dt>
<dd>Hides the horizontal gap or vertical bar displayed by the
<code><b><a href="#showtargetmark">showtargetmark</a></b></code>
command. No error is generated if the target indicator is not
visible at the time the command is invoked.</dd>
<dd class="tm">This command is designed to be used during a drag & drop
operation for which the tablelist widget (or its body component) was
registered as a drop target. See the <a href=
"#drag_and_drop_support">DRAG & DROP SUPPORT</a> section for details
and examples.</dd>
<dt class="tm" id="imagelabelpath"><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>
<dd class="tm">
<b>REMARK:</b> Recall that the label widgets containing
embedded images are created on demand. Due to this fact, the
path name returned by this subcommand will only be a nonempty string
if the row containing the specified cell with an embedded image is
currently visible in the tablelist window. Keep this in mind
whenever you need access to the label widgets containing embedded
images. For example, to handle mouse clicks on embedded images,
you should proceed as shown in the code sample below:
<blockquote>
<pre>
bind [.tbl <a href=
"#bodytag">bodytag</a>] <Button-1> {printClickedImage %W %x %y}<br>
proc printClickedImage {w x y} {
foreach {tbl x y} [<a href=
"tablelistBinding.html#convEventFields">tablelist::convEventFields</a> $w $x $y] {}
set cellIdx [$tbl <a href="#containingcell">containingcell</a> $x $y]
scan $cellIdx "%d,%d" row col
if {$row >= 0 && $col >= 0 &&
[string compare $w [$tbl <span class="red">imagelabelpath</span> $cellIdx]] == 0} {
puts "clicked the image of cell $cellIdx"
}
}
</pre>
</blockquote>
</dd>
<dt id="index"><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>. For compatibility with the Tk core
listbox, 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). To get the numerical index of the last item,
you can pass the word <code><b>last</b></code> as
<code><i>index</i></code> argument.</dd>
<dt class="tm" id="insert"><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 the list of full
keys associated with the items just inserted.</dd>
<dd class="tm"><b>REMARK:</b> This subcommand is not suitable for
inserting items into a tablelist designed for displaying a tree
hierarchy. For such tablelist widgets use the <code><b><a href=
"#insertchildren">insertchildren</a></b></code> or <code><b><a href=
"#insertchildlist">insertchildlist</a></b></code> subcommand.</dd>
<dt class="tm" id="insertchildlist"><code><i>pathName</i>
<b>insertchildlist</b> <i>parentNodeIndex</i> <i>childIndex</i>
<i>itemList</i></code></dt>
<dd>Inserts the items of the list <code><i>itemList</i></code> in the
widget's internal list of children of the node specified by
<code><i>parentNodeIndex</i></code> just before the item given by
<code><i>childIndex</i></code> if the tablelist's <code><b><a href=
"#state">state</a></b></code> is not
<code><b>disabled</b></code>. <code><i>childIndex</i></code> must
be a number, <code><b>last</b></code> (specifying the parent's last
child), or <code><b>end</b></code>; if it equals the number of children
of the node given by <code><i>parentNodeIndex</i></code> or is
specified as <code><b>end</b></code> then the new items are added to
the end of the parent's list of children. 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 the list of full
keys associated with the items just inserted.</dd>
<dd class="tm">
This command has the same effect as
<blockquote>
<pre>
eval [list <i>pathName</i> <a href=
"#insertchildren">insertchildren</a> <i>parentNodeIndex</i> <i>childIndex</i>] <i>itemList</i>
</pre>
</blockquote>
</dd>
<dd>but it is more efficient and easier to use.</dd>
<dd class="tm">For technical reasons (the use of the
<code><b>-elide</b></code> text widget tag option for collapsing a
row), this subcommand is not supported for Tk versions earlier than
8.3.</dd>
<dd class="tm"><b>REMARK:</b> You can achieve a quite significant
speadup by using this subcommand to insert a whole list of items rather
than using multiple invocations of <code><b><a href=
"#insertchildren">insertchildren</a></b></code>.</dd>
<dt class="tm" id="insertchildren"><code><i>pathName</i>
<b>insertchildren</b> <i>parentNodeIndex</i> <i>childIndex</i>
?<i>item</i> <i>item</i> ...?</code></dt>
<dd>Inserts zero or more new items in the widget's internal list of
children of the node specified by <code><i>parentNodeIndex</i></code>
just before the item given by <code><i>childIndex</i></code> if the
tablelist's <code><b><a href="#state">state</a></b></code> is not
<code><b>disabled</b></code>. <code><i>childIndex</i></code> must
be a number, <code><b>last</b></code> (specifying the parent's last
child), or <code><b>end</b></code>; if it equals the number of children
of the node given by <code><i>parentNodeIndex</i></code> or is
specified as <code><b>end</b></code> then the new items are added to
the end of the parent's list of children. 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 the list of full
keys associated with the items just inserted.</dd>
<dd class="tm">For technical reasons (the use of the
<code><b>-elide</b></code> text widget tag option for collapsing a
row), this subcommand is not supported for Tk versions earlier than
8.3.</dd>
<dd class="tm"><b>REMARK:</b> It is explicitly allowed to
abbreviate the name <code><b>insertchildren</b></code> as
<code><b>insertchild</b></code>. This comes in handy when using
this subcommand to insert just one child item.</dd>
<dt class="tm" id="insertcolumnlist"><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.</dd>
<dd class="tm">
This command has the same effect as
<blockquote>
<pre>
eval [list <i>pathName</i> <a href=
"#insertcolumns">insertcolumns</a> <i>columnIndex</i>] <i>columnList</i>
</pre>
</blockquote>
</dd>
<dd>but it is more efficient and easier to use.</dd>
<dt class="tm" id="insertcolumns"><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 class="tm" id="insertlist"><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 the list of full
keys associated with the items just inserted.</dd>
<dd class="tm">
This command has the same effect as
<blockquote>
<pre>
eval [list <i>pathName</i> <a href=
"#insert">insert</a> <i>index</i>] <i>itemList</i>
</pre>
</blockquote>
</dd>
<dd>but it is more efficient and easier to use.</dd>
<dd class="tm"><b>REMARK 1:</b> You can achieve a quite
significant speadup by using this subcommand to insert a whole list of
items rather than using multiple invocations of <code><b><a href=
"#insert">insert</a></b></code>.</dd>
<dd class="tm"><b>REMARK 2:</b> This subcommand is not suitable
for inserting items into a tablelist designed for displaying a tree
hierarchy. For such tablelist widgets use the <code><b><a href=
"#insertchildlist">insertchildlist</a></b></code> or <code><b><a href=
"#insertchildren">insertchildren</a></b></code> subcommand.</dd>
<dt class="tm" id="iselemsnipped"><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
content 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 class="tm" id="isexpanded"><code><i>pathName</i> <b>isexpanded</b>
<i>index</i></code></dt>
<dd>Returns the value <code>1</code> if the row indicated by
<code><i>index</i></code> is expanded and <code>0</code>
otherwise.</dd>
<dt class="tm" id="istitlesnipped"><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 class="tm" id="isviewable"><code><i>pathName</i> <b>isviewable</b>
<i>index</i></code></dt>
<dd>Returns the value <code>1</code> if the row indicated by
<code><i>index</i></code> is <b>viewable</b> and <code>0</code>
otherwise. A tablelist row is called viewable if the value of its
<code><b><a href="#row_hide">-hide</a></b></code> option is false and
all its ancestors are (partly) expanded. Likewise, a tablelist
cell is called viewable if its row is viewable and the value of its
column's <code><b><a href="#col_hide">-hide</a></b></code> option is
false.</dd>
<dt class="tm" id="itemlistvar"><code><i>pathName</i>
<b>itemlistvar</b></code></dt>
<dd>
Returns the name of a variable used by Tablelist to hold the internal
list associated with the widget's body. 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 <span class="red">itemlistvar</span>] itemList
</pre>
</blockquote>
</dd>
<dd>In this example, the value of the variable <code>itemList</code>
will be the internal list associated with the body of the tablelist
widget <code>.tbl</code>. Each element of the 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 full key.</dd>
<dd class="tm"><b>REMARK:</b> 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!</dd>
<dt class="tm" id="itemtodict"><code><i>pathName</i> <b>itemtodict</b>
<i>item</i></code></dt>
<dd>Returns a dictionary built from the tablelist item indicated by
<code><i>item</i></code>. The dictionary's keys will be column
numbers or names, and the values will be the corresponding elements of
the given item. For each column number <code><i>col</i></code>,
if the corresponding column name (returned by
<code><i>pathName</i> <b><a href="#columncget">columncget</a></b>
<i>col</i> -name</code>) is a nonempty string then this name will
be used as dictionary key, otherwise the numerical column index
<code><i>col</i></code>.</dd>
<dd class="tm">
For example, if your tablelist widget has 3 columns, of which the
first two were configured with <code><a href=
"#col_name">-name</a> forename</code> and <code><a href=
"#col_name">-name</a> surname</code>, respectively, and you
pass the item
<blockquote>
<pre>
{Joe Black "Young Man in Coffee Shop"}
</pre>
</blockquote>
</dd>
<dd>
to the <code><b>itemtodict</b></code> subcommand, then the return
value will be the dictionary
<blockquote>
<pre>
{forename Joe surname Black 2 {Young Man in Coffee Shop}}
</pre>
</blockquote>
</dd>
<dd>This subcommand is only available in the presence of the
<code><b>dict</b></code> command, which is the case when using Tcl
version 8.5 or later, or one of the alternative, <a href=
"https://wiki.tcl.tk/10609">Tcl-only <code><b>dict</b></code>
implementations</a>.</dd>
<dt class="tm" id="labelpath"><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 class="tm" id="labels"><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 class="tm" id="labeltag"><code><i>pathName</i>
<b>labeltag</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 header
labels as well as with the additional widgets placed by Tablelist into
the latters for displaying header images and sort arrows. This
binding tag is designed to be used when defining non-default binding
scripts for the header labels. From within such event handling
scripts you can retrieve the column number and the tablelist widget's
path name with the aid of the helper commands <code><b><a href=
"tablelistBinding.html#getTablelistColumn">tablelist::getTablelistColumn</a></b></code>
and <code><b><a href=
"tablelistBinding.html#getTablelistPath">tablelist::getTablelistPath</a></b></code>.</dd>
<dt class="tm" id="move"><code><i>pathName</i> <b>move</b>
<i>sourceIndex</i> <i>targetIndex</i></code><br>
<code><i>pathName</i> <b>move</b> <i>sourceIndex</i>
<i>targetParentNodeIndex</i> <i>targetChildIndex</i></code></dt>
<dd>The first form of the command moves the item indicated by
<code><i>sourceIndex</i></code> just before the one given by
<code><i>targetIndex</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>targetIndex</i></code>
equals the number of items or is specified as <code><b>end</b></code>
then the source item is moved after the last one. The item
specified by <code><i>targetIndex</i></code> must have the same parent
as the one given by <code><i>sourceIndex</i></code>, or else it must be
the item just below the last descendant of the source node's
parent.</dd>
<dd class="tm">The command's second form moves the item indicated by
<code><i>sourceIndex</i></code> just before the node having the parent
indicated by <code><i>targetParentNodeIndex</i></code> and the index
<code><i>targetChildIndex</i></code> in the parent's list of children
if the tablelist's <code><b><a href="#state">state</a></b></code> is
not <code><b>disabled</b></code>.
<code><i>targetChildIndex</i></code> must be a number,
<code><b>last</b></code> (specifying the target parent's last child),
or <code><b>end</b></code>; if it equals the number of children of the
target parent node or is specified as <code><b>end</b></code> then the
source item is moved after the target parent node's last child.</dd>
<dd class="tm">Both forms of the command preserve the node hierarchy
under the source item, by moving its descendants accordingly. The
return value is an empty string.</dd>
<dt class="tm" id="movecolumn"><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 class="tm" id="nearest"><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 <a href="#isviewable">viewable</a> tablelist
body 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 class="tm" id="nearestcell"><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 <a href="#isviewable">viewable</a>
tablelist body 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 class="tm" id="nearestcolumn"><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 class="tm" id="noderow"><code><i>pathName</i> <b>noderow</b>
<i>parentNodeIndex</i> <i>childIndex</i></code></dt>
<dd>Returns the numerical row index of the node having the parent
indicated by <code><i>parentNodeIndex</i></code> and the index
<code><i>childIndex</i></code> in the parent's list of children.
<code><i>childIndex</i></code> must be a number,
<code><b>last</b></code> (specifying the parent's last child), or
<code><b>end</b></code>; if it equals the number of children of the
parent node or is specified as <code><b>end</b></code> then the return
value will be the row index of the item following the parent node's
last descendant.</dd>
<dt class="tm" id="parentkey"><code><i>pathName</i> <b>parentkey</b>
<i>nodeIndex</i></code></dt>
<dd>Returns the full key of the parent of the tree node indicated by
<code><i>nodeIndex</i></code>. If this argument is specified as
<code><b>root</b></code> then the return value will be an empty
string. If <code><i>nodeIndex</i></code> identifies a top-level
item then the subcommand will return <code><b>root</b></code>.
For all other items the return value will be a full key of the form
<code><b>k</b><i>number</i></code>.</dd>
<dt class="tm" id="refreshsorting"><code><i>pathName</i>
<b>refreshsorting</b> ?<i>parentNodeIndex</i>?</code></dt>
<dd>Sorts the children of the tablelist node specified by
<code><i>parentNodeIndex</i></code> according to the parameters of the
most recent <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>
invocation. 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>, then no sorting takes
place. The optional argument <code><i>parentNodeIndex</i></code>
defaults to <code><b>root</b></code>, meaning that all the items are to
be sorted per default. The return value is an empty string.</dd>
<dt class="tm" id="rejectinput"><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 content 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
content. The return value is an empty string.</dd>
<dt class="tm" id="resetsortinfo"><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 class="tm" id="restorecursor"><code><i>pathName</i>
<b>restorecursor</b></code></dt>
<dd>Sets the <code><b>-cursor</b></code> configuration option to the
value that it had before invoking the <code><b><a href=
"#setbusycursor">setbusycursor</a></b></code> subcommand and returns
the boolean value <code>1</code>. If there was no previous
<code><b>setbusycursor</b></code> invocation or this is not the first
<code><b>restorecursor</b></code> invocation since the most recent call
to <code><b>setbusycursor</b></code>, then the command returns the
value <code>0</code>, without attempting to restore the cursor.</dd>
<dt class="tm" id="rowattrib"><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 class="tm" id="rowcget"><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 class="tm" id="rowconfigure"><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 IN
THE TABLELIST BODY</a> section.</dd>
<dt class="tm" id="scan"><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 class="tm"><code><i>pathName</i> <b>scan mark</b> <i>x
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 class="tm"><code><i>pathName</i> <b>scan dragto</b> <i>x
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 class="tm" id="searchcolumn"><code><i>pathName</i>
<b>searchcolumn</b> <i>columnIndex</i> <i>pattern</i>
?<i>options</i>?</code></dt>
<dd>This subcommand searches the body elements of the column given by
<code><i>columnIndex</i></code> to see if one of them matches
<code><i>pattern</i></code>. If a match is found, the row index
of the first matching element is returned as result (unless the option
<code><b>-all</b></code> is specified). If not, the return value
is <code>-1</code>. One or more of the following options may be
specified to control the search:</dd>
<dd class="tm">
<table border="0" cellpadding="6" cellspacing="0">
<tr valign="top">
<td><code><b>-all</b></code></td>
<td>Changes the result to be the list of all matching row
indices, which will be in numeric order (or in reverse numeric
order when used with the <code><b>-backwards</b></code>
option).</td>
</tr>
<tr valign="top">
<td><code><b>-backwards</b></code></td>
<td>The search will proceed backward through the given column's
elements in the tablelist's body.</td>
</tr>
<tr valign="top">
<td><code><b>-check</b> <i>command</i></code></td>
<td>Specifies an additional condition to be fulfilled by the
matching elements. If an element of the specified column
matches the given pattern and <i>command</i> is a nonempty
string, then the latter is automatically concatenated with the
path name of the tablelist widget, the element's row index, the
numerical equivalent of <code><i>columnIndex</i></code>, as well
as the element itself or its <a href=
"#col_formatted">formatted</a> version (depending on the presence
of the <code><b>-formatted</b></code> option), the resulting
script is evaluated in the global scope, and the return value
(which must be a boolean) will determine whether the element in
question will still be viewed as matching or not. The
default <i>command</i> is an empty string. This option
enables you to pass arbitrary additional matching criteria to the
searching process.</td>
</tr>
<tr valign="top">
<td><code><b>-descend</b></code></td>
<td>Search the elements of the specified column in all
descendants of the tree node given by the
<code><b>-parent</b></code> option. The elements will be
visited in the order of their row indices (or in reverse order of
their row indices when used with the
<code><b>-backwards</b></code> option). The default is to
restrict the search to the parent node's children only.</td>
</tr>
<tr valign="top">
<td><code><b>-exact</b></code></td>
<td>The matching element(s) must be identical to the literal
string <code><i>pattern</i></code>.</td>
</tr>
<tr valign="top">
<td><code><b>-formatted</b></code></td>
<td>Examine the <a href="#col_formatted">formatted</a> versions
of the elements rather than the internal cell values.</td>
</tr>
<tr valign="top">
<td><code><b>-glob</b></code></td>
<td>Treat <code><i>pattern</i></code> as a glob-style pattern and
match it against the elements using the same rules as the
<code><b>string match</b></code> command.</td>
</tr>
<tr valign="top">
<td><code><b>-nocase</b></code></td>
<td>Causes comparisons to be handled in a case-insensitive
manner. Has no effect if combined with the
<code><b>-numeric</b></code> option.</td>
</tr>
<tr valign="top">
<td><code><b>-not</b></code></td>
<td>This option negates the sense of the match, returning the row
index of the first non-matching element (or, in the presence of
the <code><b>-all</b></code> option, the list of row indices of
all non-matching elements) of the given column.</td>
</tr>
<tr valign="top">
<td><code><b>-numeric</b></code></td>
<td>The elements are to be compared to
<code><i>pattern</i></code> as integer or floating-point values,
using the <code><b>==</b></code> comparison operator. This
option is only meaningful when used with
<code><b>-exact</b></code>.</td>
</tr>
<tr valign="top">
<td nowrap><code><b>-parent</b>
<i>nodeIndex</i> </code></td>
<td>This option restricts the search to the children (or
descendants, when used with <code><b>-descend</b></code>) of the
tree node given by <code><i>nodeIndex</i></code>. The
default parent is <code><b>root</b></code>.</td>
</tr>
<tr valign="top">
<td><code><b>-regexp</b></code></td>
<td>Treat <code><i>pattern</i></code> as a regular expression and
match it against the elements using the rules described in the
<code><b>re_syntax</b></code> reference page.</td>
</tr>
<tr valign="top">
<td><code><b>-start</b> <i>index</i></code></td>
<td>The elements of the specified column are to be searched
(forwards or backwards) starting at the row given by
<code><i>index</i></code>. This option makes it easy to
provide incremental search.</td>
</tr>
</table>
</dd>
<dd class="tm">If all matching style options
<code><b>-exact</b></code>, <code><b>-glob</b></code>, and
<code><b>-regexp</b></code> are omitted then the matching style
defaults to <code><b>-glob</b></code>. If more than one of them
is specified, the last matching style given takes precedence.</dd>
<dd class="tm">Before examining the children (or descendants, when used
with the <code><b>-descend</b></code> option) of a row whose children
have not been inserted yet, the command specified as the value of the
<code><b><a href="#populatecommand">-populatecommand</a></b></code>
option (if any) is automatically concatenated with the path name of the
tablelist widget and the row index, and the resulting script is
evaluated in the global scope. This enables you to insert the
children on demand, just before searching them for the specified
pattern.</dd>
<dt class="tm" id="see"><code><i>pathName</i> <b>see</b>
<i>index</i></code></dt>
<dd>Adjusts the view in the tablelist body 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 class="tm" id="seecell"><code><i>pathName</i> <b>seecell</b>
<i>cellIndex</i></code></dt>
<dd>Adjusts the view in the tablelist body 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 class="tm" id="seecolumn"><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 class="tm" id="selection"><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 the body of a
tablelist widget. It has several forms, depending on
<code><i>option</i></code>:</dd>
<dd>
<dl>
<dt class="tm"><code><i>pathName</i> <b>selection 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 non-<a href="#isviewable">viewable</a>
item, then the closest viewable 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 class="tm"><code><i>pathName</i> <b>selection clear</b>
<i>firstIndex</i> <i>lastIndex</i></code><br>
<code><i>pathName</i> <b>selection clear</b>
<i>indexList</i></code></dt>
<dd>If any of the items between <code><i>firstIndex</i></code> and
<code><i>lastIndex</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 class="tm"><code><i>pathName</i> <b>selection 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 selected cell,
<code>0</code> if it doesn't.</dd>
<dt class="tm"><code><i>pathName</i> <b>selection set</b>
<i>firstIndex</i> <i>lastIndex</i></code><br>
<code><i>pathName</i> <b>selection set</b>
<i>indexList</i></code></dt>
<dd>Selects all of the selectable items in the range between
<code><i>firstIndex</i></code> and <code><i>lastIndex</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 class="tm">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 class="tm" id="separatorpath"><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 class="tm" id="separators"><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 class="tm" id="setbusycursor"><code><i>pathName</i>
<b>setbusycursor</b></code></dt>
<dd>Saves the current value of the <code><b>-cursor</b></code>
configuration option and then sets this option to the name of a
windowing system-specific busy cursor (<code><b>watch</b></code> or
<code><b>wait</b></code>). Since this subcommand is designed to
be invoked just before starting an operation that can take a long time
to complete, it also makes sure that the new cursor will immediately
get visible, by calling <code><b>update
idletasks</b></code>. In the rare but possible case that, as a
side effect of this invocation, the tablelist widget gets destroyed by
some application-specific action scheduled for execution at idle time,
the command returns the boolean value <code>0</code>, otherwise the
value <code>1</code>.</dd>
<dt class="tm" id="showtargetmark"><code><i>pathName</i>
<b>showtargetmark</b> <b>before</b>|<b>inside</b>
<i>index</i></code></dt>
<dd>Displays a drop target indicator having the form of a horizontal
gap or vertical bar before or inside the row specified by
<code><i>index</i></code>. If the subcommand's name is followed
by <code><b>before</b></code> and <code><i>index</i></code> equals the
number of items or is specified as <code><b>end</b></code> then the
horizontal gap will be shown just <i>after</i> the tablelist's last
row. If the subcommand is used with the
<code><b>inside</b></code> option then the index
<code><b>end</b></code> is interpreted as indicating the widget's last
item.</dd>
<dd class="tm">This command is designed to be used during a drag & drop
operation for which the tablelist widget (or its body component) was
registered as a drop target. See the <a href=
"#drag_and_drop_support">DRAG & DROP SUPPORT</a> section for details
and examples.</dd>
<dt class="tm" id="size"><code><i>pathName</i> <b>size</b></code></dt>
<dd>Returns the total number of items in the tablelist body.</dd>
<dt class="tm" id="sort"><code><i>pathName</i> <b>sort</b>
?<b>-increasing</b>|<b>-decreasing</b>?</code></dt>
<dd>Sorts the body 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 toplevel as the widget
itself then the currently active item is brought into view.</dd>
<dt class="tm" id="sortbycolumn"><code><i>pathName</i>
<b>sortbycolumn</b> <i>columnIndex</i>
?<b>-increasing</b>|<b>-decreasing</b>?</code></dt>
<dd>Sorts the body 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, with the exception of Windows Vista, 7, 8, and 10, where the
arrow will be shown horizontally centered in the header label and
attached to its top edge. 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.</dd>
<dd class="tm">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.</dd>
<dt class="tm" id="sortbycolumnlist"><code><i>pathName</i>
<b>sortbycolumnlist</b> <i>columnIndexList</i>
?<i>sortOrderList</i>?</code></dt>
<dd>Sorts the body 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.</dd>
<dd class="tm">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, with the exception of Windows Vista, 7, 8, and 10,
where the arrow will be shown horizontally centered in the header label
and attached to its top edge. 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.</dd>
<dt class="tm" id="sortcolumn"><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>. If called from
within the command specified as the value of the
<code><b>-sortcommand</b></code> <a href="#sortcommand">widget</a> or
<a href="#col_sortcommand">column</a> configuration option, then the
return value of this subcommand refers to the sorting in progress
rather than the most recent one.</dd>
<dt class="tm" id="sortcolumnlist"><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>. If called from
within the command specified as the value of the
<code><b>-sortcommand</b></code> <a href="#sortcommand">widget</a> or
<a href="#col_sortcommand">column</a> configuration option, then the
return value of this subcommand refers to the sorting in progress
rather than the most recent one.</dd>
<dt class="tm" id="sortorder"><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>. If called from
within the command specified as the value of the
<code><b>-sortcommand</b></code> <a href="#sortcommand">widget</a> or
<a href="#col_sortcommand">column</a> configuration option, then the
return value of this subcommand refers to the sorting in progress
rather than the most recent one.</dd>
<dt class="tm" id="sortorderlist"><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>. If called from
within the command specified as the value of the
<code><b>-sortcommand</b></code> <a href="#sortcommand">widget</a> or
<a href="#col_sortcommand">column</a> configuration option, then the
return value of this subcommand refers to the sorting in progress
rather than the most recent one.</dd>
<dt class="tm" id="targetmarkpath"><code><i>pathName</i>
<b>targetmarkpath</b></code></dt>
<dd>Returns the path name of the drop target indicator (displayed as a
horizontal gap or vertical bar) belonging to the tablelist's body.</dd>
<dt class="tm" id="targetmarkpos"><code><i>pathName</i>
<b>targetmarkpos</b> <i>y</i>
?<b>-any</b>|<b>-horizontal</b>|<b>-vertical</b>?</code></dt>
<dd>Given a y-coordinate within the tablelist window, this command
returns a two-element list containing the arguments to be passed to the
<code><b><a href="#showtargetmark">showtargetmark</a></b></code>
subcommand in order to display the drop target indicator corresponding
to that y-coordinate. The first list element will be the string
<code><b>before</b></code> or <code><b>inside</b></code>, and the
second one a numerical row index. These list elements depend on
the relative position of <code><i>y</i></code> within the containing
row (if any), as well as on the optional second argument: The
default option <code><b>-any</b></code> allows both
<code><b>before</b></code> and <code><b>inside</b></code> as first
element of the result list, while the options
<code><b>-horizontal</b></code> and <code><b>-vertical</b></code>
restrict the value of the first list element to
<code><b>before</b></code> and <code><b>inside</b></code>,
respectively. If the option <code><b>-vertical</b></code> was
specified and no item of the tablelist's body contains the given
y-position, then the return value is the list
<code>{<b>inside</b> -1}</code>. The coordinate
<code><i>y</i></code> is expected to be relative to the tablelist
window itself (not its body component).</dd>
<dd class="tm">This command is designed to be used during a drag & drop
operation for which the tablelist widget (or its body component) was
registered as a drop target. See the <a href=
"#drag_and_drop_support">DRAG & DROP SUPPORT</a> section for details
and examples.</dd>
<dt class="tm" id="togglecolumnhide"><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 widget. 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. After toggling the hidden state of the specified columns,
the <code><b><<TablelistColHiddenStateChanged>></b></code>
virtual event is generated. For Tk versions 8.5 and higher, this
virtual event is generated with its <code><b>-data</b></code> option
set to a list consisting of the numerical column indices of the columns
whose <code><b>-hide</b></code> option was toggled. 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
content, thus being significantly faster.</dd>
<dt class="tm" id="togglerowhide"><code><i>pathName</i>
<b>togglerowhide</b> <i>firstIndex</i> <i>lastIndex</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 widget's body. In the first form of the command,
<code><i>firstIndex</i></code> and <code><i>lastIndex</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. After
toggling the hidden state of the specified rows, the
<code><b><<TablelistRowHiddenStateChanged>></b></code>
virtual event is generated. For Tk versions 8.5 and higher, this
virtual event is generated with its <code><b>-data</b></code> option
set to a list consisting of the numerical row indices of the rows whose
<code><b>-hide</b></code> option was toggled. Just like the
<code><b>-hide</b></code> row configuration option, this subcommand is
not supported for Tk versions earlier than 8.3.</dd>
<dd class="tm"><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!</dd>
<dt class="tm" id="toplevelkey"><code><i>pathName</i>
<b>toplevelkey</b> <i>index</i></code></dt>
<dd>If the item identified by <code><i>index</i></code> is a top-level
one then the subcommand returns the full key of that item.
Otherwise the return value is the full key of the unique top-level item
having the given item among its descendants.</dd>
<dt class="tm" id="unsetattrib"><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 class="tm" id="unsetcellattrib"><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 class="tm" id="unsetcolumnattrib"><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 class="tm" id="unsetrowattrib"><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 class="tm" id="viewablerowcount"><code><i>pathName</i>
<b>viewablerowcount</b> ?<i>firstIndex</i>
<i>lastIndex</i>?</code></dt>
<dd>Returns the number of <a href="#isviewable">viewable</a> rows in
the index range given by <code><i>firstIndex</i></code> and
<code><i>lastIndex</i></code>. If these optional indices are not
specified then <code><i>firstIndex</i></code> defaults to
<code>0</code> and <code><i>lastIndex</i></code> defaults to one less
the total number of body items, i.e., the index range comprises all
rows of the tablelist's body.</dd>
<dt class="tm" id="windowpath"><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 class="tm" id="xview"><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 class="tm"><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>0.2</code>
and the second element is <code>0.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 class="tm"><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 class="tm"><code><i>pathName</i> <b>xview 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 class="tm"><code><i>pathName</i> <b>xview scroll</b> <i>number
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 class="tm" id="yview"><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 class="tm"><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 <a href=
"#isviewable">viewable</a> 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 viewable 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 class="tm"><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> <a href="#isviewable">viewable</a>
rows is displayed at the top of the window.</dd>
<dt class="tm"><code><i>pathName</i> <b>yview moveto</b>
<i>fraction</i></code></dt>
<dd>Adjusts the view in the window so that the <a href=
"#isviewable">viewable</a> 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 viewable item in the tablelist, <code>0.33</code> indicates
the viewable item one-third the way through the tablelist, and so
on.</dd>
<dt class="tm"><code><i>pathName</i> <b>yview scroll</b> <i>number
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> <a href="#isviewable">viewable</a> 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 items farther to the
top become visible; if it is positive then items farther to the
bottom become visible.</dd>
</dl>
</dd>
</dl>
</dd>
<dt class="tm" id="hdr_subcommands"><b>HEADER-RELATED SUBCOMMANDS</b></dt>
<dd>
The <code><b><a href="#header">header</a></b></code> tablelist command,
used to invoke various operations on the header items, has the following
general form:
<blockquote>
<pre>
<i>pathName</i> <b>header</b> <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 subcommands are
supported for the tablelist header:</dd>
<dd>
<dl>
<dt class="tm" id="hdr_bbox"><code><i>pathName</i> <b>header bbox</b>
<i>headerIndex</i></code></dt>
<dd>Similar to the <code><b><a href="#bbox">bbox</a></b></code> command
for the tablelist body.</dd>
<dt class="tm" id="hdr_cellattrib"><code><i>pathName</i> <b>header
cellattrib</b> <i>headerCellIndex</i> ?<i>name</i>? ?<i>value</i>
<i>name</i> <i>value</i> ...?</code></dt>
<dd>Similar to the <code><b><a href=
"#cellattrib">cellattrib</a></b></code> command for the tablelist
body.</dd>
<dt class="tm" id="hdr_cellbbox"><code><i>pathName</i> <b>header
cellbbox</b> <i>headerCellIndex</i></code></dt>
<dd>Similar to the <code><b><a href="#cellbbox">cellbbox</a></b></code>
command for the tablelist body.</dd>
<dt class="tm" id="hdr_cellcget"><code><i>pathName</i> <b>header
cellcget</b> <i>headerCellIndex</i> <i>option</i></code></dt>
<dd>Similar to the <code><b><a href="#cellcget">cellcget</a></b></code>
command for the tablelist body. <code><i>option</i></code> may
have any of the values accepted by the <code><b><a href=
"#hdr_cellconfigure">header cellconfigure</a></b></code>
subcommand.</dd>
<dt class="tm" id="hdr_cellconfigure"><code><i>pathName</i> <b>header
cellconfigure</b> <i>headerCellIndex</i> ?<i>option</i>? <i>value</i>
<i>option</i> <i>value</i> ...?</code></dt>
<dd>Similar to the <code><b><a href=
"#cellconfigure">cellconfigure</a></b></code> command for the tablelist
body. Each <code><i>option</i></code> may have any of the values
described in the <a href="#hdr_cell_options">CELL CONFIGURATION OPTIONS
IN THE TABLELIST HEADER</a> section.</dd>
<dt class="tm" id="hdr_cellindex"><code><i>pathName</i> <b>header
cellindex</b> <i>headerCellIndex</i></code></dt>
<dd>Similar to the <code><b><a href=
"#cellindex">cellindex</a></b></code> command for the tablelist
body.</dd>
<dt class="tm" id="hdr_configcelllist"><code><i>pathName</i> <b>header
configcelllist</b> <i>headerCellConfigSpecList</i></code></dt>
<dd>
Similar to the <code><b><a href=
"#configcelllist">configcelllist</a></b></code> command for the
tablelist body. The argument
<code><i>headerCellConfigSpecList</i></code> must be a list of the
form
<blockquote>
<pre>
<i>headerCellIndex</i> <i>option</i> <i>value</i> <i>headerCellIndex</i> <i>option</i> <i>value</i> ...
</pre>
</blockquote>
</dd>
<dd>where each <code><i>option</i></code> may have any of the values
described in the <a href="#hdr_cell_options">CELL CONFIGURATION OPTIONS
IN THE TABLELIST HEADER</a> section.</dd>
<dt class="tm" id="hdr_configcells"><code><i>pathName</i> <b>header
configcells</b> ?<i>headerCellIndex</i> <i>option</i> <i>value</i>
<i>headerCellIndex</i> <i>option</i> <i>value</i> ...?</code></dt>
<dd>Similar to the <code><b><a href=
"#configcells">configcells</a></b></code> command for the tablelist
body. Each <code><i>option</i></code> may have any of the values
described in the <a href="#hdr_cell_options">CELL CONFIGURATION OPTIONS
IN THE TABLELIST HEADER</a> section.</dd>
<dt class="tm" id="hdr_configrowlist"><code><i>pathName</i> <b>header
configrowlist</b> <i>headerRowConfigSpecList</i></code></dt>
<dd>
Similar to the <code><b><a href=
"#configrowlist">configrowlist</a></b></code> command for the
tablelist body. The argument
<code><i>headerRowConfigSpecList</i></code> must be a list of the
form
<blockquote>
<pre>
<i>headerIndex</i> <i>option</i> <i>value</i> <i>headerIndex</i> <i>option</i> <i>value</i> ...
</pre>
</blockquote>
</dd>
<dd>where each <code><i>option</i></code> may have any of the values
described in the <a href="#hdr_row_options">ROW CONFIGURATION OPTIONS
IN THE TABLELIST HEADER</a> section.</dd>
<dt class="tm" id="hdr_configrows"><code><i>pathName</i> <b>header
configrows</b> ?<i>headerIndex</i> <i>option</i> <i>value</i>
<i>headerIndex</i> <i>option</i> <i>value</i> ...?</code></dt>
<dd>Similar to the <code><b><a href=
"#configrows">configrows</a></b></code> command for the tablelist
body. Each <code><i>option</i></code> may have any of the values
described in the <a href="#hdr_row_options">ROW CONFIGURATION OPTIONS
IN THE TABLELIST HEADER</a> section.</dd>
<dt class="tm" id="hdr_containing"><code><i>pathName</i> <b>header
containing</b> <i>y</i></code></dt>
<dd>Similar to the <code><b><a href=
"#containing">containing</a></b></code> command for the tablelist
body.</dd>
<dt class="tm" id="hdr_containingcell"><code><i>pathName</i> <b>header
containingcell</b> <i>x</i> <i>y</i></code></dt>
<dd>Similar to the <code><b><a href=
"#containingcell">containingcell</a></b></code> command for the
tablelist body.</dd>
<dt class="tm" id="hdr_delete"><code><i>pathName</i> <b>header
delete</b> <i>firstHeaderIndex</i> <i>lastHeaderIndex</i></code><br>
<code><i>pathName</i> <b>header delete</b>
<i>headerIndexList</i></code></dt>
<dd>Similar to the <code><b><a href="#delete">delete</a></b></code>
command for the tablelist body.</dd>
<dt class="tm" id="hdr_embedcheckbutton"><code><i>pathName</i>
<b>header embedcheckbutton</b> <i>headerCellIndex</i>
?<i>command</i>?</code></dt>
<dd>Similar to the <code><b><a href=
"#embedcheckbutton">embedcheckbutton</a></b></code> command for the
tablelist body.</dd>
<dt class="tm" id="hdr_embedcheckbuttons"><code><i>pathName</i>
<b>header embedcheckbuttons</b> <i>columnIndex</i>
?<i>command</i>?</code></dt>
<dd>Similar to the <code><b><a href=
"#embedcheckbuttons">embedcheckbuttons</a></b></code> command for the
tablelist body. Logically equivalent to invoking
<code><b><a href="#hdr_embedcheckbutton">header
embedcheckbutton</a></b></code> for all header cells of the
column specified by <code><i>columnIndex</i></code>.</dd>
<dt class="tm" id="hdr_embedttkcheckbutton"><code><i>pathName</i>
<b>header embedttkcheckbutton</b> <i>headerCellIndex</i>
?<i>command</i>?</code></dt>
<dd>Similar to the <code><b><a href=
"#embedttkcheckbutton">embedttkcheckbutton</a></b></code> command for
the tablelist body.</dd>
<dt class="tm" id="hdr_embedttkcheckbuttons"><code><i>pathName</i>
<b>header embedttkcheckbuttons</b> <i>columnIndex</i>
?<i>command</i>?</code></dt>
<dd>Similar to the <code><b><a href=
"#embedttkcheckbuttons">embedttkcheckbutton</a></b></code> command for
the tablelist body. Logically equivalent to invoking
<code><b><a href="#hdr_embedttkcheckbutton">header
embedttkcheckbutton</a></b></code> for all header cells of the
column specified by <code><i>columnIndex</i></code>.</dd>
<dt class="tm" id="hdr_fillcolumn"><code><i>pathName</i> <b>header
fillcolumn</b> <i>columnIndex</i> <i>text</i></code></dt>
<dd>Similar to the <code><b><a href=
"#fillcolumn">fillcolumn</a></b></code> command for the tablelist
body.</dd>
<dt class="tm" id="hdr_findrowname"><code><i>pathName</i> <b>header
findrowname</b> <i>name</i></code></dt>
<dd>Similar to the <code><b><a href=
"#findrowname">findrowname</a></b></code> command for the tablelist
body. Returns the header row index of the first header item whose
name equals <code><i>name</i></code>.</dd>
<dt class="tm" id="hdr_get"><code><i>pathName</i> <b>header get</b>
<i>firstHeaderIndex</i> <i>lastHeaderIndex</i></code><br>
<code><i>pathName</i> <b>header get</b>
<i>headerIndexList</i></code></dt>
<dd>Similar to the <code><b><a href="#get">get</a></b></code> command
for the tablelist body.</dd>
<dt class="tm" id="hdr_getcells"><code><i>pathName</i> <b>header
getcells</b> <i>firstHeaderCell</i> <i>lastHeaderCell</i></code><br>
<code><i>pathName</i> <b>header getcells</b>
<i>headerCellIndexList</i></code></dt>
<dd>Similar to the <code><b><a href="#getcells">getcells</a></b></code>
command for the tablelist body.</dd>
<dt class="tm" id="hdr_getcolumns"><code><i>pathName</i> <b>header
getcolumns</b> <i>firstColumn</i> <i>lastColumn</i></code><br>
<code><i>pathName</i> <b>header getcolumns</b>
<i>columnIndexList</i></code></dt>
<dd>Similar to the <code><b><a href=
"#getcolumns">getcolumns</a></b></code> command for the tablelist
body.</dd>
<dt class="tm" id="hdr_getformatted"><code><i>pathName</i> <b>header
getformatted</b> <i>firstHeaderIndex</i>
<i>lastHeaderIndex</i></code><br>
<code><i>pathName</i> <b>header getformatted</b>
<i>headerIndexList</i></code></dt>
<dd>Similar to the <code><b><a href=
"#getformatted">getformatted</a></b></code> command for the tablelist
body.</dd>
<dt class="tm" id="hdr_getformattedcells"><code><i>pathName</i>
<b>header getformattedcells</b> <i>firstHeaderCell</i>
<i>lastHeaderCell</i></code><br>
<code><i>pathName</i> <b>header getformattedcells</b>
<i>headerCellIndexList</i></code></dt>
<dd>Similar to the <code><b><a href=
"#getformattedcells">getformattedcells</a></b></code> command for the
tablelist body.</dd>
<dt class="tm" id="hdr_getformattedcolumns"><code><i>pathName</i>
<b>header getformattedcolumns</b> <i>firstColumn</i>
<i>lastColumn</i></code><br>
<code><i>pathName</i> <b>header getformattedcolumns</b>
<i>columnIndexList</i></code></dt>
<dd>Similar to the <code><b><a href=
"#getformattedcolumns">getformattedcolumns</a></b></code> command for
the tablelist body.</dd>
<dt class="tm" id="hdr_getfullkeys"><code><i>pathName</i> <b>header
getfullkeys</b> <i>firstHeaderIndex</i>
<i>lastHeaderIndex</i></code><br>
<code><i>pathName</i> <b>header getfullkeys</b>
<i>headerIndexList</i></code></dt>
<dd>Similar to the <code><b><a href=
"#getfullkeys">getfullkeys</a></b></code> command for the tablelist
body. Remember that the full keys of the header items start with
<code><b>hk</b></code>.</dd>
<dt class="tm" id="hdr_getkeys"><code><i>pathName</i> <b>header
getkeys</b> <i>firstHeaderIndex</i> <i>lastHeaderIndex</i></code><br>
<code><i>pathName</i> <b>header getkeys</b>
<i>headerIndexList</i></code></dt>
<dd>Similar to the <code><b><a href="#getkeys">getkeys</a></b></code>
command for the tablelist body.</dd>
<dt class="tm" id="hdr_hascellattrib"><code><i>pathName</i> <b>header
hascellattrib</b> <i>headerCellIndex</i> <i>name</i></code></dt>
<dd>Similar to the <code><b><a href=
"#hascellattrib">hascellattrib</a></b></code> command for the tablelist
body.</dd>
<dt class="tm" id="hdr_hasrowattrib"><code><i>pathName</i> <b>header
hasrowattrib</b> <i>headerIndex</i> <i>name</i></code></dt>
<dd>Similar to the <code><b><a href=
"#hasrowattrib">hasrowattrib</a></b></code> command for the tablelist
body.</dd>
<dt class="tm" id="hdr_imagelabelpath"><code><i>pathName</i> <b>header
imagelabelpath</b> <i>headerCellIndex</i></code></dt>
<dd>Similar to the <code><b><a href=
"#imagelabelpath">imagelabelpath</a></b></code> command for the
tablelist body.</dd>
<dt class="tm" id="hdr_index"><code><i>pathName</i> <b>header index</b>
<i>headerIndex</i></code></dt>
<dd>Similar to the <code><b><a href="#index">index</a></b></code>
command for the tablelist body.</dd>
<dt class="tm" id="hdr_insert"><code><i>pathName</i> <b>header
insert</b> <i>headerIndex</i> ?<i>item</i> <i>item</i> ...?</code></dt>
<dd>Similar to the <code><b><a href="#insert">insert</a></b></code>
command for the tablelist body.</dd>
<dt class="tm" id="hdr_insertlist"><code><i>pathName</i> <b>header
insertlist</b> <i>headerIndex</i> <i>itemList</i></code></dt>
<dd>Similar to the <code><b><a href=
"#insertlist">insertlist</a></b></code> command for the tablelist
body.</dd>
<dt class="tm" id="hdr_iselemsnipped"><code><i>pathName</i> <b>header
iselemsnipped</b> <i>headerCellIndex</i>
<i>fullTextName</i></code></dt>
<dd>Similar to the <code><b><a href=
"#iselemsnipped">iselemsnipped</a></b></code> command for the tablelist
body.</dd>
<dt class="tm" id="hdr_itemlistvar"><code><i>pathName</i> <b>header
itemlistvar</b></code></dt>
<dd>Similar to the <code><b><a href=
"#itemlistvar">itemlistvar</a></b></code> command for the tablelist
body.</dd>
<dt class="tm" id="hdr_nearest"><code><i>pathName</i> <b>header
nearest</b> <i>y</i></code></dt>
<dd>Similar to the <code><b><a href="#nearest">nearest</a></b></code>
command for the tablelist body.</dd>
<dt class="tm" id="hdr_nearestcell"><code><i>pathName</i> <b>header
nearestcell</b> <i>x</i> <i>y</i></code></dt>
<dd>Similar to the <code><b><a href=
"#nearestcell">nearestcell</a></b></code> command for the tablelist
body.</dd>
<dt class="tm" id="hdr_rowattrib"><code><i>pathName</i> <b>header
rowattrib</b> <i>headerIndex</i> ?<i>name</i>? ?<i>value</i>
<i>name</i> <i>value</i> ...?</code></dt>
<dd>Similar to the <code><b><a href=
"#rowattrib">rowattrib</a></b></code> command for the tablelist
body.</dd>
<dt class="tm" id="hdr_rowcget"><code><i>pathName</i> <b>header
rowcget</b> <i>index</i> <i>option</i></code></dt>
<dd>Similar to the <code><b><a href="#rowcget">rowcget</a></b></code>
command for the tablelist body. <code><i>option</i></code> may
have any of the values accepted by the <code><b><a href=
"#hdr_rowconfigure">header rowconfigure</a></b></code>
subcommand.</dd>
<dt class="tm" id="hdr_rowconfigure"><code><i>pathName</i> <b>header
rowconfigure</b> <i>headerIndex</i> ?<i>option</i>? ?<i>value</i>
<i>option</i> <i>value</i> ...?</code></dt>
<dd>Similar to the <code><b><a href=
"#rowconfigure">rowconfigure</a></b></code> command for the tablelist
body. Each <code><i>option</i></code> may have any of the values
described in the <a href="#hdr_row_options">ROW CONFIGURATION OPTIONS
IN THE TABLELIST HEADER</a> section.</dd>
<dt class="tm" id="hdr_size"><code><i>pathName</i> <b>header
size</b></code></dt>
<dd>Similar to the <code><b><a href="#size">size</a></b></code> command
for the tablelist body.</dd>
<dt class="tm" id="hdr_unsetcellattrib"><code><i>pathName</i> <b>header
unsetcellattrib</b> <i>headerCellIndex</i> <i>name</i></code></dt>
<dd>Similar to the <code><b><a href=
"#unsetcellattrib">unsetcellattrib</a></b></code> command for the
tablelist body.</dd>
<dt class="tm" id="hdr_unsetrowattrib"><code><i>pathName</i> <b>header
unsetrowattrib</b> <i>headerIndex</i> <i>name</i></code></dt>
<dd>Similar to the <code><b><a href=
"#unsetrowattrib">unsetrowattrib</a></b></code> command for the
tablelist body.</dd>
<dt class="tm" id="hdr_windowpath"><code><i>pathName</i> <b>header
windowpath</b> <i>headerCellIndex</i></code></dt>
<dd>Similar to the <code><b><a href=
"#windowpath">windowpath</a></b></code> command for the tablelist
body.</dd>
</dl>
</dd>
<dt class="tm" id="body_bindings"><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} \
[<a href=
"tablelistBinding.html#convEventFields">tablelist::convEventFields</a> %W %x %y] {}
</pre>
</blockquote>
</dd>
<dd>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.</dd>
<dd class="tm">
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:
<blockquote>
<pre>
set tablelist::W [<a href=
"tablelistBinding.html#getTablelistPath">tablelist::getTablelistPath</a> %W]
</pre>
</blockquote>
</dd>
<dd>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.</dd>
<dd class="tm">
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:
<blockquote>
<pre>
bind [.tbl <a href=
"#bodytag">bodytag</a>] <Button-1> {printClickedCell %W %x %y}<br>
proc printClickedCell {w x y} {
foreach {tbl x y} [<a href=
"tablelistBinding.html#convEventFields">tablelist::convEventFields</a> $w $x $y] {}
puts "clicked on cell [$tbl <a href=
"#containingcell">containingcell</a> $x $y]"
</pre>
</blockquote>
</dd>
<dd>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.</dd>
<dd class="tm"><b>COMPATIBILITY WITH THE listbox WIDGET:</b> The
default bindings associated with the binding tag
<code><b>TablelistBody</b></code> ensure that the body component of a
tablelist has the same behavior as a Tk core listbox widget. Whether
this is strictly valid, is controlled by the boolean variable
<code><b>tablelist::strictTk</b></code>. For improved
user-friendliness and compatibility with other frameworks, this variable
has the default value <code>0</code>, which enables a few
Tablelist-specific extensions and changes:</dd>
<dd>
<ul>
<li class="tm">If <code><b>tablelist::strictTk</b></code> is true then
all default bindings associated with the binding tag
<code><b>TablelistBody</b></code> give rise to exactly the same
behavior as the default bindings associated with the binding tag
<code><b>Listbox</b></code>.</li>
<li class="tm">If <code><b>tablelist::strictTk</b></code> is false
then, <i>in all selection modes</i>, the selection state of individual
tablelist items or elements (depending on the selection type) can be
toggled with the aid of <code>Control-Button-1</code>,
<code>Control-space</code>, and <code>Control-Select</code> (see
below).</li>
</ul>
</dd>
<dd class="tm"><b>BINDINGS FOR THE SELECTION TYPE
<code>row</code>:</b> 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. In
addition:</dd>
<dd>
<ol>
<li class="tm">If <code><b>tablelist::strictTk</b></code> is false
(which is the default) then pressing button 1 with the
<code>Control</code> key down toggles the selection state of the item
under the mouse. If the selection mode is
<code><b>extended</b></code> then additional actions apply, as
described in the <b>listbox</b> manual entry. If the selection
mode is <code><b>single</b></code> or <code><b>browse</b></code> and
the selection state of the item changes from unselected to selected
then any other selected items will be deselected, just as if button 1
had been pressed without the <code>Control</code> key down.</li>
<li class="tm">Again, if <code><b>tablelist::strictTk</b></code> is
false, then <code>Control-space</code> and <code>Control-Select</code>
toggle the selection state of the active item just as if button 1 had
been pressed over this item with the <code>Control</code> key
down.</li>
</ol>
</dd>
<dd class="tm"><b>BINDINGS FOR THE SELECTION TYPE
<code>cell</code>:</b> 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:</dd>
<dd>
<ol>
<li class="tm">
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.
<p>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.</p>
</li>
<li class="tm">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.</li>
<li class="tm">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.</li>
<li class="tm">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.</li>
<li class="tm">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.</li>
<li class="tm">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>
<li class="tm">If <code><b>tablelist::strictTk</b></code> is false
(which is the default) then pressing button 1 with the
<code>Control</code> key down toggles the selection state of the
element under the mouse. If the selection mode is
<code><b>extended</b></code> then additional actions apply, as
described in the <b>listbox</b> manual entry. If the selection
mode is <code><b>single</b></code> or <code><b>browse</b></code> and
the selection state of the element changes from unselected to selected
then any other selected elements will be deselected, just as if button
1 had been pressed without the <code>Control</code> key down.</li>
<li class="tm">Again, if <code><b>tablelist::strictTk</b></code> is
false, then <code>Control-space</code> and <code>Control-Select</code>
toggle the selection state of the active element just as if button 1
had been pressed over this element with the <code>Control</code> key
down.</li>
</ol>
</dd>
<dd class="tm"><b>BINDINGS FOR SELECT ALL AND DESELECT ALL:</b> The
following additional bindings associated with the binding tag
<code><b>TablelistBody</b></code> are valid on the windowing systems
<code><b>x11</b></code> and <code><b>win32</b></code>:</dd>
<dd>
<ol>
<li class="tm">
<code>Control-a</code> behaves the same as
<code>Control-slash</code>, i.e., it selects everything in the
widget's body, except in <code><b>single</b></code> and
<code><b>browse</b></code> modes, in which case it selects the active
item or element (depending on the selection type) and deselects
everything else.
<p><b>REMARK 1:</b> The default widget bindings in current Tk
versions on Windows already support <code>Control-a</code> as an
alternative to <code>Control-slash</code>. In Tablelist this is
now valid on X11, too.</p>
<p><b>REMARK 2:</b> On Mac OS X Aqua, the default widget
bindings in current Tk versions use the key sequence
<code>Command-a</code> <i>instead of</i>
<code>Control-slash</code>.</p>
</li>
<li class="tm">
<code>Shift-Control-A</code> behaves the same as
<code>Control-backslash</code>, i.e., it deselects everything in the
widget, except in <code><b>browse</b></code> mode where it has no
effect.
<p><b>REMARK 1:</b> This shortcut comes in handy on Windows
when using, e.g., a French or German keyboard, because in this case
Tk fails to recognize the <code>Control-backslash</code> key sequence
(for which one has to press <code>Control</code>, <code>AltGr</code>,
and a third key: <code>_</code> on a French and <code>ß</code>
on a German keyboard). Moreover, on many keyboards it is quite
difficult (if not even impossible) to generate the
<code>Control-backslash</code> key sequence, fact which makes the
support for this alternative shortcut even more useful on both X11
and Windows.</p>
<p><b>REMARK 2:</b> On Mac OS X Aqua, the default widget
bindings in current Tk versions use the key sequence
<code>Option-Command-a</code> <i>instead of</i>
<code>Control-backslash</code>.</p>
</li>
</ol>
</dd>
<dd class="tm">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.</dd>
<dd class="tm" id="local_drag_and_drop">
<b>LOCAL DRAG & DROP:</b> 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>:
<blockquote>
<p>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. The new item position (if any) is visualized with the
aid of a gap placed before the target row or a bar placed inside the
latter (depending on the current mouse position), indicating whether
the source item would be moved before this row or become a child of
it. This <b>local drag & drop</b> 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 in the
presence of a valid target, the source item is moved before the target
row or just before the latter's first child, and the virtual event
<code><b><<TablelistRowMoved>></b></code> is
generated. For Tk versions 8.5 and higher, this virtual event is
generated with its <code><b>-data</b></code> option set to a list of
length 3, whose elements are derived from the arguments passed to the
second form of the <code><b><a href="#move">move</a></b></code>
subcommand invoked for moving the source row to its new position.
The first list element will be the full key corresponding to the first
argument, the second one will be <code><b>root</b></code> or the full
key corresponding to the second argument, and the third list element
will be identical to the third argument passed to the
<code><b>move</b></code> subcommand.</p>
<p>Notice that, depending on the current mouse position during the
local drag & drop, there can be a corresponding potential target row or
not. For instance, a tree item cannot become a sibling of one of
its descendants, and not all items might be allowed to have children or
to become top-level ones (example: in a file manager, regular file
items cannot be parents of other items and should not be allowed to
become top-level ones). To decide whether the row corresponding
to the y-coordinate of the current mouse position represents a valid
potential target, the Tablelist code first checks whether moving the
source item before that row or making it a child of the latter is
allowed from the point of view of the general tree structure. If
this is the case and the move operation would change the source item's
parent (and the Tk version is at least 8.3), and the command specified
as the value of the <code><b><a href=
"#acceptchildcommand">-acceptchildcommand</a></b></code> configuration
option is a nonempty string, then this command is concatenated with the
path name of the tablelist widget, the node index of the would-be new
parent node, and the row index of the dragged item, the resulting
script is evaluated in the global scope, and if the return value (which
must be a boolean) is false, then the source item will not be allowed
to be moved to the current mouse position. Likewise, if the
command specified as the value of the <code><b><a href=
"#acceptdropcommand">-acceptdropcommand</a></b></code> configuration
option is a nonempty string, then this command is concatenated with the
path name of the tablelist widget, the row index of the would-be new
target row, and the row index of the dragged item, the resulting script
is evaluated in the global scope, and if the return value (which must
be a boolean) is false, then the source item will not be allowed to be
moved to the current mouse position.</p>
<p>Recall that if the selection mode is <code><b>multiple</b></code>
then <i>pressing</i> mouse button 1 on a selected item or element
normally deselects that item or element (depending on the selection
type). However, if in addition the value of the <code><b><a href=
"#movablerows">-movablerows</a></b></code> configuration option is true
then the clicked row is a potential drag source for the local drag &
drop operation described above, and for this reason the clicked item or
element will only be deselected when <i>releasing</i> mouse button 1
over the same item or element.</p>
</blockquote>
</dd>
<dd class="tm" id="global_drag_and_drop"><b>DRAG SOURCE SUPPORT FOR GLOBAL
DRAG & DROP:</b> Besides the local drag & drop, the default bindings
also support the TkDND compiled extension and the drag & drop framework
included in BWidget, as well as custom drag & drop implementations. A
tablelist widget is viewed as a <b>drag source for mouse button 1</b> if
its body component was registered as such via the
<code><b>tkdnd::drag_source register</b></code> or the BWidget
<code><b>DragSite::register</b></code> command, or the tablelist's
<code><b><a href="#customdragsource">-customdragsource</a></b></code>
option was set to true. The default bindings provide drag source
support as described below:</dd>
<dd>
<ol>
<li class="tm">If the selection mode is <code><b>extended</b></code>
then <i>pressing</i> mouse button 1 on a selected item or element
normally deselects all the other items or elements (depending on the
selection type). However, if the tablelist is a drag source for
mouse button 1, then the other items or elements will only be
deselected when <i>releasing</i> mouse button 1 over the clicked item
or element. This is because the mouse click might be followed by
a drag, intended for all currently selected items or elements.</li>
<li class="tm">Similarly, if the selection mode is
<code><b>multiple</b></code> then <i>pressing</i> mouse button 1 on a
selected item or element normally deselects that item or element
(depending on the selection type). However, if the tablelist is a
drag source for mouse button 1, then the clicked item or element will
only be deselected when <i>releasing</i> mouse button 1 over the same
item or element. Again, this is because the mouse click might be
followed by a drag, intended for all currently selected items or
elements.</li>
<li class="tm">Whenever the mouse leaves the tablelist window with
button 1 down. the default bindings normally perform an automatic
scrolling, just like in the case of the Tk listbox widget.
However, if the tablelist is a drag source for mouse button 1, then the
automatic scrolling will be suppressed, in order to avoid any conflicts
with the drag operation.</li>
</ol>
</dd>
<dd class="tm"><b>TREE WIDGET BINDINGS:</b> The following bindings
associated with the binding tag <code><b>TablelistBody</b></code> apply to
tablelists used as tree widgets:</dd>
<dd>
<ol>
<li class="tm">Pressing mouse button 1 over an expand/collapse control
toggles the expanded/collapsed state of the corresponding row.</li>
<li class="tm">If the current active row contains an expand/collapse
control in collapsed state then the <code>Right</code>,
<code>plus</code>, and <code>KP_Add</code> keys expand the
corresponding row by invoking the non-recursive version of the
<code><b><a href="#expand">expand</a></b></code> subcommand.</li>
<li class="tm">If the current active row contains an expand/collapse
control in expanded state then the <code>Left</code>,
<code>minus</code>, and <code>KP_Subtract</code> keys collapse the
corresponding row by invoking the non-recursive version of the
<code><b><a href="#collapse">collapse</a></b></code> subcommand.</li>
</ol>
</dd>
<dt class="tm" id="header_bindings"><b>DEFAULT AND INDIVIDUAL BINDINGS FOR
THE HEADER ITEMS</b></dt>
<dd>The hedaer items are contained in a text widget whose binding tag
<code><b>Text</b></code> is replaced with a new binding tag called
<code><b>TablelistHeader</b></code>. This tag replaces also the
binding tag <code><b>Message</b></code> of the message widgets used to
display multi-line header elements, as well as the binding tag
<code><b>Label</b></code> of the label widgets used to display embedded
images in the header cells. This makes sure that the default handling
of the mouse events on the multi-line cells and embedded images in the
tablelist's header is the same as in the rest of the header text
widget.</dd>
<dd class="tm">
Header items are designed for display purposes only, they are not
intended to be interactive. For this reason, the only default
bindings associated with the binding tag
<code><b>TablelistHeader</b></code> are the ones used internally by
Tablelist for tooltip support. You can, however, define individual
bindings for the header component, like in the following example (which
requires Tk 8.5 or later):
<blockquote>
<pre>
bind [.tbl <a href=
"#headertag">headertag</a>] <Button-1> {printClickedCell %W %x %y}<br>
proc printClickedCell {w x y} {
foreach {tbl x y} [<a href=
"tablelistBinding.html#convEventFields">tablelist::convEventFields</a> $w $x $y] {}
puts "clicked on header cell [$tbl <a href=
"#hdr_containingcell">header containingcell</a> $x $y]"
</pre>
</blockquote>
</dd>
<dt class="tm" id="label_bindings"><b>DEFAULT AND INDIVIDUAL BINDINGS FOR
THE HEADER LABELS</b></dt>
<dd>Tablelist automatically creates the following bindings for the header
labels of a tablelist widget:</dd>
<dd>
<ol>
<li class="tm">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, with its <code><b>-data</b></code> option set to the
numerical column index for Tk versions 8.5 and higher.</li>
<li class="tm">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. For Tk versions 8.5 and higher, this virtual event is
generated with its <code><b>-data</b></code> option set to a list of
length 4, whose first two elements are identical to the two numerical
column indices passed to the <code><b><a href=
"#movecolumn">movecolumn</a></b></code> subcommand invoked for moving
the source column to its new position, and the last two elements are
the corresponding column names, retrieved with the aid of the
<code><b><a href="#columncget">columncget</a> ...
-name</b></code> subcommand.</li>
<li class="tm">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 path 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.</li>
<li class="tm" id="button3">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, with its <code><b>-data</b></code> option set to the
numerical column index for Tk versions 8.5 and higher. The same
action is triggered by double-clicking the resize area of a header
label.</li>
<li class="tm">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, with its <code><b>-data</b></code> option set to the
numerical column index for Tk versions 8.5 and higher. The same
action is triggered by double-clicking the resize area of a header
label with the <code>Shift</code> key held down.</li>
</ol>
</dd>
<dd class="tm" id="columnwise_selection"><b>BINDINGS FOR COLUMN-WISE CELL
SELECTION:</b> If the selection type is <code><b>cell</b></code> then
a few further bindings apply to the header labels. In the description
below the <code>Alt</code> key can be replaced with <code>Meta</code>; on
Mac OS Classic and Mac OS X Aqua the <code>Command</code> key is used
instead of <code>Alt</code> and <code>Meta</code>. Notice also that
you can restrict the set of cells that will be selected when these bindings
perform a column-wise cell selection: If the command specified by the
<code><b><a href="#selectfiltercommand">-selectfiltercommand</a></b></code>
option is a nonempty string then this command is concatenated with the path
name of the tablelist widget and the numerical index of the respective
column, and the resulting script is evaluated in the global scope. If
another nonempty command was specified as the value of the option of the
same name at column level then that column-specific command will be used
instead of the global one. In both cases, only those cells contained
in that column will be selected whose row numbers are contained in the list
returned by the script.</dd>
<dd>
<ol>
<li class="tm">Pressing mouse button 1 on a header label with the
<code>Alt</code> key down selects the cells of the corresponding
column, deselects everything else, and sets the anchor to the first
viewable selected cell of that column; dragging the mouse with button 1
down extends the selection to include all the columns between the
anchor and the column under the mouse, inclusive.</li>
<li class="tm">If the anchor column contains at least one selected cell
then the range of selected columns can be adjusted by pressing button 1
on a header label with the <code>Alt</code> and <code>Shift</code> keys
down: this modifies the selection to consist of the cells of the
columns between the anchor and the one under the mouse,
inclusive. The un-anchored end of this new column-wise cell
selection can also be dragged with the button down.</li>
<li class="tm">Pressing button 1 on a header label with the
<code>Alt</code> and <code>Control</code> keys down starts a toggle
operation: the cells of the column corresponding to the clicked label
will be deselected if at least one of them was selected before, and
selected otherwise; in the first case the anchor is set to the first
viewable cell of that column, while in the second case to the column's
first viewable selected cell. The selection state of other cells
is not changed. If subsequently the mouse is dragged with button
1 down, then the selection state of the cells between the anchor column
and the one under the mouse is set to match the toggled state of the
anchor column; the selection state of all other cells remains what it
was before the toggle operation began.</li>
</ol>
</dd>
<dd class="tm">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.</dd>
<dd class="tm">
If you want to define non-default bindings for the header labels, it is
recommended to associate them with the binding tag whose name is returned
by the <code><b><a href="#labeltag">labeltag</a></b></code> subcommand
and make use of the helper commands <code><b><a href=
"tablelistBinding.html#getTablelistColumn">tablelist::getTablelistColumn</a></b></code>
and <code><b><a href=
"tablelistBinding.html#getTablelistPath">tablelist::getTablelistPath</a></b></code>.
For example, to replace the default binding for
<code><b><Button-3></b></code> with a script that performs a
column-dependent action, you can proceed like in the code shown below:
<blockquote>
<pre>
bind [.tbl <a href="#labeltag">labeltag</a>] <Button-3> {
puts "right-clicked on header label no. [<a href=
"tablelistBinding.html#getTablelistColumn">tablelist::getTablelistColumn</a> %W]"
break
}
</pre>
</blockquote>
</dd>
<dt id="edit_bindings"><b>DEFAULT BINDINGS FOR INTERACTIVE CELL
EDITING</b></dt>
<dd>Tablelist 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 pressing mouse button 1 in an editable cell
(see the <code><b><a href=
"#editselectedonly">-editselectedonly</a></b></code> option for details) 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>.</dd>
<dd class="tm">The affected components of the temporary embedded widget
depend on the edit window: the widget itself in case of a Tk or tile
checkbutton or menubutton; 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.</dd>
<dd>
<ol>
<li class="tm"><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.</li>
<li class="tm"><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.</li>
<li class="tm">If the edit window is a text or ctext 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.</li>
<li class="tm"><code>Control-Return</code> and
<code>Control-KP_Enter</code> terminate the editing and destroy the
edit window.</li>
<li class="tm"><code>Escape</code> aborts the editing and destroys the
edit window.</li>
<li class="tm">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.</li>
<li class="tm">
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 content
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 or ctext widget then its content is left unselected.
<p>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.</p>
</li>
<li class="tm">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 content 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 or ctext widget then its content is 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 or ctext 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 or
menubutton widget then <code>Left</code>/<code>Right</code> has the
same effect as <code>Alt-Left</code>/<code>Alt-Right</code>.</li>
<li class="tm">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 content
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 or ctext widget then its content is 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 or ctext 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, Tk or
tile menubutton, 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>.</li>
<li class="tm">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
content 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 or ctext widget then its content is 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 or ctext widget, BWidget SpinBox, Oakley combobox, or a
mentry widget of type <code>"Date"</code>, <code>"Time"</code>,
<code>"DateTime"</code>, <code>"IPAddr"</code>, or
<code>"IPv6Addr"</code>, then <code>Prior</code>/<code>Next</code> has
the same effect as <code>Alt-Prior</code>/<code>Alt-Next</code>.</li>
<li class="tm">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 content 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 or ctext widget then its content is 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 or ctext 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 or ctext 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>
</dd>
<dd class="tm">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.</dd>
<dd class="tm">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.</dd>
<dt class="tm" id="keywords"><b>KEYWORDS</b></dt>
<dd>tablelist, multi-column, listbox, tree, widget</dd>
</dl>
<div align="center">
<p><a href="#contents">Contents</a> <a href=
"index.html">Start page</a></p>
</div>
</body>
</html>
|