Intermec ck1 Reference Guide
Chapter 4 — SDK Components
CK1 SDK Programmer’s Reference Manual
203
OtkRange
The OtkRange is the base type for editable components including
OtkScrollBar, OtkSlider, OtkSpin, and OtkPage.
OtkScrollBar, OtkSlider, OtkSpin, and OtkPage.
Do not create instances of OtkRange. Use OtkRange as a base class.
Properties, methods, and functions of OtkRange provide basic behavior
that descendant widgets inherit as well as behavior that components can
override to customize their behavior.
Properties, methods, and functions of OtkRange provide basic behavior
that descendant widgets inherit as well as behavior that components can
override to customize their behavior.
OtkRange was inherited from OtkWidget. The properties are:
Property
Description
“max”(int:Read)
Defines the maximum of the range.
“min”(int:Read)
Defines the minimum of the range.
“value”(int:Read)
Defines the value of the range (min
≤ value ≥ max).
otk_range_init
Purpose: Initialize the OtkRange instance.
Prototype:
void otk_range_init (OtkRange *range);
Parameter: range
Pointer of the OtkRange instance
Return: None
otk_range_set_max
Purpose: Set the maximum value of the range.
Prototype:
int otk_range_set_max (OtkRange *range, int max);
Parameters: range
Pointer of the OtkRange instance
max
Maximum value of the range
Return: OTK_FALSE If
failed
OTK_TRUE If
succeeded
otk_range_get_max
Purpose: Get the maximum value of the range.
Prototype:
int otk_range_get_max (OtkRange *range);
Parameter: range
Pointer of the OtkRange instance
Return: OTK_FALSE
If
failed
Maximum value of the range
If succeeded