procedure TMainForm.EnableAllRichEdits(Enable: Boolean);
var i, ii : Integer;
page : TTabSheet;
begin
for i := 0 to PageControl1.PageCount - 1 do
begin
page := PageControl1.Pages[i];
for ii := 0 to page.ControlCount - 1 do
begin
if page.Controls[ii] is DBRichEdit then
page.Controls[ii].Enabled := Enable;
end;
end;
end;
|