My app uses Tabs in a space zone to simulate a tabbed page control. 3 of these tabs will be fixed but I need to programatically add additional tabs to the right hand end of fixed Tabs.Currently the additional tabs are added one tab in from the right-hand end. Is it possible to ensure that additional tabs appear at the end of existing tabs.
This is my routine to add a tab:
function TfmIDEMain.CreateBottomDock: TLMDDockPanel;
var SrchRes: TfmSearchResults;
zn: TLMDDockZone;
begin
Result := TLMDDockPanel.Create(Self); // Create new Panel
try
SrchRes := TfmSearchResults.Create(Result);
SrchRes.Parent := Result;
zn := dsBottom.SpaceZone;
while (zn <> nil) and (zn.Kind <> zkTabs) and (zn.ZoneCount > 0) do
zn := zn[0];
if zn <> nil then
dsBottom.DockControl(Result, zn, alClient, zn.ZoneCount -1);
except
On E: Exception do
E.Free;
end;
end;
Comments