sure; I don't blame anyone in being a monkey. Just thought adding more code would clobber...
I tried the
$mw->geometry(undef);
this works great when hiding the to be hidden widgets. So far so good.
But then when restoring the hidden, they are restored to their 'required' width and height, rather than those they had when they were 'packForgotten'.
This seems to be the effect of the
$mw->geometry(undef);
call
There is a diff between:
$mw_w = $mw->width;
$mw_h = $mw->height;
and
$mw_w = $mw->reqwidth;
$mw_h = $mw->reqheight;
After many tries I found a solution (?) by remembering the
geometry of the MW when hiding:
$mw_geom = $mw->geometry();
and restoring this when re-packing:
$mw->geometry($mw_geom);
So I can add that to my code in some way or another. Only thing is that I do not understand it yet ;-(
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.