Jump to content

Combo Box Problems


Recommended Posts

I am a newbie, but the program is helping me do alot of things that I normally would take me a long time. I do have a quesiton.

I have the following combo box and it work great:

Dim $agencyST = GUISetControl("combo", "my combo", 150, 250, 50, 30)

GUISetControlData($agencyST,"IA|MN|WI|MO|TX", "IA")

I can select items from the combo box with the keyboard, by typing the 2 characters, but is there a way to get it to drop down with the mouse. Also I would like to know how to get the input back from the combo and how to use it.

DO I just use:

While 1

sleep(100)

$msg = GuiMsg(0)

Select

Case $msg = -3

Exit

Case $msg = 0

;;;

Case $msg = $agencyST

if $agencyST = "TX", etc

or what, thanks

Mr. V

;;;

Link to comment
Share on other sites

  • Developers

Just make the Height of the combobox bigger...

e.g.

GUISetControl("combo", "my combo", 150, 250, 50, 80)

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

In your script the $agencyST is the handle for the combobox so to get its value just do :

$checkbox1 = GuiRead($agencyST)

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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...