Re: How to get length of contents
- From: Brendan Murphy <bmurphy@xxxxxxxxxxxxxxxxxxxxx>
- To: ftcdev@xxxxxxxxxxxxx
- Date: Fri, 13 Feb 2009 09:04:26 -0600
Ron Benditt wrote:
> I'm trying to make a FTC edit field that resizes its height to match
> the height of its contents. I'm having a bit of trouble finding a way
> to get the height to set the FTC to. The only method call that I've
> found that gets me close is ftc.getDoc.getPageHeightLength. This
> works some of the time, but not always. Perhaps because I'm using the
> FTC as and edit field I shouldn't be messing with the page
> properties? Is there something else that I can query to get what I
> need? Or even a 'line count' would work...
Go back into the January FTC archive and read the thread entitled,
"Using the FTC as an editor, then drawing rendered text". It has
the basics of what you need to do.
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: