Hi Stefan,
I don't have a dual-monitor setup, but i have seen this happen sometimes & seems like i did something to keep it from happening as much - something a/b calculating the posn of the popup relative to the widget locn, but don't remember. What happens if you substitute Tk's regular BrowseEntry widget instead? There are several annoyances in Perl/Tk and i don't think any of them will ever get fixed, since it's author Nick Ing Simmons is deceased (God rest his soul). Let me know if BrowseEntry works ok, then if i can figure out what's wrong w/JBrowseEntry, i'll see if i can fix it.
Thanks,
Jim
--- On Thu, 9/2/10, Stefan Gipper via RT <bug-Tk-JBrowseEntry@rt.cpan.org> wrote:
From: Stefan Gipper via RT <bug-Tk-JBrowseEntry@rt.cpan.org>
Subject: [rt.cpan.org #60968] tk using multiple monitors with dropdownmenus
To:
Date: Thursday, September 2, 2010, 3:24 AM
Thu Sep 02 04:24:35 2010: Request 60968 was acted upon.
Transaction: Ticket created by STEFANOS
Queue: Tk-JBrowseEntry
Subject: tk using multiple monitors with dropdownmenus
Broken in: 4.75
Severity: Normal
Owner: Nobody
Requestors: stefanos@cpan.org
Status: new
Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=60968 >
are there known issues with perl tk using multiple monitors like using
software (GUI) that got moved to monitor 2 or 3 causes dropdownmenus
(example Modul Tk-JBrowseEntry, see picture, move the window to screen 2
and click on dropdown, the list is on screen1 not screen2) to open on
monitor1 or similiar behavior?
example code:
use Tk;
use Tk::JBrowseEntry;
my $mw = MainWindow->new;
$mw->title("Dropdowntest");
my $var;
my $widget = $mw->JBrowseEntry(
-label => 'Normal:',
-variable => \$var,
-state => 'normal',
-choices => [qw(pigs cows foxes goats)],
-width => 12
)->pack(
-side => 'top',
-pady => '10',
-anchor => 'w');
MainLoop;