Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Listbox of JComboBox displayed on different screen

by tmf (Initiate)
on Aug 06, 2012 at 12:47 UTC ( #985695=perlquestion: print w/ replies, xml ) Need Help??
tmf has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks,

I have a problem using TK::JComboBox for my GUI.

The programm works fine and the combobox does exactly what it is supposed to. When the application is run on the second screen (using two monitors on the computer, not the main one) the listbox is being displayed on the first screen (main monitor), while the rest of the GUI is still on the other one. I do not have a lot of experience with Perl and I would be very grateful if anybody could tell me why this happens and how to change this.

Here is a small code fragment for a JComboBox. It doesn't do anything, but the problem occurs with it as well.

use Tk::JComboBox; my $sMain; $sMain = MainWindow->new(); $sMain->minsize(qw(700 400)); my $sBox = $sMain->JComboBox(-entrybackground => 'white', -choices => [qw/one two three four/], -mode => 'editable', -relief => 'sunken', -entrywidth => 70 , )->grid( -row => 1, -column => 1, -sticky => 'n', ); MainLoop;

Comment on Listbox of JComboBox displayed on different screen
Download Code
Re: Listbox of JComboBox displayed on different screen
by zentara (Archbishop) on Aug 06, 2012 at 14:34 UTC

      Thanks for the link. Indeed it covers that topic, unfortunately no one came up with a solution that fixes the problem. At least I'm not the only one dealing with it...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://985695]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2014-07-26 06:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls