Derived from: BListView
Declared in: myListView.h
Library: libBeGUI.so
The MyListView Class is used as a list display and item selection tool. It is a wrapper for the BeOS BListView class.
This is the constructor. The parameter paramName is passed on to the BListView.
The parameter paramDataList is a specialized list derived from BList (see dataList.cpp).
The parameter uparamSelectMsg is the value if the message this list will return when an item is selected.
The parameter uparamInvokeMsg is the value if the message this list will return when an item is invoked.
The parameter uparamSelectType is kind of List view. There are three possibilities, LISTVIEWSELECTZERO, LISTVIEWSELECTONE and LISTVIEWSELECTMULTI. LISTVIEWSELECTZERO is for display purposes only, you ignore all selection and invocation messages from these list views. LISTVIEWSELECTONE is for when you want a single item selected immediately from the list. A single click on an item closes the window (see listViewWindow.cpp). LISTVIEWSELECTMULTI allows multiple selections to be made from the same list.
The parameter paramLayoutMatrix is the LayoutMatrix to which this gadget will be attached.
There is a bit of code in this CTOR, it most all deals with BStringItems, filling them with the textual data found in each DataList (see dataList.cpp) item. They are added to the BListView base class with AddItem(). The appropriate height and width for the view is calculated based upon the preferred font's size.
This is the destructor. It does nothing.
This just overrides the BListView method to provide color control, it calls the inherited version.
The BListView class's method GetPreferredSize() has some problems, so I have provided a replacement which works for my needs.
for version 1.4.2
Copyright © 1998-1999 Ed Musgrove Be Developer #2076. All rights reserved.
edgar@harbornet.com
emusgrov@linknet.kitsap.lib.wa.us
Last modified March 17, 1999.