Intermec ck1 Reference Guide

Page of 390
Chapter 4 — SDK Components 
CK1 SDK Programmer’s Reference Manual 
239 
otk_menuitem_set_enabled 
 
Purpose:  Switch the enabled state (enabled or disabled) of the specified menu item. 
 
Prototype: 
void otk_menuitem_set_enabled(OtkMenuItem* omp, OTK_BOOL 
enabled);
 
 
Parameters:  omp 
Pointer of the specified menu item 
enabled 
Enabled state (OTK_TRUE or OTK_FALSE) 
 
Return: None 
otk_menuitem_set_checked 
 
Purpose:  Switch the checked state of the specified menu item. 
 
Prototype: 
void otk_menuitem_set_checked(OtkMenuItem* omp, OTK_BOOL 
checked);
 
 
Parameters:  omp 
Pointer of the specified menu item 
checked Checked 
state 
 
Return: None 
otk_menuitem_set_groupid 
 
Purpose:  Assign the specified group identification to the specified menu item. 
 
Prototype: 
void otk_menuitem_set_groupid(OtkMenuItem* omp, int gid);
 
 
Parameters:  omp 
Pointer of the specified menu item 
gid 
Specified group identification 
 
Return: None 
otk_menuitem_set 
 
Purpose:  Set the specified common parameters of the specified menu item. 
 
Prototype: 
void otk_menuitem_set(OtkMenuItem* omp, char* label, int 
labelsize, GR_BITMAP* icon, OtkWidgetCallback 
on_clicked,OTK_BOOL cascade, otkCustomPopupMenu* 
submenu);
 
 
Parameters:  omp 
Pointer the specified menu item 
label 
Pointer of the label string 
labelsize 
Length of the label string