Z-order Panel lazarus / 10-Designer ---------------------------------------------------------------------- LazaruX · 2010-02-22 19:36 Hello I have got a TPanel (Panel1) inside of it there is a TImage (Image1) and a TPanel (Panel2). So Image1 and Panel 2 are both inside Panel1. I want to adjust the Z order and have Image1 in front of Panel2. So Panel 2 will be in the background. When adjusting the Z order, the image is always on the background. Why??? PS Panel1 has probably nothing to do with all this, but just mentioned to be sure I don't miss anything. WinXP+SP2 Win32 Lazarus 0.9.28.2 FPC 2.2.4 ---------------------------------------------------------------------- Zoran · 2010-02-22 19:55 Image descends from TGraphicControl, it is not TWinControl descendant. Unlike WinControls, GraphicControls can not receive focus and can never be displayed in front of WinControls. Same thing is with TLabel -- you cannot display a Label in front of any WinControl. That's why TStaticText control is there -- it's same as TLabel, but it can receive focus and it can be in front of other WinControls. It's same in Delphi. Try this with a Label and a StaticText and see the diference.