mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-14 01:56:36 +08:00
Fix misplaced buttons on procedure editor in high dpi mode. Closes #482.
This commit is contained in:
@ -183,6 +183,12 @@ begin
|
|||||||
Modified := False;
|
Modified := False;
|
||||||
btnSave.Enabled := Modified;
|
btnSave.Enabled := Modified;
|
||||||
btnDiscard.Enabled := Modified;
|
btnDiscard.Enabled := Modified;
|
||||||
|
// Buttons are randomly moved, since VirtualTree update, see #440
|
||||||
|
btnSave.Top := Height - btnSave.Height - Round(3 * DpiScaleFactor(MainForm));
|
||||||
|
btnHelp.Top := btnSave.Top;
|
||||||
|
btnDiscard.Top := btnSave.Top;
|
||||||
|
btnRunProc.Top := btnSave.Top;
|
||||||
|
btnRunProc.Left := Width - btnRunProc.Width - Round(3 * DpiScaleFactor(MainForm));
|
||||||
Mainform.actRunRoutines.Enabled := DBObject.Name <> '';
|
Mainform.actRunRoutines.Enabled := DBObject.Name <> '';
|
||||||
Mainform.ShowStatusMsg;
|
Mainform.ShowStatusMsg;
|
||||||
Screen.Cursor := crDefault;
|
Screen.Cursor := crDefault;
|
||||||
|
Reference in New Issue
Block a user