Lazarus
Programming => LCL => Topic started by: lainz on November 29, 2022, 10:23:05 pm
-
Hi, I have a list of buttons that are created dynamically inside a TScrollBox. All buttons are aligned alTop. What I need to do is change the vertical order of these buttons, say I add two extra buttons outside, an arrow up and an arrow down, when I click on a button it becomes selected. When I click on the arrow down I want the selected button to move in the Z order, so it goes to bottom.
That's possible with LCL?
-
Solved using FPObjectList and Move function.
-
Ohh, I always was doing such by calculating height of the position where I want to be and set that to the Top property but I might have misunderstood.
-
Why not make them all invisible except for the one you want?