Partager via


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

Enumeration Description
PanelType Defines the type of input currently available in the PenInputPanel object.
Event Description
InputFailed Occurs when input focus changes before the PenInputPanel object was able to insert user input into the attached control.
PanelChanged Occurs when the PenInputPanel object changes between layouts.
PanelMoving Occurs when the PenInputPanel object is moving.
VisibleChanged Occurs when the PenInputPanel object has shown or hidden itself.
Method Description
CommitPendingInput Sends collected ink to the recognizer and posts the recognition result.
EnableTsf When 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.
MoveTo Sets the position of the PenInputPanel object to a static screen position.
Refresh Updates 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.
Property Description
AttachedEditWindow Gets or sets the window handle of the control that the PenInputPanel object is attached to.
AutoShow Gets or sets a Boolean value that specifies whether the PenInputPanel object appears when focus is set using the pen.
Busy Gets a Boolean value that specifies whether the PenInputPanel object is currently processing ink.
CurrentPanel Gets or sets which panel type is currently being used for input within the PenInputPanel object.
DefaultPanel Gets or sets which panel type is the default panel type used for input within the PenInputPanel object.
Factoid Gets or sets the string name of the factoid used in recognition.
Height Gets the height of the PenInputPanel object in client coordinates.
HorizontalOffset Gets or sets the offset between the left edge of the PenInputPanel object and the left edge of the control to which it is attached.
Left Gets the horizontal, or x-axis, location of the left edge of the PenInputPanel object, in screen coordinates.
Top Gets the vertical, or y-axis, location of the top edge of the PenInputPanel object, in screen coordinates.
VerticalOffset Gets 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.
Visible Gets or sets a value that indicates whether the PenInputPanel object is visible.
Width Gets 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.