> I am trying to change the underline attribute of a field on the fly.
The whole point of FldGetAttributes is that you shouldn't directly access
fldP->attr.

good code:

FieldPtr   fldP;
FieldAttrType attr;


  fldP = FrmGetObjectPtr(frm, MainField);

  FldGetAttributes(fldP, &attr);
  attr.underlined = noUnderline;
  FldSetAttributes(fldP, &attr);
  FldDrawField(fldP);


original code:
> FieldPtr   fldP;
>  FieldAttrPtr attrP;
>  FieldType   fld;
>
>
>  fldP = FrmGetObjectPtr(frm, MainField);
>
>  attrP = &fld.attr;
>  FldGetAttributes(fldP, attrP);
>  attrP->underlined = noUnderline;
>  FldSetAttributes(fldP, attrP);
>  FldDrawField(fldP);




--
Neil Rhodes
Calliope Enterprises, Inc.
1328 Clock Avenue
Redlands, CA  92374
(909) 793-5995     [EMAIL PROTECTED]      fax: (909) 793-2545

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to