Re: [Lazarus] Attn José: TWindowsMask oddity?

2021-11-01 Thread Bart via lazarus
On Mon, Nov 1, 2021 at 11:02 PM Bart wrote: > I think I also need to write a setter for AutoReverseRange property Indeed it did. @Jose: in the setter for EscapeChar you should also set cMaskIsCompiled to False. -- Bart -- ___ lazarus mailing list

Re: [Lazarus] Attn José: TWindowsMask oddity?

2021-11-01 Thread Bart via lazarus
On Mon, Nov 1, 2021 at 7:30 PM José Mejuto via lazarus wrote: > > A note: IIRC (do not have the source at hand here) you escape [ ] and > > \, with or withoud mocEscapeChar enabled. > > if mocEscapeChar is not enabled, escaping these in the mask is > > probably not what you want. > ... > In the o

Re: [Lazarus] Attn José: TWindowsMask oddity?

2021-11-01 Thread José Mejuto via lazarus
El 01/11/2021 a las 15:31, Bart via lazarus escribió: The target in *Windows classes is to mimic the old fashion CMD masks, and CMD masks does not have ranges or sets. OK, this is by design. Since that is however not backwards compatible (the old mask implementation supported sets out of the bo

Re: [Lazarus] Attn José: TWindowsMask oddity?

2021-11-01 Thread Bart via lazarus
On Mon, Nov 1, 2021 at 12:22 PM José Mejuto via lazarus wrote: > The target in *Windows classes is to mimic the old fashion CMD masks, > and CMD masks does not have ranges or sets. OK, this is by design. Since that is however not backwards compatible (the old mask implementation supported sets o

Re: [Lazarus] Attn José: TWindowsMask oddity?

2021-11-01 Thread José Mejuto via lazarus
El 31/10/2021 a las 17:12, Bart via lazarus escribió: Hi José, In TWindowsMask.Compile (as in your TMaskUTF8Windows class) you do a call to EscapeSpecialChars on the modified mask. This will escape a.o. any '[' and ']' character, so ranges and sets are not possible to use in the mask anymore.