Re: Displaying a windows style message without the ok button


[ Related Articles and Replies ] [ DelphiLand FAQ ] [ Delphi Tutorials ]

Posted by webmaster Guido on December 06, 2002 at 19:59:41:

In Reply to: Displaying a windows style message without the ok button posted by Arif Shaon on December 06, 2002 at 12:59:39:

: How do I dispay a message to indicate a procedure is being executed and terminate it after the execution is finished, without having the user to click a ok button(e.g. showmessage function)? Please Help
----------

There are several possibilities:

1. Show a form of your own and hide it when the procedure ends. Example:

begin
  FormMessage.Show;
  ...
  FormMessage.Hide;
end; 

2. Put a label or a TMemo with your message text on a panel, that has its Visible property set to False. When your lengthy procedure runs, make the panel visible and at the end hide it again:

begin
  PanelMessage.Visible := True;
  ...
  PanelMessage.Visible := False;
end;

Related Articles and Replies:


[ Related Articles and Replies ] [ DelphiLand FAQ ] [ Delphi Tutorials ]