Intermec ck1 Reference Guide

Page of 390
Chapter 4 — SDK Components 
CK1 SDK Programmer’s Reference Manual 
161 
otk_list_set_user_data 
 
Purpose:  Set user data. 
 
Prototype: 
void otk_list_set_user_data (OtkList* list, void* 
user_data);
 
 
Parameters:  list   
Pointer to the real instance 
user_data 
Pointer to the specified data 
 
Return: None 
otk_list_get_user_data 
 
Purpose:  Get user data. 
 
Prototype: 
void* otk_list_get_user_data (OtkList* list);
 
 
Parameters:  list 
Pointer to the real instance 
 
Return:  Pointer to the specified data 
OnSelect Event 
 
Purpose:  Emitted when you click a mouse button on a specified OtkItem object and 
the cursor stays on until you release the mouse button. 
 
Prototype: 
OTK_BOOL user_function (OtkWidget* widget, int x_axis
int y_axis);
 
 
Parameters:  widget 
Object that emits the event 
x_axis 
X coordinates of the occurrence relative to the window parent 
y_axis 
Y coordinates of the occurrence relative to the window parent 
 
Return:  OTK_FALSE 
If CK1 does not care 
OnTimeout Event 
 
Purpose:  Emitted when you click a mouse button and the cursor stays on the 
specified location of the OtkList widget for a period of 2 milliseconds. 
 
Prototype: 
OTK_BOOL user_function (OtkWidget* widget, int x_axis
int y_axis);
 
 
Parameters:  widget 
Object that emits the event 
x_axis 
X coordinates of the occurrence relative to the window parent 
y_axis 
Y coordinates of the occurrence relative to the window parent 
 
Return:  OTK_FALSE 
If CK1 does not care