sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    WebDialog.new Documented

    Scheduled Pinned Locked Moved Developers' Forum
    11 Posts 4 Posters 1.3k Views 4 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.
    • M Offline
      MartinRinehart
      last edited by MartinRinehart

      Alternate to the API docs, with help. This is for PC:

      title - string - This text will appear in the title bar of your WebDialog

      scrollable - boolean - This is a NOP. You get scrollbars, regardless. Workaround: <body scroll=no>.

      key - string - If this is nil or an empty string, your dialog's size/location is stored in "HKEY_CURRENT_USER/Software/Google/SketchUp7/WebDialog_". You should definitely include here the name of your Ruby, which will be concatenated:
      "HKEY_CURRENT_USER/Software/Google/SketchUp7/WebDialog_MyRuby"

      width, height, left, top - integers - size/location, in pixels, of the first appearance of your WebDialog. All subsequent appearances will be taken from the registry entry.

      resizeable - boolean - if false, your user cannot resize the dialog. Defaults to true, if omitted.

      Edited to include help from Thomas Thomassen and Jim Foltz. Thanks guys!

      Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

      1 Reply Last reply Reply Quote 0
      • J Offline
        Jim
        last edited by

        @martinrinehart said:

        boolean - (This appears in Lininger's article re Ruby-JS communication. Anyone have a clue what this does?)

        resizable, I think?

        Hi

        1 Reply Last reply Reply Quote 0
        • thomthomT Offline
          thomthom
          last edited by

          @martinrinehart said:

          scrollable - boolean - This is a NOP. You get scrollbars, regardless.

          Workaround: <body scroll="no">

          Thomas Thomassen — SketchUp Monkey & Coding addict
          List of my plugins and link to the CookieWare fund

          1 Reply Last reply Reply Quote 0
          • M Offline
            MartinRinehart
            last edited by

            @jim said:

            resizable, I think?

            Right. Thanks.

            Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

            1 Reply Last reply Reply Quote 0
            • M Offline
              MSP_Greg
              last edited by

              Re scrollbars, for IE use the following in the body css

              overflow:auto;

              This shows scrollbars if they're needed, otherwise they disappear

              Greg

              1 Reply Last reply Reply Quote 0
              • M Offline
                MartinRinehart
                last edited by

                Now, how do we bridge the gap between this post and the official docs?

                Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

                1 Reply Last reply Reply Quote 0
                • thomthomT Offline
                  thomthom
                  last edited by

                  @martinrinehart said:

                  Now, how do we bridge the gap between this post and the official docs?

                  I added a link to this thread in this thread http://forums.sketchucation.com/viewtopic.php?f=180&t=17047 which Scott uses to update the docs.

                  Thomas Thomassen — SketchUp Monkey & Coding addict
                  List of my plugins and link to the CookieWare fund

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    Jim
                    last edited by

                    I'll ask Scott if filing bug reports would help him. That way, he would not need to check the thread and just use the bug reporting system he already uses for code.

                    Hi

                    1 Reply Last reply Reply Quote 0
                    • thomthomT Offline
                      thomthom
                      last edited by

                      Good idea - that thread is very long now.

                      Thomas Thomassen — SketchUp Monkey & Coding addict
                      List of my plugins and link to the CookieWare fund

                      1 Reply Last reply Reply Quote 0
                      • J Offline
                        Jim
                        last edited by

                        @martinrinehart said:

                        Now, how do we bridge the gap between this post and the official docs?

                        Scott says Thomas' thread is "still the best place to report doc errors or contribute examples, etc."

                        Report Ruby bugs and Ruby documentation issues in this thread.

                        Hi

                        1 Reply Last reply Reply Quote 0
                        • M Offline
                          MartinRinehart
                          last edited by

                          @jim said:

                          Report Ruby bugs and Ruby documentation issues in this thread.

                          Done. Thanks.

                          Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

                          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