Recent

Author Topic: OpenDialog does not show  (Read 2096 times)

Jesus

  • Newbie
  • Posts: 4
OpenDialog does not show
« on: November 27, 2014, 10:40:40 pm »
Hi,
New to Lazarus I'm trying to write my first app. working in Windows 7-64bits. The problem I have is that Windows commons dialogs doesn't show up. :(

Code: [Select]
procedure TForm1.MenuItemOpenProjectClick(Sender: TObject);
begin
    OpenDialog1.DoShow;
end;     
The event is executed when I click on the menu Item but no dialog. Same problem with TColorDialog.
I didn't try others Windows dialogs but I guess I woudn't have more success with them.

What am I missing?


typo

  • Hero Member
  • *****
  • Posts: 3051
Re: OpenDialog does not show
« Reply #1 on: November 27, 2014, 10:42:45 pm »
Have you tried Execute?

Jesus

  • Newbie
  • Posts: 4
Re: OpenDialog does not show
« Reply #2 on: November 27, 2014, 11:17:22 pm »
Execute! Problem solved. Thanks alot.
 :)

 

TinyPortal © 2005-2018