#Listview gads
2 messages in this thread
Hi,
I have a GadTools gadget listview_kind created with an empty list. Later, im
detaching the list, call AddTail() with a new node and SetGadAttrs() with the
modified list. Nothing happens until I call GT_RefreshWindow(). Now everything
is fine, all entries are visible. But I can not scroll with my scrollbar or the
Arrow-Up/Arrow-Down keys. When I select an entry I get the code for the first
entry, no matter where I click.
On a second ListView gadget, I add a list with allready some 20 entries. Here I
can scroll with the scroll-bar, but not with the arrow keys!
I am using System 3.0 Version 39 on an Amiga4000.
What's going on?
Thank you, Frank
Sounds like there's something not set up right…
When you add the new node to the list, are you detaching the list first? You
have to do a GT_SetGadgetAttrs() with the GTLV_Labels set to ~0 to detach the
list, and then again after you have changed the list with GTLV_Labels set to
point to the list.
As far as scrolling not working, this could be because GadTools is confused
because you didn't detach the list… or it could be that your window isn't
getting IntuiMessages that the ListView needs to operate. Are you stting the
LISTVIEWIDCMP flags in the list of IDCMP flags that your window is getting?
(When you create the window or in a call to ModifyIDCMP()).
I don't believe ListViews support the arrow keys for scrolling – you will have
to take care of this yourself.
…Steve