Home  /  Autodocs

listview.gadget

For browsing linked lists in various ways.

FUNCTIONS

LISTVIEW_GetClass

SUPERCLASS

gadgetclass

DESCRIPTION

THIS CLASS IS DEPRECATED - DO NOT USE IN NEW CODE

This gadget was never officially released, but was an old demo in a previous NDK. The gadget will receive none or sporadic fixes and changes.

This gadget is very similar to the LISTVIEW_KIND gadget in gadtools.library, with numerous enhancements. It displays a list in a scrolling view so that you can browse through it and select items in various ways.

listbrowser.gadget is a better alternative to this gadget.

ATTRIBUTES

LISTVIEW_Labels (struct List *)
Pointer to the list of listview items. The type of the items is ListLabelNode. You are responsible for allocating and freeing the memory for these items yourself.

Applicability is OM_NEW, OM_SET, OM_GET

LISTVIEW_Top (ULONG)
Ordinal number of the topmost visible item.

Applicability is OM_NEW, OM_SET, OM_GET

LISTVIEW_Visible (ULONG)
Number of visible items.

Applicability is OM_GET

LISTVIEW_Total (ULONG)
Total number of items.

Applicability is OM_GET

LISTVIEW_MakeVisible (ULONG)
Ensure the item with this ordinal number is visible.

Applicability is OM_NEW, OM_SET

LISTVIEW_MultiSelect (BOOL)
Whether to allow selection of multiple items.

Applicability is OM_NEW, OM_SET

LISTVIEW_ItemHeight (ULONG)
Height of each item, in pixels.

Applicability is OM_NEW, OM_SET, OM_GET

LISTVIEW_CallHook (struct Hook *)
Render hook.

Applicability is OM_NEW, OM_SET

LISTVIEW_ScrollUp (ULONG)
Scroll view up by the specified number of items.

Applicability is OM_NEW, OM_SET

LISTVIEW_ScrollDown (ULONG)
Scroll view down by the specified number of items.

Applicability is OM_NEW, OM_SET

These tags are not implemented: