http://www.perlmonks.org?node_id=842006

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

Dear Monks,

I have a requirement in Table Matrix package.

* If I select any column then it should highlight that row.
* Then I need to get all column values for selected row.

  • Comment on How to select/Highlight a Row in Tk::TableMatrix

Replies are listed 'Best First'.
Re: How to select/Highlight a Row in Tk::TableMatrix
by marto (Cardinal) on May 28, 2010 at 09:41 UTC

    Did you look at the docs for Tk::TableMatrix regards highlighting? This response to your previous question looks like it should get you the values from a clicked/selected row.

    Update: fixed typo.

Re: How to select/Highlight a Row in Tk::TableMatrix
by lamprecht (Friar) on May 28, 2010 at 12:56 UTC
    Hi,

    take a look at option
    -browsecmd => CALLBACK
    to get a hook for selection changes,
    method tagRow()
    to highlight a row,
    method get()
    to get your rows values. (Or simply read the values from your -variable) .

    Cheers, Christoph