Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 17-05-2017, 07:26
Fakhruddinmaruf_ Fakhruddinmaruf_ is offline
Registered User
 
Join Date: Jul 2016
Location: Indonesia
Posts: 37
Thanks: 12
Thanked 17 Times in 5 Posts
Fakhruddinmaruf_ is on a distinguished road
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.
Attached Images
File Type: png Untitled.png (1.1 KB, 105 views)
Reply With Quote
Sponsored Links
  #2  
Old 19-05-2017, 06:30
Gupta Gupta is offline
Banned
 
Join Date: Aug 2016
Location: https://t.me/pump_upp
Posts: 399
Thanks: 139
Thanked 715 Times in 231 Posts
Gupta is on a distinguished road
Send a message via ICQ to Gupta Send a message via AIM to Gupta Send a message via Yahoo to Gupta
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;
Reply With Quote
The Following 2 Users Say Thank You to Gupta For This Useful Post:
78372 (19-05-2017), Fakhruddinmaruf_ (21-05-2017)
  #3  
Old 21-05-2017, 14:52
Fakhruddinmaruf_ Fakhruddinmaruf_ is offline
Registered User
 
Join Date: Jul 2016
Location: Indonesia
Posts: 37
Thanks: 12
Thanked 17 Times in 5 Posts
Fakhruddinmaruf_ is on a distinguished road
Thanks sir
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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



All times are GMT -7. The time now is 21:30.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com