TE Edit Control Win32 / Win64 Help
Product page

TerOr

Return bitwise 'OR' value of two variables.

int TerAnd(var1, var2)
int var1;First variable.
Int var2;Second variable

Description: This function is useful in the programming environments which does not provide a built-in bitwise OR operator.

Return Value: The function returns the bitwise OR value of the input variables.

TerInsertUserField

Insert a dynamic user field at the current cursor position.

int TerInsertUserField(hWnd, repaint)
HWND hWnd;The handle of the window to be accessed
BOOL repaint;Repaint the window after this operation

Description: This function inserts a dynamic user field. The editor fires an event called SetUserField when it encounters a user-field in the document as the page is being rendered. Your application can specify the content of the user field by using the TerSetUserField function within this event.

The text length of the user field should not exceed one text line. When the user-field is placed in a header/footer area, the text length of the field should not change from one call to another.

Return Value: This function returns TRUE when successful.