Kirix Support Forums

Calling AddPane() on wxDialog & derived classes thereof

Please post all general questions, comments, bug reports, and any other wxAUI feedback here.

Calling AddPane() on wxDialog & derived classes thereof

Postby abligh on Sun Jan 01, 2006 2:34 pm

Is calling AddPane() on wxDialog & derived classes thereof supported (presuming I remove the titlebar from the dialog itself), thereby giving me a dockable dialog?
abligh
Registered User
 
Posts: 59
Joined: Sun Jan 01, 2006 2:31 pm

Postby Ben on Sun Jan 01, 2006 2:46 pm

Any window derived from wxTopLevelWindow (such as wxDialog) shouldn't be managed by wxAUI. The reason is that wxAUI performs reparenting functions which wont work properly on top level windows. The solution is to instead implement your dialog on a wxPanel. The panel can then be managed with wxAUI.

Right now, only a mini frame is supported on wxAUI. I imagine that, in the future, we will support a style for a full dialog frame.

All the best,
Ben
User avatar
Ben
Kirix Support Team
 
Posts: 525
Joined: Mon Dec 19, 2005 6:29 am

Postby abligh on Sun Jan 01, 2006 3:05 pm

OK, that would be useful, as right now I don't think you can load a wxPanel from XML, whereas you can do so with a wxDialog. I shall see if I can write a wxPanel XML loader.
abligh
Registered User
 
Posts: 59
Joined: Sun Jan 01, 2006 2:31 pm

Return to wxAUI Questions, Thoughts & Feedback