1° position but label keep to be behind component lazarus / 31-LCL ---------------------------------------------------------------------- lander · 2021-10-16 13:30 I placed a TreeView. If I put a label on top of the TreeView the text is white, if I move that to the Form it is black. I have changed position to be top level but it keep to be white on the TreeView. If I move the TreeView I see the Label behind... ---------------------------------------------------------------------- wp · 2021-10-16 13:39 Read https://forum.lazarus.freepascal.org/index.php/topic,37185.msg249 104.html#msg249104 Use a TStaticText rather than a TLabel. ---------------------------------------------------------------------- lander · 2021-10-16 15:22 Thank you wp. ---------------------------------------------------------------------- lander · 2021-10-17 08:34 There's a new problem. To have Default color on the page control, where the TreeView is placed, I applied this code to my form. After this the StaticText appear as the attached image and if I change the color or flag to TRUE the parent control it doesn't fix. ---------------------------------------------------------------------- wp · 2021-10-17 09:38 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.FormCreate(Sender: TObject);begin  FixPageControl(PageControl1);  StaticText1.Color := TreeView1.Color;  StaticText1.Transparent := false;end; ---------------------------------------------------------------------- lander · 2021-10-17 10:20 wp you are a genius. Thanks again.