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

Reply via email to