Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-04

TMaskEdit: EditMask property error

7 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Andrea Mauri

Dear all,
Lazarus svn, fpc 2.2 on windows xp.
If I click on the ellipsis button of the EditMask property of a TMaskedit I get an error:
Error reading TextMaskEdit.BorderSpaging.Onchange: Unknown property: "Border Spacing"

Regards,
Andrea

Reply by email

wile64
to Andrea Mauri

2008/4/5, Andrea Mauri :

Show quoted text 14 lines
Dear all, Lazarus svn, fpc 2.2 on windows xp. If I click on the ellipsis button of the EditMask property of a TMaskedit I get an error: Error reading TextMaskEdit.BorderSpaging.Onchange: Unknown property: "Border Spacing" Regards, Andrea _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Fixed in r14766

Reply by email

zeljko
to wile64
wile64 wrote
Fixed in r14766

I see it's fixed, but I cannot set any mask properly ?!?!? eg: EditMask = 99/99/2000
-> text: 00.00.20__
now I'm setting this value as text
07.04.2008
-> av raised -> "Error setting text ....."

What is proper usage of LCL TMaskEdit ?

Reply by email

Felipe Monteiro de Carvalho
to zeljko
zeljko wrote
What is proper usage of LCL TMaskEdit ?

I don't know. It was received as a patch, and is undocumented. I just certifyed it isn't a copy of delphi code and then I applied it.

There are 2 ways to know how it should work.

To know how it actually works, I'd look at the code.

To know how it should work, I'd look at Delphi help files.

In any case it would be great if someone who needs to use this control would write a wiki page or documentation for this control, to easy the path of those that come later.

Felipe Monteiro de Carvalho

Reply by email

zeljko
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 9 lines
On Sun, Apr 6, 2008 at 4:44 AM, zeljko wrote: > What is proper usage of LCL TMaskEdit ? I don't know. It was received as a patch, and is undocumented. I just certifyed it isn't a copy of delphi code and then I applied it. There are 2 ways to know how it should work. To know how it actually works, I'd look at the code.

it takes some time ;) .

To know how it should work, I'd look at Delphi help files.

It's definitelly not compatibile with delphi masks (that's what I've tried)

In any case it would be great if someone who needs to use this control would write a wiki page or documentation for this control, to easy the path of those that come later.

Yes, wiki page is a best solution. Who's patch author ?

Reply by email

shoKwave
to zeljko: I see it's fixed, but I cannot set any mask properly ?!?!? eg: EditMask = 99/99/2000 ->…
Show quoted text 19 lines
On Saturday 05 April 2008 22:09, wile64 wrote: > Fixed in r14766 > I see it's fixed, but I cannot set any mask properly ?!?!? eg: EditMask = 99/99/2000 -> text: 00.00.20__ now I'm setting this value as text 07.04.2008 -> av raised -> "Error setting text ....." What is proper usage of LCL TMaskEdit ? _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Got this issue zo with the patch. It seems to be a problem with the zeros. I change the following line:

       Char_Number              : Result := Ch In ['0'..'9'];
to:
       Char_Number              : Result := Ch In ['0'..'9', #32];

in the maskedit.pp.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080407/9bc2e8ab/attachment.html

Reply by email