mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
ADD: cm_PanelSplitterPerPos
This commit is contained in:
parent
dcb2b71b87
commit
c4a4076f1d
2 changed files with 14 additions and 1 deletions
|
|
@ -805,7 +805,7 @@ procedure TfrmMain.mnuSplitterPercentClick(Sender: TObject);
|
|||
begin
|
||||
with (Sender as TMenuItem) do
|
||||
begin
|
||||
pnlLeft.Width:= (pnlNoteBooks.Width-MainSplitter.Width) * Tag div 100;
|
||||
Actions.cm_PanelsSplitterPerPos(inttostr(Tag));
|
||||
end;
|
||||
end;
|
||||
|
||||
|
|
|
|||
13
uacts.pas
13
uacts.pas
|
|
@ -99,6 +99,7 @@ const cf_Null=0;
|
|||
procedure cm_FileProperties(param: string='');
|
||||
procedure cm_FileLinker(param: string='');
|
||||
procedure cm_FileSpliter(param: string='');
|
||||
procedure cm_PanelsSplitterPerPos(param: string='');
|
||||
|
||||
//---------------------
|
||||
{ procedure SomeFunction (param:string; var Result:integer);
|
||||
|
|
@ -1407,6 +1408,18 @@ begin
|
|||
end;
|
||||
end;
|
||||
|
||||
procedure TActs.cm_PanelsSplitterPerPos(param: string);
|
||||
var i:integer;
|
||||
begin
|
||||
with frmMain do
|
||||
begin
|
||||
if TryStrToInt(param,i) then
|
||||
begin
|
||||
pnlLeft.Width:= (pnlNoteBooks.Width-MainSplitter.Width) * i div 100;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
|
||||
end.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue