Hi Monks
I'm using the next code
my $log = MainWindow->new(title=>"Who is logged on which tester"); my $log1 = $log -> Frame; $listbox = $log1->Scrolled("Listbox", "-font" => 14, "-width" => 51, "-height" => 37, "-background" => 'lightgreen'); foreach $n (@output){ $listbox-> insert('end',"$n");} $listbox -> pack(-fill => 'both',-expand => 1); $logU=$log1->Frame; $logU->Button( -text => 'Refresh', -background => 'lightgreen', -activebackground => '#0000ff', -activeforeground => '#80ffff', -command => sub{$Refr = 1;$log -> destroy;})->pack(-side => 'l +eft',qw/-ipadx 4 -pady 2/ ,-expand => 1); $logU->Button( -text => 'OK', -background => 'lightgreen', -activebackground => '#0000ff', -activeforeground => '#80ffff', -command => \&exit)->pack(-side => 'right',qw/-ipadx 14 -pady +2/,-expand => 1); $logU->pack(-fill=>'both',-expand=>1,-side=>'bottom'); $log1 -> pack(-fill =>'both',-expand => 1); $log->withdraw; $log->update; my $xpos = int(($log->screenwidth - $log->width ) / 2); my $ypos = int(($log->screenheight - $log->height) / 3);#upper thi +rd instead of middle $log->geometry("+$xpos+$ypos"); $log->deiconify; # Show the window again $log-> bind ('<Key-Return>','destroy'); $log-> bind ('<Key-Escape>','destroy'); $log->protocol('WM_DELETE_WINDOW',sub {$log->destroy;X_pressed();s +leep(2);exit;}); MainLoop;

when I shorten the window's hight, the first frame to be gone is the bottons frame "logU".
I want that frame to be the last to fold.
I actually want the upper frame to fold and use the scrollbar before the lower frame is folded.

pelase advise,
Thanks,
Moked

In reply to tk folding frame by moked

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.