This code works with 2 of the 4 situations I have.
Code: Select all
ILayout->SetPageGadgetAttrs((struct Gadget *)Objects[GAD_CONTENT],Objects[GAD_CF_PAGES_CONTENT],MainWindow,NULL,
LISTBROWSER_ColumnInfo, WhichCI,
LISTBROWSER_SortColumn, SortColumn,
LISTBROWSER_VertSeparators, ShowVertSeparators,
LISTBROWSER_AutoFit, Prefs->AutoFitColumns,
LISTBROWSER_Labels, lblist2,
LISTBROWSER_Top, LBTop,
TAG_DONE);
I have played around with _Top and _Labels order, used SetAttrs() instead (yes, the gadget is on a page.gadget). LBTop will be set to 0, scan a drawer, but will start at the old LBTop spot. No rhyme or reason sometimes.
I would think you would set _Top first, then _Labels. Is there some magic order I am not doing? Does it even matter what order? Just baffling me.
listbrowser.gadget 53.74 (23.10.2016)