WxFormBuilder
-
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 -
IF you use wx, then any user of your plugin must have wxSU installed.
Better to use the API builtin UI::WebDialog class.
-
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?
-
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. -
-
@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 -
Dan, thanks for the link. Appears to be too deep for me.
-
To build WebDialogs, you need some HTML, CSS and JS knowledge. Have a look at some beginner tutorials for those.
-
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. -
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. -
Advertisement