Before I begin, this is an awesome library! Congratulations.
I don't think I understand what the following event is.
EVT_AUINOTEBOOK_END_DRAG
I'm trying to trigger off a function after the user has finished dragging a tab. I have managed to use EVT_AUINOTEBOOK_PAGE_CHANGED without any issues, but I can't get any of the DRAG (end, begin, motion) related events to work. In my app there are ten tabs at the top, which the user can drag horizontally to reorder. I'd like to fire-off a function after the re-order has been done, wouldn't EVT_AUINOTEBOOK_END_DRAG be the correct event macro to use?
In the events table, I'm doing this:
- Code: Select all
EVT_AUINOTEBOOK_END_DRAG (mNOTEBOOK, myPanel::tabDragged)
EVT_AUINOTEBOOK_PAGE_CHANGED (mNOTEBOOK, myPanel::tabChanged)
Whereas, tabChanged executes just fine, tabDragged doesn't trigger at all.
Edit: I've enabled the following styles wxAUI_NB_TAB_MOVE|wxAUI_NB_SCROLL_BUTTONS|wxAUI_NB_TAB_SPLIT
Any help appreciated