Apologies for the duplication - I should read all my mail before
replying. Oh why can't mail user agents thread properly.
Rob.
Robert May wrote:
Сергей Черниенко wrote:
LS> Change
LS> my $mw = Win32::GUI ...
LS> To
LS> our $mw = Win32::GUI ...
LS> This will allow the timer subroutine to see the $mw object.
That'll make no difference. The subroutine can already see the
lexically scoped variable.
sub CheckDir_Timer {
$mw->>Hide() if $mw->IsVisible();
$mw->>Show() unless $mw->IsVisible();
return 1;
}
Check your logic here.
If your window is visible, you hide it, then on the next line you show
it again if it's hidden (which it is because you hide it on the previous
line)
try
sub CheckDir_Timer {
if ($mw->IsVisible()) {
$mw->Hide();
}
else {
$mw->Show();
}
return 1;
}
Regards,
Rob.
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&opлk
_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users