English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 16 June 2014, 21:22   #1
mritter0
Registered User
 
Join Date: Sep 2013
Location: Bettendorf, IA, USA
Age: 52
Posts: 204
ListBrowser column width

I have a listbrowser set up with 5 columns. I can specify the width in my ColumnInfo using the "old" method
Code:
struct ColumnInfo					colInfo1_0[]=
{
	{ 22,	"",				CIF_FIXED },
	{ 250,	"Name",			CIF_FIXED|CIF_DRAGGABLE|CIF_SORTABLE },
	{ 60,	"Time",			CIF_FIXED|CIF_DRAGGABLE|CIF_SORTABLE },
	{ 60,	"Date",		CIF_FIXED|CIF_DRAGGABLE|CIF_SORTABLE },
	{ 60,	"Notes",			CIF_FIXED|CIF_DRAGGABLE|CIF_SORTABLE },
	{ -1,	(STRPTR)~0,	-1 }
};
I can not get AllocLBColumnInfo() to work for the life of me on OS3.9 (listbrowser.gadget v45.12). Titles are all mesed up and crashes immediately. No big deal.

What I can't get to work is when the column width is adjusted, the new width is not set in the ColumnInfo; it is still at the original width. Either by
Code:
Prefs->Col1_0_1Width=colInfo1_0[1].ci_Width
or
Code:
GetLBColumnInfoAttrs(colInfo1_0,
	LBCIA_Column,			1,
		LBCIA_Width,			&Prefs->Col1_0_1Width,
TAG_DONE);
It does not have the new column width. Is there a way to find this out? I want to save it so it re-opens with the user's custom widths.
mritter0 is offline  
Old 08 August 2017, 07:03   #2
Minuous
Coder/webmaster/gamer
 
Minuous's Avatar
 
Join Date: Oct 2001
Location: Canberra/Australia
Posts: 2,631
Quote:
Originally Posted by mritter0 View Post
I can not get AllocLBColumnInfo() to work for the life of me on OS3.9 (listbrowser.gadget v45.12). Titles are all mesed up and crashes immediately.
Before 53.16 the ColumnInfo array was not automatically terminated.
Minuous is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Get Gadget Width mritter0 Coders. C/C++ 2 11 June 2014 02:27
Width adjustment stopped working on 1084S-P2. e5frog support.Hardware 3 17 April 2014 23:16
Fs: Zip Ram Mem (FP & Static Column) - FPU PLCC - SCSI AM33C93A LTAC MarketPlace 2 13 January 2011 00:41
from The Column by Beyond s2325 request.Modules 3 02 September 2010 21:29
Decent fixed width fonts. killergorilla request.Other 29 02 February 2007 19:16

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 19:51.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.26815 seconds with 13 queries