Unimatrix_001
asked on
Using columns in VB6 ListBox.
Hi,
Can somebody please give an example of how to use the VB6 ListBox columns?
Thanks,
Uni
Can somebody please give an example of how to use the VB6 ListBox columns?
Thanks,
Uni
ASKER
Hi Angellll,
Not following this too good:
ReDim LBTab(1) As Long 'for 3 tabs redim LBTab(1 to 3)as long
Why are we re-dimming this and what have tabs have to do with this?
LBTab(1) = 30
What is the purpose of this line?
SendMessageArray List1.hwnd, LB_SETTABSTOPS, 3, LBTab(1)
What is the purpose of this line?
Thanks,
Uni
Not following this too good:
ReDim LBTab(1) As Long 'for 3 tabs redim LBTab(1 to 3)as long
Why are we re-dimming this and what have tabs have to do with this?
LBTab(1) = 30
What is the purpose of this line?
SendMessageArray List1.hwnd, LB_SETTABSTOPS, 3, LBTab(1)
What is the purpose of this line?
Thanks,
Uni
in a listbox, you don't have columns, actually.
however, a listbox has tab stops, and with the "tab" character in the data, you can simulate "columns" like that.
so, LBTab is the array that specifies at which positions the tab stops are (30 => is the offset).
the sendmessagearray sends the information (via api) to the listbox, so it defines those tab stops.
however, a listbox has tab stops, and with the "tab" character in the data, you can simulate "columns" like that.
so, LBTab is the array that specifies at which positions the tab stops are (30 => is the offset).
the sendmessagearray sends the information (via api) to the listbox, so it defines those tab stops.
ASKER
Ok, so does the column property of the ListBox have any effect then if tab stops are used? Also, is there a defined behavior if a column overruns into the next offset?
Thanks,
Uni
Thanks,
Uni
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Ok, cheers angel... (-:
http://en.allexperts.com/q/Visual-Basic-1048/2-columns-ListBox-Vb6.htm