Using the Lazarus IDE => Designer => Topic started by: carlangas on January 20, 2009, 11:59:29 pm

Title: OnClose event doesn't occur
Post by: carlangas on January 20, 2009, 11:59:29 pm
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?
TinyPortal © 2005-2018