Re: [gtkmm] window destroy event



On Fri, 2004-05-28 at 10:43 +0200, Erwan Ancel wrote:
> I have troubles while handling the destroy event of a window: I would like
> to avoid destroying the window in some cases.
> I connect a method to the event: this works fine:
> myWindow.signal_delete_event().connect(SigC::slot(*this,
> &MyWindow::closeCrossClicked));
> 
> But In this method MyWindow::closeCrossClicked, how can I cancel the window
> destruction ?

http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/apbs06.html

You will probably find it easiest just to override on_delete_event() and
return true. Almost every application does this, so there are lots of
examples.

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]