I created versions of all the functions I needed (FrnNewField, etc) (from
the OS sources), and had them call a private version of PrvFixupPointers
which was the OS code modified to look at the object type and know what was
a pointer and what was data. Obviously this is not portable to other
versions of the ROM code without being very careful
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Frans Amelink
Sent: Monday, February 14, 2000 12:52
To: Palm Developer Forum
Subject: RE: PrvFixupPointers strange behaviour?
Thanks,
do you have any suggestions for the best strategy to create my own
PrvFixupPointers?
-----Original Message-----
From: William F. Weiher III [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 14, 2000 12:46 PM
To: Palm Developer Forum
Subject: RE: PrvFixupPointers strange behaviour?
This bug has been reported to Palm. It can also modify ID's in your existing
elements. The nly solution I have found is to write my own version of the
required ROM functions.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Frans Amelink
Sent: Monday, February 14, 2000 9:44
To: Palm Developer Forum
Subject: PrvFixupPointers strange behaviour?
Hi,
I'm creating user interface objects at runtime using the ctlnewcontrol
functions. This function calls FrmAddSpaceForObject, which calls
PrvFixupPointers. (as seen in the Palm OS 3.0 source code)
After adding a few objects (buttons), the second character of the text on
one of my buttons is corrupted by the PrvFixupPointers function:
it adds an offset to the character (as can be seen in the following snippet)
if (zoneP <= *p && *p <= zoneEndP)
*p += offset;
The zoneP value is 0x3F16
The zoneEndP value is 0x47F2
The button affected should have the caption "Cancel", which is located at
address 0x47F0
"Ca" translates as 0x4761
After the PrvFixupPointers call, the caption is "Cgncel", (offset of 6 added
to 0x4761)
It's great that PrvFixupPointers is fixing pointers, but I don't want it to
fix my text!
What is the best way to fix this problem?
Thanks,
Frans Amelink
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html