| InsertGraphicDialog method |
Applies to
TWPCustomRichText
Declaration
function InsertGraphicDialog(filter: string = ''; InsertLink: Boolean = FALSE; ObjectModes: TWPTextObjModes = []): 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 |
|
Copyright (C) by WP |