altF4 closure [SOLVED]

Hi,

It is a newbie question, but when a user uses the alt f4, it closes my windows, but it doesn’t stop my program.

How can I catch alt F4 or the cross icon on the window, to quit properly?

Thank you

base.win.getCloseRequestEvent(close_event_name)

and then accept that event.

yes!

A little correction, you mean base.win.setCloseRequestEvent(“MYOWNCLOSEENVENTNAMEF4”)

Thank you by the way