Intermec ck1 Reference Guide

Page of 390
Chapter 4 — SDK Components 
CK1 SDK Programmer’s Reference Manual 
201 
otk_page_set_max 
 
Purpose:  Set the maximum value of the page. 
 
Prototype: 
void otk_page_set_max (OtkPage* page, int max);
 
 
Parameters:  page 
Pointer of the OtkPage instance 
max 
Maximum value of the page 
 
Return: None 
otk_page_set_min 
 
Purpose:  Set the minimum value of the page. 
 
Prototype: 
void otk_page_set_min (OtkPage* page, int min);
 
 
Parameters:  page 
Pointer of the OtkPage instance 
min 
Minimum value of the page 
 
Return: None 
otk_page_set_value 
 
Purpose:  Set the current value of the page. 
 
Prototype: 
void otk_page_set_value (OtkPage* page, int value);
 
 
Parameters:  page 
Pointer of the OtkPage instance 
value 
Current value of the page 
 
Return: None 
Example Code 
#include <stdio.h> 
#include <stdlib.h> 
#include "otkapplication.h" 
#include "otkpage.h" 
 
OTK_BOOL range_callback (OtkWidget*, int, int); 
OTK_BOOL togglebutton_callback (OtkWidget*, int, int); 
 
OtkControl contr1; 
OtkPage   page1; 
OtkPage   page2; 
OtkToggleButton enable_tog; 
 
 
int main() 

 otk_app_init(160, 
142);