Hi all,
The following snippit
my $tree = $mw -> new_ttk__treeview;
$tree -> heading ( "#1", -command => \&resort (\$sortflag, \@item) );
returns a 'Column #1 out of range' error message. (I can try #0, or just plain 0, or 1, with the same result.)
The relevant documentation at www.tcl.tk/man/tcl8.5/TkCmd/ttk_treeview.htm reads:
pathname heading column ?-option ?value -option value...?
Query or modify the heading options for the specified column. Valid options are: ...
-command script
Use pathname heading #0 to configure the tree column heading.
And near the very bottom of the above documentation page, there's also a helpful bit on 'COLUMN IDENTIFIERS.'
I just haven't gotten the syntax right yet. Any help? Thanks.
--Cypress
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.