I use TPageControl where some pages are not visible.
This disrupts the normal 1: 1 display of the TabIndex and ActivePageIndex properties.
In most cases, I can use ActivePageIndex (or ActivePage itself) to get the current page, but I need a dynamic tooltip, which requires me to determine which page is associated with a particular tab index.
If I call pageControl.IndexOfTabAt (X, Y), I get the tab index back, but I cannot directly use it as an index in the Pages [] array, since some tabs of the pages are not displayed.
I could iterate through the pages, ignoring the visible ones, but it looks like there should be something in VCL that does this for me already ...?
Roddy source share