1,184
社区成员
发帖
与我相关
我的任务
分享
var
I : Integer ;
tmpControl : TControl ;
tmpAction : TAction ;
tmpMenuItem : TMenuItem ;
tmpComponent : TComponent ;
tmpBarItem : TdxNavBarItem ;
begin
For I:=0 To sForm.ComponentCount-1 Do
Begin
tmpComponent := sForm.Components[I] ;
If tmpComponent Is TAction Then
Begin
tmpAction := tmpComponent As TAction ;
//..自己处理代码
End
else
If tmpComponent Is TControl Then
Begin
TmpControl := tmpComponent As TControl ;
//..自己处理代码
end
else
If tmpComponent Is TMenuItem Then
Begin
TmpMenuItem := tmpComponent As TMenuItem ;
//..自己处理代码
End
else
If tmpComponent Is [xxx] Then
Begin
End ;
End ;