Dialog Boxes on Particular Screens

Currently working with / developing for / supporting a multi-platform
application that uses Ruby in the front-end. The application is
regularly used on systems with multiple monitors, as many as five in the
usual cases. On Windows machines, when our application opens up a dialog
box, it has the habit of opening the dialog box on the “first” screen,
even if the application is running on another screen.

Is there a way to a) obtain information on which screen the application
is currently running off of and b) force the dialog box to open on the
same screen? Thanks in advance for any help and advice.

what gui toolkit are you using? gtk2 for example provides the
Gdk::Display (http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gdk::Display)
and Gdk::Screen
(http://ruby-gnome2.sourceforge.jp/pt_BR/hiki.cgi?Gdk::Screen) classes,
which could solve your problem. not sure about other toolkits, but i
imagine most have something similar.

  • j

jake kaiden wrote in post #1002487:

what gui toolkit are you using? gtk2 for example provides the
Gdk::Display (http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gdk::Display)
and Gdk::Screen
(http://ruby-gnome2.sourceforge.jp/pt_BR/hiki.cgi?Gdk::Screen) classes,
which could solve your problem. not sure about other toolkits, but i
imagine most have something similar.

  • j

using gtk2

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs