mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Replace out-dated code which does not compile in 64bit mode in helpers.SetWindowSizeGrip. Use a TForm descendant in the new unit "extra_controls". Code parts taken from http://www.delphigroups.info/2/4/326787.html
This commit is contained in:
@ -915,9 +915,7 @@ begin
|
||||
FPanel.Hide;
|
||||
FPanel.Parent := FParentForm;
|
||||
FPanel.ParentBackground := False;
|
||||
FPanel.Width := AppSettings.ReadInt(asSetEditorWidth);
|
||||
FPanel.Height := AppSettings.ReadInt(asSetEditorHeight);
|
||||
SetWindowSizeGrip(FPanel.Handle, True);
|
||||
FPanel.Height := 150;
|
||||
FPanel.OnResize := PanelResize;
|
||||
FPanel.OnExit := DoEndEdit;
|
||||
|
||||
@ -1002,6 +1000,7 @@ begin
|
||||
R := GetCellRect(False);
|
||||
FPanel.Top := R.Top;
|
||||
FPanel.Left := R.Left;
|
||||
FPanel.Width := R.Width;
|
||||
|
||||
FBtnOk.Width := (FPanel.Width - 3*margin) div 2;
|
||||
FBtnOk.Left := margin;
|
||||
|
Reference in New Issue
Block a user