PenInputPanel Class

PenInputPanel Class

The PenInputPanel object enables you to easily add in-place pen input to your applications.

The PenInputPanel object is available as an attachable object that allows you to add Tablet PC Input Panel functionality to existing controls. The user interface is largely mandated by the current input language. You have the option of choosing the default input method for the PenInputPanel object, either handwriting or keyboard. The end user can switch between input methods using buttons on the user interface.

Members

EnumerationDescription
PanelTypeDefines the type of input currently available in the PenInputPanel object.

EventDescription
InputFailedOccurs when input focus changes before the PenInputPanel object was able to insert user input into the attached control.
PanelChangedOccurs when the PenInputPanel object changes between layouts.
PanelMovingOccurs when the PenInputPanel object is moving.
VisibleChangedOccurs when the PenInputPanel object has shown or hidden itself.

MethodDescription
CommitPendingInputSends collected ink to the recognizer and posts the recognition result.
EnableTsfWhen passed TRUE, the PenInputPanel attempts to send text to the attached control through the Text Services Framework (TSF) and enables the use of the correction user interface.
MoveToSets the position of the PenInputPanel object to a static screen position.
RefreshUpdates and restores the PenInputPanel properties based on Tablet PC Input Panel settings, automatically positions the pen input panel and sets the user interface to the default panel.

PropertyDescription
AttachedEditWindowGets or sets the window handle of the control that the PenInputPanel object is attached to.
AutoShowGets or sets a Boolean value that specifies whether the PenInputPanel object appears when focus is set using the pen.
BusyGets a Boolean value that specifies whether the PenInputPanel object is currently processing ink.
CurrentPanelGets or sets which panel type is currently being used for input within the PenInputPanel object.
DefaultPanelGets or sets which panel type is the default panel type used for input within the PenInputPanel object.
FactoidGets or sets the string name of the factoid used in recognition.
HeightGets the height of the PenInputPanel object in client coordinates.
HorizontalOffsetGets or sets the offset between the left edge of the PenInputPanel object and the left edge of the control to which it is attached.
LeftGets the horizontal, or x-axis, location of the left edge of the PenInputPanel object, in screen coordinates.
TopGets the vertical, or y-axis, location of the top edge of the PenInputPanel object, in screen coordinates.
VerticalOffsetGets or sets the offset between the closest horizontal edge of the PenInputPanel object and the closest horizontal edge of the control to which it is attached.
VisibleGets or sets a value that indicates whether the PenInputPanel object is visible.
WidthGets the width of the PenInputPanel object in client coordinates.

Remarks

This object can be instantiated by calling the CoCreateInstance method in C++ or by using the New keyword in Microsoft® Visual Basic® 6.0.

COM Implementation

This object implements the IPenInputPanel COM interface.

Related Topics

Show: