Intermec ck1 Guia De Referência
Chapter 4 — SDK Components
CK1 SDK Programmer’s Reference Manual
241
otk_menuitem_set_color
Purpose: Set the color of the specified menu item.
Prototype:
void otk_menuitem_set_color(OtkMenuItem* omp, OTK_COLOR
fcolor, OTK_COLOR bcolor);
Parameters: omp
Pointer of the specified menu item
fcolor
Foreground color to be set
bcolor
Background color to be set
Return: None
otk_menuitem_refresh
Purpose: Redraw the specified menu item.
Prototype:
void otk_menuitem_refresh(OtkMenuItem* omp);
Parameter: omp
Pointer of the specified menuitem
Return: None
OnClick Event
Purpose: Occur when you click the menu item.
Prototype:
OTK_BOOL user_function(OtkWidget* widget_ptr, int x, int
y);
Parameters: widget_ptr
Pointer of the menu item that occurs at the onClick event
x
X coordinate while clicked
y
Y coordinate while clicked
Return: OTK_TRUE always