Hi,
I have tabsheets created in run-time and TMemo's as the child object.
On top of the PageControl I have a TEdit. The idea is that the TEdit shows the name of the TMemo that is on the active tabsheet. How can you access the name property of the specific TMemo on the active TabSheet?
Thanks,
Raoul
I have tabsheets created in run-time and TMemo's as the child object.
On top of the PageControl I have a TEdit. The idea is that the TEdit shows the name of the TMemo that is on the active tabsheet. How can you access the name property of the specific TMemo on the active TabSheet?
Code:
procedure TForm1.TabSheet1Show(Sender: TObject);
begin
Edit1.Text := (Sender as TTabsheet).?????????.Name;
end;
Thanks,
Raoul