imbeyondboredom has asked for the wisdom of the Perl Monks concerning the following question:
Hey all, i am trying to use the Tk::MatchEntry module with a window that is always on top. The problem is that the popup list for Tk::MatchEntry is hidden under the window when the user types. Do you all have any suggestions?
Attempts to fix include:
Background:
use Tk; require Tk::StayOnTop; require Tk::MatchEntry; $desc = ""; @opts = ("test","one","two","three"); $window = MainWindow->new; $window->Button(-text => "Button")->grid(-row=>1,-column=>0); $Entry = $window->MatchEntry(-textvariable => \$desc)->grid(-row=>0,-c +olumn=>0); $Entry->choices(\@opts); #$window->after(1000,sub {$window->attributes(-topmost => 1)}); $window->after(1000,sub {$window->stayOnTop()}); MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help preventing Tk::StayOnTop from hiding Tk::MatchEntry pop up list
by imbeyondboredom (Initiate) on Jul 01, 2009 at 17:13 UTC | |
by Anonymous Monk on Jul 01, 2009 at 17:24 UTC | |
|
Re: Help preventing Tk::StayOnTop from hiding Tk::MatchEntry pop up list
by zentara (Cardinal) on Jul 01, 2009 at 18:21 UTC |