PGetConvertTwips

Converts the specified measurement from twips (the PageMaker internal measurement system) to the specified units.


Query constructor

PGetConvertTwips(short dTwips, short cMeasureUnits);

short dTwips;

Measurement in twips to be converted
short cMeasureUnits
Measurement units to convert the measurement to:

kMeasurementInches
kMeasurementDecimalInches
kMeasurementMetric
for millimeters
kMeasurementPica for picas and points
kMeasurementCicero
kParmDontCare
(-2) to use the default measurement system


Query results

const char * sMeasurement;
Measurement converted to the specified units as a C string.
Unit specified in return value. When you specify measurement units, PageMaker includes the unit abbreviation with the value. These abbreviations are:

Units Abbreviation Example
Inches i "5.625i"
Millimeters m "25m"
Picas p after number "18p"
Points p before number "p6"
Picas and points p between numbers "18p6"
Ciceros c after number "5c"

If you set cMeasureUnits to kParmDontCare , PageMaker uses the default measurement system and does not include the units abbreviation with the return value.


See also

The PGetConvertStr query


Copyright © 1996, Adobe Systems Incorporated. All rights reserved.

Comments or suggestions? Contact Adobe Developer Support