by jfrench on Wed Jan 03, 2007 5:58 am
Ben,
I have a fix for this. It was simple. All that needed to change was the hit testing logic in wxAuiNotebook::OnTabDragMotion/OnTabEndDrag. Instead of looking for a wxAuiTabCtrl (which doesn't exist until there's a page), look for a wxAuiNotebook and then call GetActiveTabCtrl() to get the tab ctrl (which creates one if there isn't one already). The only other thing was to call UpdateTabCtrlHeight() just before DoSizing().
Do you want me to submit a patch to the Kirix patch forum or direct to wx? I presume the patch should be against wx cvs head?
By the way, now I've got into coding my layout manager I realise that what I need is the ability to tear off tabs into new panes, and back into notebooks (as has been mentioned before). I reckon this should be mostly possible from user code, providing the events are there. I'll let you know of anything interesting.
Cheers!
James