Autor Beitrag
Hertiuser
Hält's aus hier
Beiträge: 2



BeitragVerfasst: Fr 14.07.06 01:07 
Hi Delphi Community
Ich habe ein Feld für Zahlen und möchte es gerne per Checkbox Hiden.
Sprich : 23456 Hide : *****
Wie mache ich das?
Danke schonmal =]
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10184
Erhaltene Danke: 1259

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Fr 14.07.06 01:17 
Moin und :welcome: im Forum!

Wenn es ein TEdit ist: schau dir mal die Eigenschaft .PasswordChar an. ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
Hertiuser Threadstarter
Hält's aus hier
Beiträge: 2



BeitragVerfasst: Fr 14.07.06 01:21 
Danke für die nette Begrüßung =)
und Danke für den Tipp nur wie verbinde ich es mit der Checkbox?
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10184
Erhaltene Danke: 1259

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Fr 14.07.06 01:49 
Moin!

Zum Beispiel so:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure TForm1.CheckBox1Click(Sender: TObject);
begin
  if (CheckBox1.Checked) then
    Edit1.PasswordChar := '*'
  else
    Edit1.PasswordChar := #0;
end;

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.