Data entry into CreateEditUnicodeTextControl
I have a text edit control based on CreateEditUnicodeTextControl (). It creates the edit text control just fine and works great with keyboard input. But I have a question regarding loading it with data from a document.
I create the control with a NULL in place of the CFStringRef argument. Then later the control needs to be loaded with a string from a document which the user can edit. After the edits are done the control(s) need to be read and saved back to the document. Then the process repeats, so I can't load data when the control is created.
After searching the ADC documentation I found a function SetEditTextCFString (), but the compiler doesn't seem to have a prototype for this function. I've included carbon.h, but that doesn't seem to be enough.
Can anybody help? I also need to find a function to read the text out of the control.
Hurst C.
I create the control with a NULL in place of the CFStringRef argument. Then later the control needs to be loaded with a string from a document which the user can edit. After the edits are done the control(s) need to be read and saved back to the document. Then the process repeats, so I can't load data when the control is created.
After searching the ADC documentation I found a function SetEditTextCFString (), but the compiler doesn't seem to have a prototype for this function. I've included carbon.h, but that doesn't seem to be enough.
Can anybody help? I also need to find a function to read the text out of the control.
Hurst C.