Hello All,
I have an issue with the Tk user interface on windows. I have supplied a sample code to reproduce the problem.

When you launch the code, the window opens up in normal state. now take you mouse to the task bar of an open application until the "tool tip" displays. The Tk UI all disappeared. But click on a different tab or adjust the slider and the Tk UI reappears.

Second, maximuze the TK UI, again take you mouse to the task bar of an open application until the "tool tip" displays. This time the Tk UI disappeared again EXCEPT for the notebook.
I have been playing with pack and grid. I have tried using all pack, using all grid, and using a combination of both with no luck, so I call upon the experts.
Any help you can offer will greatly be appreciated
use strict; use Tk; use Tk::SplitFrame; use Tk::LabEntry; use Tk::LabFrame; use Tk::ErrorDialog; use Tk::NoteBook; #use Tk::Label; &maingui; sub maingui { my $MainWindow = MainWindow->new(-title=>'Split Window Example'); my $SplitFrame = $MainWindow->SplitFrame ( '-orientation' => 'vertical', '-trimcolor' => '#c7c7c7', '-background' => 'white', '-sliderposition' => 100, '-borderwidth' => 2, '-sliderwidth' => 7, '-relief' => 'sunken', '-height' => 1000, '-width' => 1000, '-padbefore' => 0, '-padafter' => 0 ); # Values shown above are defaults. my $LeftLabel = $SplitFrame->Label ('-text' => 'Left'); my $RightLabel = $SplitFrame->Label ('-text' => 'Right'); $SplitFrame->pack (-expand => 'true', -fill => 'both'); $SplitFrame->configure ('-sliderposition' => 100); ################################################################### +########### ## Right Side of the Split Frame + ## ################################################################### +########### my $nb = $RightLabel->NoteBook()->pack(-expand=>1,-fill=>'both'); my $tab_1 = $nb->add('one', -label => '1.'); my $tab_2= $nb->add('two', -label => '2. '); my $tab_3 = $nb->add('three', -label => '3. '); ################################################################### +########### ## Tab 1 ## ################################################################### +########### my $startday; my $starthour; my $endday; my $endhour; my $chkoptions; my $frm1 = $tab_1->Frame(-relief=>'groove', -label=>'SOme text here', -borderwidth=>2, )->pack(-side=>'top',-anchor=>'nw',-fill=>'both'); my $frm_start = $tab_1->LabFrame(-relief=>'groove', -label=>'question here?', -labelside=>'acrosstop', )->pack(-side=>'top', -anchor=>'nw', -fill=>'both' ); my $label1 = $frm_start -> Label(-text => 'Between ' ) -> pack(-side => 'left' , -pady =>3 ); my $startday_e= $frm_start->LabEntry(-label=>' day(s) ', -labelPack=> [qw/-side right/], -background=> 'white', -textvariable=> \$startday, -width=>10, )->pack(-side=>'left', -pady=>3, ); my $starthour_e= $frm_start->LabEntry(-label=>' hour(s) and ', -labelPack=> [qw/-side right/], -background=> 'white', -textvariable=> \$starthour, -width=>10, )->pack(-side=>'left', -pady=>3, ); MainLoop; }

In reply to Perl/Tk - UI disappears by g_speran

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.