Recent

Author Topic: [SOLVED] How can I ask a question before closing the program?  (Read 219 times)

Nera

  • Full Member
  • ***
  • Posts: 103
How can I ask a question before closing the program?

"DO YOU WANT TO END THE PROGRAM?"
« Last Edit: July 16, 2020, 04:36:04 pm by Nera »

Blaazen

  • Hero Member
  • *****
  • Posts: 2919
  • POKE 54296,15
    • Eye-Candy Controls
Re: How can I ask a question before closing the program?
« Reply #1 on: July 16, 2020, 04:27:06 pm »
Use the OnCloseQuery event of the main form of your app. Obviously, you have to set the CanClose parameter.
Lazarus 2.1.0 r63881 FPC 3.3.1 r40507 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

Nera

  • Full Member
  • ***
  • Posts: 103
Re: How can I ask a question before closing the program?
« Reply #2 on: July 16, 2020, 04:35:13 pm »
Use the OnCloseQuery event of the main form of your app. Obviously, you have to set the CanClose parameter.

Thank you very much. It was just what I needed!

 

TinyPortal © 2005-2018