From your limited description of the problem in the original node, I thought you were talking about how the header row of the table can get squished down to non-visible upon resizing the whole window. My script stopped the crushing, so the header row remained totally readable, while still allowing you to scroll the data. Otherwise, explain better what you want to see. The widget is difficult to deal with, and you may want to go to a better widget giving you more control. The only one in Tk is the canvas, and you can setup a scrolling table easily in it.
| [reply] [Watch: Dir/Any] |
Sorry, my mistake for beeing unclear in my description of the problem. I will try again.
I have a Tk::TableMatrix::SpreadSheet table which I fill with data. In columns in top row I have button widgets, which when clicked sorts data in in the table and then repopulates it with sorted data.
We can adjust size of cells by "clicking and dragging" on table borders. What I would like is the top row to maintain the same height all the time - that is make it impossible to resize it vertically. I guess we have to poke into the Spreadsheet.pm (or TableMatrix.pm) file and see how it operates?
| [reply] [Watch: Dir/Any] |
If you post a minimal working example, maybe someone will see a way. My first thought is to somehow bind to the window resize, and then do some adjustments. Or maybe put your sort buttons in a separate frame above the spreadsheet and try to figure out how to align the buttons with the columns.
$mw->bind( '<Configure>', sub{ &OnResize });
Or switch to Gtk2, which has a good table widget support, where you can individually set the expand,shrink,and fill setting for each table element.
| [reply] [Watch: Dir/Any] [d/l] |