Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: Can't get Dialog or messageBox to work from button

by SwaJime (Scribe)
on Jan 13, 2016 at 15:12 UTC ( [id://1152690]=note: print w/replies, xml ) Need Help??


in reply to Re: Can't get Dialog or messageBox to work from button
in thread Can't get Dialog or messageBox to work from button

Well, this is almost solved. I have an external monitor attached to my MacBook Pro. When I run my example it runs on the laptop monitor (which is on my right). And the dialog shows up on the laptop monitor on the top left of the screen. However, if I first move the main application to the monitor, then when I press the button, the Dialog is nowhere to be found! I can't find it on either monitor.

Does anybody know where the documentation for Tk::Popup is at? Or know what I can do to get the dialog displayed onscreen in this case?

  • Comment on Re^2: Can't get Dialog or messageBox to work from button

Replies are listed 'Best First'.
Re^3: Can't get Dialog or messageBox to work from button
by Anonymous Monk on Jan 13, 2016 at 19:28 UTC

      Thanks again :-)

      I was able to get this work after looking at http://search.cpan.org/dist/Tk/pod/Popup.pod with the following line changed:

      my (@popup_opts) = (-popover => $mw, -overanchor=>'c', -popanchor=>'c');

      It is working the way I want it to now. Thank you so much for your help. :)

      John

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1152690]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-20 06:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found