× CodeTyphon MS Windows (XP, Vista, Win7, Win8.x and Win10) OS Development, discussions and problems

Question TSaveDialog executes two times

  • Gintas
  • Gintas's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Graphics Designer/Developer
More
10 years 1 week ago #1493 by Gintas
TSaveDialog executes two times was created by Gintas
So I got a strange behavior of TSaveDialog and other TOpenDialog. When I click cancel button in dialog it
executes again. I am using standart TSaveDialog.Execute method and hey I use that method once in procedure.
In the options I just changed overwrite prompt and that's all.

The other save dialogs works just fine so I couldn't complain LCL. I am using CodeTyphon 2.30.

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
10 years 1 week ago #1494 by Sternas Stefanos
Replied by Sternas Stefanos on topic Re: TSaveDialog executes two times
Please Sir
test and CodeTyphon 2.40

PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

  • Gintas
  • Gintas's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Graphics Designer/Developer
More
10 years 1 week ago #1499 by Gintas
Replied by Gintas on topic Re: TSaveDialog executes two times
I solved the problem. It was two button click events on TBGRAButton.
Lazarus automatically generates OnClick event so another same function in TBGRAButton
called OnButtonClick is useless.

I am glad to heard there is new release.
Attachments:

Please Log in or Create an account to join the conversation.