sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    WxFormBuilder

    Scheduled Pinned Locked Moved Developers' Forum
    11 Posts 4 Posters 1.9k 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.
    • B Offline
      bizello
      last edited by

      Hi guys,
      I need to build a interface for a sketchup plugin.
      This interface has several data inputs like checkbox, radio, text and dropdown list. Sure, there is a OK button to send data to ruby code for processing. There is a cancel button too.
      I downloaded wxFormBuilder wich you can build you form too easy.
      The question: is possible using a wxFormBuilder form with ruby and Sketchup API? If yes, how?
      Building interfaces have being a problem to me. I can't do this. The dialogs don't close, I don't know how to send data and more and more. May be this is my limit? I don't know.
      I needed to do the sketchup to work with Sqlite3. A friend of mine have teached me about data bases. Fine, that's it. It's working.
      Someone can teach me about build interfaces for Sketchup plugins.
      My work is slow becouse I can't solve this interface problem. This is the big problem, in this time.
      Thanks for help.
      Bizlo

      Sérgio A.Bizello

      1 Reply Last reply Reply Quote 0
      • Dan RathbunD Offline
        Dan Rathbun
        last edited by

        IF you use wx, then any user of your plugin must have wxSU installed.

        Better to use the API builtin UI::WebDialog class.

        I'm not here much anymore.

        1 Reply Last reply Reply Quote 0
        • honoluludesktopH Offline
          honoluludesktop
          last edited by

          Hi Dan, and others, I have looked at that api page, but so far, it remains "Greek" to me. Do you know of any plugins (simple is best for me) on this site that use the UI::WebDialog Class, so that I can look at it as an example?

          1 Reply Last reply Reply Quote 0
          • B Offline
            bizello
            last edited by

            Hi Dan,
            Yes, wx is required and this is write at code's beggining. May be a problem the user needs installing it before.
            Other ask, wxFormBuilder shows code in C++, Python and XRC. Is it works in ruby? Sorry this ask, but I'm a designer that wants programming.
            Another thing... wx creates very rows of code. Is possible have a .rb file with only the dialog's code? How can I call a function inside a file from other file? For example: I have functions inside a func.rb file, wich they are called and used by the main routine inside a main.rb file. Is it possible?
            As honoluludesktop, I would like to see a plugin made with UI::Webdialog. I've tried to use it but I didn't do work.
            One example with an elaborated dialog window (radio, pulldow box, text, etc) and how send data to plugin's code, could be very good to learn.
            Thanks for help.

            Sérgio A.Bizello

            1 Reply Last reply Reply Quote 0
            • Dan RathbunD Offline
              Dan Rathbun
              last edited by

              RUBY RESOURCES

              I'm not here much anymore.

              1 Reply Last reply Reply Quote 0
              • Dan RathbunD Offline
                Dan Rathbun
                last edited by

                @honoluludesktop said:

                Do you know of any plugins (simple is best for me) on this site that use the UI::WebDialog Class, so that I can look at it as an example?

                There is a simple example in ThomThom's (PDF) booklet...

                WebDialogs - The Lost Manual
                by Thomas Thomassen
                http://forums.sketchucation.com/download/file.php?id=36664

                I'm not here much anymore.

                1 Reply Last reply Reply Quote 0
                • honoluludesktopH Offline
                  honoluludesktop
                  last edited by

                  Dan, thanks for the link. Appears to be too deep for me.

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

                    To build WebDialogs, you need some HTML, CSS and JS knowledge. Have a look at some beginner tutorials for those.

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

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      bizello
                      last edited by

                      Hi guys,

                      Dan, very thanks for the link. The PDF file is excelent. Show how to do, step by step.
                      I did my first Webdialog works. Very simple, but works.
                      Thanks to thomthom again (is not first time he help me) by the "Lost Manual".
                      Course I'll have to learn JS.
                      Now... back to work...
                      Thank you a lot.

                      Sérgio A.Bizello

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

                        I can strongly recommend the usage of Javascript frameworks that takes care of many of the cross platform issues - as well as simplifying many of the common tasks.
                        My personal favourite is jQuery.

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

                        1 Reply Last reply Reply Quote 0
                        • Dan RathbunD Offline
                          Dan Rathbun
                          last edited by

                          @bizello said:

                          ... I'll have to learn JS.

                          JScript User's Guide (Windows Scripting - JScript)

                          JScript Language Reference (Windows Scripting - JScript)

                          I'm not here much anymore.

                          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