AutoHotkey Community

It is currently May 27th, 2012, 1:05 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Drop Down List (GUI)
PostPosted: January 6th, 2010, 7:19 am 
Offline

Joined: March 16th, 2008, 6:48 pm
Posts: 161
Location: Brooklyn
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.

Image

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

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 6th, 2010, 7:35 am 
Offline
User avatar

Joined: March 19th, 2008, 12:43 am
Posts: 5480
Location: the tunnel(?=light)
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.

_________________
Image
Try Quick Search for Autohotkey or see the tutorial for newbies.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Leef_me, WillTroll, Yahoo [Bot] and 30 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group