This is sadly a shortcoming in Windows itself and is not related to TAdvPageControl.
TAdvPageControl is just like the
standard VCL TPageControl a wrapper around the Windows page control and it is
as such the Windows control class that determines this behaviour.
The client rectangle of the tabsheet always takes this border in account and this is independent of the Margin that can be set and is used at VCL level.