Hello!
I need, in a loop, to go through all the child, dynamically created unitabsheets in the parent UniPageControl, find the desired UniTabSheet by its name and call the OnBeforeActive event from it.
How can this be done, how to pass parameters to a procedure where ... ?
procedure TMainForm.UniPageControl1ChangeValue(Sender: TObject);
var
i: integer;
begin
for i := UniPageControl1.ControlCount - 1 downto 0 do
if UniPageControl1.Controls[i] is TUniTabSheet then
begin
TUniTabSheet(UniPageControl1.Controls[i]).OnBeforeActivate(...);
end;
end;