On 26.10.2016 07:57, LacaK via Lazarus wrote:
procedure TRefreshFileListThread.Execute;
begin
  while not Terminated do begin
Synchronize(@MyForm.UpdateFileList); // UpdateFileList is method which clears listbox and then adds files in given shared folder
    Sleep(10000);
  end;
This only makes sense if the actual file list generation (all but the GUI update) is done in not shown code in the thread before Synchonize is called.

Otherwise you just could use TTimer.

Is this done that way?

-Michael

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to