Intermec ck1 Verweisanleitung
Chapter 4 — SDK Components
CK1 SDK Programmer’s Reference Manual
221
Return: None
otk_slider_set_max
Purpose: Set the maximum value of the slider.
Prototype:
void otk_slider_set_max (OtkSlider* slider, int max);
Parameters: slider
Pointer of the OtkSlider instance
max
Maximum value of the slider
Return: None
otk_slider_set_min
Purpose: Set the minimum value of the slider.
Prototype:
void otk_slider_set_min (OtkSlider* slider, int min);
Parameters: slider
Pointer of the OtkSlider instance
min
Minimum value of the slider
Return: None
otk_slider_set_value
Purpose: Set the current value of the slider.
Prototype:
void otk_slider_set_value (OtkSlider* slider, int value);
Parameters: slider
Pointer of the OtkSlider instance
value
Current value of the slider
Return: None
Example Code
#include <stdio.h>
#include <stdlib.h>
#include "otkapplication.h"
#include "otkslider.h"
OTK_BOOL range_callback (OtkWidget*, int, int);
OTK_BOOL togglebutton_callback (OtkWidget*, int, int);
OtkControl contr1;
OtkSlider slider1;
OtkSlider slider2;
OtkToggleButton enable_tog;
int main()
#include <stdlib.h>
#include "otkapplication.h"
#include "otkslider.h"
OTK_BOOL range_callback (OtkWidget*, int, int);
OTK_BOOL togglebutton_callback (OtkWidget*, int, int);
OtkControl contr1;
OtkSlider slider1;
OtkSlider slider2;
OtkToggleButton enable_tog;
int main()