Recent

Author Topic: OnClose event doesn't occur  (Read 2759 times)

carlangas

  • New Member
  • *
  • Posts: 49
OnClose event doesn't occur
« 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?
« Last Edit: January 21, 2009, 10:26:13 pm by carlangas »