Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

I have a program at the moment that is using Tk::HList with 4 columns to provide a table in which each row is coloured individually.

I want to be able to sort by a user specified column. Tk::MListbox allows that however I cannot find a way to specify the colour of a row within this, I can only set colours by column.

Is it possible with MListbox or do I need some other module? I've looked at Tk::Columns and it seems to have the same problem.

Thanks,
Graham

Replies are listed 'Best First'.
Re: Tk::MListbox - row colour
by lamprecht (Friar) on Sep 07, 2009 at 19:01 UTC

    Did you take a look at Tk::TableMatrix ? You will have to create bindings for sorting, but it is a very powerful widget.


    Cheers, Christoph