Thanks,
->update fixes it.
I now have a simple script that automatically sets the correct height on rows based on the pixel values from
dlineinfo. However, it only works on the cells that are in the screen; it fails on the cells that are off the bottom.
I could cycle through all the cells, putting the contents of each one into cell 0,0 (first row), storing the required height for each one. Then I could draw the final table with those values. But I would probably get a lot of flickering as the cell is refreshed. I can't just move the $mw off the screen because it's visible already when this process starts. Maybe I could try creating a new toplevel and
withdrawing it right away... but of course that only works if
dlineinfo returns values from a withdrawn window. Perhaps create a new toplevel, move it off the screen and try to hide the icon in the taskbar somehow? Perhaps use a Dialog instead of a toplevel window so I don't get a taskbar icon?
I'll be trying these things but I'd be grateful for tips in case they don't work or there is a better option.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.