Intermec ck1 Reference Guide
Chapter 4 — SDK Components
CK1 SDK Programmer’s Reference Manual
177
otk_editable_insert
Purpose: Insert the specified text content at the specified cursor position in specified
editable instance.
Prototype:
int otk_editable_insert (OtkEditable* oep,char* itext,
int isize, int cursor_pos);
Parameters: oep
Pointer of the specified editable instance
itext
Pointer of the buffer with the text content that is inserted
isize
Length of the text content that is inserted
cursor_pos
Specified cursor position to insert the text content
Return: 1
If
succeeded
0 If
failed
otk_editable_delete
Purpose: Delete the text content from the specified cursor position to the specified
length after the cursor position.
Prototype:
int otk_editable_delete (OtkEditable* oep,int del_pos,
int del_len);
Parameters: oep
Pointer of the specified editable instance
del_pos
Specified cursor position to start deleting
del_len
Specified length to delete to from del_pos
Return: 1
If
succeeded
0 If
failed
otk_editable_calcursor
Purpose: Calculate the valid cursor position with a specified reference cursor
position.
Prototype:
int otk_editable_calcursor(OtkEditable* oep, int
ref_cursor);
Parameters: oep
Pointer of the specified editable instance
ref_cursor
Specified reference cursor position
Return: negative If
failed
other
Valid cursor position