Silverfrost Forums

Welcome to our forums

List Select Control - Is there a way...

20 Oct 2020 10:22 #26500

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

21 Oct 2020 3:01 #26504

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.

21 Oct 2020 4:33 #26506

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.

21 Oct 2020 11:05 #26508

Paul, yeah, that's kind of what I expected. I'll explore the options and see if the user get confused or not!

Bill

Please login to reply.