ColumnInfo widths
Posted: Mon May 25, 2015 9:32 pm
I have a ColumnInfo with 3 columns:
I want the first and last columns to be fixed-width, and the center column to be max width (minus the width of the other 2). But it doesn't. It acts like I told it LBCIA_Width, not LBCIA_Weight.
Is there a way to make this happen?
Code: Select all
if (!(ContentCI=IListBrowser->AllocLBColumnInfo(3,
LBCIA_Column, 0,
LBCIA_Title, "",
LBCIA_Width, 38,
LBCIA_Sortable, FALSE,
LBCIA_DraggableSeparator, FALSE,
LBCIA_UserData, 0,
LBCIA_Column, 1,
LBCIA_Title, SAK_LocaleString(MSG_TITLE_NAME),
LBCIA_Weight, 100,
LBCIA_Sortable, TRUE,
LBCIA_SortArrow, TRUE,
LBCIA_SortDirection, !Prefs->ContentSortDirection,
LBCIA_DraggableSeparator, FALSE,
LBCIA_UserData, 1,
LBCIA_Column, 2,
LBCIA_Title, "",
LBCIA_Width, 185,
LBCIA_Sortable, FALSE,
LBCIA_DraggableSeparator, FALSE,
LBCIA_UserData, 2,
TAG_DONE)))
return(FALSE);
Is there a way to make this happen?