Welcome, Guest
Username: Password: Remember me
CodeTyphon MS Windows (Win7, Win8.x, Win10 and Win11) OS Development, discussions and problems
  • Page:
  • 1

TOPIC:

TSaveDialog executes two times 12 years 2 months ago #1493

  • Gintas
  • Gintas's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Graphics Designer/Developer
  • Posts: 32
  • Thank you received: 3
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.

Re: TSaveDialog executes two times 12 years 2 months ago #1494

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4506
  • Thank you received: 1100
Please Sir
test and CodeTyphon 2.40
PilotLogic Architect and Core Programmer

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

Re: TSaveDialog executes two times 12 years 2 months ago #1499

  • Gintas
  • Gintas's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Graphics Designer/Developer
  • Posts: 32
  • Thank you received: 3
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.

  • Page:
  • 1