IDE: Move the "all component tabs" speedbutton into tabsheet

git-svn-id: trunk@42795 -
This commit is contained in:
martin 2013-09-14 13:22:10 +00:00
parent 2c7bcf8e6b
commit 0f05bac744

View File

@ -129,6 +129,9 @@ implementation
uses MainBase;
const
OVERVIEW_PANEL_WIDTH = 20;
function CompareRegisteredComponents(Data1, Data2: Pointer): integer;
var
RegComp1: TRegisteredComponent;
@ -559,7 +562,7 @@ begin
ButtonX:= ((ComponentPaletteBtnWidth*3) div 2) + 2;
MaxBtnPerRow:=((Page.ClientWidth - ButtonX) div ComponentPaletteBtnWidth);
MaxBtnPerRow:=((Page.ClientWidth - ButtonX - OVERVIEW_PANEL_WIDTH) div ComponentPaletteBtnWidth);
if MaxBtnPerRow<1 then MaxBtnPerRow:=1;
Rows:=((ButtonTree.Count-1) div MaxBtnPerRow)+1;
//DebugLn(['TComponentPalette.ReAlignButtons ',DbgSName(Page),' PageIndex=',Page.PageIndex,' ClientRect=',dbgs(Page.ClientRect)]);
@ -696,7 +699,7 @@ var
Align := alRight;
Caption := '';
BevelOuter := bvNone;
Width := 20;
Width := OVERVIEW_PANEL_WIDTH;
Visible := True; // EnvironmentOptions.IDESpeedButtonsVisible;
Parent := aCompPage.PageComponent;
end;