何分多层

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的更多相关文章

随机推荐

  1. 项目部署错误 HTTP Error 500.19 - Internal Server Error

    HTTP Error 500.19 - Internal Server Error配置错误: 不能在此路径中使用此配置节.如果在父级别上锁定了该节,便会出现这种情况.锁定是默认设置的 (overrid ...

  2. Java 设计模式-【单例模式】

    单例解决了什么问题:为了节约系统资源,有时需要确保系统中某个类只有唯一一个实例,当这个唯一实例创建成功之后,我们无法再创建一个同类型的其他对象,所有的操作都只能基于这个唯一实例.为了确保对象的唯一性, ...

  3. Python--面向对象的程序设计之继承与派生

    继承与派生 什么是继承 继承是一种创建新类的方式,在python中,新建的类可以继承一个或多个父类,父类又可称为基类或超类,新建的类称为派生类或子类 python中类的继承分为:单继承和多继承 cla ...

  4. bzoj 2015

    http://www.lydsy.com/JudgeOnline/problem.php?id=2015 裸最短路(' '     ) 不过我最初以为是mst (' '    ) #include & ...

  5. PHP curl_multi_info_read函数

    curl_multi_info_read — 获取当前解析的cURL的相关传输信息 说明 array curl_multi_info_read ( resource $mh [, int &$ ...

  6. Xcode 编辑器之关于Other Linker Flags相关问题

    一,概述 问题场景一 当从网上去下载一些之前的完整的项目的时候,用终端也 pod update了,但一运行,熟悉的linker错误就出来了. 解决办法 在Other Linker Flags(也即 O ...

  7. 回调函数 和 promise对象,及封装API接口

    1.回调函数:https://blog.csdn.net/baidu_32262373/article/details/54969696 注意:回调函数不一定需要用到 return.如果浏览器支持Pr ...

  8. jekins—持续集成

    json转换为Python的字典形式 Martin fowler:通过自动化的构建,编译-发布-自动化测试,尽早的发现集成的错误 持续集成的要素: 统一的代码库 自动构建编译 自动测试(单元测试) 每 ...

  9. 用orm操作sql数据库的优缺点

    一,sql注入问题 二,代码和sql写死在了一起,导致解耦差 三,sql开发人员水平不一,导致sql性能问题 四,开发效率差 使用orm的优点: 一,实现了代码与sql数据的解耦合 二,不需要写原生s ...

  10. 【转载】OsmocomBB在kali的安装方法

    转载自http://www.nigesb.com/gsm-hacker-abhout-sms-sniffer.html 首先的首先需要建立Arm代码的编译环境,没有编译环境,就无法对osmocombb ...