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 first parameter, paramName is passed on to the BListView.
The next parameter, pparamDataList is a specialized list derived from BList (see dataList.cpp).
The next parameter, ui32paramSelectMsg is the value if the message this list will return when an item is selected.
The next parameter, ui32paramInvokeMsg is the value if the message this list will return when an item is invoked.
The next parameter, ui32paramSelectType 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 next parameter, lpparamLayoutMatrix 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.0.1
Copyright © 1998-1999 Ed Musgrove Be Developer #2076. All rights reserved.
edgar@harbornet.com
emusgrov@linknet.kitsap.lib.wa.us
Last modified January 19, 1999.