Hello,
I have two forms,one is main and other is inherited form main.Lets say I have a function on the main form:
procedure FormMain.CreateButton;
begin
with TsButton.Create(Self) do begin
Width := 31;
Height := 31;
Left := 31;
Top := 31;
Visible := true;
Parent := Self;
end;
end;
Usually everything on the main form should be on the inherited form,but this is what I do:
I call CreateButton from mainForm ,but the button is only on the main form.
Is it possible to inherit that button too?