AutoHotkey Community

It is currently May 27th, 2012, 11:56 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: November 16th, 2005, 2:25 pm 
Offline

Joined: September 24th, 2004, 3:00 pm
Posts: 814
Location: Germany
Hi,

try this code:
Code:
#Persistent
var = new
Gui, 7:Add, ComboBox,vTest,string1||text2|word3|verb4|
GuiControl, 7:Text, Test, %var%
Gui, 7:Add, Button, gSubmit, OK
Gui, 7:Show, AutoSize

Return

Submit:
   Gui, 7:Submit
   Msgbox, %Test%
Return

GuiClose:
GuiExcape:
   ExitApp
Return


After clicking OK it won't output "new" but "string1". I know it's because auf the default in the list (string1||), but the gui should submit what's visibile.

_________________
Tekl


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 16th, 2005, 2:42 pm 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
I guess this doesn't solve your problem, but have a look:
Code:
GuiControl, 7:, Test, %var%||
Because it adds the string to the list.

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 16th, 2005, 2:55 pm 
Offline

Joined: September 24th, 2004, 3:00 pm
Posts: 814
Location: Germany
Hi Toralf,

I know a workaround (replacing || with |), but I just want to show, that there is a bug.

_________________
Tekl


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 16th, 2005, 6:33 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
This and one other ComboBox bug has been fixed in v1.0.40.08.

Details: Fixed ComboBoxes to yield the proper selection when: 1) GuiControl altered the Edit field; or 2) the user manually typed a matching item into an AltSubmit ComboBox.

Thanks for reporting it.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 16th, 2005, 6:45 pm 
Offline

Joined: September 24th, 2004, 3:00 pm
Posts: 814
Location: Germany
Thanks for highspeed-fixing ;-)

_________________
Tekl


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 27 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