How to make a frame/dialog/window always on top?
-
webdialog.execute_script('window.blur()')solves everything instantly. Did not know I could do that. Thanks a lot, driven!Thanks also to others for staying with my problem for so long.
And yes, wxSU is available for Mac.
Incidentally, I haven't tested any of this on Windows yet, so we'll see what happens when I try there. This might not be over yet.
-
@alexmojaki said:
[Thanks a lot, driven!
Glad to assist, I'm not a rubyist, but I do alot of mac testing, and ('window.blur()') buggered something up recently, so I tested ('window.focus()') to try to fix that and it was fresh in my mind... chance
@unknownuser said:
And yes, wxSU is available for Mac.
whenever I've tested anything to do with wxSU it plays havoc on the mac, it can work, but little else will after installing it, I now treat it with the same contempt as a lot of people treat MacPorts... use at your own peril.
john
-
@alexmojaki said:
Incidentally, I haven't tested any of this on Windows yet, so we'll see what happens when I try there. This might not be over yet.
Aaaand...I'm back! Indeed, this solution doesn't really work on Windows, because as soon as window.blur() is called, it doesn't just remove focus from the dialog, but from the whole Sketchup application! Sketchup goes into the background, yet somehow it is the window that is open according to the taskbar, and if you click on it in the taskbar to try and reopen it it minimises it.
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