Intermec ck1 Verweisanleitung

Seite von 390
Chapter 4 — SDK Components 
CK1 SDK Programmer’s Reference Manual 
149 
OtkCombo 
You use the OtkCombo widget to choose from a list of valid choices. 
OtkCombo was inherited from OtkButton. The properties are: 
"user_data"(void*:Read/Write) 
otk_combo_init 
 
Purpose:  Initialize the instance to be OtkCombo. 
 
Prototype: 
void otk_combo_init (OtkCombo* combo);
 
 
Parameter:  combo 
Pointer to the real instance 
 
Return: None 
otk_combo_get_list 
 
Purpose:  Every OtkCombo widget has its own OtkList widget. To operate the 
OtkList functions more conveniently, use the otk_combo_get_list 
function to get the OtkList. 
 
Prototype: 
OtkList otk_combo_get_list (OtkCombo* combo);
 
 
Parameter:  combo 
Pointer to the real instance 
 
Return:  Pointer to the OtkList object of the specified OtkCombo widget 
otk_combo_add_list_item 
 
Purpose:  Replicate the given text to add a valid choice for the list of the specified 
OtkCombo widget. 
 
Prototype: 
void otk_combo_add_list_item(OtkCombo* combo, char* text);
 
 
Parameter:  combo 
Pointer to the real instance 
 
Return: None 
otk_combo_set_user_data 
 
Purpose:  Set user data. 
 
Prototype: 
void otk_combo_set_user_data (OtkCombo* combo, void* user_data);
 
 
Parameters:  combo 
Pointer to the real instance 
user_data 
Pointer to the specified data 
 
Return: None