RzGroupBar
何分多层
procedure TForm1.FormCreate(Sender: TObject);
begin
RzGroup1.Items.Clear;
RzGroup1.Items.Add.Caption := 'Item0';
with RzGroup1.Items.Add do
begin
Caption := 'Item1';
IndentLevel:=;
Visible := False
end;
RzGroup1.Items[].OnClick := RzGroup1Items0Click;
end; procedure TForm1.RzGroup1Items0Click(Sender: TObject);
begin
RzGroup1.Items[].Visible := not RzGroup1.Items[].Visible;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
RzGroup1.Items.Clear;
RzGroup1.Items.Add.Caption := 'Item0';
with RzGroup1.Items.Add do
begin
Caption := 'Item1';
IndentLevel:=;
Visible := False
end;
RzGroup1.Items[].OnClick := RzGroup1Items0Click;
end; procedure TForm1.RzGroup1Items0Click(Sender: TObject);
begin
RzGroup1.Items[].Visible := not RzGroup1.Items[].Visible;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
RzGroup1.ShowItemSelection := True;
RzGroup1.Items.Clear;
RzGroup1.Items.Add.Caption := 'Item0';
with RzGroup1.Items.Add do
begin
Caption := 'Item1';
IndentLevel:=;
Visible := False
end;
RzGroup1.OnMouseDown := RzGroup1MouseDown
end; procedure TForm1.RzGroup1MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
var
Item: Integer;
begin
Item := RzGroup1.ItemAtPos(Point(X,Y));
if Item = then
begin
RzGroup1.Items[].Selected := True;
RzGroup1.Items[].Visible := not RzGroup1.Items[].Visible;
end
end;
RzGroupBar的更多相关文章
随机推荐
- Hibernaate 详解
hibernate.cfg.xml 连接数据库: connection.username 数据库的名称.这是我自己的是luwei connection.password 数据库的密码 luwei co ...
- PHP curl_multi_strerror函数
curl_multi_setopt — 返回描述错误码的字符串文本. 说明 string curl_multi_strerror ( int $errornum ) 返回描述 CURLM 错误码的字符 ...
- Qt installer framework学习
一.官网的介绍部分网址 http://doc.qt.io/qtinstallerframework/ifw-overview.html 二.安装界面介绍 2.1 安装界面流程 介绍>>选择 ...
- POJ 2251 Dungeon Master(dfs)
Description You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is co ...
- Adobe 2019 全家桶 Win 版
Adobe Creative Cloud 2019 4月版已更新一段时间了,为了让广大Adobe的发烧友能够第一时间体验最新的产品,happy特意为大家收集到了最新的 Adobe CC 2019 全套 ...
- SCP-bzoj-3309
项目编号:bzoj-3309 项目等级:Safe 项目描述: 戳这里 特殊收容措施: 以下用\((x, y)\)表示\(gcd(x, y)\). \[ ans = \sum _ {i = 1} ^ { ...
- kubernetes session保持、容器root特权模式开启、多端口容器service 2个端口开启等设置
session保持如何在service内部实现session保持呢?当然是在service的yaml里进行设置啦. 在service的yaml的sepc里加入以下代码: sessionAffinity ...
- 【Java架构:基础技术】一篇文章搞掂:Maven
本文篇幅较长,建议合理利用右上角目录进行查看(如果没有目录请刷新). 本文基于<Maven 实战>一书进行总结和扩展,大家也可以自行研读此书. 一.Maven简介 1.1.什么是Maven ...
- Qwidget布局操作之QGridLayout(网格布局)
QMainWindow并没有setLayout()函数,因此不能使用setLayout()函数来设置layout,需要使用间接的方法. 需要做的只是先定义一个QWidget对象,然后使用QMainWi ...
- 83、Tensorflow中的变量管理
''' Created on Apr 21, 2017 @author: P0079482 ''' #如何通过tf.variable_scope函数来控制tf.ger_variable函数获取已经创建 ...