I'd like to know a way to sort Tabs on a PageControl in the same order as in this array:
TabCaptions : array[1..7] of string =
The captions of the Tabs are the same as in the array. The PageControl is a DockSite so the Tabs are able to be removed. I would like to be able to sort these tabs upon Docking or Undocking so that it will always retain the same order.