sketchucation logo sketchucation
    • Login
    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!
    🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    Webdialog and input box

    Scheduled Pinned Locked Moved Developers' Forum
    5 Posts 3 Posters 259 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      adutton
      last edited by

      I have a problem with displaying a webdialog and an input box at the same time. The web dialog shows a diagram which gives guidance on how to fill in the input box. So the web dialog is opened first followed by the input box. I can position the web dialog box but wherever it is the input box opens over it which is far from ideal. Is there a way of fixing the positions of both boxes so that they are not ontop of each other?
      Also, the web dialog is opened in a def prior to the input box but I cannot then close the webdialog programmatically.
      Thanks

      Andrew

      1 Reply Last reply Reply Quote 0
      • Chris FullmerC Offline
        Chris Fullmer
        last edited by

        Hi Andrew, what operating system are you using? And is this a plugin that you are using that does this?

        Lately you've been tan, suspicious for the winter.
        All my Plugins I've written

        1 Reply Last reply Reply Quote 0
        • A Offline
          adutton
          last edited by

          Hi Chris,
          Windows 7.
          Yes it is a plugin that I am developing in Ruby for use with Sketchup.

          1 Reply Last reply Reply Quote 0
          • A Offline
            Aerilius
            last edited by

            A (native) inputbox is always modal. I just tried it out, it opens in the center of the last active SketchUp window. While a modal dialog is active, changes to other SketchUp windows are not possible (even programmatically, ie. webdialog.set_position(100,100) ).

            We should emphasis again on the feature request to control window focus (we can bring a webdialog to the front, but not remove focus or focus the SketchUp main window).

            Is [Sketchup.set_status_text](http://www.sketchup.com/intl/en/developer/docs/ourdoc/sketchup#set_status_text) sufficient for your purpose, or can you put the input into the webdialog (or into another, not modal webdialog)?

            1 Reply Last reply Reply Quote 0
            • A Offline
              adutton
              last edited by

              You have confirmed my fear that a simple issue compromises what I can do. Unless there is a way to put an image into an input box it looks as if I will have to put the input which has about a dozen data items into the webdialog.I will have to master pushing data back to Ruby from the Webdialog.
              Thanks

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Buy SketchPlus
              Buy SUbD
              Buy WrapR
              Buy eBook
              Buy Modelur
              Buy Vertex Tools
              Buy SketchCuisine
              Buy FormFonts

              Advertisement