|
|
|
|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
it's possible to create button to show password of installer?
I would like to make new installer. The installer must be entered the password. I think i should make new button to show password but i don't know what codes i must add. Can anyone help me? i want to make new different installer. thanks.
Like this picture. |
| Sponsored Links |
|
#2
|
|||
|
|||
|
Code:
var
PasswordShowHideBtn: TNewButton; // shows or hide the text
procedure PasswordShowHideBtnMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X: Integer; Y: Integer); forward;
procedure PasswordShowHideBtnMouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X: Integer; Y: Integer); forward;
procedure RedesignWizardForm;
begin
with WizardForm.DirEdit do
begin
PasswordChar := '*'; // By Default Text is Hidden
end;
{ PasswordShowHideBtn }
PasswordShowHideBtn := TNewButton.Create(WizardForm);
with PasswordShowHideBtn do
begin
Parent := WizardForm.SelectDirPage;
Left := ScaleX(296);
Top := ScaleY(152);
Width := ScaleX(121);
Height := ScaleY(33);
Caption := 'show';
OnMouseDown := @PasswordShowHideBtnMouseDown;
OnMouseUp := @PasswordShowHideBtnMouseUp;
end;
PasswordShowHideBtn.TabOrder := 5;
end;
procedure PasswordShowHideBtnMouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X: Integer; Y: Integer);
begin
with WizardForm.DirEdit do
begin
PasswordChar := '*'; // Makes Text Hidden
end;
end;
procedure PasswordShowHideBtnMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X: Integer; Y: Integer);
begin
with WizardForm.DirEdit do
begin
PasswordChar := #0; // Shows Real Text
end;
end;
procedure InitializeWizard();
begin
RedesignWizardForm;
end;
|
| The Following 2 Users Say Thank You to Gupta For This Useful Post: | ||
78372 (19-05-2017), Fakhruddinmaruf_ (21-05-2017) | ||
|
#3
|
|||
|
|||
|
Thanks sir
|
![]() |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| INNO TROUBLESHOOT - Tutorials and Answers about INNO Setup | REV0 | Conversion Tutorials | 129 | 21-05-2021 05:51 |
| INDEX - Conversion Tutorial Index | Razor12911 | Conversion Tutorials | 5 | 11-06-2020 02:05 |
| yener90's Inno Project Source Codes | yener90 | Conversion Tutorials | 1475 | 21-10-2014 09:50 |
| Tutorial using CI 8.0.0 | yener90 | Conversion Tutorials | 424 | 21-10-2014 09:49 |