TE Edit Control Java / HTML-JavaScript Help
Product page

TerSetFlags

Set certain flags or retrieve the values of the flags.

int TerSetFlags( set, flags)
boolean 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:
TFLAG_RESIZE_BITMAP:Resize the bitmap when inserted into a frame.
TFLAG_METRIC:Show the ruler and dialog measurements in metric units.
TFLAG_APPLY_PRT_ORIENT:This flags overrides the paper orientation of the document with the paper orientation of the currently selected printer.
TFLAG_RETURN_MSG_ID :Store the message ids so that they can be retrieved by using the TerGetLastMessage function.
TFLAG_IGNORE_PICT_LINK: This flag instructs the save functions not to write the file name of the linked pictures to the disk file.
TFLAG_SHOW_CARET: Show caret even in the read-only mode.
TFLAG_UNPROTECTED_DEL: Allows for unprotected deletion of text blocks
TFLAG_NO_HOUR_GLASS: Do not display the hour glass cursor during lengthy operations.
TFLAG_NO_CHILD_TOP:Don't force child to the top of Z order.
TFLAG_NO_WRAP:Turn-off word wrapping temporarily. This flag should not be used in the Page Mode.
TFLAG_EXCLUDE_HIDDEN_SEL:Exclude hidden text from both ends of a selected block of text.
TFLAG_AUTO_VSCROLL_BAR:Enable/disable vertical scroll bar depending upon the height of the text in the window. This option is not available in Page Mode.
TFLAG_NO_PALETTE:This flag disables the intejal use of the color palettes for the picture display.
TFLAG_KEEP_PICT_ASPECT: This flag maintains the picture aspect ratio when being resized using the mouse.
TFLAG_KEEP_FRAME_ASPECT:This flag maintains the frame aspect ratio when being resized using the mouse.
TFLAG_PICT_IN_FRAME:This flag creates a frame around the picture being dropped into the editor.
TFLAG_NO_PRINTER:Disable the use of the printer.
TFLAG_NO_DRAG_TEXT:Disable the drag/drop feature for text.
TFLAG_NO_EDIT_OLE:Disable the editing of OLE objects
TFLAG_NO_EDIT_PICT:Disable the editing of picture objects.
TFLAG_SHOW_BREAKS:Show the break lines even in the read-only mode.
TFLAG_SELECT_FULL_HLINK:Select complete hypertext phrase during text selection.
TFLAG_ROW_PASTE:Paste the table data in the control as rows instead of as columns.
TFLAG_NO_AUTO_FULL_CELL_SEL:Do not select the entire cell when the last character of the cell is highlighted.
TFLAG_SWAP_DECIMAL:Swap decimal and comma characters in the dialog boxes.

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.