WPCubed Product Support

Creating a TWPOImage_ThumbView

I whould like show some images into a right side of text. Sample

I have 4 images to show on right and the text on left. I need some blank space between images but i dont want that any text between images.

🖼 www.microprocess.com.br

I'm think inherited TWPOImage, put a list of strings (path and filename) and paint all images into this obj. So I put just a wpoimage relative to page on right side.

Anyone can help me with this object or with other Idea?

#1 ♥ 0
8.8k Views 1 links 2 users read 2 min
support

Hi,

you can put in a TWPOImage, load the graphic can make it relative to the paragraphs. Use the RelY property to move it into the right margin.

TxtObj.Mode := [wpobjRelativeToParagraph];
TxtObj.Wrap := wpwrNone;
TxtObj.RelY := PageWidth-LeftMargin-obj.Width

Julian

#2 ♥ 0

but, I cannot have text between images, but I want a blank space beteween thems. How to resolve this?

#3 ♥ 0
support

You can define a right indent. That will make sure you have enough margin for the images and avoid the text to flow into the empty space.

The images can be outside of the text area.

Julian

#4 ♥ 0

Very thanks julian, but there is a problem yet!

When the user write more text that one page i need all width.

On second page do not have images, and he will need select text and change the right margin to works. I dont want he need do this!

#5 ♥ 0
support

Hi,

If you add the images in code you can also change the right indent in program code.

Julian

#6 ♥ 0

no, i can't.
This is a template and the images are mergefields

#7 ♥ 0
support

You can using the ParentPar reference available for each merge filed object.

#8 ♥ 0
support

Hi,

You say: This is a template and the images are mergefields

So, since I have to guess what you are really doing, I can give you a hint about how to do it in event OnMailMergeGetText:

this object is passed to OnMailMergeGetText event

There you have access to
property StartInspObject: TWPTextObj;

which is the start insertpoint object.

This object has this properties

with one of which is

property ParentPar: TParagraph;

Using the ParentPar you can change the indent,

Contents.StartInspObject.ParentPar.ASet(WPAT_IndentRight, 1440)

Julian

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