How to change Password attribute of the Edit control

Having trouble running Advanced Installer? Got a bug to report? Post it all here.

How to change Password attribute of the Edit control

Postby cartman » Mon Apr 09, 2012 2:06 pm

Hi, all.
I made a dialog, in which user has to input a password. Instead of adding editbox for password confirmation I decided to add a Checkbox with label "Show Password" and I need to show content of password editbox when checkbox is checked and hide(show asterisks) when it's unchecked. The question is: how could I change the value of attribute "Password" of Editbox during installation? Is it possible at all?
cartman
 
Posts: 2
Joined: Mon Apr 09, 2012 1:52 pm

Re: How to change Password attribute of the Edit control

Postby Bogdan » Mon Apr 09, 2012 4:12 pm

Hi,

If you want to achieve this behavior you should create two edit boxes (one will have the "Password" attribute set to "True" and the other will have the "Password" attribute set to "False") that will be hidden programmatically using a "Control Condition" based on a checkbox state. It is important to place on your dialog the second edit box exactly over the first.

Create two edit boxes and in the "Properties" pane set the following attributes for those controls:

Property Name : PASSWORD
Password : True

Property Name : PASSWORD
Password : False

Create a check box control and in the "Properties" pane set the following attributes for this control:

Property Name : CHECKBOX
Value : checked

Select the first edit box control. Now add two control conditions, from "Control Conditions" tab and edit them as follows:

CONDITION : CHECKBOX = ""
ACTION : Show

CONDITION : CHECKBOX = "checked"
ACTION : Hide

Select the second edit box control, add two control conditions from "Control Conditions" tab and edit them as follows:

CONDITION : CHECKBOX = ""
ACTION : Hide

CONDITION : CHECKBOX = "checked"
ACTION : Show

Regards,
Bogdan
Bogdan Mitrache
Advanced Installer Team
http://www.advancedinstaller.com/
Bogdan
 
Posts: 2398
Joined: Tue Jul 07, 2009 7:34 am


Return to Common Problems

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 6 guests

cron