Page 1 of 1

LISTBROWSER_AutoVirtualWidth

PostPosted: Sun Aug 14, 2016 6:04 pm
by mritter0
Code: Select all
struct TextAttr         DejaVuSansMono14={ (STRPTR)"DejaVu Sans Mono.font",14,0,FPF_DISKFONT };

Code: Select all
LAYOUT_AddChild,               Objects[GAD_PREVIEW_TEXT]=IIntuition->NewObject(ListBrowserClass,NULL,
   GA_ID,                  GAD_PREVIEW_TEXT,
   GA_ReadOnly,            TRUE,
   GA_TextAttr,            &DejaVuSansMono14,
   LISTBROWSER_Borderless,      TRUE,
   LISTBROWSER_Labels,         PreviewTextList,
   LISTBROWSER_VerticalProp,   TRUE,
   LISTBROWSER_HorizontalProp,   TRUE,
   LISTBROWSER_AutoVirtualWidth,TRUE,
TAG_DONE),

I use this code to show text files with a monospaced font. When the text is wide, the horizontal scroller does not allow scrolling.
Image


If I comment out the GA_TextAttr line and use the system proportional font, the horizontal scroller allows for scrolling like it should.
Image


When I change text I use this
Code: Select all
ILayout->SetPageGadgetAttrs((struct Gadget *)Objects[GAD_PREVIEW_TEXT],Objects[PAGE_PREVIEW_TEXT],MainWindow,NULL,
   LISTBROWSER_Labels,         PreviewTextList,
   LISTBROWSER_Top,         0,
   LISTBROWSER_AutoVirtualWidth,TRUE,
TAG_DONE);



OS4.1FE

Re: LISTBROWSER_AutoVirtualWidth

PostPosted: Tue Aug 16, 2016 3:15 pm
by salass00
I would say that this is the same bug I fixed in version 53.67 of listbrowser.gadget (31.12.2015).

At least I'm not able to reproduce this on my beta system using a simple test program I put together.

Re: LISTBROWSER_AutoVirtualWidth

PostPosted: Fri Aug 19, 2016 9:45 pm
by mritter0
Working fine on a friend's system who is a beta tester, with newer OS than me.