Intermec ck1 Reference Guide

Page of 390
Chapter 4 — SDK Components 
198 
CK1 SDK Programmer’s Reference Manual 
otk_maskedit_set_mask 
 
Purpose:  Set the mask of the specified mask edit. 
 
Prototype: 
void otk_maskedit_set_mask(OtkMaskEdit* oep, char* mask);
 
 
Parameters:  oep   
Pointer of the specified mask edit 
mask 
Pointer of the buffer with mask format string 
 
Return: None 
otk_maskedit_set_unentered_char 
 
Purpose:  Set the unentered character of the specified mask edit. 
 
Prototype: 
void otk_maskedit_set_unentered_char(OtkMaskEdit* oep
char chr);
 
 
Parameters:  oep 
Pointer of the specified mask edit 
chr Unentered 
character 
 
Return: None 
OnReturnPress Event 
 
Purpose:  Occur when you press Enter
 
Prototype: 
void user_function(OtkMaskEdit* oep);
 
 
Parameter:  oep 
Pointer of the specified mask edit that occurs at the 
OnReturnPress event 
 
Return: None 
Example Code 
The following example shows an OtkMaskEdit with the string format of 
yyyy/mm/dd and its default string set to 2003/01/02. 
#include "otkapplication.h" 
#include "otkmaskedit.h" 
// widgets 
OtkControl contr1; 
OtkMaskEdit maskedit1; 
int main() 

otk_app_init(160, 142); 
otk_control_init (&contr1); 
otk_control_set_size (&contr1, 240, 320); 
otk_widget_set_gc_background_color (OTK_WIDGET(&contr1), OTK_COL_WHITE); 
otk_app_add(&contr1); 
otk_control_show(&contr1);