mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Don't auto-fit width of columns in routine parameter tree. Just store and restore what the user has set. Closes #903.
This commit is contained in:
@ -299,13 +299,12 @@ object frmRoutineEditor: TfrmRoutineEditor
|
|||||||
item
|
item
|
||||||
Position = 0
|
Position = 0
|
||||||
Text = '#'
|
Text = '#'
|
||||||
Width = 25
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Options = [coDraggable, coEnabled, coParentBidiMode, coParentColor, coResizable, coShowDropMark, coVisible, coAllowFocus]
|
Options = [coDraggable, coEnabled, coParentBidiMode, coParentColor, coResizable, coShowDropMark, coVisible, coAllowFocus]
|
||||||
Position = 1
|
Position = 1
|
||||||
Text = 'Name'
|
Text = 'Name'
|
||||||
Width = 419
|
Width = 390
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Options = [coDraggable, coEnabled, coParentBidiMode, coParentColor, coResizable, coShowDropMark, coVisible, coAllowFocus]
|
Options = [coDraggable, coEnabled, coParentBidiMode, coParentColor, coResizable, coShowDropMark, coVisible, coAllowFocus]
|
||||||
|
@ -77,8 +77,6 @@ type
|
|||||||
procedure btnDiscardClick(Sender: TObject);
|
procedure btnDiscardClick(Sender: TObject);
|
||||||
procedure comboDefinerDropDown(Sender: TObject);
|
procedure comboDefinerDropDown(Sender: TObject);
|
||||||
procedure btnMoveParamClick(Sender: TObject);
|
procedure btnMoveParamClick(Sender: TObject);
|
||||||
procedure listParametersAfterPaint(Sender: TBaseVirtualTree;
|
|
||||||
TargetCanvas: TCanvas);
|
|
||||||
private
|
private
|
||||||
{ Private declarations }
|
{ Private declarations }
|
||||||
FAlterRoutineType: String;
|
FAlterRoutineType: String;
|
||||||
@ -198,7 +196,6 @@ begin
|
|||||||
Modified := True;
|
Modified := True;
|
||||||
btnSave.Enabled := Modified and (editName.Text <> '');
|
btnSave.Enabled := Modified and (editName.Text <> '');
|
||||||
btnDiscard.Enabled := Modified;
|
btnDiscard.Enabled := Modified;
|
||||||
listParameters.Header.AutoFitColumns(False, smaUseColumnOption, 0, 0);
|
|
||||||
SynMemoCreateCode.Text := ComposeCreateStatement(editName.Text);
|
SynMemoCreateCode.Text := ComposeCreateStatement(editName.Text);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -276,13 +273,6 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
procedure TfrmRoutineEditor.listParametersAfterPaint(Sender: TBaseVirtualTree;
|
|
||||||
TargetCanvas: TCanvas);
|
|
||||||
begin
|
|
||||||
listParameters.Header.AutoFitColumns(False, smaUseColumnOption, 0, 0);
|
|
||||||
end;
|
|
||||||
|
|
||||||
|
|
||||||
procedure TfrmRoutineEditor.listParametersBeforePaint(Sender: TBaseVirtualTree;
|
procedure TfrmRoutineEditor.listParametersBeforePaint(Sender: TBaseVirtualTree;
|
||||||
TargetCanvas: TCanvas);
|
TargetCanvas: TCanvas);
|
||||||
begin
|
begin
|
||||||
|
Reference in New Issue
Block a user