Intermec ck1 Reference Guide
Chapter 4 — SDK Components
234
CK1 SDK Programmer’s Reference Manual
OtkPopupMenu
The OtkPopupMenu is a popup menu component. It allows you to add
menu items to form a popup menu. See also OtkMenuItem.
menu items to form a popup menu. See also OtkMenuItem.
OtkPopupMenu was inherited from OtkWidget, OtkGroup, OtkControl,
OtkPopupWindow, and OtkCustomPopupMenu. The properties are:
OtkPopupWindow, and OtkCustomPopupMenu. The properties are:
Property
Description
“item_height”(int:Read)
Defines the value of the menu item’s
height.
height.
“font_size”(int:Read)
Defines the font size of the popup menu.
otk_popupmenu_init
Purpose: Initialize
the
OtkPopupMenu.
Prototype:
void otk_popupmenu_init(OtkPopupMenu* opp);
Parameter: opp
Pointer of the OtkPopupMenu instance
Return: None
otk_popupmenu_add_item
Purpose: Add the OtkMenuItem into the OtkPopupMenu at the tail.
Prototype:
void otk_popupmenu_add_item(OtkPopupMenu* opp,
OtkMenuItem* item);
Parameters: opp
Pointer of the OtkPopupMenu instance
item
Pointer of the OtkMenuItem instance that is added
Return: None
otk_popupmenu_show
Purpose: Show the OtkPopupMenu on the specified position.
Prototype:
void otk_popupmenu_show(OtkPopupMenu* opp, int x, int y);
Parameters: opp
Pointer of the OtkPopupMenu instance
x
X coordinate to show the OtkPopupMenu
y
Y coordinate to show the OtkPopupMenu
Return: None