07-02-2014, 07:16 PM
شيئ مثل هذا :
PHP كود :
Procedure HideButtons(Parent: TComponent; From, _To: integer);
var
BtnList: TList;
i: integer;
begin
BtnList := TList.Create;
for i := 0 to Parent.ComponentCount - 1 do
begin
if Parent.Components[i] is TCustomButton then
BtnList.Add(Parent.Components[i]);
end;
if BtnList.Count > 0 then
if (From < BtnList.Count) and (_To <= BtnList.Count) then
begin
for i := From to _To do
if (i < BtnList.Count) then
TCustomButton(BtnList.Items[i]).Hide;
end;
BtnList.Free;
end;
PHP كود :
HideButtons(Self, 0, 3);
Open Your Source .. Open Your Mind

