Amiga-C (210/223)

From:Carsten Scholling
Date:30 Aug 2001 at 11:33:33
Subject:[amiga-c] Re: MUI Listviews

Hi!

> // Listview gadget
> Child, list = ListviewObject,
> MUIA_Listview_List, ListObject, InputListFrame,
> MUIA_List_AdjustHeight, TRUE,
> MUIA_List_AdjustWidth, TRUE,
> End,
> End,

If you use ...AdjustHeight/Width, the dimensions are calculated before
opening the window (if filled before opening) and it is NOT resizeable
then.
I'm not 100% sure, but try without these two tags.

> // Set list gadget contents
> DoMethod(list,MUIM_List_Insert,names1,-1,MUIV_List_Insert_Top);

Is it needed to use MUIV_List_Insert_Top? If not, use ..._Bottom instead.
This makes it faster on larger lists.

> The new list appears in the gadget but the gadget does not adapt to
> the new dimensions of the list and as the new list is wider than the

See Adjust... above.

> DoMethod(list,MUIA_List_Active,MUIV_Active_List_Top);

You have to use

set( list, MUIA_List_Active, MUIV_List_Active_Top );

or

SetAttr( list, MUIA_List_Active, MUIV_List_Active_Top, TAG_DONE );

or

DoMethod( list, MUIM_Set, ...);

Make a difference between Attributes (MUIA_...) and Methods (MUIM_...).

Attributes can be set() and get(), methods must be used with DoMethod()

Hope that helps.

Ciao
Carsten



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Secure your servers with 128-bit SSL encryption! Grab your copy of VeriSign's FREE Guide: "Securing Your Web Site for Business." Get it Now!
http://us.click.yahoo.com/n7RbFC/zhwCAA/yigFAA/dpFolB/TM
---------------------------------------------------------------------~->

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/