Модератор: Модераторы
GAMER писал(а):Проверять количество через Length(Edit1.Text) или отдельную переменную использовать
(да и вобще старатся использовать UTF8XXXX функции)
Mr.Smart писал(а):пофиг на тип используемой кодировки!
"This is not a bug, it is done by design."
TMaskEdit currently supports only ASCII input.
All non-ASCII input is denied and when setting the Text property (or pasting into the control), all non-ASCII characters are replaced with a question mark.
A non-ASCII characer (UTF8) can be up to 3 (or even more?) bytes/chars long, which will screw up internal calculations on the length of the mask, the position of mask-chars, cursor position and wether or not a char can be inserted.
(See my design comments in maskedit.pp)
An UTF8 version of TMaskEdit will require an almost complete re-design of the internal workings.
Given the low interest in this component (my own experience when I rewrote major parts of it), I guess that not so many people will contribute to it.
It can be done of course, so feel free to create (or derive from TMaskEdit) a TMaskEditUTF8 or make the current implementation work with UTF8 chars.
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 53