mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Issue #1503: scale hardcoded control dimensions in column default editor
This commit is contained in:
@ -1251,13 +1251,15 @@ end;
|
||||
{ Column default editor }
|
||||
|
||||
constructor TColumnDefaultEditorLink.Create(Tree: TVirtualStringTree; AllowEdit: Boolean; Col: TTableColumn);
|
||||
const
|
||||
m = 5;
|
||||
var
|
||||
SQLFunc: TSQLFunction;
|
||||
m: Integer;
|
||||
begin
|
||||
inherited;
|
||||
|
||||
// Margin between controls and to edge of panel
|
||||
m := TExtForm.ScaleSize(5, FParentForm);
|
||||
|
||||
FPanel := TPanel.Create(FParentForm);
|
||||
FPanel.Hide;
|
||||
FPanel.Parent := FParentForm;
|
||||
@ -1357,7 +1359,7 @@ begin
|
||||
|
||||
FBtnOk := TButton.Create(FPanel);
|
||||
FBtnOk.Parent := FPanel;
|
||||
FBtnOk.Width := 60;
|
||||
FBtnOk.Width := TExtForm.ScaleSize(60, FParentForm);
|
||||
FBtnOk.Top := FRadioAutoInc.Top + FRadioAutoInc.Height + m;
|
||||
FBtnOk.Left := FPanel.Width - 3*m - 2*FBtnOk.Width - 2*FPanel.BorderWidth;
|
||||
FBtnOk.OnClick := BtnOkClick;
|
||||
|
Reference in New Issue
Block a user