> I tried getting insPtXPos and insPtYPos using FieldPtr on the OS4...
> But it's not work on the OS5.

Right, see the previous answers to that.
The object type pointers are opaque on OS5.


> // comment #ifdef ALLOW_ACCESS_TO_INTERNALS_OF_FIELDS on the field.h's
> FieldType typedef
>
>   temp_pos =  fld->insPtYPos;
>   fld->insPtYPos++;
>  FldDrawField(fld);
>
> Upper code worked on the OS4...
> But doesn't work on the OS5...
>
> You said you can get insPtXPos and  insPtYPos in OS5 referenceing field.c
> source code....
>
> Currently I don't have field.c source code....
> Can you explain it a more specifically?
> Or is it possible a fragment of field.c source code?

You can easily get the insertion point position (character index into the
field).  Given the position, it's pretty straightforward how to calculate
the xpos and ypos yourself.  That's what Paul and myself do.  There's no
magic, the field already exposes all the info you need to calculate the x,y
coordinates yourself.  It's a little bit of work, but it's worth doing
yourself so that you can learn from it and really understand what you're
doing.

Btw, obviously I can't share the OS source, because I signed a legal
agreement not to, and so did everyone else who has access to it.



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

Reply via email to