In article <91982@palm-dev-forum>, [EMAIL PROTECTED] says... > > > Hello, > > I am using CodeWarrior as Palm OS. > > I have placed a "Field" control in my form. I have > written a code of adding > text on each line on one button click. But this is > editable by user as i > have set the property "editable" of field checked. But > i want that user > should not be able to modify it. > So i unchecked the "editable" property of Field. But > now i am not able to > add any text to it through my program..
An uneditable field has its text represented internally as a MemPtr -- you can use FldGetTextPtr, but not FldGetTextHandle. To change its value, use calls to FldSetTextPtr, with the pointer pointing to your own character buffer. -- Ben Combee <[EMAIL PROTECTED]> CodeWarrior for Palm OS technical lead Get help at http://palmoswerks.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
