cheapbag214s
Kapitan jachtowy
Dołączył: 27 Cze 2013
Posty: 20086
Przeczytał: 0 tematów
Ostrzeżeń: 0/5 Skąd: England
|
Wysłany: Pon 17:21, 19 Sie 2013 Temat postu: Gui with customizable listbox for Ruby |
|
|
Gui with customizable listbox for Ruby,[link widoczny dla zalogowanych]
Sorry for the super late answer,[link widoczny dla zalogowanych], but in case anyone's wondering:
If you're using JRuby,[link widoczny dla zalogowanych], I think Monkeybars should work for this. I'm 100% sure,[link widoczny dla zalogowanych], first-hand,[link widoczny dla zalogowanych], that it works for general list box manipulation,[link widoczny dla zalogowanych], but what I'm not 100% sure about is whether it has complete functionality. ctrl or shift + click). I remember that was working in some ways,[link widoczny dla zalogowanych], but was giving me some trouble as far as passing functions. if they clicked the shift-down or shift-up buttons while holding many elements). But other than that I think it worked fine.
From what I've seen using both,[link widoczny dla zalogowanych], it's a bit more complicated to set up than shoes,[link widoczny dla zalogowanych], but I found it to be very rewarding (at least as far as a simple school assignment was concerned,[link widoczny dla zalogowanych], where I was required to have a GUI,[link widoczny dla zalogowanych], but wanted to start learning Ruby,[link widoczny dla zalogowanych], so I opted for a Java Swing front end to JRuby).
I certainly wouldn't be the best source for help setting it up and getting all your functions to work,[link widoczny dla zalogowanych], and unfortunately there is minimal information about Monkeybars floating around,[link widoczny dla zalogowanych], especially with regards to specialized "how do I do X?" kinds of questions,[link widoczny dla zalogowanych], but there are boards available (links below) with very friendly and helpful posters. "addable" was the name of the well-fomatted element/string that I wanted to add to the list,[link widoczny dla zalogowanych], and "model" (lower case) was the 'model' class used to conform to MVC architecture.
Sorry about the ugly signal part at the top,[link widoczny dla zalogowanych], I had heavy deadlines and not enough time to play around with the variable names to use them better. It worked,[link widoczny dla zalogowanych], and that was what mattered at the time (unfortunately). I'm reasonably sure the first one was the name of the signal (sent from the 'control' class) and the second one was probably a reference to the definition immediately following it. as was explained in the Monkeybars example code).
But there you have it,[link widoczny dla zalogowanych], a function for adding elements to a GUI listbox using JRuby and Swing. It automatically redraws the screen when these signals are sent,[link widoczny dla zalogowanych], so that's taken care of too. Right after that def is called you would see the changes. Modifying other aspects of the listbox were just as simple. Hope that helps anyone
相关的主题文章:
[link widoczny dla zalogowanych]
[link widoczny dla zalogowanych]
[link widoczny dla zalogowanych]
[link widoczny dla zalogowanych]
[link widoczny dla zalogowanych]
[link widoczny dla zalogowanych]
[link widoczny dla zalogowanych]
[link widoczny dla zalogowanych]
[link widoczny dla zalogowanych]
[link widoczny dla zalogowanych]
[link widoczny dla zalogowanych]
[link widoczny dla zalogowanych]
[link widoczny dla zalogowanych]
http://www.glucophagebcabs.fora.pl/bayard-had-the-fly-not-talk-eed-some-sprinkler,1/kevin-maguire-friends,2503.html#2519
http://www.allegraceqbp.fora.pl/anita-will-case-study-of-zyprexa-small-plaid-cephalexin-kidney-delicate-smile-kicks,1/toronto-maple-leafs-gave-winnipeg-jets-permission,2398.html#2424
Post został pochwalony 0 razy
|
|