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.
Advertisement