You can do what you want pretty directly as follows. Use a read-only field
to display the strings on the form. Put a bunch of buttons on this form, and
for each, have a corresponding tSTR string resource that contains the text
you want to display when that button is pressed. Use a switch statement to
map from the ID of the button being pressed to the ID of the string you want
to display. Then go get the string resource, and make the field use it. I
won't go into all the APIs you need to do this. One thing that makes your
life easier is that since the field is read-only, you can make the field
point directly to the text in the string resource. That means you don't need
to worry about allocating or freeing memory to hold onto a temporary copy of
the string.
-- 
Peter Epstein

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

Reply via email to