Intermec ck1 Reference Guide
Chapter 4 — SDK Components
CK1 SDK Programmer’s Reference Manual
235
otk_popupmenu_hide
Purpose: Hide
the
OtkPopupMenu.
Prototype:
void otk_popupmenu_hide(OtkPopupMenu* opp);
Parameter: opp
Pointer of the OtkPopupMenu instance
Return: None
otk_popupmenu_set_on_popup
Purpose: Set the callback function that is called when the OnPopup event happens.
Prototype:
void otk_popupmenu_set_on_popup(OtkPopupMenu* opp,
OtkWidgetCallback on_popup);
Parameters: opp
Pointer of the OtkPopupMenu instance
on_popup
Pointer of the function that is called when the OnPopup
event occurs
event occurs
Return: None
otk_popupmenu_set
Purpose: Set the height and the font size of the menu item.
Prototype:
void otk_popupmenu_set(OtkPopupMenu* opp, int itemheight,
int font_size);
Parameters: opp
Pointer of the OtkPopupMenu instance
itemheight
Specified height of the menu item
font_size
Specified font size of the menu item
Return: None
otk_popupmenu_set_owner
Purpose: Set the owner of the OtkPopupMenu.
Prototype:
void otk_popupmenu_set_owner(OtkPopupMenu* opp,
OtkCustomPopupMenu* owner);
Parameters: opp
Pointer of the OtkPopupMenu instance
owner
Pointer of the owner instance
Return: None