K
Kitty
Подскажите, пожалуйста, есть ли в C++ Builder уже встроенный элемент типа Едита, чтобы при вводе в нем отображались звездочки? 

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.
The following example uses two edit controls and a button on a form. When the button is clicked, the text in the edit controls is compared.
uses SysUtils;
...
procedure TForm1.Button1Click(Sender: TObject);
var Msg: string;
CompResult: Integer;
begin
Msg := Edit1.Text;
CompResult := StrComp(PChar(Edit1.Text), PChar(Edit2.Text));
if CompResult < 0 then
Msg := Msg + ' is less than '
else if CompResult > 0 then
Msg := Msg + ' is greater than '
else
Msg := Msg + ' is equal to '
Msg := Msg + Edit2.Text;
ShowMessage(Msg);
end;
Взломай свой первый сервер и прокачай скилл — Начни игру на HackerLab