Hi there, The MaskEdit unit at the moment still misses quite some functionality and is far from Delphi compatible.
Is there anybody out there working on the MaskEdit unit, or willing to try and work on it with me? Currently observed bugs: - You cannot use numeric keyboard to enter numbers - A colon (:) in the EditMask will be translated to DecimalSeparator at the moment (uploaded a patch for that in the bugtracker) - You cannot set BlankChar by setting the third field in the EditMask property - Text and editText property are the same (when read), in Delphi the BlankChar seems to be replaced by #32 if you read TMaskEdit.Text - You can type more characters in the MaskEdit control than the EditMask allows for. When you do this you cannot delete these characters using only the keyboard, since you cannot reach them with the arrow keys or VK_END - No exception is raised if the text in the control does not match the mask on exiting the control (although in Delphi (3) it really annoyed me that it was impossible to catch that exception in the OnExit event, so if we implement it we might improve on this??) Missing features - In Delphi if you type in the MaskEdit control it will select one character at a time, in effect making user input overwrite the selecte character. - In Delphi whilst typing in the MaskEdit control, it will nicely skipp any litteral in the mask, proceeding to the next character after the literal (this also works for Backspace), Lazarus currently stops at the literal, not allowing you to type anymore but forcing you to use the arrow key to skip the literal yourself. - In Delphi pasting "garbage" (as in not meeting the editMask) from the clipboard simply results in not pasting characters that do not meet the current EditMask, without raising an exception. Some features/bug I have some notice on how to fix/implement, others I don't know how. And I guess there will be more bugs/missing features than I listed above. So it would be nice to work with somebody else on this one. Needless to say I really like MaskEdit for simple user input control. Bart _______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
