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
|
||||
Position = 0
|
||||
Text = '#'
|
||||
Width = 25
|
||||
end
|
||||
item
|
||||
Options = [coDraggable, coEnabled, coParentBidiMode, coParentColor, coResizable, coShowDropMark, coVisible, coAllowFocus]
|
||||
Position = 1
|
||||
Text = 'Name'
|
||||
Width = 419
|
||||
Width = 390
|
||||
end
|
||||
item
|
||||
Options = [coDraggable, coEnabled, coParentBidiMode, coParentColor, coResizable, coShowDropMark, coVisible, coAllowFocus]
|
||||
|
@ -77,8 +77,6 @@ type
|
||||
procedure btnDiscardClick(Sender: TObject);
|
||||
procedure comboDefinerDropDown(Sender: TObject);
|
||||
procedure btnMoveParamClick(Sender: TObject);
|
||||
procedure listParametersAfterPaint(Sender: TBaseVirtualTree;
|
||||
TargetCanvas: TCanvas);
|
||||
private
|
||||
{ Private declarations }
|
||||
FAlterRoutineType: String;
|
||||
@ -198,7 +196,6 @@ begin
|
||||
Modified := True;
|
||||
btnSave.Enabled := Modified and (editName.Text <> '');
|
||||
btnDiscard.Enabled := Modified;
|
||||
listParameters.Header.AutoFitColumns(False, smaUseColumnOption, 0, 0);
|
||||
SynMemoCreateCode.Text := ComposeCreateStatement(editName.Text);
|
||||
end;
|
||||
|
||||
@ -276,13 +273,6 @@ begin
|
||||
end;
|
||||
|
||||
|
||||
procedure TfrmRoutineEditor.listParametersAfterPaint(Sender: TBaseVirtualTree;
|
||||
TargetCanvas: TCanvas);
|
||||
begin
|
||||
listParameters.Header.AutoFitColumns(False, smaUseColumnOption, 0, 0);
|
||||
end;
|
||||
|
||||
|
||||
procedure TfrmRoutineEditor.listParametersBeforePaint(Sender: TBaseVirtualTree;
|
||||
TargetCanvas: TCanvas);
|
||||
begin
|
||||
|
Reference in New Issue
Block a user