1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2024-11-29 11:24:19 +01:00

quickfix for ftp function

--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40322
This commit is contained in:
Christian Hammacher 2006-12-18 22:15:04 +00:00
parent 77bc4b7509
commit ead1b254c7
3 changed files with 14 additions and 0 deletions

Binary file not shown.

View File

@ -11109,6 +11109,7 @@ object frmMain: TfrmMain
OnCollapsing = trvDirectoriesCollapsing
OnExpanding = trvDirectoriesExpanding
OnExpanded = trvDirectoriesExpanded
OnMouseDown = trvDirectoriesMouseDown
end
end
object pnlOS: TPanel

View File

@ -122,6 +122,8 @@ type
procedure trvDirectoriesCollapsing(Sender: TObject; Node: TTreeNode;
var AllowCollapse: Boolean);
procedure trvModsClick(Sender: TObject);
procedure trvDirectoriesMouseDown(Sender: TObject;
Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
private
OldProgress: Integer;
CurrProgress: Integer;
@ -684,4 +686,15 @@ begin
cmdNext.Enabled := False;
end;
procedure TfrmMain.trvDirectoriesMouseDown(Sender: TObject;
Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
var Node: TTreeNode;
begin
Node := trvDirectories.GetNodeAt(X, Y);
if (Assigned(Node)) then begin
if (Node.DisplayRect(True).Right < X) then
trvDirectories.Selected := nil;
end;
end;
end.