• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

Webdialog and input box

Scheduled Pinned Locked Moved Developers' Forum
5 Posts 3 Posters 238 Views
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 15 Mar 2013, 11:28

    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
    • C Offline
      Chris Fullmer
      last edited by 15 Mar 2013, 12:59

      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 15 Mar 2013, 15:09

        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 16 Mar 2013, 12:47

          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 16 Mar 2013, 19:04

            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
            1 / 1
            • First post
              1/5
              Last post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement