type
TAccessCollection = class(TPersistent)
public
FItemClass: TCollectionItemClass;
FItems: TList;
end;
procedure ExchangeItems(FrameBar : TsFrameBar; Index1, Index2 : integer);
var
TmpItem : TsTitleItem;
List : TList;
TmpPointer : Pointer;
begin
List := TAccessCollection(FrameBar.Items).FItems;
TmpPointer := List[Index1];
List[Index1] := List[Index2];
List[Index2] := TmpPointer;
FrameBar.ArrangeTitles;
end;
procedure TForm1.sSpeedButton1Click(Sender: TObject);
begin
ExchangeItems(sFrameBar1, 0, 1);
end;