Class: TSimpleTypingInteractor

Declaration: SimpleTextInteractors.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TTypingInteractor

Inherited By:

None.

Purpose:

TSimpleTypingInteractor is derived from TTypingInteractor. It handles keyboard typing input to text areas that are not model-based.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

This class is designed to be used directly. However, a derived class can override the KeyDown member function to monitor key events. In order to use a derived class to monitor key events, it is necessary to create a derived class of TSimpleTextView with an override for HandleCreateTypingInteractor to instantiate your own typing interactor derived from TSimpleTypingInteractor.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TSimpleTypingInteractor::TSimpleTypingInteractor

  1. TSimpleTypingInteractor (TSimpleTextView * view)
  2. TSimpleTypingInteractor ()

Interface Category:

API.

Purpose:

  1. Constructs an interactor to process typing events for the specified simple text view.
  2. Default constructor. This constructor is protected.

Calling Context:

  1. Called to construct an interactor for a particular view.
  2. Called by the stream-in operators.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSimpleTypingInteractor::~TSimpleTypingInteractor

virtual ~ TSimpleTypingInteractor ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSimpleTypingInteractor::GetSimpleTextView

virtual TSimpleTextView * GetSimpleTextView ()

Interface Category:

API.

Purpose:

Accessor function for getting a pointer to the simple text view associated with this interactor. Called to determine the simple text view associated with this interactor.

Calling Context:

May be called directly by clients. May be called from other classes.

Parameters:

Return Value:

A pointer to the simple text view associated with this interactor.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

This function is protected.

Member Function: TSimpleTypingInteractor::KeyDown

virtual bool KeyDown (TKeyDownEvent &)

Interface Category:

API.

Purpose:

Overrides the default ::KeyDown by choosing the typing configuration first.

Calling Context:

Not called directly.

Parameters:

Return Value:

Returns true if the event was handled.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.