Hello,
I'm using a list box in my dialog sample, and would like to know how can i set the first item of my list box to be selected.
I try to play with all the control option but still cannot figure it out.
Any idea?
First ListBox item selected by default
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
Actually, you do it by pre-setting the variable that the control is bound to, to the target value you want to have pre-selected in the control.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
Thank you for the quick reply.
I've tried to pre-set the variable bound to the list box but still the same thing.
Here is my project
File Attached:
PPSUITEINSTALLERPROJECT.zip
I've tried to pre-set the variable bound to the list box but still the same thing.
Here is my project
File Attached:
PPSUITEINSTALLERPROJECT.zip
-
- Posts: 252
- Joined: Sat Dec 03, 2011 3:07 am
- Location: Konstanz, Germany
- Contact:
Re: First ListBox item selected by default
it does not work...any solution ?
Kind regards
Heiko Kummerfeld
MIK GmbH
Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant
Heiko Kummerfeld
MIK GmbH
Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: First ListBox item selected by default
Dear User,
You should set the variable that the box writes to, to the item to select.
Example:
Set Variable MYLISTBOX to Two (Where Two is one of the String Item in the listBox)
Then in "Object Behavior" of the ListBox, Write Values to Variable assign "MYLISTBOX".
Regards
You should set the variable that the box writes to, to the item to select.
Example:
Set Variable MYLISTBOX to Two (Where Two is one of the String Item in the listBox)
Then in "Object Behavior" of the ListBox, Write Values to Variable assign "MYLISTBOX".
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
-
- Posts: 252
- Joined: Sat Dec 03, 2011 3:07 am
- Location: Konstanz, Germany
- Contact:
Re: First ListBox item selected by default
it works with combobox but not with listbox.
SET LISTBOXITEM to Product A does not preselect Product A
Combobox OK
SET LISTBOXITEM to Product A does not preselect Product A
Combobox OK
Kind regards
Heiko Kummerfeld
MIK GmbH
Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant
Heiko Kummerfeld
MIK GmbH
Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: First ListBox item selected by default
Dear User,
It works .. I have just tested!
Send me a very simple project that replicate the issue and I wiil have a look.
Regards
It works .. I have just tested!
Send me a very simple project that replicate the issue and I wiil have a look.
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Return to “New Themes, Dialogs”
Who is online
Users browsing this forum: No registered users and 1 guest