LISTBROWSER_AutoVirtualWidth

This forum is for general developer support questions.
Post Reply
User avatar
mritter0
Posts: 214
Joined: Mon Aug 25, 2014 9:41 pm
Location: Bettendorf, IA, USA

LISTBROWSER_AutoVirtualWidth

Post 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
Workbench Explorer - A better way to browse drawers
User avatar
salass00
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 530
Joined: Sat Jun 18, 2011 3:12 pm
Location: Finland
Contact:

Re: LISTBROWSER_AutoVirtualWidth

Post 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.
User avatar
mritter0
Posts: 214
Joined: Mon Aug 25, 2014 9:41 pm
Location: Bettendorf, IA, USA

Re: LISTBROWSER_AutoVirtualWidth

Post by mritter0 »

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
Post Reply