List Control: What determines <item> length

General HouseBot discussion. Any issues that don't fit into any of the other topics belong here.
Post Reply
Osler
HouseBot Guru
Posts: 742
Joined: Fri Feb 03, 2006 11:18 pm

List Control: What determines <item> length

Post 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
ScottBot
Site Admin
Posts: 2790
Joined: Thu Feb 13, 2003 6:46 pm
Location: Georgia (USA)
Contact:

Re: List Control: What determines <item> length

Post 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.
Scott
Osler
HouseBot Guru
Posts: 742
Joined: Fri Feb 03, 2006 11:18 pm

Post 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
ScottBot
Site Admin
Posts: 2790
Joined: Thu Feb 13, 2003 6:46 pm
Location: Georgia (USA)
Contact:

Post 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.
Scott
Post Reply