I did it. Actually it was not about the attr, but about the campo
variable (a pointer to the Field). I was making it point to the wrong
place :c)

Thanks, Miguel.

On Wed, 19 Jan 2005 14:27:18 -0800, AyloNs Hazzud <[EMAIL PROTECTED]> wrote:
> Miguel, I tried to to just the same thing, even the variable names
> were the same :c)
> 
> But every time I try to do it, my emulator complains about forbidden
> memory access,and it gets really really annoying, as a forma can have
> 30+ fields like this.
> 
> On Wed, 19 Jan 2005 15:56:38 -0600, Miguel Angel Sotomayor Hernandez
> <[EMAIL PROTECTED]> wrote:
> > I did this in my app. In my load data callback function:
> >
> > FieldAttrType attr;
> >
> > FldGetAttributes(campo,&attr); //campo is the FieldType pointer I get in
> > my callback function
> >
> > attr.justification = rightAlign;
> > attr.numeric = true;
> >
> > FldSetAttributes(campo,&attr);
> >
> > However, justification doesn't work very well, it has a stranger
> > behavior when editing.
> >
> > Hope this helps.
> >
> >
> > AyloNs Hazzud wrote:
> >
> > >My software demands dynamically created numeric fields in tables, but
> > >I cannot found any API to change a field attributes to set it numeric
> > >or right aligned. As itīs not safe to change the attribute fields
> > >directly, I donīt know how to do it. Is it possible? How?
> > >
> > >Actuallty, I see that the Address Book code which comes with SDK do it
> > >(change directly) at least two times, so, I believe Iīll have to do
> > >it. In this case, how I prevent my emulator from warning me about it
> > >all the time, without making it stops to warning about forbidden
> > >direct memory access in other pieces of code?
> > >
> > >
> > >
> >
> > --
> > For information on using the Palm Developer Forums, or to unsubscribe, 
> > please see http://www.palmos.com/dev/support/forums/
> >
>

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/

Reply via email to