TLabel not shown lazarus / 31-LCL ---------------------------------------------------------------------- qprotex · 2021-01-09 03:18 Hello All, I just started working with Lazarus for the first time (although I have experience in Delphi) in a project that needs to be compiled for Windows, Linux and MacOS. So far I am impressed by Lazarus and the fact that can compile for multiple OS. I do work mostly with Windows as my main OS and the project compiles and behaves fine on it. Now, I believe it is possible to install the Lazarus Linux/MacOS compilers on Windows, but I decided to install Lazarus on a Ubuntu 20.04 x64 VM. This is how the form looks in design time: https://www.screencast.com/t/i94whyLz2Zw And this is in run time: https://www.screencast.com/t/f62QSBHu8BJ Now, that form is shown while a 3rd form is loading (it takes around 3~5 seconds) and then is closed. I believe the issue is that the form (or label) is not repainting properly. I have tried different combinations of repaint/refresh for both the form and the label and also tried to use Application.ProcessMessages but the label still does not show. If I show the form with ShowModal then the labels are shown but I need to make them work with Show, not ShowModal. Thanks for your help! ---------------------------------------------------------------------- trev · 2021-01-09 05:20 We need to know the versions of Lazarus + FPC and the OS you're using (it was not clear). You might find it useful to read How to use the Forums. ---------------------------------------------------------------------- qprotex · 2021-01-09 14:15 Hello trev, I am using FPC 3.2.0, Lazarus 2.0.10 and Ubuntu 20.04 uname - a shows: Linux ubuntu 5.4.0-58-generic #64-Ubuntu SMP Wed Dec 9 08:16:25 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux ---------------------------------------------------------------------- trev · 2021-01-10 00:27 This works for me in Ubuntu 20.04: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TForm1.Button1Click(Sender: TObject);begin  Form2 := TForm2.Create(Nil);  Form2.Caption:='Calculating... Standby';  Form2.Position := poMainFormCenter;  Form2.Height := 0;  Form2.Show;end; Resulting image is attached. ---------------------------------------------------------------------- jamie · 2021-01-10 01:33 This maybe due to some task scheduling and things are not getting updated in correct order.. possibly widget troubles with lost font data? resource locks etc.. Maybe the timely process should be started from the message screen  via the OnShow event? To me that would make more sense. At least that way the message screen is up and running..   You could also do the other  task in a thread...