Ace128 has asked for the wisdom of the Perl Monks concerning the following question:
However, this isnt really as nice as I want it. First off, I loose focus from the Entry (eventhough I do the ->focus thingy). And the old meny is floating and doesnt disapear (what its supposed to do, when the db data is updated as user types something else or so). It's also supposed to work pressing.. say.. down arrow on keyboard, and then be able of selecting from this "menu".$fastSearchMenu = $mw->Menu(-tearoff => 0); foreach my $row (@$tbl_array_ref) { $fastSearchMenu->add ('command', -label=> $row->{'path'}, -command => sub { } ); } #$menu->add('separator'); $fastSearchMenu->Popup(-popover => 'cursor'); #$fastSearchMenu->Post(300, 300); $full_PathEntry->focus();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Autocompletion simulated in Tk
by mawe (Hermit) on Jul 16, 2005 at 05:03 UTC | |
by Ace128 (Hermit) on Jul 16, 2005 at 13:15 UTC | |
by mawe (Hermit) on Jul 16, 2005 at 21:38 UTC | |
by Ace128 (Hermit) on Jul 16, 2005 at 22:28 UTC | |
|
Re: Autocompletion simulated in Tk
by zentara (Cardinal) on Jul 16, 2005 at 11:52 UTC | |
by Ace128 (Hermit) on Jul 16, 2005 at 22:29 UTC |