Intermec ck1 Reference Guide

Page of 390
Chapter 4 — SDK Components 
196 
CK1 SDK Programmer’s Reference Manual 
otk_maskedit_clear 
 
Purpose:  Clear all content in the text buffer of the specified mask edit. 
 
Prototype: 
int otk_maskedit_clear (OtkMaskEdit* oep);
 
 
Parameter:  oep 
Pointer of the specified mask edit instance 
 
Return: 1 
 If 
succeeded 
0 If 
failed 
otk_maskedit_select_all 
 
Purpose:  Mark all content in the text buffer of the specified mask edit. 
 
Prototype: 
int otk_maskedit_select_all (OtkMaskEdit* oep); 
 
Parameter:  oep 
Pointer of the specified mask edit instance 
 
Return:  Length of the marked region 
otk_maskedit_insert 
 
Purpose:  Insert the specified text content at the specified cursor position in specified 
mask edit. 
 
Prototype: 
int otk_maskedit_insert (OtkMaskEdit* oep,char* itext
int isize, int cursor_pos);
 
 
Parameters:  oep   
Pointer of the specified mask edit 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_maskedit_delete 
 
Purpose:  Delete the text content from the specified cursor position to the specified 
length after the cursor position. 
 
Prototype: 
int otk_maskedit_delete (OtkMaskEdit* oep,int del_pos
int del_len);
 
 
Parameters:  oep   
Pointer of the specified mask edit instance 
del_pos 
Specified cursor position to start deleting 
del_len 
Specified length to delete to from del_pos