Good Morning!

Good Morning!

I need to trap the frame's close event when TMyFrame=class(TFrame) is closed by pressing the X in the corner.

There is a condition that needs to bypass the 'Do you want to save the changes you made?' message.

I have tried several things but none are reliable.

Do any of you have code that can trap the close event?

Thanks…Dan’l

Comments

  1. Dan Statham Why not add a boolean property to you TFram, check it in the code where "Do you want to save..." is shown and skip that step if the boolean is true. Then you set the boolean where you detect the condition.

    ReplyDelete

Post a Comment