Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

THistoryWindow Class Reference

Holds a history list viewer. More...

#include <dialogs.h>

Inheritance diagram for THistoryWindow::

TWindow THistInit TGroup TWindowInit TView TObject TStreamable List of all members.

Public Methods

 THistoryWindow (const TRect &bounds, ushort historyId)
virtual TPalettegetPalette () const
virtual void getSelection (char *dest)

Static Public Methods

TListViewerinitViewer (TRect bounds, TWindow *w, ushort aHistoryId)

Protected Attributes

TListViewerviewer

Detailed Description

THistoryWindow is a specialized descendant of TWindow and THistInit (multiple inheritance) used for holding a history list viewer when the user clicks on the history icon next to an input line.

By default, the window has no title and no number. The history window's frame has only a close icon: the window can be closed, but not resized or zoomed.

Definition at line 2328 of file dialogs.h.


Constructor & Destructor Documentation

THistoryWindow::THistoryWindow ( const TRect & bounds,
ushort historyId )
 

Calls the THistInit constructor with the argument &THistoryWindow::initViewer. This creates the list viewer.

See also:
THistInit::THistInit , THistoryWindow::initViewer

Next, the TWindow constructor is called to set up a window with the given bounds, a null title string, and no window number (wnNoNumber).
See also:
TWindow::TWindow

Then the TWindowInit constructor is called with the argument &THistoryWindow::initFrame to create a frame for the history window.
See also:
THistoryWindow::initFrame , TWindowInit::TWindowInit

Finally, the flags data member is set to wfClose to provide a close icon, and a history viewer object is created and inserted in the history window to show the items in the history list given by `historyId'.


Member Function Documentation

TPalette & THistoryWindow::getPalette ( ) const [virtual]
 

Returns the default palette string.

Reimplemented from TWindow.

void THistoryWindow::getSelection ( char * dest ) [virtual]
 

Returns in `dest' the string value of the THistoryViewer::focused item in the associated history viewer.

TListViewer * THistoryWindow::initViewer ( TRect bounds,
TWindow * w,
ushort aHistoryId ) [static]
 

Instantiates and inserts a THistoryViewer object inside the boundaries of the history window for the list associated with the ID `aHistoryId'.

Standard scroll bars are placed on the frame of the window to scroll the list.


Member Data Documentation

TListViewer * THistoryWindow::viewer [protected]
 

Points to the list viewer to be contained in this history window.

Definition at line 2376 of file dialogs.h.


The documentation for this class was generated from the following file:
Generated at Sat Sep 22 20:19:27 2001 for TVision by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001