User manual

Graphics Quick Reference Guide 13
Widget API (Continued)
Meter Picture Control Progress Bar Radio Button
Graphics Cong: USE_METER Graphics Cong: USE_PICTURE Graphics Cong: USE_PROGRESSBAR Graphics Cong: USE_RADIOBUTTON
METER * MtrCreate(
WORD ID,
SHORT left,
SHORT top,
SHORT right,
SHORT bottom,
WORD state,
SHORT value,
SHORT minValue,
SHORT maxValue,
void * pTitleFont,
void * pValueFont,
XCHAR * pText,
GOL_SCHEME * pScheme)
PICTURE * PictCreate(
WORD ID,
SHORT left,
SHORT top,
SHORT right,
SHORT bottom,
WORD state,
char scale,
void * pBitmap,
GOL_SCHEME * pScheme)
PROGRESSBAR * PbCreate(
WORD ID,
SHORT left,
SHORT top,
SHORT right,
SHORT bottom,
WORD state,
WORD pos,
WORD range,
GOL_SCHEME * pScheme)
RADIOBUTTON * RbCreate(
WORD ID,
SHORT left,
SHORT top,
SHORT right,
SHORT bottom,
WORD state,
XCHAR * pText,
GOL_SCHEME * pScheme)
WORD MtrDraw(void * pObj) WORD PictDraw(void * pObj) WORD PbDraw(void * pObj) WORD RbDraw(void * pObj)
void MtrSetVal(
METER * pObj,
SHORT newVal)
void PictSetBitmap(
PICTURE *pObj,
void *pBtmap)
void PbSetRange(
PROGRESSBAR * pObj,
WORD range)
WORD RbGetCheck(RADIOBUTTON * pObj)
WORD MtrGetVal(METER *pObj) void *PictSetBitmap(PICTURE *pObj) WORD PbGetRange(
PROGRESSBAR * pObj)
void RbSetCheck(
RADIOBUTTON * pObj,
WORD ID)
void MtrDecVal(
METER *pObj,
WORD deltaValue)
WORD PictGetScale(PICTURE *pObj) void PbSetPos(
PROGRESSBAR * pObj,
WORD position)
XCHAR *RbGetText(RADIOBUTTON * pObj)
void MtrIncVal(
METER *pObj,
WORD deltaValue)
void PictSetScale(
PICTURE *pObj,
WORD scale)
WORD PbGetPos(
PROGRESSBAR * pObj)
void RbSetText(
RADIOBUTTON * pObj
XCHAR *pText)
void MtrSetScaleColors(
METER *pObj,
WORD arc1,
WORD arc2,
WORD arc3,
WORD arc4,
WORD arc5,
WORD arc6)
WORD PictTranslateMsg(
void * pObj,
GOL_MSG * pMsg)
WORD PbTranslateMsg(
PROGRESSBAR * pObj,
GOL_MSG * pMsg
)
void RbMsgDefault(
WORD translatedMsg,
void * pObj,
GOL_MSG * pMsg
)
void MtrSetTitleFont(
METER *pMtr,
void *pFont)
typedef struct {
OBJ_HEADER hdr;
char scale;
void * pBitmap;
} PICTURE;
typedef struct {
OBJ_HEADER hdr;
WORD pos;
WORD prevPos;
WORD range;
} PROGRESSBAR;
WORD RbTranslateMsg(
void * pObj,
GOL_MSG * pMsg
)
void MtrSetValueFont(
METER *pMtr,
void *pFont)
typedef struct {
OBJ_HEADER hdr;
OBJ_HEADER * pHead;
OBJ_HEADER * pNext;
SHORT textHeight;
XCHAR * pText;
} RADIOBUTTON;
void MtrMsgDefault(
WORD translatedMsg,
void * pObj,
GOL_MSG * pMsg)
WORD MtrTranslateMsg(
void * pObj,
GOL_MSG * pMsg)
typedef struct {
OBJ_HEADER hdr;
XCHAR * pText;
SHORT value;
SHORT minValue;
SHORT maxValue;
SHORT xCenter;
SHORT yCenter;
SHORT radius;
SHORT xPos;
SHORT yPos;
WORD arcColor6;
WORD arcColor5;
WORD arcColor4;
WORD arcColor3;
WORD arcColor2;
WORD arcColor1;
void * pTitleFont;
void * pValueFont;
} METER;
Microchip Graphics Library Quick Reference Guide