View previous topic :: View next topic |
Author |
Message |
wahorger
Joined: 13 Oct 2014 Posts: 1217 Location: Morrison, CO, USA
|
Posted: Tue Oct 20, 2020 11:22 pm Post subject: List Select Control - Is there a way... |
|
|
I would like to use a list select to pull-down a list of options, but have limited space. The user is filling in a table with lots of other information, some manually entered. I don't see a way to keep the list select box small vertically (using the grave character "`") but have it expand the entries horizontally to present the option list when the pull-down is activated.
Using %`4.10ls leaves me with 4 characters horizontally. I should also say that this is in a %ob, if that makes any difference.
What I would like to be able to see is the 25 characters of the selection pop out and down from the smaller control.
I have tried a %el as a substitute, but there does not appear anyway to apply a forced upper case if the user enters data without it messing with the caret position and making manual entry impossible. There is an annoying display behavior that I can't seem to pin down as well (some, but not all of the %el fields are highlighted, even when they are greyed).
Looking for advice before I do something radical....
Bill |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7933 Location: Salford, UK
|
Posted: Wed Oct 21, 2020 4:01 pm Post subject: |
|
|
Bill
I am not sure what you are aiming for but perhaps you should try the option [limit_height] which takes an additional double precision argument. See the help for %ls for further details. |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7933 Location: Salford, UK
|
Posted: Wed Oct 21, 2020 5:33 pm Post subject: |
|
|
Bill
I have looked at your post again and now I think that I understand what you are asking for.
There is only one width for a combobox. That's how Microsoft has designed it. The width of the initial box is the same as the width of dropdown part.
There is a user-draw option when using the combobox control directly and you might be able to get what you want via that route but I doubt it and that is not really and option here. |
|
Back to top |
|
|
wahorger
Joined: 13 Oct 2014 Posts: 1217 Location: Morrison, CO, USA
|
Posted: Thu Oct 22, 2020 12:05 am Post subject: |
|
|
Paul, yeah, that's kind of what I expected. I'll explore the options and see if the user get confused or not!
Bill |
|
Back to top |
|
|
|