Don't ask to ask, just ask | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I'm using line wrap to display variable length text in Tk::TableMatrix. It works fine, lines are wrapped as needed, and the line wrap adjusts automatically when the columns are resized.
The problem is that row height can only be set manually. I can set all rows to be 2 lines in height, but I can't set them to be as high as it takes to display all text in each row. As a result I either get a bunch of text that's not visible, or an awful lot of wasted empty space. If I were to use a monospace font and set a fixed column width, maybe I could write some code that calculates the height required for each row and sets it, but I want to avoid fixed column widths if at all possible. Is there a solution? My googling turned up no answers except this, which is for TkTable in Tcl/Tk and I can't make much sense of it:
From http://wiki.tcl.tk/1877 In reply to Auto-adjust row height to line wrap in Tk-Tablematrix by elef
|
|