[Lazarus] TMask revisited

Maxim Ganetsky ganmax at narod.ru
Wed Oct 13 23:53:33 CEST 2021

13.10.2021 18:16, Juha Manninen via lazarus пишет:
> I restored the great TMask implementation by José Mejuto in our 
> development branch.
> I also fixed a few issues that hindered the transition last time.
> It was discussed at least in this mailing list with title
>   "unit Masks vs. unit FPMasks"
> in 23 February this year.
> The logic in ShellCtrls unit is retained as it was. MaskList is used 
> only when there are many ';' separated masks.
> I found a way to disable ranges in the new TMask code. The syntax 
> differs a little from the old one though. If the old TMaskOptions syntax 
> is needed, it can be added as a compatibility layer.

Don't know if it is related but just noticed that `Find in files` dialog 
now "ignores" file masks.

E. g. I have the following file mask: `*.pas;*.pp;*.inc;*.lpr;*.lfm`, 
but it also finds (existing) entries in *.bak files, which is not really 

> function TMaskList.MatchesWindowsMask() now works using a hack.
> It is deprecated for that reason.
> Tests to lazutils/test/testmasks.lpr were added for disabled ranges.
> Please test everybody. I will read the old posts more carefully later.

Best regards,
  Maxim Ganetsky                  mailto:ganmax at narod.ru

More information about the lazarus mailing list