Changes between Version 58 and Version 59 of Docs/825gen2/Dev/UpdatingLegacyAppsToNewLook


Ignore:
Timestamp:
04/04/25 12:57:41 (2 weeks ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/825gen2/Dev/UpdatingLegacyAppsToNewLook

    v58 v59  
    171171void CWeighingScreen::ShowGTN(void)
    172172{
    173    SetCurColor(nColorGreen);
     173    SetCurColor(nColorGreen);
    174174    SetBkColor(nColorBlack);
    175175    DisplayText(GROSS_LBL_X, GROSS_LBL_Y, LANG(STR_GROSS_LABEL), 0, BIG_FONT);
     
    240240        InitFonts();
    241241
    242         SetupDisplayLocations();
     242        weightScreen.SetupDisplayLocations();
    243243
    244244#else
     
    249249}}}
    250250
    251 5. Modify functions that do display operations such as shown:
    252 
    253 {{{#!c++
    254 void ShowGTN(void)
    255 {
    256 #if ARM64
    257         SetCurColor(COLOR_INFO);
    258         SetBkColor(nColorWhite);
    259         fontBigLabel.DisplayText(rectWtLbl[WT_INDEX_GROSS], LANG(STR_GROSS_LABEL));
    260 
    261         if (curScale >= 0 && GetWtMode(curScale) == wtmode_net) {
    262                 fontBigLabel.DisplayText(rectWtLbl[WT_INDEX_TARE], LANG(STR_TARE_LABEL));
    263                 fontBigLabel.DisplayText(rectWtLbl[WT_INDEX_NET], LANG(STR_NET_LABEL));
    264         }
    265 #else
    266         SetCurColor(nColorGreen);
    267         SetBkColor(nColorBlack);
    268         DisplayText(GROSS_LBL_X, GROSS_WT_Y, LANG(STR_GROSS_LABEL), 0, BIG_FONT);
    269 
    270         if (curScale >= 0 && GetWtMode(curScale) == wtmode_net) {
    271                 DisplayText(TARE_LBL_X, TARE_WT_Y, LANG(STR_TARE_LABEL), 0, BIG_FONT);
    272                 DisplayText(NET_LBL_X, NET_WT_Y, LANG(STR_NET_LABEL), 0, BIG_FONT);
    273         }
    274         SetBkColor(nColorBlack);
    275 #endif
    276 }
    277 }}}
    278 
    279 Modify this function for the new style display such as:
    280251
    281252