#include <dialogs.h>
Inheritance diagram for THistoryViewer::
Public Methods | |
THistoryViewer (const TRect &bounds, TScrollBar *aHScrollBar, TScrollBar *aVScrollBar, ushort aHistoryId) | |
virtual TPalette& | getPalette () const |
virtual void | getText (char *dest, short item, short maxLen) |
virtual void | handleEvent (TEvent &event) |
int | historyWidth () |
Protected Attributes | |
ushort | historyId |
Definition at line 2207 of file dialogs.h.
|
Initializes the viewer list by first calling the TListViewer constructor to set up the boundaries, a single column, and the two scroll bar pointers passed in `aHScrollBar' and `aVScrollBar'. The view is then linked to a history list, with the historyId data member set to the value passed in `aHistory'. That list is then checked for length, so the range of the list is set to the number of items in the list. The first item in the history list is given the focus, and the horizontal scrolling range is set to accommodate the widest item in the list. |
|
Returns the default palette string. Reimplemented from TListViewer. |
|
Set `dest' to the item'th string in the associated history list. getText() is called by the TListViewer::draw() member function for each visible item in the list. Reimplemented from TListViewer. |
|
The history viewer handles two kinds of events itself; all others are passed to TListViewer::handleEvent().
Reimplemented from TListViewer. |
|
Returns the length of the longest string in the history list associated with historyId. |
|
historyId is the ID number of the history list to be displayed in the view. |