> Sorry if this has been discussed already: the digests haven't been
> delivered in awhile.
>
> I was tracing through my code and discovered something unusual.
> Codewarrior was reporting that my FieldPtr attributes were changing in an
> unexpected manner.
>
> static void SetFieldEditable( Word wID, Boolean bEditable)
> {
> FieldPtr pField;
> FormPtr pForm = FrmGetActiveForm();
> Word wIndex;
>
> wIndex = FrmGetObjectIndex( pForm, wID);
> pField = FrmGetObjectPtr( pForm, wIndex);
> pField->attr.editable = bEditable;
> if( bEditable) pField->attr.underlined = grayUnderline;
> else pField->attr.underlined = noUnderline;
> }
>
> This function should change the Editable and Underlined attributes of the
> field. Codewarrior was reporting that the assignment of a value to
> Editable actually changed the value for HasScrollBar, and that the
> assignment of a value to Underlined acually changed the value for
> InsPtVisible.
>
> _Environment_
> Codewarrior: R6
> PalmOS: 3.0
> POSE: 3.0a3
> HostOS: NT4
>