Re: FTParagraph Y pos
- From: Peter Karlsson <lists@xxxxxxxxx>
- To: ftcdev@xxxxxxxxxxxxx
- Date: Wed, 17 Dec 2008 20:55:36 +0100
Works perfectly, thanks Brendan.
Peter
17 dec 2008 kl. 19.23 skrev Brendan Murphy:
Hi, I wonder if there's a built-in access to the Y1 pos of a
paragraph. The reason I want this is that I'd like to draw text in
the left margin using PostDisplayDraw in page mode.
Call FTParagraphProxy.getComposePosition to get the position on
the page. Note, paragraphs can be split across pages and that is
why paragraph proxies exist to handle the split paragraph.
Paragraph proxies are stored in the FTParagraph class and you can
enumerate through them as needed. So in your case you want to find
out the visible pages and draw what you want according to the
paragraphs and paragraph proxies on those visible pages.
FTC Website:
http://www.truenorthsoftware.com/FormattedTextControl/FormattedTextControl.html
Set List Options (digest and vacation modes): www.freelists.org/list/ftcdev
List Archive: www.freelists.org/archives/ftcdev
Unsubscribe: Send email to ftcdev-request@xxxxxxxxxxxxx with
"unsubscribe" in the subject field.
FTC Website:
http://www.truenorthsoftware.com/FormattedTextControl/FormattedTextControl.html
Set List Options (digest and vacation modes): www.freelists.org/list/ftcdev
List Archive: www.freelists.org/archives/ftcdev
Unsubscribe: Send email to ftcdev-request@xxxxxxxxxxxxx with "unsubscribe" in
the subject field.
Other related posts: