Changing Height of Tmemo hides some buttons only lazarus / 31-LCL ---------------------------------------------------------------------- Elmug · 2011-09-08 17:46 Good people, I change the size of a TMemo by pressing a button and am wondering why it hides most components from view when it increases height, but a few buttons it does not hide. I don't have any special properties different on the buttons that are not covered, they were created the same way as the other buttons, as I can recall. Thanks for any help. ---------------------------------------------------------------------- typo · 2011-09-08 17:53 Memos can hide graphic controls, but not the so called (in Delphi) WinControls. You can use successive BringToFront and SendToBack calls to alter the Z-order. ---------------------------------------------------------------------- Elmug · 2011-09-08 18:01 Thanks Typo. Good reply that I will try. However,  I still wonder why this is happening since the buttons that are not covered from view are the same type of buttons as the buttons that are covered. And they are not Delphi type components, or have changes other than the usual caption, name, etc. Now, if those buttons not covered are somehow "on top", I wonder where that property is, so I could change it. Thanks again! ---------------------------------------------------------------------- typo · 2011-09-08 18:05 QuoteHowever,  I still wonder why this is happening since the buttons that are not covered from view are the same type of buttons as the buttons that are covered. Because some buttons have been created before and others after the memo. QuoteNow, if those buttons not covered are somehow "on top", I wonder where that property is, so I could change it. Z-Order is only changeable through BringToFront and SendToBack methods. This means that you can only place controls at the topmost or backmost positions. ---------------------------------------------------------------------- Elmug · 2011-09-08 22:12 Thanks Typo for the reply. That is also what I had thought. Now I have already just used a bringtofront. However, I believe that if it has to do with creation order, THEN, I can change that by just relocating some code, and I will check on that later to see if it works! ---------------------------------------------------------------------- Shebuka · 2011-09-09 08:20 Quote from: Elmug on September 09, 2011, 12:12:32 amThanks Typo for the reply. That is also what I had thought. Now I have already just used a bringtofront. However, I believe that if it has to do with creation order, THEN, I can change that by just relocating some code, and I will check on that later to see if it works! In object inspector right click over the control you need and there will be z-order menu, then there 4 more menus to move control forward/back. ---------------------------------------------------------------------- Elmug · 2011-09-09 17:57 Thanks Shabuka! I have been looking for this facility for a while. Do you happen to know if changing the order of components by cut and past would also work? (I haven't had a chance to investigate that yet). I think it would, though. ---------------------------------------------------------------------- Shebuka · 2011-09-12 08:22 Quote from: Elmug on September 09, 2011, 07:57:02 pmThanks Shabuka! I have been looking for this facility for a while. Do you happen to know if changing the order of components by cut and past would also work? (I haven't had a chance to investigate that yet). I think it would, though. When you paste some component they will always been placed in the bottom of container, so 'under' all components.