Recent

Author Topic: Problm with desiger recognizing a dialog  (Read 1601 times)

waltfair

  • New Member
  • *
  • Posts: 21
  • Walt Fair, PHD, PE. Engineer and software junkie
Problm with desiger recognizing a dialog
« on: June 05, 2023, 10:53:17 pm »
I have a small program that needs the TFileOpen Dialog.
I added the dialog to the form and it shows both on the form and in the designer-generated code for the TForm, but when I try to use the dialog with OpenDialog1.Execute, the compiler complains that the OpenDialog1 identifier is not found. The Component List clearly shows the component.
I have had similar trouble with other components added to the form as well, such as TEdit.
Is there anything special that needs to be done to make the components available to my code?

cdbc

  • Hero Member
  • *****
  • Posts: 995
    • http://www.cdbc.dk
Re: Problm with desiger recognizing a dialog
« Reply #1 on: June 05, 2023, 11:54:42 pm »
Hi
Attached is a quick'n'dirty, that works, maybe you can spot a difference to yours...
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

 

TinyPortal © 2005-2018