Jump to content

Search the Community

Showing results for tags 'Dropdown; combo; selection;'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. I have a GUI with a drop-down menu (GUICtrlCreateCombo). I'm trying to limit what a user can select in that drop-down. Currently, the user sees the drop-down and can choose one of the options OR they can input anything else in that box. I want to limit what can be chosen in that box to what is listed in the drop-down (shown below as "Dept 1" through "Dept 8"). This is very similar to Excel's data validation if that helps. $DeptNameLabel = GUICtrlCreateLabel("Department Name", 64, 128, 90, 17) IF $DeptNameCurrent = "" Then $DeptName = GUICtrlCreateCombo("Choose from dropdown menu", 160, 128, 217, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL)) Else $DeptName = GUICtrlCreateCombo($DeptNameCurrent, 160, 128, 217, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL)) EndIf GUICtrlSetData(-1, "Dept 1|Dept 2|Dept 3|Dept 4|Dept 5|Dept 6|Dept 7|Dept 8") GUICtrlSetTip(-1, "Choose from dropdown") GUISetState(@SW_SHOW) Any help would be appreciated! Thanks.
×
×
  • Create New...