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

WebDialog.new Documented

Scheduled Pinned Locked Moved Developers' Forum
11 Posts 4 Posters 1.3k 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.
  • M Offline
    MartinRinehart
    last edited by MartinRinehart 29 Aug 2009, 13:23

    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 29 Aug 2009, 13:29

      @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
      • T Offline
        thomthom
        last edited by 29 Aug 2009, 15:13

        @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 29 Aug 2009, 16:08

          @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 29 Aug 2009, 16:15

            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 1 Sept 2009, 13:23

              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
              • T Offline
                thomthom
                last edited by 1 Sept 2009, 13:45

                @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 1 Sept 2009, 13:50

                  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
                  • T Offline
                    thomthom
                    last edited by 1 Sept 2009, 15:02

                    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 1 Sept 2009, 17:52

                      @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 2 Sept 2009, 17:53

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

                        Advertisement