LIST_AutoVirtualWidth
Posted: Wed Apr 01, 2015 1:44 am
I am having some issues with this tag. When I use it in an hierarchical listbrowser, the width is off by the first set of expand/collapse buttons and leafs. As in that much extra width too much. Is slideable that much when there should be none. (No text needing scrolling into view)
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.
All the ColumnInfos are similar to this one. Some more, some less columns.
When I take the tag out, everything works like it is supposed to. (Except for horizontal sliding, of course, since not manually doing anything for it)
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);