I was trying to do the same as I did earlier. You will notice in defining the TabArray a line "TabArray[i]->OnShow = TabOnShow;"
which performs the OnShow event of the TabSheet. This works fine.
The function for this is as below:
----------------------------
void __fastcall...
At runtime I want to generate a pagecontrol with a number of tabsheets, each tab sheet to have a StringGrid.
My code for doing so is:
-------
ppc = new TPageControl(this);
ppc->Parent = this;
ppc->Align = alClient;
ppc->TabPosition = tpTop;
for(i=0;i<NumberTabs;i++)
{ TabArray[i] =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.