Changes between Version 69 and Version 70 of Docs/825gen2/Dev/UpdatingLegacyAppsToNewLook


Ignore:
Timestamp:
04/04/25 13:44:16 (2 weeks ago)
Author:
Don Wilson
Comment:

--

Legend:

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

    v69 v70  
    8383        rect.SetLeftAndWidthBasedOnDspArea(&dspMain, 0.26, 0.25); // Show above of gross weight value
    8484
    85         rectWtStatus = rect;
    86         rectWtStatus.SetLeftAndWidthBasedOnDspArea(&dspMain, 0.0, 0.30);
    87         rectWtStatus.SetTopBasedOnFont(formFontSet.GetFont(fontIndexSmallPrompt), 1.7, BORDER_BOX_HEIGHT);
     85        rectWtStatus_ = rect;
     86        rectWtStatus_.SetLeftAndWidthBasedOnDspArea(&dspMain, 0.0, 0.30);
     87        rectWtStatus_.SetTopBasedOnFont(formFontSet.GetFont(fontIndexSmallPrompt), 1.7, BORDER_BOX_HEIGHT);
    8888
    8989        for(n = 0; n < 2; n++)
     
    9191                if(n == 0)
    9292                {
    93                         rectCapacity[n].SetY(BORDER_BOX_HEIGHT);
     93                        rectCapacity_[n].SetY(BORDER_BOX_HEIGHT);
    9494                }
    9595                else
    9696                {
    97                         rectCapacity[n].SetTopBasedOnFont(formFontSet.GetFont(fontIndexSmallPrompt), BORDER_BOX_HEIGHT);
     97                        rectCapacity_[n].SetTopBasedOnFont(formFontSet.GetFont(fontIndexSmallPrompt), BORDER_BOX_HEIGHT);
    9898                }
    99                 rectCapacity[n].SetX(0);
    100                 rectCapacity[n].SetLeftAndWidthBasedOnDspArea(&dspMain, 0.01, 0.41);
    101                 rectCapacity[n].SetHeightBasedOnFont(formFontSet.GetFont(fontIndexSmallPrompt), 1.0);
     99                rectCapacity_[n].SetX(0);
     100                rectCapacity_[n].SetLeftAndWidthBasedOnDspArea(&dspMain, 0.01, 0.41);
     101                rectCapacity_[n].SetHeightBasedOnFont(formFontSet.GetFont(fontIndexSmallPrompt), 1.0);
    102102        }
    103103
     
    106106        rect += advanceY;
    107107
    108         rectManTare = rect;
    109         rectManTare.SetLeftAndWidthBasedOnDspArea(&dspMain, 0.31, 0.20);
    110         rectManTare.SetTopBasedOnFont(formFontSet.GetFont(fontIndexSmallPrompt), 1.7, BORDER_BOX_HEIGHT);
     108        rectManTare_ = rect;
     109        rectManTare_.SetLeftAndWidthBasedOnDspArea(&dspMain, 0.31, 0.20);
     110        rectManTare_.SetTopBasedOnFont(formFontSet.GetFont(fontIndexSmallPrompt), 1.7, BORDER_BOX_HEIGHT);
    111111
    112112        // Setup weight label, value, and units locations
     
    143143        {
    144144                rect.SetLeftAndWidthBasedOnDspArea(&dspMain, 0.01, 0.24);
    145                 rectWtLbl[n] = rect;
     145                rectWtLbl_[n] = rect;
    146146
    147147                rect.SetLeftAndWidthBasedOnDspArea(&dspMain, 0.26, 0.25);
    148                 rectWt[n] = rect;
     148                rectWt_[n] = rect;
    149149
    150150                rect.SetLeftAndWidthBasedOnDspArea(&dspMain, 0.55, 0.15);
    151                 rectWtUnits[n] = rect;
     151                rectWtUnits_[n] = rect;
    152152
    153153                rect += advanceY;
     
    155155
    156156        // Large message such as "WEIGHT ERROR" upper left is set same as weight label "Gross", lower right is same as net weight units label.
    157         rectLargeMsg.SetLocationAndSizeFrom(rectWtLbl[WT_INDEX_GROSS], rectWtUnits[WT_INDEX_NET]);
    158 
    159         rectWeightBackground.SetLocationAndSizeFrom(rectWtLbl[WT_INDEX_GROSS], rectWtLbl[WT_INDEX_GROSS]);
    160         rectWeightBackground.SetX(0);
    161         rectWeightBackground.SetWidth(dspMain.GetWidth() - 1);
     157        rectLargeMsg_.SetLocationAndSizeFrom(rectWtLbl[WT_INDEX_GROSS], rectWtUnits[WT_INDEX_NET]);
     158
     159        rectWeightBackground_.SetLocationAndSizeFrom(rectWtLbl[WT_INDEX_GROSS], rectWtLbl[WT_INDEX_GROSS]);
     160        rectWeightBackground_.SetX(0);
     161        rectWeightBackground_.SetWidth(dspMain.GetWidth() - 1);
    162162
    163163        rect.SetTopBasedOnFont(formFontSetSmall.GetFont(fontIndexPrompt), 12.0);
     
    165165        rect.SetX(0);
    166166        rect.SetWidth((dspMain.GetWidth() / 2) - 1);
    167         rectErrorMsg = rect;
     167        rectErrorMsg_ = rect;
     168
     169    rectDateTime_.SetLeftAndWidthBasedOnDspArea(dspMain, 0.75, 0.22);
     170    rectDateTime_.SetY(0.0);
     171    rectDateTime_.SetHeight(BORDER_BOX_HEIGHT + 3);
     172
     173    rectOperator_.SetLeftAndWidthBasedOnDspArea(dspMain, 0.03, 0.24);
     174    rectOperator_.SetY(0.0);
     175    rectOperator_.SetHeight(BORDER_BOX_HEIGHT + 3);
    168176}
    169177