TE Edit Control Java / HTML-JavaScript Help
Product page

TerSetPictFrame2

Set a floating frame for a picture.

boolean TerSetPictFrame2( pict, type, x, y, repaint)
int pict;Id of the picture. Must be a valid number between 0 and TotalFonts - 1.
int type;

Picture frame type:

PFRAME_FLOAT: Free floating picture frame

PFRAME_LEFT: Left aligned picture frame

PFRAME_RIGHT: Right aligned picture frame

PFRAME_NONE: No picture frame

int x;The x location (in twips units) of the frame relative to the left edge of the page. This value is used only when frame type is set to PFRAME_FLOAT.
int y;The y location (in twips units) of the frame relative to the top edge of the page. This value is used only when frame type is set to PFRAME_FLOAT.
boolean repaint;Repaint the screen after this operation.

Description: This function enclosed the give picture in a frame. The document text wraps around the frame.

Return Value: This function returns the frame id of the picture frame when successful. It returns a value of -1 to indicate an error condition.