TE Edit Control .NET Core / .NET Framework Help
Product page

TerSetFlags2

Set additional flags or retrieve the values of the flags.

int TerSetFlags2( set, flags)
bool set;true to set the given flags, false to reset the given flags
int flags;Flags (bits) to set or reset. Currently, the following flag values are available:
TFLAG2_RETAIN_BKND:Display the text over the existing background. To be effective, this flag must be set before the TER window is created.
TFLAG2_USE_PAL_FOR_TEXT:Use the currently selected palette to draw the text
TFLAG2_CAN_MERGE_PROT_TEXT: Allow the deletion of the last character between two protected blocks of text.
TFLAG2_BKPICT_OVER_PAGE_BORDER:When the background picture as well as the page border is displayed, this option ensures that the background picture is displayed in place of the border shading around the page.
TFLAG2_NO_CARET:Do not display the caret even in the edit mode.
TFLAG2_SHOW_SECT_PAGE_NO:Show the section page number on the status bar and while scrolling.
TFLAG2_NO_CURSOR_CHANGE:Do not change the cursor shape as the mouse moves over the editor window.
TFLAG2_VERT_THUMB_TRACK:Scroll the screen while dragging the vertical scroll bar.
TFLAG2_NO_AUTO_REPAGE:Do not do automatic repagination when the document is edited.
TFLAG2_NO_BKP_FILE:Do not save the original file as backup before saving the document.
TFLAG2_SELECT_FRAME_PICT:When the frame containing a picture is clicked, select the picture instead of the frame.
TFLAG2_HIDE_PAGE_BREAK:Don't show the soft page break lines in the Page Mode.
TFLAG2_PROTECT_FORMAT:Protect the formatting of the protected text.
TFLAG2_NO_HIDDEN_RTF_TEXT:Do not write hidden text to the RTF file.
TFLAG2_NO_SHADE_FIELD_TEXT: Do not apply shading to the field text.
TFLAG2_IGNORE_TIMER:Suspend timer activity.
TFLAG2_NO_AUTO_HDR_FTR:Do not display header/footer automatically at file input or paste operation.
TFLAG2_WRITE_FIRST_RTF_COLOR:Write the initial default color to the rtf color table.
TFLAG2_FULL_REPAINT:Always fully repaint the text box.
TFLAG2_KEEP_PRINTER_OPEN:Keep the printer driver open after the last edit window is closed. When this flag is set, your application should call the TerClosePriner function to close the printer driver manually after the last edit window is closed.
TFLAG2_ALT_PARA_SYM:Display alternate paragraph symbol ( ). This flag should be set before creating the edit window.
TFLAG2_ALT_LINE_SYM:Display alternate line break symbol ( ). This flag should be set before creating the edit window.
TFLAG2_NO_LINE_FITTING:Do not attempt to shrink inter screen lines to fit within the printer defined width.
TFLAG2_NO_PRT_CANCEL_DLG:Do not show the print cancel dialog box during printing.
TFLAG2_INDENT_FRAMES:When indenting text, indent the selected frames as well.
TFLAG2_INDENT_TABLES:When indenting text, indent the selected table as well.
TFLAG2_NO_ADJUST_CURSOR:Do adjust cursor when placed over hidden or protected or hidden text.
TFLAG2_CURSOR_BEF_HIDDEN:When the cursor is in the middle of hidden text, move it before the hidden text. By default, the cursor is moved after the hidden text.
TFLAG2_NO_CURSOR_ON_PROTECT:Do not allow cursor in the middle of the protected text.

Return value: This function returns the new value of all the flags. Call this function with the 'flags' parameter set to zero to retrieve flag values without modifying it.