Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread update IWLabel
#1
In have (VCL version) thread for update statusbar

How update code for IW with update IWLabel? IWLabel1.Caption .... Access Error!

VCL code:
procedure TMyThread.Execute;
begin

while not Terminated do
begin

          if Terminated then
          begin

            Synchronize(
              procedure
              begin
                MainForm.StatusBar1.Panels.Items[0].Text := 'Load Ending! ';
              end
              );

            Break;

          end; // if terminated


Synchronize(
                    procedure
                    begin
                      MainForm.StatusBar1.Panels.Items[0].Text := 'Loading... ';
                    end
                    );


end; // while

end;
Reply


Messages In This Thread
Thread update IWLabel - by matija - 11-13-2020, 09:20 AM
RE: Thread update IWLabel - by kudzu - 11-13-2020, 05:47 PM
RE: Thread update IWLabel - by matija - 11-16-2020, 06:32 AM
RE: Thread update IWLabel - by PaulWeem - 11-16-2020, 03:32 PM
RE: Thread update IWLabel - by matija - 11-17-2020, 07:06 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)