SLIDER Structure

Microchip Graphics Library

Microchip Graphics Library
SLIDER Structure
C
typedef struct {
  OBJ_HEADER hdr;
  WORD currPos;
  WORD prevPos;
  WORD range;
  WORD pos;
  WORD page;
  WORD thWidth;
  WORD thHeight;
} SLIDER;
Overview

Defines the parameters required for a slider/scrollbar Object. Depending on the SLD_SCROLLBAR state bit slider or scrollbar mode is set. If SLD_SCROLLBAR is set, mode is scrollbar; if not set mode is slider. For scrollbar mode, focus rectangle is not drawn.

Members
Members 
Description 
OBJ_HEADER hdr; 
Generic header for all Objects (see OBJ_HEADER). 
WORD currPos; 
Position of the slider relative to minimum. 
WORD prevPos; 
Previous position of the slider relative to minimum. 
WORD range; 
User defined range of the slider. Minimum value at 0 and maximum at 0x7FFF. 
WORD pos; 
Position of the slider in range domain. 
WORD page; 
User specified resolution to incrementally change the position 
WORD thWidth; 
Thumb width. This is computed internally. 
WORD thHeight; 
Thumb width. This is computed internally. User must not change this value. 
Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved