mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
ADD: Save window size and state for "File association" and "Multi rename" dialogs
This commit is contained in:
parent
9f74a77bf1
commit
e2698b252b
4 changed files with 13 additions and 4 deletions
|
|
@ -9,6 +9,7 @@ object frmFileAssoc: TfrmFileAssoc
|
|||
ClientWidth = 554
|
||||
OnCreate = FormCreate
|
||||
Position = poScreenCenter
|
||||
SessionProperties = 'Height;Width;WindowState'
|
||||
LCLVersion = '0.9.27'
|
||||
object gbFileTypes: TGroupBox
|
||||
AnchorSideLeft.Control = Owner
|
||||
|
|
|
|||
|
|
@ -151,6 +151,10 @@ begin
|
|||
if iCount > 0 then
|
||||
lbFileTypes.ItemIndex:= 0;
|
||||
UpdateEnabledButtons;
|
||||
// Initialize property storage
|
||||
InitPropStorage(Self);
|
||||
// Resize window for screen size if need
|
||||
ResizeToScreen(Self);
|
||||
end;
|
||||
|
||||
procedure TfrmFileAssoc.UpdateEnabledButtons;
|
||||
|
|
|
|||
|
|
@ -7,12 +7,12 @@ object frmMultiRename: TfrmMultiRename
|
|||
Caption = 'MultiRename'
|
||||
ClientHeight = 400
|
||||
ClientWidth = 740
|
||||
OnCreate = FormCreate
|
||||
OnClose = FormClose
|
||||
ParentFont = False
|
||||
OnCreate = FormCreate
|
||||
Position = poScreenCenter
|
||||
SessionProperties = 'Height;Width;WindowState'
|
||||
ShowInTaskBar = stAlways
|
||||
LCLVersion = '0.9.26'
|
||||
LCLVersion = '0.9.27'
|
||||
object gbMaska: TGroupBox
|
||||
AnchorSideLeft.Control = Owner
|
||||
AnchorSideRight.Side = asrBottom
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ type
|
|||
implementation
|
||||
|
||||
uses
|
||||
LCLProc, uLng, uFileProcs, uDCUtils, uOSUtils;
|
||||
LCLProc, uLng, uGlobs, uFileProcs, uDCUtils, uOSUtils;
|
||||
|
||||
function ShowMultiRenameForm(Var lsInFiles: TStringList):Boolean;
|
||||
var
|
||||
|
|
@ -147,6 +147,10 @@ procedure TfrmMultiRename.FormCreate(Sender: TObject);
|
|||
begin
|
||||
// Localize File name style ComboBox
|
||||
ParseLineToList(rsMulRenFileNameStyleList, cmbxFont.Items);
|
||||
// Initialize property storage
|
||||
InitPropStorage(Self);
|
||||
// Resize window for screen size if need
|
||||
ResizeToScreen(Self);
|
||||
end;
|
||||
|
||||
procedure TfrmMultiRename.FormClose(Sender: TObject; var CloseAction: TCloseAction);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue