HtmlDialog position

HtmlDialog position

Postby bomastudio » Fri Aug 24, 2018 7:30 am

In a dual monitor config, how can I check in which monitor SU is running, so I can locate correctly a HTMLDialog?

For example, immagine the following config:

MONITOR 1 on right
MONITOR 2 on left (where SU is running)

and the following code

Code: Select all
dialog = UI::HtmlDialog.new({
           :dialog_title => "MyWindow",
           :scrollable => true,
           :resizable => true,
           :width => 300,
           :height => 250,
           :left => 0,
           :top =>0,
           :style => UI::HtmlDialog::STYLE_UTILITY
         })


The dialog will apper outside from SU, in the MONITOR 1 instead of MONITOR 2 where is SU.
0
User avatar
bomastudio 
PluginStore Author
PluginStore Author
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 


 

Return to Developers' Forum

Who is online

Users browsing this forum: No registered users and 9 guests

Visit our sponsors: