SldDecPos Macro

Microchip Graphics Library

Microchip Graphics Library
SldDecPos Macro
C
#define SldDecPos(pSld) \
    SldSetPos                                                                                      \
    (                                                                                              \
        pSld,                                                                                      \
        (((LONG) ((SLIDER*)pSld)->pos - (LONG) ((SLIDER*)pSld)->page) >= 0) ?                      \
                        (((SLIDER*)pSld)->pos - ((SLIDER*)pSld)->page) : 0                         \
    )
Overview

This macro decrement the slider position by the delta change (page) value set. Object must be redrawn after this function is called to reflect the changes to the object.

Input Parameters
Input Parameters 
Description 
pSld 
Pointer to the object. 
Returns

none

Preconditions

none

Side Effects

none

Example

See SldIncPos() example.

Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved