OnClose event doesn't occur lazarus / 10-Designer ---------------------------------------------------------------------- carlangas ยท 2009-01-20 22:59 I load a form with Form2.ShowModal, but I can't close this pressing the X button at the upper right corner. I have attached a Form2.FormClose procedure to the OnClose event, but that procedure never runs even pressing that button. I also have placed a button that should show a message and after call the FormClose procedure by invoking Close. The message is showed, but nothing else happens. I have tried other programs and work OK, so I think the OnClose event does not occur, probably because of any property, but don't know how to solve it. I am using GTK2 interface. Tried GTK and win32 and works ok. Maybe a bug in GTK2 interface?