WxListCtrl edit second column Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
burnertje
Earned a small fee
Earned a small fee
Posts: 19
Joined: Tue Apr 01, 2008 11:13 am

WxListCtrl edit second column

Post by burnertje » Wed Jun 04, 2008 6:28 am

Is it possible, when you have 2 columns, to edit the second column in a wxListCtrl?

so when you select an item, the first column you can edit very easy, but I can't get it to work to edit my second column.

greetz

Sof_T
Can't get richer than this
Can't get richer than this
Posts: 864
Joined: Thu Jul 28, 2005 9:48 pm
Location: New Forest, United Kingdom
Contact:

Post by Sof_T » Wed Jun 04, 2008 7:06 am

I remember trying this a couple of years ago and it ws a real pain. There are a number of posts on the forum covering this topic. Basically for the first column an edit box is automatically provided for you. For any column after this you need to catch the mouse clicks and then provide an edit box in the correct position and then handle using this to edit the item.

Sof.T
The home of Sof.T http://www.sof-t.site88.net/
Author of Programming with wxDevC++
http://sourceforge.net/projects/wxdevcpp-book/

benedicte
wxWorld Domination!
wxWorld Domination!
Posts: 1409
Joined: Wed Jan 19, 2005 3:44 pm
Location: Paris, France

Post by benedicte » Thu Jun 05, 2008 9:24 am

In such a case, the best is to use wxGrid.

Post Reply