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

Hi Monks,

I have encountered a problem when using Tk::Table.

My requirement is as below:

                <------------- Scroll left/right ---------------->

******************************************
*             *         C1       *       C2       *         C3        *
****************************************** <
*    R1     *                    *                  *                      * <
****************************************** <
*    R2     *                    *                  *                      * < Scroll Up/Down
****************************************** <
*    R3     *                    *                  *                      * <
****************************************** <

I would like to create a table like this. There are a lot more rows and columns in the real case. Hence, when using scrolled frame, some of the rows/columns will be hidden. 

When scrolling left/right, I do not want to scroll the R1, R2 and R3 (causing them to be hidden) On the other hand, when scrolling up/down, I do not want to scroll C1, C2 and C3 as well. 

I cannot figure out a way to achieve this. I sincerely hope that someone can enlighten me on this.

Feel free to reply me if you need more information.

Thank you.

Regards,
izaq09

 

Replies are listed 'Best First'.
Re: Perl Tk Table Inquiry
by izaq09 (Initiate) on Apr 30, 2018 at 05:36 UTC

    Hi Monks,

    I have found the solution for this. A simple -fixedrows/columns in the table class can achieve this.

    http://search.cpan.org/dist/Tk/pod/Table.pod

    Sorry for posting a bad question here.

    Thank you.

    Regards,

    izaq09

      Hi izaq09,

      How is TK:Table?
      I tried using that but the documentation is very limited.
      Does it offer ability to change color/font of each cell, per row, per column?
      Does it offer ability to bind a line?

      Currently I am implementing my table requirement using multiple rotext and synchronized scrolling.
      I wonder if Table would be the better option.