Page 1 of 1

Moving/copying a wxTreeListItem

Posted: Sat Apr 10, 2021 12:05 pm
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?