Question from a list box obsessive (OpenInsight Specific)
At 17 DEC 1997 09:47:15AM Oystein Reigem wrote:
What's the list box property "Multiple column" for?
- Oystein -
At 17 DEC 1997 11:15AM John Duquette wrote:
So your list box can have multiple columns like windows explorer for example.
John Revelation
At 17 DEC 1997 11:30AM Dave Pociu wrote:
You know how in Explorer you can rename a file by seemingly typing the file name right in the list box?
What would be a way to do that? The only thing I can think of right now is to create an editline on the fly and superimpose it over the text to be changed.
Any better ideas?
I'm thinking on doing that in a bill of material screen entry. I want to show all the levels of a bill of material in a listbox and then allow people to insert, delete or modify the components right in the listbox if possible.
At 18 DEC 1997 03:18AM Aaron Kaplan wrote:
They would have to be the only way. You could do something with a right-click and work that way. You might want to see if there's a 3rd party control you can hack in.
apk@sprezzatura.com
At 18 DEC 1997 05:25AM Oystein Reigem wrote:
John,
Could you tell me a little bit more? I thought perhaps the columns would appear if I set the contents of the list box to some text mixed with the appropriate delimiters, but I've had no luck so far.
- Oystein -
At 18 DEC 1997 06:43AM Carl Pates Sprezzatura wrote:
Dear ListBox Obsessive,
Stop it…you'll go blind!
When using multiple columns, you should just set the LIST property as normal (an @Fm'd list), and the listbox should take care of the rest. I think the system useds a default column width of 100 pixels, but you can set this by using a SendMessage API call with the LB_SETCOLUMNWIDTH message…
eg, to set for 200 pixels
Equ LB_SETCOLUMNWIDTH$ To 1046ColWidth=200Call SendMessage(hWndLstBx,LB_SETCOLUMNWIDTH$,ColWidth,0)There are no other special requirements AFAIK
cpates@sprezzatura.com
World Leaders in all things RevSoft (Except VIP)
At 18 DEC 1997 10:52AM Oystein Reigem wrote:
Carl,
The only thing I needed to know was that I had to use the tab character in my data. That wasn't obvious to me. I first tried all the usual 25x delimiters.
- Oystein -
At 20 DEC 1997 05:14PM Barry Stevens wrote:
Carl
Re: ListBox columns
How do you format the data to use the second column.
Barry
At 21 DEC 1997 04:44AM Aaron Kaplan wrote:
You don't. If the multiple columns option is set, once a line cannot completely fit in the viewer, it places it on the next line. So, it's a basis of font size and listbox size.
apk@sprezzatura.com
At 22 DEC 1997 05:24AM Oystein Reigem wrote:
Barry,
I think the answer you're looking for is to put tab characters in your data. (Which means you must set the content at runtime, e.g with a Set_Property LIST).
I hoped that a multiple columns list box would behave like an edit table (well nobody in his right mind would want *all* the behaviour of an edit table ), i.e with well-defined and separate columns. But it seems a multiple columns list box behaves more like text with tabs in a word processor/editor. So if you want your columns to line up properly, make sure your column data is of fixed or limited length.
- Oystein -