[wxruby-users] LC_REPORT ListCtrl Confusion

Alex Fenton alex at pressure.to
Mon Apr 28 05:49:59 EDT 2008


Hi

Lucas Levin wrote:
> I'm having some trouble allowing the user to edit a multi-column
> listctrl. I can do the first column fine, simply by calling
> ListCtrl::edit_label in the activate event, but it seems impossible to
> do this for the other columns for two reasons. 1, the activate event
> doesn't allow you to get the column, and 2, edit_label onl;y works for
> the first column.
>   
I can't find a reference right now, but I have a feeling that only the 
first column is editable - I think because not all the native controls 
support editing of secondary columns.

You might look into Wx::Grid, which does support this. Its appearance is 
highly customisable so you could make it look more like a ListCtrl if 
you wished.

a



More information about the wxruby-users mailing list