Kirix Support Forums

wxPaneInfo::DestroyOnClose()

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

wxPaneInfo::DestroyOnClose()

Postby abligh on Thu Feb 02, 2006 2:28 pm

wxPaneInfo::DestroyOnClose() and optionDestroyOnClose appear to be unimplemented. Any chance of this being implemented (if it just hid the window, i.e. did a Close() this would be great).
abligh
Registered User
 
Posts: 59
Joined: Sun Jan 01, 2006 2:31 pm

Postby Ben on Fri Feb 03, 2006 1:24 am

Hi Alex,

I'll try to get it in for the upcoming 0.9.2

Best,
Ben
User avatar
Ben
Kirix Support Team
 
Posts: 522
Joined: Mon Dec 19, 2005 6:29 am

Postby abligh on Fri Feb 03, 2006 4:01 am

bwilliams wrote:Hi Alex,

I'll try to get it in for the upcoming 0.9.2

Best,
Ben


Thanks. Further investigation suggests that the only Destroy() needed is on the OnClose routine (the only other use of Destroy() is destroying the floating pane window itself once its child has been reparented). Is it merely a case of checking the flag before doing that? In which case I can probably send you a patch.

Did you give any thought to making various of the methods in wxFrameManager virtual by the way?

Alex
abligh
Registered User
 
Posts: 59
Joined: Sun Jan 01, 2006 2:31 pm

Postby Ben on Fri Feb 03, 2006 9:49 am

Yes it is that easy. I'd love a patch. :-) Just make sure that the corresponding wxPaneInfo also gets removed from the m_panes array-- I think that code is already there, though.

Thanks,
Ben
User avatar
Ben
Kirix Support Team
 
Posts: 522
Joined: Mon Dec 19, 2005 6:29 am

Postby vexator on Mon May 29, 2006 2:33 pm

is the patch there already? i'd do it myself but i'm afraid i'd forget sth. thanks!
vexator
Registered User
 
Posts: 17
Joined: Sat Feb 04, 2006 7:18 am

Return to wxAUI Questions, Thoughts & Feedback