From e30e46cf41f838a299df86137b7a680dba49fa09 Mon Sep 17 00:00:00 2001 From: mattias Date: Sun, 27 Jun 2010 17:10:47 +0000 Subject: [PATCH] IDE: added splitter to options git-svn-id: trunk@26298 - --- examples/anchordocking/anchordocking.pas | 7 ++++++ ide/ideoptionsdlg.lfm | 32 +++++++++++++++++------- ide/ideoptionsdlg.pas | 12 +++------ 3 files changed, 33 insertions(+), 18 deletions(-) diff --git a/examples/anchordocking/anchordocking.pas b/examples/anchordocking/anchordocking.pas index 30eed20c65..25fe2cb4da 100644 --- a/examples/anchordocking/anchordocking.pas +++ b/examples/anchordocking/anchordocking.pas @@ -519,6 +519,13 @@ type property PageClass: TAnchorDockPageClass read FPageClass write FPageClass; end; + { TControl_Hack } + + TControl_Hack = class(TControl) + published + property OnStartDock; // was Protected + end; + var DockMaster: TAnchorDockMaster = nil; diff --git a/ide/ideoptionsdlg.lfm b/ide/ideoptionsdlg.lfm index c559014b16..33b8dca157 100644 --- a/ide/ideoptionsdlg.lfm +++ b/ide/ideoptionsdlg.lfm @@ -1,4 +1,4 @@ -object IDEOptionsDialog: TIDEOptionsDialog +inherited IDEOptionsDialog: TIDEOptionsDialog Left = 317 Height = 500 Top = 304 @@ -11,36 +11,44 @@ object IDEOptionsDialog: TIDEOptionsDialog Constraints.MinWidth = 700 OnShow = FormShow Position = poScreenCenter - LCLVersion = '0.9.29' - object ButtonPanel: TButtonPanel + object ButtonPanel: TButtonPanel[0] AnchorSideLeft.Control = Owner AnchorSideRight.Control = Owner AnchorSideRight.Side = asrBottom AnchorSideBottom.Control = Owner Left = 6 - Height = 34 - Top = 460 + Height = 42 + Top = 452 Width = 688 BorderSpacing.Left = 6 BorderSpacing.Right = 6 BorderSpacing.Bottom = 6 BorderSpacing.Around = 0 + OKButton.Name = 'OKButton' + OKButton.Caption = '&OK' + HelpButton.Name = 'HelpButton' + HelpButton.Caption = '&Help' + CloseButton.Name = 'CloseButton' + CloseButton.Caption = '&Close' + CloseButton.Enabled = False + CancelButton.Name = 'CancelButton' + CancelButton.Caption = 'Cancel' TabOrder = 1 ShowButtons = [pbOK, pbCancel, pbHelp] end - object CategoryTree: TTreeView + object CategoryTree: TTreeView[1] AnchorSideLeft.Control = Owner AnchorSideTop.Control = Owner AnchorSideBottom.Control = ButtonPanel Left = 6 - Height = 454 + Height = 446 Top = 6 Width = 206 - Anchors = [akTop, akLeft, akBottom] + Align = alLeft BorderSpacing.Left = 6 BorderSpacing.Top = 6 Constraints.MinWidth = 206 - DefaultItemHeight = 17 + DefaultItemHeight = 19 ReadOnly = True TabOrder = 0 OnChange = CategoryTreeChange @@ -49,4 +57,10 @@ object IDEOptionsDialog: TIDEOptionsDialog OnKeyDown = CategoryTreeKeyDown Options = [tvoAutoItemHeight, tvoHideSelection, tvoKeepCollapsedNodes, tvoReadOnly, tvoShowButtons, tvoShowLines, tvoShowRoot, tvoToolTips, tvoThemedDraw] end + object CatTVSplitter: TSplitter[2] + Left = 212 + Height = 452 + Top = 0 + Width = 5 + end end diff --git a/ide/ideoptionsdlg.pas b/ide/ideoptionsdlg.pas index a57e387c0d..3d7754d515 100644 --- a/ide/ideoptionsdlg.pas +++ b/ide/ideoptionsdlg.pas @@ -31,7 +31,7 @@ interface uses Classes, SysUtils, Controls, Forms, ComCtrls, LCLProc, LCLType, - Buttons, ButtonPanel, + Buttons, ButtonPanel, ExtCtrls, EnvironmentOpts, LazarusIDEStrConsts, IDEWindowIntf, IDEOptionsIntf, EditorOptions, IDECommands; @@ -41,6 +41,7 @@ type TIDEOptionsDialog = class(TAbstractOptionsEditorDialog) ButtonPanel: TButtonPanel; CategoryTree: TTreeView; + CatTVSplitter: TSplitter; procedure CategoryTreeChange(Sender: TObject; Node: TTreeNode); procedure CategoryTreeCollapsed(Sender: TObject; Node: TTreeNode); procedure CategoryTreeExpanded(Sender: TObject; Node: TTreeNode); @@ -137,14 +138,7 @@ begin PrevEditor.Visible := False; //PrevEditor.Parent := nil; - AEditor.Anchors := [akLeft, akTop, akRight, akBottom]; - AEditor.AnchorSideLeft.Side := asrBottom; - AEditor.AnchorSideLeft.Control := CategoryTree; - AEditor.AnchorSideTop.Control := Self; - AEditor.AnchorSideRight.Side := asrBottom; - AEditor.AnchorSideRight.Control := Self; - AEditor.AnchorSideBottom.Side := asrTop; - AEditor.AnchorSideBottom.Control := CategoryTree.AnchorSide[akBottom].Control; + AEditor.Align := alClient; AEditor.BorderSpacing.Around := 6; //AEditor.Parent := Self; AEditor.Visible := True;