| View previous topic :: View next topic |
| Author |
Message |
daorc
Joined: 18 Oct 2006 Posts: 78
|
Posted: Thu Mar 20, 2008 8:27 am Post subject: dynamic row number in a combobox |
|
|
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  |
|
| Back to top |
|
 |
Kellianjaxon
Joined: 04 Jan 2008 Posts: 39
|
Posted: Thu Mar 20, 2008 11:24 am Post subject: |
|
|
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 |
|
 |
daorc
Joined: 18 Oct 2006 Posts: 78
|
Posted: Thu Mar 20, 2008 9:53 pm Post subject: |
|
|
oh that's a pain. Thanks, though
Daorc |
|
| Back to top |
|
 |
Guest
|
Posted: Thu Mar 20, 2008 10:37 pm Post subject: |
|
|
| 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 |
|
 |
|