Add ElemCreateBtnTxt_P_R() for Flash button text updates
@@ -2546,6 +2546,37 @@ void gslc_ResetElem(gslc_tsElem* pElem);
gslc_ElemAdd(pGui,nPage,(gslc_tsElem*)&sElem##nElemId, \
(gslc_teElemRefFlags)(GSLC_ELEMREF_SRC_PROG | GSLC_ELEMREF_REDRAW_FULL));
+#define gslc_ElemCreateBtnTxt_P_R(pGui,nElemId,nPage,nX,nY,nW,nH,strTxt,strLength,pFont,colTxt,colFrame,colFill,colFrameGlow,colFillGlow,nAlignTxt,bFrameEn,bFillEn,callFunc,extraData) \
+ static const uint8_t nFeatures##nElemId = GSLC_ELEM_FEA_VALID | \
+ GSLC_ELEM_FEA_CLICK_EN | GSLC_ELEM_FEA_GLOW_EN | \
+ (bFrameEn?GSLC_ELEM_FEA_FRAME_EN:0) | (bFillEn?GSLC_ELEM_FEA_FILL_EN:0); \
+ static const gslc_tsElem sElem##nElemId PROGMEM = { \
+ nElemId, \
+ nFeatures##nElemId, \
+ GSLC_TYPE_BTN, \
+ (gslc_tsRect){nX,nY,nW,nH}, \
+ GSLC_GROUP_ID_NONE, \
+ colFrame,colFill,colFrameGlow,colFillGlow, \
+ (gslc_tsImgRef){NULL,NULL,GSLC_IMGREF_NONE,NULL}, \
+ (gslc_tsImgRef){NULL,NULL,GSLC_IMGREF_NONE,NULL}, \
+ NULL, \
+ (char*)strTxt, \
+ strLength, \
+ (gslc_teTxtFlags)(GSLC_TXT_MEM_RAM | GSLC_TXT_ALLOC_EXT), \
+ colTxt, \
+ colTxt, \
+ nAlignTxt, \
+ 0, \
+ pFont, \
+ (void*)extraData, \
+ NULL, \
+ NULL, \
+ callFunc, \
+ NULL, \
+ }; \
+ gslc_ElemAdd(pGui,nPage,(gslc_tsElem*)&sElem##nElemId, \
+ (gslc_teElemRefFlags)(GSLC_ELEMREF_SRC_PROG | GSLC_ELEMREF_REDRAW_FULL));
+
#else
