AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Drop Down List (GUI)

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Sergio



Joined: 16 Mar 2008
Posts: 160
Location: Brooklyn

PostPosted: Wed Jan 06, 2010 6:19 am    Post subject: Drop Down List (GUI) Reply with quote

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

_________________
Back to top
View user's profile Send private message
sinkfaze



Joined: 18 Mar 2008
Posts: 5043
Location: the tunnel(?=light)

PostPosted: Wed Jan 06, 2010 6:35 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group