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 

DropDownList GuiControl

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Tom.j.McCurdy



Joined: 11 Jun 2008
Posts: 12

PostPosted: Mon Jul 21, 2008 6:05 pm    Post subject: DropDownList GuiControl Reply with quote

Hello,
I am having trouble getting a DropDownList to be able to change what it selects based on user input.

I have a gui template that writes arrays of information. There is a back and forward button. I want to be able to "read" the information that has already been written so that if someone hits the back button, all the dropDownlists will be automatically selected to what the user previously had selected.

To do this i was trying GuiControl, but i am having trouble

Let's say my gui was
Gui, Add, DropDownList, Choose1 altSubmit vColorChoice, Black|White|Red|Green|Blue

What would I have to do to change what it selects
I tried a lot of things including

GuiControl,,ColorChoice,Choose%var%

but nothing seems to working
Back to top
View user's profile Send private message AIM Address
jaco0646



Joined: 07 Oct 2006
Posts: 543
Location: MN, USA

PostPosted: Tue Jul 22, 2008 1:58 am    Post subject: Reply with quote

GuiControl

Use either:
Code:
GuiControl, Choose, ColorChoice, 3 ;or
GuiControl, ChooseString, ColorChoice, Red

_________________
http://autohotkey.net/~jaco0646/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   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