[Lazarus] MaskEdit: question on how it should behave

Alexander Klenin klenin at gmail.com
Sun Dec 28 04:41:23 CET 2008


On Sun, Dec 28, 2008 at 09:43, Bart <bartjunk64 at gmail.com> wrote:
>> I am not sure how modern Delphi behaves, but I'd say that Lazarus
>>  way is correct here -- this is clearly a programmes's error.
>>  OTOH, I think it would be useful to provide a separate function
>>  like 'TrySetText' which whould return false instead if saising an exception.
>
> In D3, D4 and Kylix1 ValidateEdit is only called if either the user
> presses Enter in the control, or the control looses focus.
>
> I still would like someone to test this in D7 or higher.

Ok, I tested it -- D7 does the same. Actually, ValidateEdit only fires
if the text was modified. (Or always at the design time).

-- 
Alexander S. Klenin



More information about the Lazarus mailing list