Hi Ben,
Firstly - great work. Just started having a crack at integrating it (from wx 2.. Excellent stuff.
There's just one small issue. It seems that it is not possible to drag pages into empty notebooks.... This is quite a big problem to me. Am I missing something?
Cheers,
James
Kirix Support Forums
Can't drag tabs into empty notebooks
5 posts
• Page 1 of 1
- jfrench
- Registered User
- Posts: 14
- Joined: Mon Dec 18, 2006 6:58 am
-
Ben - Kirix Support Team
- Posts: 525
- Joined: Mon Dec 19, 2005 6:29 am
Hey Ben,
Any word on this? This is probably my only major problem with using wxAUI....
About to start coding a layout system using wxAUI. Quite excited
Cheers,
James
Any word on this? This is probably my only major problem with using wxAUI....
About to start coding a layout system using wxAUI. Quite excited
Cheers,
James
- jfrench
- Registered User
- Posts: 14
- Joined: Mon Dec 18, 2006 6: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
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
- jfrench
- Registered User
- Posts: 14
- Joined: Mon Dec 18, 2006 6:58 am
Hi,
Thanks for researching this. A patch would be great. If you can, submit it to both forums, as that will ensure better coverage.
Thanks much,
Ben
Thanks for researching this. A patch would be great. If you can, submit it to both forums, as that will ensure better coverage.
Thanks much,
Ben
-
Ben - Kirix Support Team
- Posts: 525
- Joined: Mon Dec 19, 2005 6:29 am
5 posts
· Page 1 of 1
Return to wxAUI Questions, Thoughts & Feedback