Changes between Version 69 and Version 70 of Docs/825gen2/Dev/UpdatingLegacyAppsToNewLook
- Timestamp:
- 04/04/25 13:44:16 (2 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/825gen2/Dev/UpdatingLegacyAppsToNewLook
v69 v70 83 83 rect.SetLeftAndWidthBasedOnDspArea(&dspMain, 0.26, 0.25); // Show above of gross weight value 84 84 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); 88 88 89 89 for(n = 0; n < 2; n++) … … 91 91 if(n == 0) 92 92 { 93 rectCapacity [n].SetY(BORDER_BOX_HEIGHT);93 rectCapacity_[n].SetY(BORDER_BOX_HEIGHT); 94 94 } 95 95 else 96 96 { 97 rectCapacity [n].SetTopBasedOnFont(formFontSet.GetFont(fontIndexSmallPrompt), BORDER_BOX_HEIGHT);97 rectCapacity_[n].SetTopBasedOnFont(formFontSet.GetFont(fontIndexSmallPrompt), BORDER_BOX_HEIGHT); 98 98 } 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); 102 102 } 103 103 … … 106 106 rect += advanceY; 107 107 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); 111 111 112 112 // Setup weight label, value, and units locations … … 143 143 { 144 144 rect.SetLeftAndWidthBasedOnDspArea(&dspMain, 0.01, 0.24); 145 rectWtLbl [n] = rect;145 rectWtLbl_[n] = rect; 146 146 147 147 rect.SetLeftAndWidthBasedOnDspArea(&dspMain, 0.26, 0.25); 148 rectWt [n] = rect;148 rectWt_[n] = rect; 149 149 150 150 rect.SetLeftAndWidthBasedOnDspArea(&dspMain, 0.55, 0.15); 151 rectWtUnits [n] = rect;151 rectWtUnits_[n] = rect; 152 152 153 153 rect += advanceY; … … 155 155 156 156 // 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); 162 162 163 163 rect.SetTopBasedOnFont(formFontSetSmall.GetFont(fontIndexPrompt), 12.0); … … 165 165 rect.SetX(0); 166 166 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); 168 176 } 169 177