>Richard Anderson <[EMAIL PROTECTED]> writes:
>
>> I have a password entry modal dialogue, which I want to use in two different
>> places to enter two different passwords, and I want the help text to be
>> different in both cases. I am using the built in help system, and assign the
>> help string in constructor using the ID. What I need to do (I think) is to
>> dynamically change this ID to another string ID just before opening the box.
>> How can I do this?
>
>The help id is part of the form struct. Technically, you're supposed to
>use the API to alter the form's struct, but since there isn't an API (at
>least in 3.5 and below), you should be able to just change it directly,
>and hope that future versions of PalmOS don't break your code.
You can be practically guaranteed that doing so on the next major OS
release after 4.0 will crash you. On an ARM-based system, twiddling the
system's internal structures will cause instant rejection by the 68k
emulator, which will be perceived by the user as a crash.
Perhaps that's ok with you, but I'd say that having two forms in your
project would be better. Probably it would only add 20 or 40 bytes to your
app's size, if you've already got the second string anyway...
-David Fedor
Palm Developer Support
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/