Results 1 to 5 of 5

Thread: How to not have a default selection in listbox

  1. #1
    Join Date
    Jun 2003
    Location
    Austin, TX, USA
    Posts
    31

    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?

  2. #2
    Join Date
    Oct 2001
    Location
    Schaumburg, IL
    Posts
    2,146
    Which type of dialog are you using, Suite, MSI or InstallScript?
    Hidenori Yamanishi - Senior Software Engineer - Flexera Software: InstallShield Team

  3. #3
    Join Date
    Jun 2003
    Location
    Austin, TX, USA
    Posts
    31
    Installscript MSI.

  4. #4
    Join Date
    Oct 2001
    Location
    Schaumburg, IL
    Posts
    2,146
    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.
    Hidenori Yamanishi - Senior Software Engineer - Flexera Software: InstallShield Team

  5. #5
    Join Date
    Jun 2003
    Location
    Austin, TX, USA
    Posts
    31
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •