Skip to content

Commit

Permalink
Make preferences dialog resizable, and store/restore its dimensions f…
Browse files Browse the repository at this point in the history
…or the next time it opens
  • Loading branch information
ansgarbecker committed Mar 10, 2019
1 parent 7ae1599 commit 0ef9b64
Show file tree
Hide file tree
Showing 4 changed files with 134 additions and 156 deletions.
3 changes: 3 additions & 0 deletions source/apphelpers.pas
Expand Up @@ -182,6 +182,7 @@ TQueryThread = class(TThread)
asRecentFilter, asTimestampColumns, asDateTimeEditorCursorPos, asAppLanguage, asAutoExpand, asDoubleClickInsertsNodeText, asForeignDropDown, asRecentFilter, asTimestampColumns, asDateTimeEditorCursorPos, asAppLanguage, asAutoExpand, asDoubleClickInsertsNodeText, asForeignDropDown,
asQueryHistoryEnabled, asQueryHistoryKeepDays, asQueryHistoryEnabled, asQueryHistoryKeepDays,
asColumnSelectorWidth, asColumnSelectorHeight, asDonatedEmail, asFavoriteObjects, asFavoriteObjectsOnly, asFullTableStatus, asLineBreakStyle, asColumnSelectorWidth, asColumnSelectorHeight, asDonatedEmail, asFavoriteObjects, asFavoriteObjectsOnly, asFullTableStatus, asLineBreakStyle,
asPreferencesWindowWidth, asPreferencesWindowHeight,
asFileDialogEncoding, asFileDialogEncoding,
asUnused); asUnused);
TAppSetting = record TAppSetting = record
Expand Down Expand Up @@ -3671,6 +3672,8 @@ constructor TAppSettings.Create;
InitSetting(asFavoriteObjectsOnly, 'FavoriteObjectsOnly', 0, False); InitSetting(asFavoriteObjectsOnly, 'FavoriteObjectsOnly', 0, False);
InitSetting(asFullTableStatus, 'FullTableStatus', 0, True, '', True); InitSetting(asFullTableStatus, 'FullTableStatus', 0, True, '', True);
InitSetting(asLineBreakStyle, 'LineBreakStyle', Integer(lbsWindows)); InitSetting(asLineBreakStyle, 'LineBreakStyle', Integer(lbsWindows));
InitSetting(asPreferencesWindowWidth, 'PreferencesWindowWidth', 740);
InitSetting(asPreferencesWindowHeight, 'PreferencesWindowHeight', 500);
InitSetting(asFileDialogEncoding, 'FileDialogEncoding_%s', 0); InitSetting(asFileDialogEncoding, 'FileDialogEncoding_%s', 0);
end; end;


Expand Down
1 change: 1 addition & 0 deletions source/exportgrid.dfm
@@ -1,6 +1,7 @@
object frmExportGrid: TfrmExportGrid object frmExportGrid: TfrmExportGrid
Left = 0 Left = 0
Top = 0 Top = 0
BorderIcons = [biSystemMenu]
Caption = 'Export grid rows' Caption = 'Export grid rows'
ClientHeight = 422 ClientHeight = 422
ClientWidth = 373 ClientWidth = 373
Expand Down

0 comments on commit 0ef9b64

Please sign in to comment.