Jump to content

ComboBox: limit user input to drop-down selections


new2this
 Share

Recommended Posts

  • Moderators

So, simply...$cmbCreate = GuiCtrlCreateCombo("",350, 160, 141, 25, $CBS_DROPDOWN)

THis should keep the end user from being able to enter their own text in the combo box? If thats the case, then I've done something else wrong.

Sorry...
#include <GUIConstantsEx.au3>
GUICreate("")
GUICtrlCreateCombo ("", 10,10, -1, -1, $CBS_DROPDOWNLIST)
GUICtrlSetData(-1,"1|2|3")
GUISetState ()
While GUIGetMsg() <> -3
WEnd
Exit

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...