WPCubed Product Support

Some questions about images

  1. How can I set the wrap and positionmode of an image that is pasted from the cliboard? I tried

procedure TChildForm.EditorBeforePasteImage(Sender: TObject;
RTFData: TWPRTFDataCollection; var TxtObj: TWPObject);
begin
TWPTextObj(txtobj).Wrap := wpwrAutomatic;
TWPTextObj(txtobj).PositionMode := wpotPar;
end;

but that doesn't seem to work.

  1. When I copy an image with a hyperlink from the web, both the image and the link is pasted. How can I avoid pasting the link?
  2. When I try to resize an image with an embedded hyperlink, the link is activated when the resizing is finished. Is it possible to avoid that?
  3. Is it possible to position an image so that there is no text on the sides, just above and below?
#1 ♥ 0
5.7k Views 2 users read 2 min

It looks like the BeforePasteImage event never occurs.

#2 ♥ 0
support

Hi,

BeforePasteImage only occurs if ONLY an image is pasted. In case of web I assume there is RTF or HTML pasted.

Did you try "Copy Image" menu in the explorer?

#3 ♥ 0

You are right. When I tested if the event occurred, I used an image containing a hyperlink. But my original question remains: Why doesn't the code work? The image is still pasted as a character. Similar code works when loading the image from a file.

Do you have suggestions for my other problems?

#4 ♥ 0
This category is archived. No new posts are possible.