Thank you very much for answering..
I use rad studio 11.
Volvo has given me the solution and it is the following:
for ( int A = 0 ; A < HorzScrollBox1 - > Content - > ChildrenCount ; A ++ )
{
static_cast < TGridLayout * > ( HorzScrollBox1 - > Content - > Children - > Items [ A ] ) - > Width = HorzScrollBox1 - > Width ;
}
dobleÚltimoPanel = 1.0 ; // <--- solo un ejemplo, ponga su valor aquí
HorzScrollBox1 - > ViewportPosition = PointF ( LastPanel * HorzScrollBox1 - > Width, 0.0 ) ;