Hello,
I've built a VCL based on TPageControl in which a constructor (Create override) initializes some variables.
One of these variables is an array corresponding to each TabSheet. That is, I use SetLength(bTabEdit, PageCount) to set dimensions of the array. The problem is that within Create, the PageCount property is not set yet (=0), even if all TTabSheet are created in design mode
Is there another way to initialize variable after the TPageControl have created its TTabSheet list (for the PageCount to be valid)?
Something like a Initilize constructor called by the Create constructor?
Thanks in advance,
Rej Cloutier
I've built a VCL based on TPageControl in which a constructor (Create override) initializes some variables.
One of these variables is an array corresponding to each TabSheet. That is, I use SetLength(bTabEdit, PageCount) to set dimensions of the array. The problem is that within Create, the PageCount property is not set yet (=0), even if all TTabSheet are created in design mode
Is there another way to initialize variable after the TPageControl have created its TTabSheet list (for the PageCount to be valid)?
Something like a Initilize constructor called by the Create constructor?
Thanks in advance,
Rej Cloutier