在Palm OS Reference中有比较多的参考
可以这么写:
首先还是获得Field的指针
FieldType *fldP = GetObjectPtr<ControlType>(FieldType ); //用C++向导生成的函数
然后针对不同的操作有如下的API可供参考
1拷贝当前选择到剪切板中
FldCopy (const FieldType *fldP)
2剪切
FldCut (FieldType *fldP)
3删除
FldDelete (FieldType *fldP, UInt16 start, UInt16 end)
4粘贴
FldPaste (FieldType *fldP)
5插入
Boolean FldInsert (FieldType *fldP, const Char *insertChars, UInt16 insertLen)
6撤销
FldUndo (FieldType *fldP)
7全选
FldSetSelection (FieldType *fldP, UInt16 startPosition, UInt16 endPosition)
把起始点设置为0,把结束点设置得足够大便是全选了。