[Date Prev][Date Next]
[Thread Prev][Thread Next]
[Date Index]
[Thread Index]
[New search]
To: Rick Quatro <frameexpert@xxxxxxxxxxxx>
Subject: Re: FDK: Comparing MetricT values
From: Scott Prentice <sp@xxxxxxxxxxxxxx>
Date: Mon, 25 Jul 2005 14:25:56 -0700
Cc: Framers List <framers@xxxxxxxxxxxxxx>, framers@xxxxxxxxx
Delivered-to: jeremyg-freeframers:org-ffarchiv@freeframers.org
In-reply-to: <01be01c59150$4f55ee50$8119fea9@carmenbusiness>
Organization: Leximation, Inc.
References: <01be01c59150$4f55ee50$8119fea9@carmenbusiness>
Sender: owner-framers@xxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
#define pts (MetricT) 65536 MetricT mTfHeight, mTfLocY, mOverflow;
// Get the text frame height, y location and calculate the overflow location. mTfHeight = F_ApiGetMetric(oDoc, oTextFrame, FP_Height); mTfLocY = F_ApiGetMetric(oDoc, oTextFrame, FP_LocY); mOverflow = (mTfHeight + mTfLocY) - (12*pts);
Scott Prentice Leximation, Inc. www.leximation.com +1.415.485.1892
Hello Framers,
I need to get the Height of a text frame, add its LocY value to it, and then subtract 12 points from it. For example,
MetricT mTfHeight, mTfLocY, mOverflow;
// Get the text frame height, y location and calculate the overflow location. mTfHeight = F_ApiGetMetric(oDoc, oTextFrame, FP_Height); mTfLocY = F_ApiGetMetric(oDoc, oTextFrame, FP_LocY); mOverflow = (mTfHeight + mTfLocY) - 12;
I don't think this is correct. Do I have to somehow convert the MetricT values before I can do math on them? If I do, then what data type do I need to declare for mOverflow? Should this be a floating point number? Thanks in advance.
Rick Quatro Carmen Publishing 585 659-8267 rick@xxxxxxxxxxxxxxx www.frameexpert.com
** To unsubscribe, send a message to majordomo@xxxxxxxxx ** ** with "unsubscribe framers" (no quotes) in the body. **
** To unsubscribe, send a message to majordomo@xxxxxxxxx ** ** with "unsubscribe framers" (no quotes) in the body. **