Changes between Version 51 and Version 52 of Docs/825gen2/Dev/UpdatingLegacyAppsToNewLook
- Timestamp:
- 04/04/25 12:36:18 (2 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/825gen2/Dev/UpdatingLegacyAppsToNewLook
v51 v52 28 28 class CWeighingScreen 29 29 { 30 #ARM64 30 31 CFormRect rectWtLbl_[NUM_WT_INDEXES]; // Location for gross, tare, net labels 31 32 CFormRect rectWt_[NUM_WT_INDEXES]; … … 40 41 CFormRect rectOperator_; 41 42 CFormRect rectDateTime_; 43 #endif 42 44 43 45 public: … … 47 49 } 48 50 51 #if ARM64 52 void SetupDisplayLocations(void); 53 #endif 54 49 55 }; 50 51 52 void SetupDisplayLocations(void) 56 {{{ 57 58 4. Create a source file wght_screen.cpp in the src folder. Do not just copy this file from a standard project. Copy the SetupDisplayLocations portion of the file from a standard app. 59 60 61 {{{#!c++ 62 #include "cardinal825.h" 63 #include "appinfo.h" 64 #include "apphelpers.h" 65 #include "langstr.h" 66 67 void CWeighingScreen::SetupDisplayLocations(void) 53 68 { 54 69 int n; … … 151 166 }}} 152 167 168 5. Most older app project have almost all of the code in the main cpp file. Most of the functions for displaying dynamic data on the main screen are named Show//XXXX// such as ShowDatetime, ShowGTN, etc... Cut these functions from the main source file and paste them into the wght_screen.cpp file. Then update the function names to be class members. For example ShowDatetime will be: 169 {{{ 170 void CWeighingScreen::ShowDateTime(void) 171 { 172 173 } 174 175 }}} 176 153 177 4. Find the InitLCD function call and change as follows: 154 178