LISTBROWSER_AutoVirtualWidth

This forum is for general developer support questions.

LISTBROWSER_AutoVirtualWidth

Postby mritter0 » Sun Aug 14, 2016 6:04 pm

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
Workbench Explorer - A better way to browse drawers
User avatar
mritter0
 
Posts: 184
Joined: Mon Aug 25, 2014 10:41 pm
Location: Bettendorf, IA, USA

Re: LISTBROWSER_AutoVirtualWidth

Postby salass00 » Tue Aug 16, 2016 3:15 pm

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.
User avatar
salass00
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 477
Joined: Sat Jun 18, 2011 4:12 pm
Location: Finland

Re: LISTBROWSER_AutoVirtualWidth

Postby mritter0 » Fri Aug 19, 2016 9:45 pm

Working fine on a friend's system who is a beta tester, with newer OS than me.
Workbench Explorer - A better way to browse drawers
User avatar
mritter0
 
Posts: 184
Joined: Mon Aug 25, 2014 10:41 pm
Location: Bettendorf, IA, USA


Return to General Developer Support

Who is online

Users browsing this forum: No registered users and 4 guests