cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Rincewind
Level 3

How to not have a default selection in listbox

I am creating a new dialog box that displays a list of items in the listbox.
I want the force the user to select an item before enabling the Next> button. This I can do, but when the dialog displays, the first item in the list is already highlighted, like it is selected.
How can I get the dialog to not highlight that first item?
Labels (1)
0 Kudos
(4) Replies
hidenori
Level 17

Which type of dialog are you using, Suite, MSI or InstallScript?
0 Kudos
Rincewind
Level 3

Installscript MSI.
0 Kudos
hidenori
Level 17

Try setting the LBS_EXTENDEDSEL window style for the listbox control using the Other Window Styles setting in the Dialog Editor and see if it works.
0 Kudos
Rincewind
Level 3

Except I only want to allow them to choose 1 item from the list.
I know I could probably use a drop-down, but I want to show them all the options at once, and avoid them hitting return and taking a default value.
0 Kudos