How to set the way an image is placed in the document

  • Hi,

    In MS Word one can set the way an image is placed in the document, like: In Text, Behind the text, in front of the text, text above and below etc.

    Is there a way to do this in WPTool TWPRichText?
    Is there a build-in menu available for image-manipulation (like the one for tables)?

    • Offizieller Beitrag

    Hi,

    Currently thete is no dialog box for this, although this is planned.

    But you can implement a popup menu

    Code
    procedure TWPTBXForm.WPRichText1TextObjectMouseDown(  Sender: TWPCustomRtfEdit; pobj: TWPTextObj; obj: TWPObject;  Button: TMouseButton; Shift: TShiftState; X, Y: Integer);begin  if Button = mbRight then  begin    WPRichText1.SelectedObject := pobj;    GrPopup.Popup(Mouse.CursorPos.x, Mouse.CursorPos.y);  end;end;

    Which uses code like this to change the modes of a graphic.