A
anchony
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TFrmMainControl.ShowPanel(xPanel: TPanel);
var
I: Integer;
AControl: TControl;
begin
xPanel.Parent := pnParent;
xPanel.Left := 0;
xPanel.Top := 0;
//SetButtonsParent;
xPanel.Visible := True;
for I := 0 to pnParent.ControlCount - 1 do
begin
AControl := pnParent.Controls;
if (AControl is TPanel) and (AControl <> xPanel) then
AControl.Visible := False;
end;
end;
var
I: Integer;
AControl: TControl;
begin
xPanel.Parent := pnParent;
xPanel.Left := 0;
xPanel.Top := 0;
//SetButtonsParent;
xPanel.Visible := True;
for I := 0 to pnParent.ControlCount - 1 do
begin
AControl := pnParent.Controls;
if (AControl is TPanel) and (AControl <> xPanel) then
AControl.Visible := False;
end;
end;