Forum: Object-Pascal / Delphi-Language
Delphi
by WojTec,
30. Jun 2011
Thanks guys. Depend on your advices I made this:
procedure TForm1.Button1Click(Sender: TObject);
begin
JvThread1.Execute(Self);
end;
procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction);
begin
if not JvThread1.Terminated then
Forum: Object-Pascal / Delphi-Language
Delphi
by WojTec,
30. Jun 2011
Here is pseudocode which demonstrate what I want to tell:
CreateAndShowDialog();
MakeSomeTaskWhichNeedManyCPUTime()
DestroyDialog();
Dialog contain animated marquee. Normally I'm, creating it, showing in modal mode and then call Invalidate(), but then Windows don't refresh animation. How to show this dialog during data processing and do not lock it update?