The hedit Control

Except under special circumstances, the hedit control displays two sets of text. First, the handwritten characters appear as written by the user, formed by the ink trail of the pen. When the writing is recognized, the handwritten ink disappears from the screen, replaced within the control window by the interpreted characters as determined by the recognizer. The interpreted text appears in a Windows font as though typed at the keyboard.

The following instruction creates a multiline hedit control with left justification:

hwndHedit = CreateWindow( "HEDIT", NULL,

ES_MULTILINE | ES_LEFT |

WS_CHILD | WS_VISIBLE,

CW_USEDEFAULT, CW_USEDEFAULT,

CW_USEDEFAULT, CW_USEDEFAULT,

hwndParent, CHILD_ID, hinstCurrent, NULL );

The styles of ES_MULTILINE and ES_LEFT do not constrain the freeform approach of handwriting in an hedit control. The user can write anywhere on the pen tablet allowed by the control pics/PENAPI00090001.gif usually within or near the control window. The styles determine the format of the resulting interpreted text displayed in the control.

The hedit control is a pen-aware version of the default Windows 3.1 edit control. The hedit control not only supports handwritten characters and gestures, but also responds normally to keyboard and mouse events in the same way as an edit control. An application can use an hedit control anywhere a regular edit control will work, including dialog boxes. In fact, specifying EDIT class for a control in Windows 95 automatically creates an hedit control. The hedit control is visually identical to a standard control except that it displays a pen pointer instead of an I-beam pointer. Single-line hedit controls also display a lens button when a pen is present. When specifying an HEDIT control for a dialog box in a resource, use the DIALOGEX resource. Refer to the DIALOGEX resource description in the Win32 SDK tools documentation for a more information on using the HEDIT control class.

With a window style of ES_READONLY, an hedit window can accept no pen input. The pointer within the control does not change to a pen.

An hedit control processes tabs and carriage returns differently depending on whether they are entered as gestures or typed from the keyboard. If the user draws a tab or carriage return gesture in a multiline hedit control, the control inserts a tab or carriage return character into the text. For tabs and carriage returns entered from the keyboard, an hedit control in a dialog box mimics the standard dialog box behavior pics/PENAPI00090001.gif that is, pressing the TAB or RETURN key passes control respectively to the TABSTOP or DEFPUSHBUTTON statement given in the dialog box template.

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database