mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: Show/hide console by Ctrl+O
This commit is contained in:
parent
7db27cc2c8
commit
32d37efad0
1 changed files with 12 additions and 1 deletions
|
|
@ -1240,8 +1240,19 @@ begin
|
|||
end;
|
||||
|
||||
procedure TfrmMain.ConsoleSplitterMoved(Sender: TObject);
|
||||
var
|
||||
AHeight: Integer;
|
||||
begin
|
||||
nbConsole.Height := nbConsole.Height + nbConsole.Tag - pnlCommand.Height;
|
||||
AHeight:= nbConsole.Height + nbConsole.Tag - pnlCommand.Height;
|
||||
if AHeight > 0 then
|
||||
begin
|
||||
nbConsole.Height := AHeight;
|
||||
cmdConsole.Visible:= True;
|
||||
end
|
||||
else begin
|
||||
cmdConsole.Hide;
|
||||
nbConsole.Height := 0;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TfrmMain.dskToolButtonMouseDown(Sender: TObject;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue