> editmask: '000\.000\.000\-00;0;_' > > Several errors: > - Text not mach with mask ... > - dbedit without mask: _________________ and when a clear (backspace) > my mask apear. >
Applying your mask to a MaksEdit gives me this text in the control "___.___.___-__" Which is what I expect. >From maskedit.pp: Bugs: - If you place a TMaskEdit on a form and at designtime set the mask and leave the text in the control "invalid" (as in: will not validate) and the TMaskEdit is the ActiveControl of the form, then before the form is displayed an exception will be raised, because somehow DoExit is executed (which calls ValidateEdit) A bugreport on this behaviour is in Mantis: #0012877 Might this be the case? If so, try setting the EditMask at runtime. > - Text not mach with mask ... This text should only be shown __when the control looses focus__ and the text does not match the mask. Bart -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
