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

TMemo Class Reference

Derived from TEditor and designed for insertion into a dialog or form. More...

#include <editors.h>

Inheritance diagram for TMemo::

TEditor TView TObject TStreamable List of all members.

Public Methods

 TMemo (const TRect &bounds, TScrollBar *aHScrollBar, TScrollBar *aVScrollBar, TIndicator *aIndicator, uint aBufSize)
virtual void getData (void *rec)
virtual void setData (void *rec)
virtual ushort dataSize ()
virtual TPalettegetPalette () const
virtual void handleEvent (TEvent &)

Static Public Methods

TStreamablebuild ()

Static Public Attributes

const char* const name

Protected Methods

 TMemo (StreamableInit)
virtual void write (opstream &)
virtual void* read (ipstream &)

Detailed Description

TMemo, which is derived from TEditor, is designed for insertion into a dialog or form.

Definition at line 1087 of file editors.h.


Constructor & Destructor Documentation

TMemo::TMemo ( const TRect & bounds,
TScrollBar * aHScrollBar,
TScrollBar * aVScrollBar,
TIndicator * aIndicator,
uint aBufSize )
 

Constructor.

See also:
TEditor::TEditor

TMemo::TMemo ( StreamableInit ) [protected]
 

Each streamable class needs a "builder" to allocate the correct memory for its objects together with the initialized virtual table pointers.

This is achieved by calling this constructor with an argument of type StreamableInit.


Member Function Documentation

TStreamable * TMemo::build ( ) [static]
 

Called to create an object in certain stream-reading situations.

Reimplemented from TEditor.

ushort TMemo::dataSize ( ) [virtual]
 

Used with getData() and setData(), which are inherited from TView and redefined. By default it returns (sizeof(ushort) + bufSize).

Reimplemented from TView.

void TMemo::getData ( void * rec ) [virtual]
 

getData() must copy dataSize() bytes from the view to the data record given by the `rec' pointer. The data record mechanism is typically used only in views that implement controls for dialog boxes.

See also:
TView::setData

The default TView::getData() does nothing.

Reimplemented from TView.

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

Returns the default memo palette.

Reimplemented from TEditor.

void TMemo::handleEvent ( TEvent & event ) [virtual]
 

Prevents TMemo from handling kbTab key events; otherwise handles events the same as a TEditor.

See also:
TEditor::handleEvent

Reimplemented from TEditor.

void * TMemo::read ( ipstream & is ) [protected, virtual]
 

Reads from the input stream `is'.

Reimplemented from TEditor.

void TMemo::setData ( void * rec ) [virtual]
 

setData() must copy dataSize() bytes from the data record given by `rec' to the view. The data record mechanism is typically used only in views that implement controls for dialog boxes.

See also:
TView::getData

The default TView::setData() does nothing.

Reimplemented from TView.

void TMemo::write ( opstream & os ) [protected, virtual]
 

Writes to the output stream `os'.

Reimplemented from TEditor.


Member Data Documentation

const char *const TMemo::name [static]
 

Undocumented.

Reimplemented from TEditor.

Definition at line 1138 of file editors.h.


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