thomthom / SKUI

Ruby wrapper of classes that maps to GUI controls in SketchUp's UI::WebDialogs
MIT License
26 stars 14 forks source link

Request: I like to get the position of the browser window. #83

Closed GWydouw closed 10 years ago

GWydouw commented 10 years ago

You can set the dialog on a certain position on the screen. But it will be more useful when it's also possible to get the active position on the screen. This is important on the mac where when you change the size of the dialog, the bottom of the dialog stays in place instead of the top. If you know the position, you can replace the window by code.

thomthom commented 10 years ago

This is a limitation of the Ruby API. Needs to be filed as a feature request for SketchUp.

GWydouw commented 10 years ago

It's it possible to get this values through javascript?

thomthom commented 10 years ago

Afraid not. It needs to come from SketchUp.

That is, under Windows you could mess about with Win32 API calls, but that is more fragile, more complicated, and doesn't work for OSX. I don't know what one can do under OSX.