when you write the string resource to the field use this:

FieldType * fld; // your field you want to insert the strings into
fld->attr.editable = true; // this sets the field to editable
FldInsert(fld, "String to Insert");
fld->attr.editable = false; // this sets the fields to read only again

hope that helps!

>Okay, I have been watching this forum for a short time and have 
>learned some valuable things. One of which is to research my question 
>before even attempting to submit it.
>Soo... it is with fear and trepidition that I submit my first 
>question. 
>I am writing an application that is very simple. It reads in text 
>that comes from a string resource which I created in Constructor (I 
>am using Codewarrior). I want to be able to read the string on a 
>form. The field on the form is "non-editable", the user will not be 
>able to edit the text, just read it. I have been able to accomplish 
>this using sample code I have found for creating an "editable" text 
>field, but am curious if there is an easier way to do it since it 
>will be "read only".Any ideas?

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