Amiga-C (214/223)

From:Sensei
Date:30 Aug 2001 at 20:58:36
Subject:[amiga-c] Re: MUI Listviews

Czesc Donald!

Dnia 29-Aug-01, Donald W Millican napisa�:

> but doing this causes an annoying blink on the screen.
>
> Is there any way of getting the Listview gadget to resize itself when
> its contents are changed without an annoying blink?

Try to init change (MUIM_Group_InitChange) a group where have list and remove
this list and add it again or exit change a group (MUIM_Group_ExitChange).
However it might resize the window!

> Q2.
> I want to set the first item in the above listview to be selected at
> program start and be able to reset this when the listview contents
> change. The MUI autodocs say I should :
>
> DoMethod(list,MUIA_List_Active,MUIV_Active_List_Top);
>
> but whether I do that during gadget creation, after setting the list
> contents or indeed after opening the window, nothing ever gets
> selected.
> In GadTools when the program is run the first item in a listview is
> automatically selected and I want the same thing to happen here.
>
> What am I doing wrong?

MUIA_... is object attribute not method! When you'll use set( list,
MUIA_List_Active, entry ); everything should be fine.

BTW, please considier using NList/NListview instead of List/Listview. There're
more powerful and looks better. You don't have to even change all
attributes/methods because NList.mcc is emulating standard List.mui class.

Regards!



Can your ImageFX paint like bitmap painters?
Download: gfx/ifx/REDFiX.lha, ftp.novadesign.com

Przemyslaw 'SENSEI' Gruchala

code/gfx2d/gfx3d/webmaster

Amiga 1200
Apollo 1240/33 MHz, 18 MB RAM, BTC 33.6 bps
HDD 3.2 GB, HDD 520 MB, CD x12



Chcialbys zarobic lub "dorobic" naprawde dobre pieniadze?
Otrzymasz do 300zl za kazda firme ktora wprowadzisz do Centrum e-biznesu
Poszukaj wsrod znajomych, znajdz firme i wypelnij z nia prosty formularz
Aby rozpoczac wejdz do http://praca.getin.pl i zostan Partnerem Getin

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make IT and computer Web sites more customer-friendly
Get a $10 AMAZON.COM Gift Certificate
http://us.click.yahoo.com/VCMp8B/Hd6CAA/yigFAA/dpFolB/TM
---------------------------------------------------------------------~->

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