editable wxCheckListBox? 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
tasdev
Knows some wx things
Knows some wx things
Posts: 29
Joined: Tue Apr 26, 2005 12:18 am
Location: Australia

editable wxCheckListBox?

Post by tasdev »

I need to allow the user to edit the strings in a wxCheckListBox and allow them to re-order the items in the wxCheckListBox.

Can I do this with wxCheckListBox?

If not, what would be the best way to implement this? Use a wxListCtrl? wxGrid? wxDataViewCtrl? (does wxDataViewCtrl work on wxMSW/wxMac?)

Thanks for any help,

tasdev
mc2r
wxWorld Domination!
wxWorld Domination!
Posts: 1195
Joined: Thu Feb 22, 2007 4:47 pm
Location: Denver, Co
Contact:

Post by mc2r »

I don't think you can do this with wxCheckListBox. But you can make your own custom wxCheckListBox that catches mouse events and calls wxListBox::HitTest(wxPoint) to determine which item the user is dragging or droping on and then use Delete and InsertItem to shuffle the items about appropriatly.

-Max
tasdev
Knows some wx things
Knows some wx things
Posts: 29
Joined: Tue Apr 26, 2005 12:18 am
Location: Australia

Post by tasdev »

Thanks Max. Any idea about user editing of the labels?
GeraldG
Experienced Solver
Experienced Solver
Posts: 85
Joined: Mon May 16, 2005 12:30 pm

Post by GeraldG »

Post Reply