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

TerSetBkPictId

Set the background picture.

bool TerSetBkPictId( PictId, PictFlag, repaint)
int PictId;Picture id
int PictFlag;This can be set to one of these values:
BKPICT_STRETCH:Stretch the picture to occupy the text area
BKPICT_TILE:Tile the picture to occupy the text area

Or you can set this argument to 0 to draw the picture in its original size without tiling.

bool repaint:Repaint the screen after this operation

Description: The picture can be an ID returned by any of these functions: TerPastePicture, TerInsertPictureFile, TerPictureFromFile, TerPictureFromWmf. The 'insert' argument for these function calls must be set to false. To remove an existing picture background, call this function with the PictId set to 0. Call this function with the PictId set to -1 to show a dialog box to the user. This dialog box allows the user to select a bitmap or a metafile file name.

Return Value: This function returns true when successful.