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