如何在TCategoryPanelGroup(Delphi XE)中对类别重新排序 [英] How to reorder categories in TCategoryPanelGroup (Delphi XE)

查看:245
本文介绍了如何在TCategoryPanelGroup(Delphi XE)中对类别重新排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在窗体上放置了一个TCategoryPanelGroup实例。我想允许用户重新排序类别。在尝试对Panels []属性进行重新排序-这是一个TList-但这似乎不起作用。

I have a TCategoryPanelGroup instance dropped on a form. I would like to allow the user to reorder the categories. In tryed to reorder Panels[] property - which is a TList - but this doesn't seems to work.

有什么想法吗?

推荐答案

通过修改位置来实现此更改面板中的

Effect this change by modifying the position of the panels:

CategoryPanel2.Top := 0;
CategoryPanel1.Top := CategoryPanel2.Height;

这篇关于如何在TCategoryPanelGroup(Delphi XE)中对类别重新排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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