Definicja wlasnej maski w MaskEdit

0

Mam prosbe o wyjasnienie jak definiowac wlasne maski w MaskEdit, co oznaczaja poszczegolne
uzywane tam znaki.

Szukajac w google znalazlem strone http://www.delphikursu.com/yeni_bas/EDITMASK.HTM
ale niestety nie rozumiem ani slowa bo to jakis dziwny jezyk.

Moze ktos moglby w kilku slowach wyjasnic uzycie znakow w kilku slowach lub jakis odnosnik w necie
ale w jakims zrozumialym jezyku (polski, angielski).

W helpie nic na ten temat nie ma, albo ja mam jakis okrojony help.
Ma tylko informacje: "Define your own masks for the edit box. You can use special character to specify the mask; for a listing of those characters, see the EditMask property."
W EditMask zas jest tylko: "Use EditMask to restrict the characters a user can enter into the masked edit control to valid characters and formats. If the user attempts to enter an invalid character, the edit control does not accept the character. Validation is performed on a character-by-character basis by the ValidateEdit method. Setting EditMask to an empty string removes the mask."

I zadnych wyjasnien co oznaczaja te rozne znaczki typu: !, <, >, 9, 0, A, /, , ;, LL itd.

0
Help Delphi: TEditMask napisał(a)

!
If a ! character appears in the mask, optional characters are represented in the text as leading blanks. If a ! character is not present, optional characters are represented in the text as trailing blanks.

If a > character appears in the mask, all characters that follow are in uppercase until the end of the mask or until a < character is encountered.

<
If a < character appears in the mask, all characters that follow are in lowercase until the end of the mask or until a > character is encountered.

<>
If these two characters appear together in a mask, no case checking is done and the data is formatted with the case the user uses to enter the data.


The character that follows a \ character is a literal character. Use this character to use any of the mask special characters as a literal in the data.

L
The L character requires an alphabetic character only in this position. For the US, this is A-Z, a-z.

l
The l character permits only an alphabetic character in this position, but doesn't require it.

A
The A character requires an alphanumeric character only in this position. For the US, this is A-Z, a-z, 0-9.

a
The a character permits an alphanumeric character in this position, but doesn't require it.

C
The C character requires an arbitrary character in this position.

c
The c character permits an arbitrary character in this position, but doesn't require it.

0
The 0 character requires a numeric character only in this position.

9
The 9 character permits a numeric character in this position, but doesn't require it.

The # character permits a numeric character or a plus or minus sign in this position, but doesn't require it.

:
The : character is used to separate hours, minutes, and seconds in times. If the character that separates hours, minutes, and seconds is different in the regional settings of the Control Panel utility on your computer system, that character is used instead.

/
The / character is used to separate months, days, and years in dates. If the character that separates months, days, and years is different in the regional settings of the Control Panel utility on your computer system, that character is used instead.

;
The ; character is used to separate the three fields of the mask.

_
The _ character automatically inserts spaces into the text. When the user enters characters in the field, the cursor skips the _ character.

0

Jak rozumiem co z helpa Delphi.
Dziwne bo ja w helpie tego nie mam, jest tylko to co zamiescilem w pierwszym poscie.
Wielkie dzieki!!!!

Jeszcze jedno szybkie pytanie.
Co oznacza 0 lub 1 w drugim segmencie definicji maski?
Pierwsza czesc to wlasciwa maska, potem jest srednik, potem zazwyczaj 0 lub 1, potem srednik i w trzeciej
czesci znak ktory sie wyswietla gdy nic nie jest wpisane w pole.
Obserwujac istniejace maski widzialem ze w drugiej czesci jest zazwyczaj 1, sporadycznie 0.
Co oznacza drugi segment? Moze byc cos wiecej niz 0 lub 1?

0
Help Delphi: TEditMask napisał(a)

TEditMask is a string that consists of three fields with semicolons separating them. The first part of the mask is the mask itself. The second part is the character that determines whether the literal characters of a mask are saved as part of the data. The third part of the mask is the character used to represent unentered characters in the mask.

[...]

The second field of the mask is a single character that indicates whether literal characters from the mask should be included as part of the text for the edit control. For example, the mask for a telephone number with area code could be the following string:

(000)_000-0000;0;*

The 0 in the second field indicates that the Text property for the edit control would consist of the 10 digits that were entered, rather than the 14 characters that make up the telephone number as it appears in the edit control.

A 0 in the second field indicates that literals should not be included, any other character indicates that they should be included. The character that indicates whether literals should be included can be changed in the Edit Mask property editor, or programmatically by changing the MaskNoSave typed constant.

The third field of the mask is the character that appears in the edit control for blanks (characters that have not been entered). By default, this is the same as the character that stands for literal spaces. The two characters appear the same in an edit window. However, when a user edits the text in a masked edit control, the cursor selects each blank character in turn, and skips over the space character.

Note:
When working with multibyte character sets, each special mask character represents a single byte. To specify multi-byte characters using the L, l, A, a, C, or c specifiers, the mask characters must be duplicated as well. For example, LL would represent two single-byte alphabetic characters or a one double-byte character. Only single-byte literal characters are supported.

Jak napisałem, jest to z helpa Delphi, hasło TEditMask Type

0

apropos helpa - jeżeli uzywasz Borland Developer Studio, to nowy help jest ułomny. Jesli znajdziesz jakąś własciwość o typie innym niż typy proste, to musisz ten typ wpisać do wyszukania, inaczej zapomnij o informacjach.

0

A w jaki sposób uzyskać w editmask'u taki znaczek jak "/"? Oczywiście nie jest mi potrzebny do żadnych ustawień regionalnych ani tym bardziej nie myślę ich zmieniać użytkownikowi tylko jak uzyskać w polu maskedit ten znaczek "/" niezaleznie od ustawień regionalnych?

1 użytkowników online, w tym zalogowanych: 0, gości: 1