Does this mean that the panels are stored according to the sequence of creation?
Is there a way to read their actual position from first to last?
The index also indicates the Z-order of the child controls, zero for the topmost.
I don't know if I have interpreted engkin's advice correctly but SetControlIndex should perhaps be applied to all panels after each change and it seems a bit laborious to me.