|

楼主 |
发表于 2010-7-12 10:44:48
|
显示全部楼层
谢谢!因为不想改系统原来的代码,所以没有采用这种方式。
实现方法:
新继承一个 我的功能--我的计划
然后在我的计划的FormDocCreate事件中一层层找到这些控件,然后隐藏。
procedure TWDJH.FormDocCreate(Sender: TObject);
var
i: integer;
begin
Inherited;
with TPanel(TPanel(TPanel(pnlDocBarPlan.controls[0]).controls[0]).Controls[1]) do
begin
for i:= 0 to ControlCount -1 do
begin
if not (SysUtils.SameText('tb7',Controls.Name) or SysUtils.SameText('BizToolBar',Controls.Name)) then
Controls.Hide;
end;
end;
end; |
|