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


  • 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?


  • Hero Member
  • *****
  • Posts: 717
Re: Problm with desiger recognizing a dialog
« Reply #1 on: June 05, 2023, 11:54:42 pm »
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) -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6


TinyPortal © 2005-2018