Page 1 of 1

List Control: What determines <item> length

Posted: Sun Oct 14, 2007 11:38 pm
by Osler
Anyone:

What determines the length of the list value between a <TAB> in a list prior to truncation? Is there anyway to make it a standard length so that the background used in the list control could have vertical lines to "tabelize" the data presented?

Also, could someone please enlighten me on the -S* "thingy" to "pre-select" a value in a list (Richard or Scott or other list control guru)? Where does this go when creating the list? Proper etiquet for use would be appreciated.

Osler

Re: List Control: What determines <item> length

Posted: Mon Oct 15, 2007 9:10 am
by ScottBot
Osler wrote:What determines the length of the list value between a <TAB> in a list prior to truncation? Is there anyway to make it a standard length so that the background used in the list control could have vertical lines to "tabelize" the data presented?
The width is primarily determined by the data in the list. The wider the data, the wider the column will be. It should never be truncated, but the list may require horizontal scroll bars to view the entire width of the data if too long. If you have a header on the list, the header length is also included in the list sizing. So if the header is longer than the data, it will determine the width of the first column.
Also, could someone please enlighten me on the -S* "thingy" to "pre-select" a value in a list (Richard or Scott or other list control guru)? Where does this go when creating the list? Proper etiquet for use would be appreciated.
Here's a config import that has a script and theme that demonstrates the -S usage.

Posted: Mon Oct 15, 2007 12:16 pm
by Osler
Thanks Scott.

I have a few occassions where the list control truncates the items with "..." after it. It may be that the list control wasn't wide enough in these situations.

Osler

Posted: Mon Oct 15, 2007 12:25 pm
by ScottBot
I haven't seen that, but anything like that would be the behavior of the Windows list control that is outside of anything the remote is doing.