Salut Bart Broersma !
BB> Hi All,Qestion: How do I display a simple messagebox like thing,
BB> without any buttons or other controls, that will display a message and
BB> will be removed from the screen after some other task (copy files) is
BB> complete ?(Delphi
BB>
1.0)Like:...DisplayMessage;...OpenTheFiles;CopyTheFiles;CloseTheFiles;...
BB> moveMessageFromScreen;...Any suggestions ?
Build a form with the message you wants to display. Create a method
for this form like this:
procedure TForm1.DoTheJob;
begin
Show;
OpenTheFiles;
CopyTheFiles;
CloseTheFiles;
Close;
end;
Then from another form, call Form1.DoTheJob.
In the Open, Copy and Close procedure, you can update the Form1
message (put some labels on the form, don't forget to call
Label1.Update to update the screen. During the processing, do'nt
forget to call Application.processMessages often enough to let other
applications run smootly.
Amiti‚s,
{-Francois Piette-}
francois.piette@ping.be
http://www.rtfm.be/fpiette
--- SvFido 1.32
---------------
* Origin: OverByte BBS (Embourg-Belgium) 32-4-3651395 VFC/V34+ (2:293/2202)
|