Ciao Alex, Is it possible to enable the overloaded method ''ControlWithItems#append'' to be able to provide user data? to do this: ch = Wx::Choice.new() ch.append("pluto", 10) ch.append("pippo", 20) ch.append("paperino", 30) instead of this (the way i''ve found to get the same result): ch = Wx::Choice.new() id = ch.append("pluto") ch.set_item_data(id, 10) id = ch.append("pippo") ch.set_item_data(id, 20) id = ch.append("paperino") ch.set_item_data(id, 30) thank you. fabio. _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
Hi Fabio Fabio Petrucci wrote:> Is it possible to enable the overloaded method > ''ControlWithItems#append'' to be able to provide user data?Yes, there''s supposed to be versions of insert/append that allow you to set the client data at the same time, but for some reason they were disabled. I''ve committed a patch to enable those for the next release. Thanks for the report alex
Reasonably Related Threads
- Permissions of new files on samba with other read on.
- TreeCtrl item_data
- [766] trunk/wxruby2: Added item_data aliases for client_data functions, update doc & tests;
- Patch for app_asr.c: DTMF instead of goto
- [970] branches/wxruby2/wxwidgets_282/doc/textile/controlwithitems.txtl: Fixed a few formatting and content errors.