Thread update IWLabel - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: Thread update IWLabel (/thread-2118.html) |
Thread update IWLabel - matija - 11-13-2020 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; RE: Thread update IWLabel - kudzu - 11-13-2020 You cant use Synchronize in a server app. IW is already threaded, there is no main thread except in SA UI, and the main thread is for the server side UI. In our demos is a demo showing how to create a secondary thread for a user session and provide a status bar update. RE: Thread update IWLabel - matija - 11-16-2020 (11-13-2020, 05:47 PM)kudzu Wrote: You cant use Synchronize in a server app. IW is already threaded, there is no main thread except in SA UI, and the main thread is for the server side UI. Which demo? RE: Thread update IWLabel - PaulWeem - 11-16-2020 (11-16-2020, 06:32 AM)matija Wrote:(11-13-2020, 05:47 PM)kudzu Wrote: You cant use Synchronize in a server app. IW is already threaded, there is no main thread except in SA UI, and the main thread is for the server side UI. https://github.com/Atozed/IntraWeb/tree/master/XIV/Delphi/Features RE: Thread update IWLabel - matija - 11-17-2020 (11-16-2020, 03:32 PM)PaulWeem Wrote:(11-16-2020, 06:32 AM)matija Wrote:(11-13-2020, 05:47 PM)kudzu Wrote: You cant use Synchronize in a server app. IW is already threaded, there is no main thread except in SA UI, and the main thread is for the server side UI. Thx |