I searched through, and the only reference to 'handle' is the verb sense.
There are no 'handles' as in nouns anywhere! Also, something is going wrong
on exit, and it crashes 50% of the time.
I may have found it though. I'm assigning memory for a temporary CharPtr.
Here's the line:
CharPtr disptext=MemPtrNew(sizeof(newtext));
I'm then pointing the field to disptext, copying newtext to disptext using
StrCopy, and updating the field. I'm hoping this procedure would work for
writing to the display but it doesn't. Firstly, is using "sizeof(newtext)"
acutally assigning enough memory, and secondly why doesn't it work? I read
somewhere that you don't need to use a text handle for read only fields, but
can just use FldSetTextPtr() as I am doing.
Aaron: Thanks for the code. I'll try it if no-one writes back with a Ptr
solution.
Stuart Norton,
Project Director,
Southampton 'Sun Surfer'
University of Southampton, UK