Options for Input Dialog?
-
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.
-
Afraid not. You'll have to make a Webdialog for that.
-
what is the difference between an input dialog and a web dialog?
-
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.
-
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!
-
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 )
-
@unknownuser said:
Advantages:
...- pure Ruby ( main advantage over WebDialogs )
Not many people speak Ruby Tomasz
-
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
-
@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. -
@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.
-
@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...
Advertisement