[wxruby-users] Moving text on a window

Alex Fenton alex at pressure.to
Tue Dec 16 14:48:17 EST 2008


Jason Shelton wrote:
> Thank you for your response, it was very helpful.  I have another 
> question concerning this issue.  Once I have appended the selections 
> from 'list1' to 'list2', is there some sort of 'getValue' method that 
> will return the contents of the 'list2' list box, maybe into an array?  
If you want every text item in the listbox:

listbox.map { | i | listbox.string(i) }

If you want the text for selected items only:

listbox.selections.map { | i | listbox.string(i) }

a


More information about the wxruby-users mailing list