• Login
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 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.
  • B Offline
    bizello
    last edited by 16 Dec 2010, 00:37

    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
    • D Offline
      Dan Rathbun
      last edited by 16 Dec 2010, 02:19

      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
      • H Offline
        honoluludesktop
        last edited by 16 Dec 2010, 02:31

        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 17 Dec 2010, 00:23

          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
          • D Offline
            Dan Rathbun
            last edited by 17 Dec 2010, 01:02

            RUBY RESOURCES

            I'm not here much anymore.

            1 Reply Last reply Reply Quote 0
            • D Offline
              Dan Rathbun
              last edited by 17 Dec 2010, 01:06

              @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
              • H Offline
                honoluludesktop
                last edited by 17 Dec 2010, 02:05

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

                1 Reply Last reply Reply Quote 0
                • T Offline
                  thomthom
                  last edited by 17 Dec 2010, 06:53

                  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 18 Dec 2010, 18:37

                    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
                    • T Offline
                      thomthom
                      last edited by 19 Dec 2010, 00:56

                      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
                      • D Offline
                        Dan Rathbun
                        last edited by 19 Dec 2010, 09:27

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

                        Advertisement