Moving/copying a wxTreeListItem

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
a little bit
In need of some credit
In need of some credit
Posts: 6
Joined: Sat Apr 10, 2021 11:46 am

Moving/copying a wxTreeListItem

Post by a little bit »

According to the wxTreeListCtrl API, the only way to move/copy a given wxTreeListItem from one position to another in the wxTreeListCtrl, is to recreate that wxTreeListItem using the attributes of the moved/copied source item. This is due to a lack of a method

Code: Select all

wxTreeListCtrl::InsertItem(wxTreeListItem parent, wxTreeListItem previous, wxTreeListItem item);
Is that right, or how could I do this otherwise?
Post Reply