in reply to perl/Tk and expandable widgets

Would you be able to use a Tk::Table instead of the Tk::ROText?. It will handle the layout issues you are looking for fairly easily, and you can attach sort bindings to the "header" cells.

The drawback is Tk::Table has poor performance if the table is large; more than 1000 or so entries.

Replies are listed 'Best First'.
Re^2: perl/Tk and expandable widgets
by Courage (Parson) on Jun 08, 2005 at 16:56 UTC

      tkTable = Tk::TableMatrix in Perl/Tk. It was renamed since there was already a Tk::Table present.

      TableMatrix does offer a decent boost in performance over other options in Tk. Is Tcl::Tk a bit faster? Sure, however for typical applications I would argue that the performance difference is not noticable -- at least, IMO. Most of the time, GUIs aren't really doing all that much. It's the application logic triggered by the GUI where you tend to get into trouble.

        Faster startup time is good but isn't really important; what *is* important in Tcl::Tk (as opposed to perl/Tk) is ability to use tcl widgets without any preparation or adaptation.
        Also, see longer list at http://vkonovalov.ru/cgi-bin/perl-tcltk-wiki.cgi/19

        Best regards,
        Courage, the Cowardly Dog