TerInsertText
Insert text at the cursor position.
BOOL TerInsertText(hWnd, text, FontId, ParaId, repaint)
BOOL TerInsertTextU(hWnd, UText, FontId, ParaId, repaint)
HWND hWnd; | Handle of the window to be accessed |
BYTE huge *text; | pointer to the text to be inserted. The text must be NULL terminated. This parameter is applicable to the TerInsertText function only. |
WORD huge *UText | pointer to the unicode text to be inserted. The text must be NULL terminated. This parameter is applicable to the TerInsertTextU function only. |
int FontId; | font id to use for the new text. Use -1 for the default value. |
int ParaId; | paragraph id to use for the new text. Use -1 for the default value. |
BOOL repaint; | Repaint the window after this operation |
Description: This function inserts the specified text at the current cursor position. After the operation the cursor is positioned after the inserted text.
Return Value: This function returns TRUE when successful.
Comment: A VB application might find easier to use the following variable of these methods available through ActiveX interface:
BOOL TerInsertTextU2(UText, FontId, ParaId, repaint)
This method allows you to pass unicode text as simple VB string using the UText parameter. The remaining parameters and the result values are the same as described above.