There is a
form1
it becomes the parent of a
frame1 at runtime
this frame1 is the parent of a
pagecontrol_Main at design-time.
In other words:
On startup the Form1 is generated, the Frames become children by code and all is fine.
Case I want to show the user a certain Tab-sheet, I write:
Form1.PageControl_Main.ActivePage:=Form1.TabSheet_1;
This works.
But!
What about the grand-childs?
If the PageControl_Main
got parent of a PageControl_Minor, which has a TabSheet_2.
How to set his tabsheet_2 to active?
So the generation would be this:
Form1
Frame1
PageControl_Main
TabSheet1
PageControl_Minor
TabSheet2
At the moment I call a method within the frame1 to do this activepage-setting.
This works fine.
However I cannot sleep because of thinking: There shall be a way to set TabSheet_2 as activepage directly from everywhere?