TerInsertTextInputField
Insert a text input field at the cursor position.
int TerInsertTextInputField(hWnd, name, InitText, MaxLen, border, typeface, twipsize, style, color, insert, repaint)
HWND hWnd; | Handle of the window to be accessed |
LPBYTE name; | field name |
LPBYTE InitText; | Initial text |
int MaxLen; | Maximum number of characters allowed in the field. Set to 0 to specify no limit. |
BOOL border; | Set to TRUE to draw the box around the text field. |
LPBYTE typeface; | font typeface for the field text. |
int twipsize; | Font pointsize specified in Twips unit. (20 Twips = 1 Point). |
UINT style; | Style (BOLD, ULINE, ITALIC) for the text. Use the logical OR operator to specify more than one style constants. |
COLORREF color; | Foreground color for the text. This argument is ineffective currently. Set to 0. |
BOOL insert; | Set to TRUE to insert the new input field into the document. Set to FALSE to simply return the picture id of the new field without inserting into the text. |
BOOL repaint; | Repaint the window after this operation |
Description: This function inserts a text box. The user can input data into the text box.
Return Value: This function returns the picture id of the text input field. It returns 0 to indicate an error condition.