trichview.com

trichview.support




Re: Importing RTF containing Word Draw objects


Return to index


Author

Message

Sergey Tkachenko

Posted: 07/09/2005 11:51:08


The equation objects are special kind of MS Word objects. Their base line

must be aligned to the text base line, and TRichView does not know where the

base line of these objects (images)

All what you can do is to shift them down until the proper position.

VAlign cannot be used here, it provides only two options - "image bottom ===

text base line", "image middle === text base line".

You need more precise positioning.

It can be implemented using extra items' integer properties, namely

rvepVShift and rvepVShiftAbs (see the help file for TRVExtraItemProperty

type)

rvepVShift defines a vertical offset of the item, in % of the item height

(default), or in pixels, depending on the value of rvepVShiftAbs property.


This code moves the current picture by one unit down:


var vshift: Integer;


if GetCurrentItemExtraIntProperty(rvepVShift, vshift) then

  SetCurrentItemExtraIntProperty(rvepVShift, vshift-1, True);





Powered by ABC Amber Outlook Express Converter