sketchucation logo sketchucation
    • 登入
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    ⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update

    How to make a frame/dialog/window always on top?

    已排程 已置頂 已鎖定 已移動 Developers' Forum
    23 貼文 7 Posters 3.1k 瀏覽 7 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • A 離線
      alexmojaki
      最後由 編輯

      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.

      1 條回覆 最後回覆 回覆 引用 0
      • D 離線
        driven
        最後由 編輯

        @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

        learn from the mistakes of others, you may not live long enough to make them all yourself...

        1 條回覆 最後回覆 回覆 引用 0
        • A 離線
          alexmojaki
          最後由 編輯

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

          1 條回覆 最後回覆 回覆 引用 0
          • 1
          • 2
          • 2 / 2
          • 第一個貼文
            最後的貼文
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement