Intermec ck1 参考指南
Chapter 4 — SDK Components
CK1 SDK Programmer’s Reference Manual
207
otk_scrollbar_set_size
Purpose: Set the size of the scrollbar.
Prototype:
void otk_scrollbar_set_size (OtkScrollBar* scrollbar, int
width, int height);
Parameters: scrollbar
Pointer of the OtkScrollBar instance
width
Width of the scrollbar
height
Height of the scrollbar
Return: None
otk_scrollbar_set_position
Purpose: Set the position of the scrollbar.
Prototype:
void otk_scrollbar_set_position (OtkScrollBar* scrollbar,
int x, int y);
Parameters: scrollbar
Pointer of the OtkScrollBar instance
x
X coordinate on the top left point of the scrollbar
y
Y coordinate on the top left point of the scrollbar
Return: None
otk_scrollbar_set_range
Purpose: Set the range of the scrollbar.
Prototype:
void otk_scrollbar_set_range (OtkScrollBar* scrollbar,
int max, int min, int value);
Parameters: scrollbar
Pointer of the OtkScrollBar instance
max
Maximum value of the scrollbar
min
Minimum value of the scrollbar
value
Current value of the scrollbar
Return: None
otk_scrollbar_set_step
Purpose: Set the step value of the scrollbar.
Prototype:
void otk_scrollbar_set_step (OtkScrollBar* scrollbar, int
stepvalue);
Parameters: scrollbar
Pointer of the OtkScrollBar instance