Kirix Support Forums

wxAuiNotebook::DeletePage does not generate close event

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

wxAuiNotebook::DeletePage does not generate close event

Postby gnschmidt on Thu Dec 21, 2006 11:40 am

Sorry if I'm trying to catch the close event in the wrong place: I can catch and veto the close event fine if the user closes tabs by clicking on the x button, but no such event seems to be generated when I close tabs programmatically (by calling the notebook's DeletePage method).

What am I doing wrong?

I'd be grateful for all help.

PS I am using wxW 2.8.0 on XP.
gnschmidt
Registered User
 
Posts: 20
Joined: Sat Sep 30, 2006 2:59 am

Postby Ben on Sat Dec 23, 2006 3:38 am

Hi,

It could be that it's missing. Does the regular wxNotebook fire this event when DeletePage() is called? If the two are not in sync, then it's a bug that must be fixed.

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

Postby gnschmidt on Sat Dec 23, 2006 4:48 am

Thanks Ben!

I think it may be missing. I think wxNotebook fires the event and I know wxFlatNotebook does (I've just switched from wxFlatNotebook to wxAuiNotebook).

If I remember correctly, the wxAuiNotebook documentation also states that the event is fired.

Regards,
Gerald
gnschmidt
Registered User
 
Posts: 20
Joined: Sat Sep 30, 2006 2:59 am

Return to wxAUI Questions, Thoughts & Feedback