WPTools Manual



Search


(press enter to search)

Function TWPCustomRichText.InsertGraphicDialog(filter:string; InsertLink:Boolean; ObjectModes:TWPTextObjModes; path:string) : TWPObject

Unit: WPCTRRich
Class: WPCTRRich.TWPCustomRichText

Parameters

Returns

The type of the result value is TWPObject.

Description

This procedure shows a dialog to load a graphic. Optionally you can specify if the the object should be embedded or linked. You can also set some additional modes for the created object. The following 'OptionModes' are available:
wpobjRelativeToParagraph, // place object relatively to paragraph wpobjRelativeToPage, // relatively to page wpobjPositionAtRight, // auto calc RelX to position at right (=HTML ALIGN=RIGHT) wpobjPositionAtCenter, // auto calc RelX to position at right (=HTML ALIGN=CENTER) wpobjPositionInMargin, // Position 0.2 cm from left or right border of the text, whatever margin is larger wpobjLockedPos, // This object cannot be moved wpobjSizingDisabled, // The user cannot change the width/height at all wpobjSizingAspectRatio // the user may only change the aspect ratio
Note:
The reference to the inserted TWPTextObject is available as WPRichText1.InsertedObj after the call.