delphi RzGroupBar1 如何分多层 delphi 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 procedure TForm1.FormCreate(Sender: TObject);begin RzGroup1.Items.Clear; RzGroup1.Items.Add.Caption := 'Item0'; with RzGroup1.Items.Add do begin Caption := 'Item1'; IndentLevel:=1; Visible := False end; RzGroup1.Items[0].OnClick := RzGroup1Items0Click;end;procedure TForm1.RzGroup1Items0Click(Sender: TObject);begin RzGroup1.Items[1].Visible := not RzGroup1.Items[1].Visible;end; 我把RzGroup的属性ShowItemSelection 设为true; ......怎么对RzGroup的属性ShowItemSelection 进行释放?每次我点击item;再次点击就没有反应了? 如图: 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:=1; Visible := False end; RzGroup1.OnMouseDown := RzGroup1MouseDownend;procedure TForm1.RzGroup1MouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);var Item: Integer;begin Item := RzGroup1.ItemAtPos(Point(X,Y)); if Item = 0 then begin RzGroup1.Items[0].Selected := True; RzGroup1.Items[1].Visible := not RzGroup1.Items[1].Visible; endend; http://bbs.csdn.net/topics/390897401?page=1#post-398308741 求指教? 请进!~~(寻求解决方案) 高手请看,为何输入不了俄文? 装完Delphi2005后运行时才发现…… delphi的输出调试信息用出什么语句? Tchart中怎样画波形 正弦波 等。。 在线给分 刚加入,没带什么礼物,向大家推荐一个vc编程站点吧! DELPHI与ACESS中bmp图片插入与处理的问题!!!HELP!!! 关于使用IHTMLWindow4时出错------没Money了也要求助 ++++编写类似windows资源管理器的问题+++++ HeaderControl应该怎样使用? Delphi WebBrowse 无法打开页面 求问这句代码什么意思
begin
RzGroup1.Items.Clear;
RzGroup1.Items.Add.Caption := 'Item0';
with RzGroup1.Items.Add do
begin
Caption := 'Item1';
IndentLevel:=1;
Visible := False
end;
RzGroup1.Items[0].OnClick := RzGroup1Items0Click;
end;procedure TForm1.RzGroup1Items0Click(Sender: TObject);
begin
RzGroup1.Items[1].Visible := not RzGroup1.Items[1].Visible;
end;
我把RzGroup的属性ShowItemSelection 设为true; ......怎么对RzGroup的属性ShowItemSelection 进行释放?每次我点击item;再次点击就没有反应了? 如图:
begin
RzGroup1.ShowItemSelection := True;
RzGroup1.Items.Clear;
RzGroup1.Items.Add.Caption := 'Item0';
with RzGroup1.Items.Add do
begin
Caption := 'Item1';
IndentLevel:=1;
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 = 0 then
begin
RzGroup1.Items[0].Selected := True;
RzGroup1.Items[1].Visible := not RzGroup1.Items[1].Visible;
end
end;