Intermec ck1 Reference Guide

Page of 390
Chapter 4 — SDK Components 
CK1 SDK Programmer’s Reference Manual 
231 
otk_custompopupmenu_add_item 
 
Purpose:  Add the specified item into the specified OtkCustomPopupMenu. 
 
Prototype: 
void otk_custompopupmenu_add_item(OtkCustomPopupMenu* 
opp, OtkWidget* item);
 
 
Parameters:  opp 
Pointer of the OtkCustomPopupMenu instance 
item 
Pointer of the item that is added 
 
Return: None 
otk_custompopupmenu_set_owner 
 
Purpose:  Set the owner of the specified OtkCustomPopupMenu. 
 
Prototype: 
void otk_custompopupmenu_set_owner(OtkCustomPopupMenu* 
opp, OtkCustomPopupMenu* owner);
 
 
Parameters:  opp 
Pointer of the specified OtkCustomPopupMenu instance 
owner 
Pointer of the OtkCustomPopupMenu instance that is the 
opp’s owner 
 
Return: None 
otk_custompopupmenu_set_on_popup 
 
Purpose:  Set a callback function that is called when the OnPopup event happens. 
 
Prototype: 
void otk_custompopupmenu_set_on_popup(OtkCustomPopupMenu* 
opp, otkWidgetCallback on_popup);
 
 
Parameters:  opp 
Pointer of the specified OtkCustomPopupMenu instance 
on_popup 
Function pointer to be called when the onPopup event 
happens 
 
Return: None 
otk_custompopupmenu_get_child_item 
 
Purpose:  Get the pointer of the specified item with the specified item number in the 
specified OtkCustomPopupMenu. 
 
Prototype: 
OtkWidget* 
otk_custompopupmenu_get_child_item(OtkCustomPopupMenu* 
opp, int itemnum);
 
 
Parameters:  opp 
Pointer of the specified OtkCustomPopupMenu instance 
itemnum Specified 
item 
number