德尔福:如何以编程方式调整部件与对齐视觉订货=是alTop [英] Delphi: How to programmatically adjust visual ordering of components with align = alTop

查看:209
本文介绍了德尔福:如何以编程方式调整部件与对齐视觉订货=是alTop的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有与多个板,每个都具有对齐=是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.

这篇关于德尔福:如何以编程方式调整部件与对齐视觉订货=是alTop的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆