Sergio
Joined: 16 Mar 2008 Posts: 160 Location: Brooklyn
|
Posted: Wed Jan 06, 2010 6:19 am Post subject: Drop Down List (GUI) |
|
|
I have a GUI with several options. I would like for the drop down list to change the variables in the rest of the GUI. However I don't know how to update it automatically.
On a seperate note. I have a Drop Down List directly next to an Updown list. I've noticed that when they are together, you see them just as in the screenshot. But when they are apart, you can actually see them individually (as their own row). How do I fix it so that both are visible while keeping them together? Thanks
| Code: | Gui, Add, DropDownList, vitemToInvoiceVar w150, ITEM1|ITEM2|ITEM3
Gui, Add, UpDown, vquantityVar Range1-10, 1 |
_________________
 |
|
sinkfaze
Joined: 18 Mar 2008 Posts: 5043 Location: the tunnel(?=light)
|
Posted: Wed Jan 06, 2010 6:35 am Post subject: |
|
|
If your code as shown is truly in that order in your script, you probably need to try using the p±n options for the x/y/width/height so the position/size of the updown is always relative to the position/size of the dropdownlist.
And to use a selection in the dropdown to change other variables in the GUI, add some GuiControl commands that will change the contents of those variables after the Gui, Submit line in the dropdownlist's subroutine. _________________ Try Quick Search for Autohotkey or see the tutorial for newbies. |
|