Comment by Ryan Mulder (rjmyst3) - Monday, 11 February 2008, 14:25 GMT+1
Could you add some detail here? What would you want these editors to do? Would the wxListCtrl column editor imply that the wxListCtrl is in report mode?
Comment by Salvo Isaja (salvois) - Friday, 29 February 2008, 12:50 GMT+1
Interesting topic. I'm still a beginner with wxWidgets, but have some experience on Win32. I assume Win32 on the following, hope this is applicable to wx in general. You can add columns to a ListView (the Win32 control behind wxListCtrl) even if it's not in report mode. Those columns will be used *when* the ListView is switched to report mode, hence a general column editor would do the work. I'd find it especially useful for number of columns / column title / default alignment / default width (although I usually save widths set by the user in the registry or the like). The default width could be provided with the already available column drag in the designer. OTOH I don't find the *item* editor very useful, because I think it's failry usual that you know items at runtime only (e.g. database query, I use ListViews quite a lot for database results).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Comment by Ryan Mulder (rjmyst3) - Monday, 11 February 2008, 14:25 GMT+1
Could you add some detail here? What would you want these editors to do? Would the wxListCtrl column editor imply that the wxListCtrl is in report mode?
Comment by Salvo Isaja (salvois) - Friday, 29 February 2008, 12:50 GMT+1
Interesting topic. I'm still a beginner with wxWidgets, but have some experience on Win32. I assume Win32 on the following, hope this is applicable to wx in general. You can add columns to a ListView (the Win32 control behind wxListCtrl) even if it's not in report mode. Those columns will be used *when* the ListView is switched to report mode, hence a general column editor would do the work. I'd find it especially useful for number of columns / column title / default alignment / default width (although I usually save widths set by the user in the registry or the like). The default width could be provided with the already available column drag in the designer. OTOH I don't find the *item* editor very useful, because I think it's failry usual that you know items at runtime only (e.g. database query, I use ListViews quite a lot for database results).