Show and hide your password (Delphi)

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ธ.ค. 2024

ความคิดเห็น • 7

  • @marcioehrlich
    @marcioehrlich 2 ปีที่แล้ว +4

    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;

  • @paigeturner3977
    @paigeturner3977 3 ปีที่แล้ว +5

    Omg. Thank You, my teacher thinks I'm awesome because I added this in my PAT at my level😎

    • @khaoulabls2313
      @khaoulabls2313 2 ปีที่แล้ว

      the component Edit and what ?? The eyse in witch component should i put it ????

    • @marcioehrlich
      @marcioehrlich 2 ปีที่แล้ว

      @@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.

  • @DrayushChaudhari
    @DrayushChaudhari 11 หลายเดือนก่อน

    😂😢

  • @mirvids5036
    @mirvids5036 ปีที่แล้ว

    Shame your speech is broken and garbled.

    • @SarfarazAhmad-ne2qs
      @SarfarazAhmad-ne2qs ปีที่แล้ว

      السلام علیکم بھائی جان میں جی میرے کا کوڈ بھول گیا ہوں مجھے بتا سکتے ہو تو بتا دو مہربانی ہوگی اپ