trichview.com

trichview.support




Re: Importing RTF containing Word Draw objects


Return to index


Author

Message

Steve Craig

Posted: 07/10/2005 5:41:35


"Sergey Tkachenko" <[email protected]> wrote:

>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