Changeset 487 for Common/UFindFile.pas


Ignore:
Timestamp:
Jul 26, 2016, 11:26:11 PM (8 years ago)
Author:
chronos
Message:
  • Modified: Improved ScaleDPI component.
  • Modified: Improved storing position with TPersistentForm.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Common/UFindFile.pas

    r463 r487  
    5555  end;
    5656
     57const
     58{$IFDEF WINDOWS}
     59  FilterAll = '*.*';
     60{$ENDIF}
     61{$IFDEF LINUX}
     62  FilterAll = '*';
     63{$ENDIF}
     64
    5765procedure Register;
    5866
     
    7179  inherited Create(AOwner);
    7280  Path := IncludeTrailingBackslash(UTF8Encode(GetCurrentDir));
    73   FileMask := '*.*';
     81  FileMask := FilterAll;
    7482  FileAttr := [ffaAnyFile];
    7583  s := TStringList.Create;
     
    127135  If not InSubFolders then Exit;
    128136
    129   if SysUtils.FindFirst(UTF8Decode(inPath + '*.*'), faDirectory, Rec) = 0 then
     137  if SysUtils.FindFirst(UTF8Decode(inPath + FilterAll), faDirectory, Rec) = 0 then
    130138  try
    131139    repeat
Note: See TracChangeset for help on using the changeset viewer.