我有与多个板,每个都具有对齐=是alTop一种形式,所以它们堆叠向下很好从形式的顶部。
I've got a form with a number of panels, each of which has Align=alTop, so they stack down nicely from the top of the form.
不过,我要动态地改变这些面板的外观秩序 - 即移动上下。什么是这样做的最好方法是什么?
However, I want to dynamically change the appearance order of these panels - i.e, move them up and down. What's the best way of doing this?
您可以很容易地通过设置热门属性移动上对齐面板顶端的 0 。这样做是反请求的顺序(下图),就大功告成了。
You can easily move a top-aligned panel to the top by setting its Top property to 0. Do this in reverse requested order (bottom panel first) and you are done.