I changed the main form to get rid of the row of speedbuttons at the bottom and make the page control show the tab labels again.
That cured the problem.
I'm not happy with that. It means that selecting a tab sheet with sPageControl.ActivePage := some_tab becomes different from selecting that tab manually with the tab label. The former may cause all sorts of problems!