sketchucation logo sketchucation
    • Login
    πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Options for Input Dialog?

    Scheduled Pinned Locked Moved Developers' Forum
    11 Posts 7 Posters 292 Views 7 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.
    • S Offline
      scetchnscribble
      last edited by

      Is there a way to include any of the following in an Input Dialog Box?

      -check boxes?
      -radio buttons?
      -sliders?

      I'm looking for a few simple, but well written, examples to learn from.

      😎

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

        Afraid not. You'll have to make a Webdialog for that.

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

        1 Reply Last reply Reply Quote 0
        • S Offline
          scetchnscribble
          last edited by

          what is the difference between an input dialog and a web dialog?

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

            Webdialogs are built from HTML+CSS+Javascript. You need to do quite a bit of extra work.

            I use the jQuery framework for my webdialogs to makes things easier. The jQuery framework has a UI widget plugin repository of pre-made Ui controls.

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

            1 Reply Last reply Reply Quote 0
            • S Offline
              scetchnscribble
              last edited by

              Ah ok, i didn't want to have to get that complicated. I was hoping it was all ruby contained. Well thanks for your help! i guess I'll just stick with making scripts that offer less options.

              Thanks Again!
              β˜€

              1 Reply Last reply Reply Quote 0
              • T Offline
                tomasz
                last edited by

                You can try wxSU - a wxRuby library ported to SU

                You will get radio buttons, sliders and more πŸ˜„ in pure Ruby.

                EDIT:
                Drawbacks:

                • the lib is 3MB compressed for PC and ca. 9MB for MAC
                • it still has bugs
                • not popular yet == weak support from the Ruby community
                  Advantages:
                • WxFormBuilder ready to help to understand a structure of a Window and do design your own
                • detailed documentation
                • pure Ruby ( main advantage over WebDialogs )

                Author of [Thea Render for SketchUp](http://www.thearender.com/sketchup)

                1 Reply Last reply Reply Quote 0
                • chrisglasierC Offline
                  chrisglasier
                  last edited by

                  @unknownuser said:

                  Advantages:
                  ...

                  • pure Ruby ( main advantage over WebDialogs )

                  Not many people speak Ruby Tomasz

                  With TBA interfaces we can analyse what is to be achieved so that IT can help with automation to achieve it.

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

                    Hehe, but those of us that learned Ruby as our first language absolutely can't stand web dialogs, because that requires HTML and js knowledge. And those are very poorly regulated languages to try and just sort of learn on a whim...

                    My concern with wxSU is that Adam Billyard ran into issues with it conflicting with his scripts. Do we know if that has been resolved?

                    Chris

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

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      tomasz
                      last edited by

                      @chris fullmer said:

                      My concern with wxSU is that Adam Billyard ran into issues with it conflicting with his scripts. Do we know if that has been resolved?

                      I believe those issues has been resolved in version 0.3. Peter has created this version after Adam's intervention.
                      This needs to be tested.

                      Author of [Thea Render for SketchUp](http://www.thearender.com/sketchup)

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

                        @scetchnscribble said:

                        I'm looking for a few simple, but well written, examples to learn from.

                        I'm looking for Ruby writers to test drive chapters 18 and 19:

                        http://www.martinrinehart.com/models/tutorial/

                        Should get you from Ruby to checkboxes fast.

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

                        1 Reply Last reply Reply Quote 0
                        • TIGT Offline
                          TIG Moderator
                          last edited by

                          @martinrinehart said:

                          @scetchnscribble said:

                          I'm looking for a few simple, but well written, examples to learn from.

                          I'm looking for Ruby writers to test drive chapters 18 and 19:
                          http://www.martinrinehart.com/models/tutorial/
                          Should get you from Ruby to checkboxes fast.

                          I'll be looking at it - several of my scripts would benefit from web-dialogs and the ability to keep them open whilst you tweak stuff interactively...
                          Later this week I'll try and feed-back...

                          TIG

                          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