Hi again, I''m still struggeling with wxRuby/wxWidgets ListCtrl. Now I would like to add images to some specific cells/columns. First problem: API docs are unclear. There is a section about "ListCtrl#set_item_column_image" but it seems that this method does not exist. Actually the text in this section references to "ListCtrl#set_item_image" but it''s not clear to me how I can add for example, an image to cells in the third column. Second problem: Calling "ListCtrl#set_item_image(item, image) does not work for me. I always have to use three paremeters when calling set_item_image. Regards, Timo
Timo Springmann wrote:> API docs are unclear. There is a section about > "ListCtrl#set_item_column_image" but it seems that this method does > not exist. Actually the text in this section references to > "ListCtrl#set_item_image" but it''s not clear to me how I can add for > example, an image to cells in the third column.Thanks for the report. It looks like this method should be there in the API but is missing. Since it''s documented and necessary we''ll aim to fix this bug, but until then I think the only way to have an image other than in the first column is to use LC_VIRTUAL and override on_get_item_column_image, which should be present.> Second problem: > Calling "ListCtrl#set_item_image(item, image) does not work for me. I > always have to use three paremeters when calling set_item_image.Thanks again, the shorter alternative should be there but is missing. http://rubyforge.org/tracker/index.php?func=detail&aid=27358&group_id=35&atid=218 a
Hi Alex, Am 27.10.2009 um 14:38 schrieb Alex Fenton:> Since it''s documented and necessary we''ll aim to fix this bug, but > until then I think the only way to have an image other than in the > first column is to use LC_VIRTUAL and override > on_get_item_column_image, which should be present.I would like to, but I cannot find a way to get ListCtrl with LC_VIRTUAL sortable by clicking in the header column. Is this intended, a restriction or I''m just missing any secret options? Regards, Timo