Thanks. It's been usefull to learn about that #0. It's a shame D7 does not allow TBitBtn to load different images from the ImageList. Your solution, though, has the problem of forcing the user to keep those two images along with the app. What I implemented was the same solution the Google login does: to use a TCheckBox checked or not to show the password. if CheckBoxShowPass1.Checked then begin Password.PasswordChar := #0; CheckBoxShowPass1.Checked := True; end else begin Password.PasswordChar := '*'; CheckBoxShowPass1.Checked := False; end;
@@khaoulabls2313, if you want to use his routine, you have to put the eyes in a TImage, from the Additional palette. And then define its Picture property, just as Devakshan said, with a LoadFromFile.
Thanks. It's been usefull to learn about that #0.
It's a shame D7 does not allow TBitBtn to load different images from the ImageList. Your solution, though, has the problem of forcing the user to keep those two images along with the app.
What I implemented was the same solution the Google login does: to use a TCheckBox checked or not to show the password.
if CheckBoxShowPass1.Checked then
begin
Password.PasswordChar := #0;
CheckBoxShowPass1.Checked := True;
end
else
begin
Password.PasswordChar := '*';
CheckBoxShowPass1.Checked := False;
end;
Omg. Thank You, my teacher thinks I'm awesome because I added this in my PAT at my level😎
the component Edit and what ?? The eyse in witch component should i put it ????
@@khaoulabls2313, if you want to use his routine, you have to put the eyes in a TImage, from the Additional palette. And then define its Picture property, just as Devakshan said, with a LoadFromFile.
😂😢
Shame your speech is broken and garbled.
السلام علیکم بھائی جان میں جی میرے کا کوڈ بھول گیا ہوں مجھے بتا سکتے ہو تو بتا دو مہربانی ہوگی اپ