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的更多相关文章
随机推荐
- paper 147:Deep Learning -- Face Data Augmentation(一)
1. 在深度学习中,当数据量不够大时候,常常采用下面4中方法: (1)人工增加训练集的大小. 通过平移, 翻转, 加噪声等方法从已有数据中创造出一批"新"的数据.也就是Data ...
- 【Linux】 Centos7 安装 mysql-8.0
本文介绍使用rpm包安装mysql, 以 mysql-8.0.17-1.el7.x86_64.rpm-bundle.tar 为例: 1.下载 MySQL下载地址:https://dev.mysql.c ...
- VIEW当中自定义属性的使用
主要有三种方法可以实现自定义属性. 第一种方法,直接设置属性值,通过attrs.getAttributeResourceValue拿到这个属性值. (1)在xml文件中设置属性值 [html] vie ...
- 使用struts2未登录,不能操作
1.定义拦截器类: 注意登录的action,登录成功在session存入标记(login) import com.opensymphony.xwork2.ActionContext; import c ...
- eclipse debug (调试)基础
进入debug模式: 1.设置断点 2.启动servers端的debug模式 3.运行程序,在后台遇到断点时,进入debug调试状态 ============================= 作用域 ...
- shell 字符串匹配变量(只取数字或者取固定字符串)
var1=abc3559 #想要获得3559 操作: var1_key=`echo $var1 | tr -cd "[0-9]"` https://www.cnblogs.co ...
- git使用记录一:配置账户信息
配置的级别 git config --gloabal 针对当前用户下所有的项目 设置 git config --local 针对当前工作区的项目来进行设置 git config --system 针对 ...
- dcoker镜像的分层
镜像分层的好处:复用节省磁盘空间,相同的内容只需加载一份到内存 修改dockerfile之后,再次构建速度加快 docker优化: 1.尽可能地选择体积小的linux发行版,比如alpine 2.尽可 ...
- [已解决]报错:xlrd.compdoc.CompDocError: Workbook: size exceeds expected 17920 bytes; corrupt?
报错代码如下: filePath='test.xls' data=pd.read_excel(filePath) print(data.head()) 报错内容如下: Traceback (most ...
- redis的快速机制与数据类型
想一下 redis 的高并发和快速 单线程模型 - 避免了不必要的上下文切换和竞争条件(锁) Redis客户端对服务端的每次调用都经历了发送命令,执行命令,返回结果三个过程.其中执行命令阶段,由于Re ...