I'm using FldCalcFieldHeight to determine the proper extent.y needed for dynamically created fields. It works perfect for fields that use stdFont but is often a few lines short for fields that use boldFont. In the example below, LINEHEIGHT = 12;
// grow or shrink the field to fit the text FrmGetObjectBounds (frmP, fldIndx, &fldRect); // total number of lines linesNeeded = FldCalcFieldHeight(str, fldRect.extent.x); // set the bottom vert fldRect.extent.y = (linesNeeded * LINEHEIGHT); Does anyone know a way to make this work for bold fields as well? Thanks, - Brian -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
