Posted by Grant Foraker on February 05, 2007 at 11:07:54:
cosCtlId = IDC.LIST
cosStyle = LVCFMT.LEFT
cosCol = 0
PRINT (#,2710)
INPUT (#) cosCtlText$
cosWidth = 1190
Gosub COS.ListView.InsertTextColumn
My ListView has one column. 74 Comet characters wide. The size in the VS dialog is 314x141. Three font sizes. 20, 14, and 12.
How do I calculate cosWidth so that I don't get a horizontal scroll bar or have the column text cut off with a premature "...".