Intermec ck1 Reference Guide

Page of 390
Chapter 4 — SDK Components 
240 
CK1 SDK Programmer’s Reference Manual 
otk_menuitem_set (continued) 
icon 
Pointer of the OTK_BITMAP instance 
on_clicked 
Pointer of the function that is called when an OnClick 
event occur 
cascade 
Defines if the menu item has a submenu 
submenu 
Pointer of the menu item’s submenu (only valid when the 
cascade is OTK_TRUE) 
 
Return: None 
otk_menuitem_set_clicked_callback 
 
Purpose:  Set the callback function that will be called when an OnClick event 
occurs. 
 
Prototype: 
void otk_menuitem_set_clicked_callback(OtkMenuItem* omp
OtkWidgetCallback on_clicked);
 
 
Parameters:  omp 
Pointer of the specified menu item 
on_clicked 
Pointer of the callback function 
 
Return: None 
otk_menuitem_set_height 
 
Purpose:  Set the height of the specified menu item. 
 
Prototype: 
void otk_menuitem_set_height(OtkMenuItem* omp, int 
height);
 
 
Parameters:  omp 
Pointer of the specified menu item 
height 
Value of the height to be set 
 
Return: None 
otk_menuitem_set_width 
 
Purpose:  Set the width of the specified menu item. 
 
Prototype: 
void otk_menuitem_set_width(OtkMenuItem* omp, int width);
 
 
Parameters:  omp 
Pointer of the specified menu item 
width 
Value of the width to be set 
 
Return: None