Intermec ck1 Reference Guide
Chapter 4 — SDK Components
CK1 SDK Programmer’s Reference Manual
229
otk_control_add_child (&contr1, OTK_WIDGET(&enable_tog));
otk_toggle_button_set_value(&enable_tog,
OTK_FALSE);
otk_button_set_click_callback(OTK_BUTTON(&enable_tog),
togglebutton_callback);
printf("RUN
togglebutton_callback);
printf("RUN
loop\n");
return otk_app_loop();
}
OTK_BOOL range_callback (OtkWidget* sb, int x, int y)
{
}
OTK_BOOL range_callback (OtkWidget* sb, int x, int y)
{
OtkRange* range = OTK_RANGE(sb);
printf("__________range value______%d_______\n", range->value);
return
OTK_TRUE;
}
OTK_BOOL togglebutton_callback (OtkWidget* enable_tog_btn, int x, int y)
{
OTK_BOOL togglebutton_callback (OtkWidget* enable_tog_btn, int x, int y)
{
OtkToggleButton* tp = OTK_TOGGLE_BUTTON(enable_tog_btn);
otk_widget_set_sensitive(OTK_WIDGET(&selection2),tp->value);
return
return
OTK_TRUE;
}
OtkTabGroup
OtkTabGroup is a set of OtkTab widgets and is used for pages with
bookmarks. OtkTabGroup was inherited from OtkGroup. The properties
are:
bookmarks. OtkTabGroup was inherited from OtkGroup. The properties
are:
"user_data"(void*:Read/Write)
otk_tab_group_init
Purpose: Initialize the OtkTabGroup widget.
Prototype:
void otk_tab_group_init(OtkTabGroup* tabgrp);
Parameter: tabgrp
Pointer to the real instance
Return: None
otk_tab_group_append
Purpose: Append to the specified OtkTabGroup a page (OtkTab widget).
Prototype:
void otk_tab_group_append(OtkTabGroup* tabgrp, OtkTab* tab);
Parameters: tabgrp
Specified OtkTabgroup widget
tab
Specified OtkTab widget
Return: None