Link to home
Start Free TrialLog in
Avatar of CodedK
CodedKFlag for Greece

asked on

ShowMessage

Hi.

I want to show a message when a proc starts and then terminate it when the calculation end.
(form is hidden)
How can i show a message without the ok button and then kill it ?
Avatar of Tomas Helgi Johannsson
Tomas Helgi Johannsson
Flag of Iceland image

    Hi!
Why don't you create a Form displaying the message in a Label
Displaying and hiding form is easy ;)

Regards,
  Tomas Helgi
Another reason to go with TomasHelgi is that the ShowMessage and MessageDlg are modal, so until it is terminated, it won't execute the next line of code. So, even if you use your form to display the msg, it should be modalless.
Avatar of CodedK

ASKER

Hi, thanks for the replys.
If there is no other way to handle the message of course i'll have to use the form...
I was thinking if someone has a source or a customized message dialog that can accept commands.

MessageDlg('Welcome!', mtCustom, [], 0) ;
ASKER CERTIFIED SOLUTION
Avatar of ginsonic
ginsonic
Flag of Romania image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CodedK

ASKER

Thank you GinSonic :)
My pleasure!