Intermec ck1 Reference Guide
Chapter 4 — SDK Components
CK1 SDK Programmer’s Reference Manual
223
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(&slider1),tp->value);
// otk_widget_set_visible(OTK_WIDGET(&slider2),tp->value);
// otk_widget_redraw
// otk_widget_set_visible(OTK_WIDGET(&slider2),tp->value);
// otk_widget_redraw
(OTK_WIDGET(&slider2));
return
OTK_TRUE;
}
OtkSelection
OtkSelection is a wrapper for a range control. OtkSelection was inherited
from OtkWidget and OtkRange.
from OtkWidget and OtkRange.
otk_selection_init
Purpose: Initialize the OtkSelection instance.
Prototype:
void otk_selection_init (OtkSelection* selection);
Parameter: selection
Pointer of the OtkSelection instance
Return: None
otk_selection_set_size
Purpose: Set the size of the selection.
Prototype:
void otk_selection_set_size (OtkSelection* selection, int
width, int height);
Parameters: selection
Pointer of the OtkSelection instance
width
Width of the selection
height
Height of the selection
Return: None
otk_selection_set_position
Purpose: Set the position of the selection.
Prototype:
void otk_selection_set_position (OtkSelection* selection,
int x, int y);
Parameters: selection
Pointer of the OtkSelection instance