![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Кодировка текста [D6, WinXP]
7D7 © (2006-08-29 02:56:00)Хай мастера!
У меня возник простенький вопрос. Как сделать так, что бы при вводе в Edit, символы кодировались в вид типа "****" ?
Заранее блягодарен
IceBeerg (2006-08-29 16:23:00) [1]
> Edit1.Text:=StringOfChar('*',Length(Edit1.Text));
8)))))
А как тогда декодировать!?
Desdechado (2006-08-29 16:21:00) [2]> кодировались в вид типа "****"
Edit1.Text:=StringOfChar('*',Length(Edit1.Text));
IceBeerg (2006-08-29 15:53:00) [3]А в IDE свойства Edit'а посмотреть слабо? %$$^%^*
Elen (2006-08-29 08:05:00) [4]
> 7D7
Для особо-русских :
procedure TForm1.FormCreate(Sender: TObject);
begin
Edit1.PasswordChar:='*';
end;
или это же свойство выставляеш в Object Inspectore
7D7 (2006-08-29 07:57:00) [5]а поподробнее можно на русском?
Германн (2006-08-29 03:18:00) [6]property PasswordChar: Char;
Description
Use the PasswordChar property to create an edit control that displays a special character in place of any entered text. If PasswordChar is set to the null character (ANSI character zero), the edit control displays its text normally. If PasswordChar is any other character, the edit control displays PasswordChar in place of each character typed. PasswordChar affects the appearance of the edit control only. The value of the Text property reflects the actual characters that are typed.