Mac Webdialog opens in background
-
...still having no success with getting Mac Webdialogs to open 'on top'. Doesn't anyone know the solution?
-
edited...does not work.
-
Here's another idea. Does anyone know of any Ruby script that has a working Webdialog for Mac's (i.e. dialog does not open in background).
-
I tried several with no luck. That was my idea as well.
The only one I know are from Google
( If the instructor/ mentor is one of them ) -
Here's what I do: I detect if the user is on a mac, and if so I open the dialogs with "show_modal". Modal dialogs on the PC are truly modal, meaning when they're visible you can't click on anything else in SketchUp, but on the mac they aren't truly modal... they just float on top of everything.
if is_mac == true dialog.show_modal else dialog.show endIt's a bit hacky, but it works.
-
-
Not-Really-Modal modal window... would never have though of trying that.
I feel there should be a list of SU Ruby tricks. And this should be on the list.
btw,how do you find out if SU is running on a mac?
-
PLATFORM = (Object;;RUBY_PLATFORM =~ /mswin/i) ? ;windows ; ((Object;;RUBY_PLATFORM =~ /darwin/i) ? ;mac ; ;other)edit: It's a one-liner.
azuby
-
Just had another though, if you really want a modal window on mac? Not possible?
-
@thomthom said:
Just had another though, if you really want a modal window on mac? Not possible?
Not currently possible, unfortunately.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginAdvertisement