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 

dynamic row number in a combobox

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



Joined: 18 Oct 2006
Posts: 78

PostPosted: Thu Mar 20, 2008 8:27 am    Post subject: dynamic row number in a combobox Reply with quote

Hi there. I'm trying to dynamically change the number of rows in a combobox using guicontrol, but neuther of these seem to do it:

Code:
guicontrol,+r%numberofrows%,combo_control
OR
guicontrol,r%numberofrows%,combo_control


Any ideas?

Cheers Smile
Back to top
View user's profile Send private message
Kellianjaxon



Joined: 04 Jan 2008
Posts: 39

PostPosted: Thu Mar 20, 2008 11:24 am    Post subject: Reply with quote

Brief testing seems to indicate that number of rows is one of few options you can't modify once the control has been created. However, I couldn't find a confirmation in the documentation.

As a work-around, I'd try hiding the original ComboBox and recreating another one with correct number of rows. This may get frustrating if you need to make frequent changes, though, but at least you've got a way to go.
Back to top
View user's profile Send private message
daorc



Joined: 18 Oct 2006
Posts: 78

PostPosted: Thu Mar 20, 2008 9:53 pm    Post subject: Reply with quote

oh that's a pain. Thanks, though

Daorc
Back to top
View user's profile Send private message
Guest






PostPosted: Thu Mar 20, 2008 10:37 pm    Post subject: Reply with quote

You can simply append new values to the existing content, or rebuild if need be with GuiControl. I don't see the problem here.
Back to top
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