Intermec ck1 Reference Guide

Page of 390
Chapter 4 — SDK Components 
158 
CK1 SDK Programmer’s Reference Manual 
otk_list_set_column_width (continued) 
col 
Index to the specified column 
width 
New width value 
 
Return: None 
otk_list_new_item 
 
Purpose:  Call this function to create an OtkItem object to use. 
 
Prototype: 
OtkItem* otk_list_new_item (OtkList* list);
 
 
Parameter:  list 
Pointer to the real instance 
 
Return: None 
otk_list_item_set_text 
 
Purpose:  Set the displayed text in the specified cell. 
 
Prototype: 
void otk_list_item_set_text (OtkList* list, OtkItem* 
item, int col, char* text);
 
 
Parameters:  list   
Pointer to the real instance 
item 
Specified OtkItem object of the specified OtkList widget 
col 
Index to the specified column of the specified OtkItem object 
text 
Text for the cell 
 
Return: None 
otk_list_item_set_bitmap 
 
Purpose:  Set the displayed bitmap image in the specified cell. 
 
Prototype: 
void otk_list_item_set_bitmap (OtkList* list, OtkItem* 
item, int col, OTK_BITMAP* bitmap, int bmp_w, int bmp_h);
 
 
Parameters:  list   
Pointer to the real instance 
item 
Specified OtkItem object of the specified OtkList widget 
col 
Index to the specified column of the specified OtkItem object 
bitmap 
Bitmap data should be an array of aligned 16-bit words 
bmp_w 
Width of the bitmap 
bmp_h 
Height of the bitmap 
 
Return: None