I have seen other people post some sample code here and in the newsgroups
that edit the FieldType attributes directly. I also know in the
documentation, Palm says that you should never do this.
I wouldn't do it, even though it is easier sometimes. For example:
attr.hasScrollBar = 1.
-Marc
----- Original Message -----
From: Christian Vandendorpe <[EMAIL PROTECTED]>
To: Palm Dev List <[EMAIL PROTECTED]>
Sent: Friday, November 19, 1999 2:41 AM
Subject: Field attributes
> Is it ok to mess with the Field attributes structure directly? Or is this
> something that changes from OS to OS?
>
> I have this strange problem and I dont know if it is CW messing the
> variable display in the debugger or if the Palm OS doesnt like this.
>
> Here is what I do, I start getting the attributes:
>
> FieldAttrType attr;
> FldGetAttributes(pfld, &attr);
>
> and then if I do:
>
> attr.autoShift = fTrue;
>
> it's actually the singleLine field that gets set to 1!
>
> What is going on?
>
> Thanks
>
> Chris
>
> ---
> Christian Vandendorpe ([EMAIL PROTECTED])
> http://www.zorglub.com
>
>