Now that I've gotten moving on the project I have run into a few issues. Perhaps it's just the way I'm using things.
I have a pane (wxWindow) that contains display items (wxPanel). The wxWindow contains a sizer that's responsible for determining how big the pane should be. When an item is added or removed I called Layout and Fit then call the wxAUDManager.Update(). It works very well when the pane is docked.
As soon as the pane is undocked it no longer sizes correctly and has the original size rather than the updated one.
Also, if you dock it on the side there seems to be no way to rearrange the sizer. Would it be possible to add an event that's fired when a pane is docked/undocked? It's the only way I can think of then being able to change teh sizer from wxHORIZONTAL to wxVERTICAL
Kirix Support Forums
Pane Dock/Undock size problem
2 posts
• Page 1 of 1
Re: Pane Dock/Undock size problem
Yes, this is a very good idea (to add an event). For the time being, I suggest you derive your own class from wxAuiManager and add a hook to DoFrameLayout() or Update() to get the message you need. This solution should work well for you.
Ben
Ben
Ben Williams
Kirix Support Team
Kirix Support Team
-
Ben - Kirix Support Team
- Posts: 525
- Joined: Mon Dec 19, 2005 6:29 am
2 posts
· Page 1 of 1
Return to wxAUI Questions, Thoughts & Feedback