File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -106,8 +106,8 @@ procedure TfrmBinEditor.FormCreate(Sender: TObject);
106106
107107procedure TfrmBinEditor.FormDestroy (Sender: TObject);
108108begin
109- AppSettings.WriteInt(asMemoEditorWidth, Width);
110- AppSettings.WriteInt(asMemoEditorHeight, Height);
109+ AppSettings.WriteInt(asMemoEditorWidth, ScaleFormToDesign( Width) );
110+ AppSettings.WriteInt(asMemoEditorHeight, ScaleFormToDesign( Height) );
111111 AppSettings.WriteBool(asMemoEditorWrap, btnWrap.Down);
112112end ;
113113
Original file line number Diff line number Diff line change @@ -1854,8 +1854,8 @@ procedure TMainForm.FormDestroy(Sender: TObject);
18541854 AppSettings.WriteInt(asMainWinOnMonitor, Monitor.MonitorNum);
18551855 // Window dimensions are only valid when WindowState is normal.
18561856 if WindowState = wsNormal then begin
1857- AppSettings.WriteInt(asMainWinLeft, ScaleFormToDesign( Left) );
1858- AppSettings.WriteInt(asMainWinTop, ScaleFormToDesign( Top) );
1857+ AppSettings.WriteInt(asMainWinLeft, Left);
1858+ AppSettings.WriteInt(asMainWinTop, Top);
18591859 AppSettings.WriteInt(asMainWinWidth, ScaleFormToDesign(Width));
18601860 AppSettings.WriteInt(asMainWinHeight, ScaleFormToDesign(Height));
18611861 end;
Original file line number Diff line number Diff line change @@ -112,8 +112,8 @@ procedure TfrmSQLhelp.FormCreate(Sender: TObject);
112112
113113procedure TfrmSQLhelp.FormDestroy (Sender: TObject);
114114begin
115- AppSettings.WriteInt(asSQLHelpWindowLeft, ScaleFormToDesign( Left) );
116- AppSettings.WriteInt(asSQLHelpWindowTop, ScaleFormToDesign( Top) );
115+ AppSettings.WriteInt(asSQLHelpWindowLeft, Left);
116+ AppSettings.WriteInt(asSQLHelpWindowTop, Top);
117117 AppSettings.WriteInt(asSQLHelpWindowWidth, ScaleFormToDesign(Width));
118118 AppSettings.WriteInt(asSQLHelpWindowHeight, ScaleFormToDesign(Height));
119119 AppSettings.WriteInt(asSQLHelpPnlLeftWidth, ScaleFormToDesign(pnlLeft.Width));
Original file line number Diff line number Diff line change @@ -571,9 +571,9 @@ procedure TfrmTableTools.FormClose(Sender: TObject; var Action: TCloseAction);
571571 FreeAndNil(FTargetConnection);
572572 SaveSettings;
573573 // Save GUI setup
574- AppSettings.WriteInt(asTableToolsWindowWidth, Width);
575- AppSettings.WriteInt(asTableToolsWindowHeight, Height);
576- AppSettings.WriteInt(asTableToolsTreeWidth, pnlLeft.Width);
574+ AppSettings.WriteInt(asTableToolsWindowWidth, ScaleFormToDesign( Width) );
575+ AppSettings.WriteInt(asTableToolsWindowHeight, ScaleFormToDesign( Height) );
576+ AppSettings.WriteInt(asTableToolsTreeWidth, ScaleFormToDesign( pnlLeft.Width) );
577577end ;
578578
579579
You can’t perform that action at this time.
0 commit comments