> From: Jim
>
> Okay, I have looked and looked, searched and searched, asked and
> asked and found no answer to something that I believe should be
> fairly simple.

You must have been looking for the wrong things.  This *is* fairly simple.

> I have a small app that is basically used to read texts. I have a
> number of comments and text that are located in the Codewarrior
> Constructor as Strings. I want the user to be able to read these
> strings by tapping on a button that will cause the text to appear on
> a form. The data is not intended to be editable, just readable.
> I have created some kinda lenghty code that is based on the premise
> that the field/text will be editable.
> Can anyone help me?? I cannot believe this should have be too
> difficult.

If you actually have something that works, but assumes that the fields are
editable, just change the field to make it not editable.
- in Constructor, uncheck the "Editable" Layout Property for the field.
- if using PilRC, change the EDITABLE property to NONEDITABLE in the field
definition.

However, that is so simple, I wonder if you don't actually have some other
problem.  Do you want to know how to read a string resource?  Do you want to
know how to make a button tap execute some code?  Do you want to know how to
change the text in a field?  Do you want us to guess at what might be wrong
with the code you have written but not shown?

BTW, another way to have non-editable text appear on a form is to use
WinDrawChars() to draw the text on the form, rather than put it in a field.
To make this work, you also have to respond to frmUpdateEvent events by
redrawing the text.


-- 
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