Also when detach/add lists a few times, my ColumnInfo widths seem to get lost. Some get set to 0 width, some just as wide at the title text and clips the actual body text in that column.
With a different ColumnInfo (6 columns, each set with LBCIA_Width, xx) I get a super wide listbrowser that scrolls sideways for a long time. Then I get some, not all, repeating columns at the end. This happens at the first layout of the listbrowser and all switching of ColumnInfos and lists.
Code: Select all
if (!(ContentCI=AllocLBColumnInfo(3,
LBCIA_Column, 0,
LBCIA_Title, "",
LBCIA_Width, 70,
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);
Code: Select all
if (!(Objects[GAD_CONTENT]=ListBrowserObject,
GA_ID, GAD_CONTENT,
GA_RelVerify, TRUE,
LISTBROWSER_Spacing, 2,
LISTBROWSER_ColumnTitles, TRUE,
LISTBROWSER_ColumnInfo, ContentCI,
LISTBROWSER_TitleClickable, TRUE,
// LISTBROWSER_Labels, lblist2,
LISTBROWSER_MultiSelect, TRUE,
LISTBROWSER_VerticalProp, TRUE,
LISTBROWSER_HorizontalProp, TRUE,
LISTBROWSER_ShowSelected, TRUE,
LISTBROWSER_Borderless, TRUE,
LISTBROWSER_Striping, LBS_ROWS,
LISTBROWSER_AutoVirtualWidth, TRUE,
TAG_DONE)))
return(FALSE);
else
return(TRUE);