From ee5d26485bd62cbebdc3bbb8024c9a66bdc8aa21 Mon Sep 17 00:00:00 2001 From: paul Date: Sat, 6 Jun 2009 15:20:09 +0000 Subject: [PATCH] ide: fix splitter move in editor mouse options git-svn-id: trunk@20474 - --- ide/frames/editor_mouseaction_options.lfm | 37 +++++------ ide/frames/editor_mouseaction_options.lrs | 79 ++++++++++++----------- ide/frames/editor_mouseaction_options.pas | 1 - 3 files changed, 59 insertions(+), 58 deletions(-) diff --git a/ide/frames/editor_mouseaction_options.lfm b/ide/frames/editor_mouseaction_options.lfm index e1856b137e..5dff85f18c 100644 --- a/ide/frames/editor_mouseaction_options.lfm +++ b/ide/frames/editor_mouseaction_options.lfm @@ -4,23 +4,24 @@ inherited EditorMouseOptionsFrame: TEditorMouseOptionsFrame Anchors = [akTop] ClientHeight = 415 ClientWidth = 610 + TabOrder = 0 Visible = False DesignLeft = 246 DesignTop = 209 object p2: TPanel[0] Left = 0 - Height = 378 + Height = 380 Top = 0 Width = 610 Align = alClient BevelOuter = bvNone - ClientHeight = 378 + ClientHeight = 380 ClientWidth = 610 TabOrder = 0 object ActionGrid: TStringGrid AnchorSideBottom.Control = p3 Left = 135 - Height = 378 + Height = 380 Top = 0 Width = 475 Align = alClient @@ -43,13 +44,13 @@ inherited EditorMouseOptionsFrame: TEditorMouseOptionsFrame end object ContextTree: TTreeView Left = 0 - Height = 378 + Height = 380 Top = 0 Width = 130 Align = alLeft AutoExpand = True Constraints.MinWidth = 50 - DefaultItemHeight = 17 + DefaultItemHeight = 15 ReadOnly = True ShowRoot = False TabOrder = 1 @@ -58,10 +59,10 @@ inherited EditorMouseOptionsFrame: TEditorMouseOptionsFrame end object Splitter1: TSplitter Left = 130 - Height = 378 + Height = 380 Top = 0 Width = 5 - MinSize = 1 + AutoSnap = False end end object p3: TPanel[1] @@ -70,22 +71,22 @@ inherited EditorMouseOptionsFrame: TEditorMouseOptionsFrame AnchorSideBottom.Control = p2 AnchorSideBottom.Side = asrBottom Left = 0 - Height = 37 - Top = 378 + Height = 35 + Top = 380 Width = 610 Align = alBottom AutoSize = True BevelOuter = bvNone - ClientHeight = 37 + ClientHeight = 35 ClientWidth = 610 TabOrder = 1 object DelButton: TButton AnchorSideLeft.Control = p3 AnchorSideTop.Control = p3 Left = 0 - Height = 25 + Height = 23 Top = 6 - Width = 79 + Width = 73 AutoSize = True BorderSpacing.Top = 6 Caption = 'DelButton' @@ -96,10 +97,10 @@ inherited EditorMouseOptionsFrame: TEditorMouseOptionsFrame AnchorSideTop.Control = UpdateButton AnchorSideRight.Control = p3 AnchorSideRight.Side = asrBottom - Left = 502 - Height = 25 + Left = 512 + Height = 23 Top = 6 - Width = 108 + Width = 98 Anchors = [akTop, akRight] AutoSize = True Caption = 'AddNewButton' @@ -109,10 +110,10 @@ inherited EditorMouseOptionsFrame: TEditorMouseOptionsFrame object UpdateButton: TButton AnchorSideTop.Control = p3 AnchorSideRight.Control = AddNewButton - Left = 396 - Height = 25 + Left = 413 + Height = 23 Top = 6 - Width = 100 + Width = 93 Anchors = [akTop, akRight] AutoSize = True BorderSpacing.Top = 6 diff --git a/ide/frames/editor_mouseaction_options.lrs b/ide/frames/editor_mouseaction_options.lrs index b538b5235f..3a4d63853c 100644 --- a/ide/frames/editor_mouseaction_options.lrs +++ b/ide/frames/editor_mouseaction_options.lrs @@ -3,43 +3,44 @@ LazarusResources.Add('TEditorMouseOptionsFrame','FORMDATA',[ 'TPF0'#241#24'TEditorMouseOptionsFrame'#23'EditorMouseOptionsFrame'#6'Height' +#3#159#1#5'Width'#3'b'#2#7'Anchors'#11#5'akTop'#0#12'ClientHeight'#3#159#1#11 - +'ClientWidth'#3'b'#2#7'Visible'#8#10'DesignLeft'#3#246#0#9'DesignTop'#3#209#0 - +#0#242#2#0#6'TPanel'#2'p2'#4'Left'#2#0#6'Height'#3'z'#1#3'Top'#2#0#5'Width'#3 - +'b'#2#5'Align'#7#8'alClient'#10'BevelOuter'#7#6'bvNone'#12'ClientHeight'#3'z' - +#1#11'ClientWidth'#3'b'#2#8'TabOrder'#2#0#0#11'TStringGrid'#10'ActionGrid'#24 - +'AnchorSideBottom.Control'#7#2'p3'#4'Left'#3#135#0#6'Height'#3'z'#1#3'Top'#2 - +#0#5'Width'#3#219#1#5'Align'#7#8'alClient'#8'AutoEdit'#8#8'ColCount'#2#9#14 - +'ExtendedSelect'#8#9'FixedCols'#2#0#7'Options'#11#15'goFixedVertLine'#15'goF' - +'ixedHorzLine'#10'goVertLine'#10'goHorzLine'#13'goRangeSelect'#11'goColSizin' - +'g'#11'goRowSelect'#14'goSmoothScroll'#0#8'RowCount'#2#1#10'ScrollBars'#7#14 - +'ssAutoVertical'#8'TabOrder'#2#0#14'OnCompareCells'#7#22'ActionGridCompareCe' - +'lls'#10'OnDblClick'#7#17'UpdateButtonClick'#13'OnHeaderClick'#7#21'ActionGr' - +'idHeaderClick'#13'OnHeaderSized'#7#21'ActionGridHeaderSized'#11'OnMouseDown' - +#7#19'ActionGridMouseDown'#11'OnMouseMove'#7#19'ActionGridMouseMove'#9'OnMou' - +'seUp'#7#17'ActionGridMouseUp'#8'OnResize'#7#16'ActionGridResize'#0#0#9'TTre' - +'eView'#11'ContextTree'#4'Left'#2#0#6'Height'#3'z'#1#3'Top'#2#0#5'Width'#3 - +#130#0#5'Align'#7#6'alLeft'#10'AutoExpand'#9#20'Constraints.MinWidth'#2'2'#17 - +'DefaultItemHeight'#2#17#8'ReadOnly'#9#8'ShowRoot'#8#8'TabOrder'#2#1#8'OnCha' - +'nge'#7#17'ContextTreeChange'#7'Options'#11#13'tvoAutoExpand'#17'tvoAutoItem' - +'Height'#16'tvoHideSelection'#21'tvoKeepCollapsedNodes'#11'tvoReadOnly'#14't' - +'voShowButtons'#12'tvoShowLines'#11'tvoToolTips'#0#0#0#9'TSplitter'#9'Splitt' - +'er1'#4'Left'#3#130#0#6'Height'#3'z'#1#3'Top'#2#0#5'Width'#2#5#7'MinSize'#2#1 - +#0#0#0#242#2#1#6'TPanel'#2'p3'#23'AnchorSideRight.Control'#7#2'p2'#20'Anchor' - +'SideRight.Side'#7#9'asrBottom'#24'AnchorSideBottom.Control'#7#2'p2'#21'Anch' - +'orSideBottom.Side'#7#9'asrBottom'#4'Left'#2#0#6'Height'#2'%'#3'Top'#3'z'#1#5 - +'Width'#3'b'#2#5'Align'#7#8'alBottom'#8'AutoSize'#9#10'BevelOuter'#7#6'bvNon' - +'e'#12'ClientHeight'#2'%'#11'ClientWidth'#3'b'#2#8'TabOrder'#2#1#0#7'TButton' - +#9'DelButton'#22'AnchorSideLeft.Control'#7#2'p3'#21'AnchorSideTop.Control'#7 - +#2'p3'#4'Left'#2#0#6'Height'#2#25#3'Top'#2#6#5'Width'#2'O'#8'AutoSize'#9#17 - +'BorderSpacing.Top'#2#6#7'Caption'#6#9'DelButton'#7'OnClick'#7#14'DelButtonC' - +'lick'#8'TabOrder'#2#2#0#0#7'TButton'#12'AddNewButton'#21'AnchorSideTop.Cont' - +'rol'#7#12'UpdateButton'#23'AnchorSideRight.Control'#7#2'p3'#20'AnchorSideRi' - +'ght.Side'#7#9'asrBottom'#4'Left'#3#246#1#6'Height'#2#25#3'Top'#2#6#5'Width' - +#2'l'#7'Anchors'#11#5'akTop'#7'akRight'#0#8'AutoSize'#9#7'Caption'#6#12'AddN' - +'ewButton'#7'OnClick'#7#17'AddNewButtonClick'#8'TabOrder'#2#0#0#0#7'TButton' - +#12'UpdateButton'#21'AnchorSideTop.Control'#7#2'p3'#23'AnchorSideRight.Contr' - +'ol'#7#12'AddNewButton'#4'Left'#3#140#1#6'Height'#2#25#3'Top'#2#6#5'Width'#2 - +'d'#7'Anchors'#11#5'akTop'#7'akRight'#0#8'AutoSize'#9#17'BorderSpacing.Top'#2 - +#6#19'BorderSpacing.Right'#2#6#20'BorderSpacing.Bottom'#2#6#7'Caption'#6#12 - +'UpdateButton'#7'OnClick'#7#17'UpdateButtonClick'#8'TabOrder'#2#1#0#0#0#0 + +'ClientWidth'#3'b'#2#8'TabOrder'#2#0#7'Visible'#8#10'DesignLeft'#3#246#0#9'D' + +'esignTop'#3#209#0#0#242#2#0#6'TPanel'#2'p2'#4'Left'#2#0#6'Height'#3'|'#1#3 + +'Top'#2#0#5'Width'#3'b'#2#5'Align'#7#8'alClient'#10'BevelOuter'#7#6'bvNone' + +#12'ClientHeight'#3'|'#1#11'ClientWidth'#3'b'#2#8'TabOrder'#2#0#0#11'TString' + +'Grid'#10'ActionGrid'#24'AnchorSideBottom.Control'#7#2'p3'#4'Left'#3#135#0#6 + +'Height'#3'|'#1#3'Top'#2#0#5'Width'#3#219#1#5'Align'#7#8'alClient'#8'AutoEdi' + +'t'#8#8'ColCount'#2#9#14'ExtendedSelect'#8#9'FixedCols'#2#0#7'Options'#11#15 + +'goFixedVertLine'#15'goFixedHorzLine'#10'goVertLine'#10'goHorzLine'#13'goRan' + +'geSelect'#11'goColSizing'#11'goRowSelect'#14'goSmoothScroll'#0#8'RowCount'#2 + +#1#10'ScrollBars'#7#14'ssAutoVertical'#8'TabOrder'#2#0#14'OnCompareCells'#7 + +#22'ActionGridCompareCells'#10'OnDblClick'#7#17'UpdateButtonClick'#13'OnHead' + +'erClick'#7#21'ActionGridHeaderClick'#13'OnHeaderSized'#7#21'ActionGridHeade' + +'rSized'#11'OnMouseDown'#7#19'ActionGridMouseDown'#11'OnMouseMove'#7#19'Acti' + +'onGridMouseMove'#9'OnMouseUp'#7#17'ActionGridMouseUp'#8'OnResize'#7#16'Acti' + +'onGridResize'#0#0#9'TTreeView'#11'ContextTree'#4'Left'#2#0#6'Height'#3'|'#1 + +#3'Top'#2#0#5'Width'#3#130#0#5'Align'#7#6'alLeft'#10'AutoExpand'#9#20'Constr' + +'aints.MinWidth'#2'2'#17'DefaultItemHeight'#2#15#8'ReadOnly'#9#8'ShowRoot'#8 + +#8'TabOrder'#2#1#8'OnChange'#7#17'ContextTreeChange'#7'Options'#11#13'tvoAut' + +'oExpand'#17'tvoAutoItemHeight'#16'tvoHideSelection'#21'tvoKeepCollapsedNode' + +'s'#11'tvoReadOnly'#14'tvoShowButtons'#12'tvoShowLines'#11'tvoToolTips'#0#0#0 + +#9'TSplitter'#9'Splitter1'#4'Left'#3#130#0#6'Height'#3'|'#1#3'Top'#2#0#5'Wid' + +'th'#2#5#8'AutoSnap'#8#0#0#0#242#2#1#6'TPanel'#2'p3'#23'AnchorSideRight.Cont' + +'rol'#7#2'p2'#20'AnchorSideRight.Side'#7#9'asrBottom'#24'AnchorSideBottom.Co' + +'ntrol'#7#2'p2'#21'AnchorSideBottom.Side'#7#9'asrBottom'#4'Left'#2#0#6'Heigh' + +'t'#2'#'#3'Top'#3'|'#1#5'Width'#3'b'#2#5'Align'#7#8'alBottom'#8'AutoSize'#9 + +#10'BevelOuter'#7#6'bvNone'#12'ClientHeight'#2'#'#11'ClientWidth'#3'b'#2#8'T' + +'abOrder'#2#1#0#7'TButton'#9'DelButton'#22'AnchorSideLeft.Control'#7#2'p3'#21 + +'AnchorSideTop.Control'#7#2'p3'#4'Left'#2#0#6'Height'#2#23#3'Top'#2#6#5'Widt' + +'h'#2'I'#8'AutoSize'#9#17'BorderSpacing.Top'#2#6#7'Caption'#6#9'DelButton'#7 + +'OnClick'#7#14'DelButtonClick'#8'TabOrder'#2#2#0#0#7'TButton'#12'AddNewButto' + +'n'#21'AnchorSideTop.Control'#7#12'UpdateButton'#23'AnchorSideRight.Control' + +#7#2'p3'#20'AnchorSideRight.Side'#7#9'asrBottom'#4'Left'#3#0#2#6'Height'#2#23 + +#3'Top'#2#6#5'Width'#2'b'#7'Anchors'#11#5'akTop'#7'akRight'#0#8'AutoSize'#9#7 + +'Caption'#6#12'AddNewButton'#7'OnClick'#7#17'AddNewButtonClick'#8'TabOrder'#2 + +#0#0#0#7'TButton'#12'UpdateButton'#21'AnchorSideTop.Control'#7#2'p3'#23'Anch' + +'orSideRight.Control'#7#12'AddNewButton'#4'Left'#3#157#1#6'Height'#2#23#3'To' + +'p'#2#6#5'Width'#2']'#7'Anchors'#11#5'akTop'#7'akRight'#0#8'AutoSize'#9#17'B' + +'orderSpacing.Top'#2#6#19'BorderSpacing.Right'#2#6#20'BorderSpacing.Bottom'#2 + +#6#7'Caption'#6#12'UpdateButton'#7'OnClick'#7#17'UpdateButtonClick'#8'TabOrd' + +'er'#2#1#0#0#0#0 ]); diff --git a/ide/frames/editor_mouseaction_options.pas b/ide/frames/editor_mouseaction_options.pas index 47c06931ba..87a8e30e6a 100644 --- a/ide/frames/editor_mouseaction_options.pas +++ b/ide/frames/editor_mouseaction_options.pas @@ -358,7 +358,6 @@ begin FGutterLinesNode.Data := FGutterActionsLines; ActionGrid.Constraints.MinWidth := ActionGrid.ColCount * MinGridColSize; - Splitter1.MinSize := ActionGrid.ColCount * MinGridColSize; ActionGrid.Cells[0,0] := dlgMouseOptHeadDesc; ActionGrid.Cells[1,0] := dlgMouseOptHeadBtn; ActionGrid.Cells[2,0] := dlgMouseOptHeadCount;