SldSetRange Function

Microchip Graphics Library

Microchip Graphics Library
SldSetRange Function
C
void SldSetRange(
    SLIDER * pSld, 
    SHORT newRange
);
Overview

This sets the range of the thumb. If this field is changed Object must be completely redrawn to reflect the change.

Input Parameters
Input Parameters 
Description 
SLIDER * pSld 
Pointer to the object. 
SHORT newRange 
Value of the new range used. 
Returns

None.

Preconditions

none

Side Effects

Position of the thumb may change when redrawn.

Example
SLIDER *pSld;

    SldSetRange(pSld, 100);
    // to completely redraw the object when GOLDraw() is executed.
    SetState(pSld, SLD_DRAW);       
                                            
Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved