Your question is unclear ... is each line a separate
field (you say yyou have multiple fields on your form).
If so, then the answer is "yes". But if you want to display
different fonts within one field the answer is "no".
Each field can be set to use a different font ... but only
one font can be used per field. If you need more control
than that you need to implement something yourself (look
for "gadget" in the docs).
As for setting the fonts on a per-field basis ... if they are
always going to be the same, set the properties in constructor.
If you need to change them dynamically, the code is something
like this:
static void setFontID(FormPtr frm, int fieldId, FontID fontId)
{
int fldIdx = FrmGetObjectIndex(frm, fieldId);
FieldPtr fldP = FrmGetObjectPtr(frm, fldIdx);
//- update the display field
FrmHideObject(frm, fldIdx);
FldSetFont(fldP, id);
FldRecalculateField(fldP, true);
FrmShowObject(frm, fldIdx);
}
For the "fieldId" param pass one of the #defined values
that constructor puts in "resource.h".
For the "fontId" param pass one of the standard IDs
(e.g. stdFont, largeBoldFont, etc) or an id of your own
(>128) that you've associated w/ a font definition with
FntDefineFont().
--
-Richard M. Hartman
[EMAIL PROTECTED]
186,000 mi/sec: not just a good idea, it's the LAW!
Somnath wrote in message <25001@palm-dev-forum>...
>
>Hi,
>
> I have a multiple field on my form.
>
>Can I display one line in one font (say bold) and another
>in other font (say largebold or standard) ?.
>
>If Yes, how can I accomplish it ?.
>
>I have tried FldSetFont(), but it didn't helped.
>
>Pointers are Welcome.
>
>Thanks in advance.
>Bye.
>
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/