TImage.BringToFront does not work as expected lazarus / 31-LCL ---------------------------------------------------------------------- FrankBKK · 2021-06-26 12:50 I have a simple Form with a TImage on the top and a TPageControl on the bottom of the window. OnImageDoubleClick  the Picture will be enlarged to the size of the form and  shown over the the PageControl. The resizing part works fine, but an  Image.BringToFront  does not work - the Image is still behind the PageControl. PageControl.SendToBack  has no effect either. How can I fix this ? ---------------------------------------------------------------------- winni · 2021-06-26 14:33 Hi! I don't know where the  problem with bringToFront is. But as a workaround you can use 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 PageControl.visible := false; and later switch it on again. Winni ---------------------------------------------------------------------- alpine · 2021-06-26 19:21 TImage is not a real "widget", it is a descendant of TGraphicControl. Put the image on a TPanel and bring him to front. ---------------------------------------------------------------------- wp · 2021-06-26 19:32 Quote from: FrankBKK on June 26, 2021, 02:50:08 pmI have a simple Form with a TImage on the top and a TPageControl on the bottom of the window. OnImageDoubleClick  the Picture will be enlarged to the size of the form and  shown over the the PageControl. Don't do this. Even if the Image would cover the PageControl, the controls on the Pagecontrol are still active and can receive user keyboard input. Much better to follow winni's approach to hide the PageControl when you don't want to see it.