Changes between Version 50 and Version 51 of Docs/825gen2/Dev/UpdatingLegacyAppsToNewLook
- Timestamp:
- 04/04/25 12:29:15 (2 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/825gen2/Dev/UpdatingLegacyAppsToNewLook
v50 v51 9 9 2. Copy the files apphelpers.cpp, apphelpers.h, and appinfo.h from one of the new standard projects such as ID storage into the project to update. Changes to these files might be needed. For example, if different fonts or font sizes are desired these are specified in apphelpers.cpp. 10 10 11 3. Copy code for main screen below from a standard app such as ID storage. It is likely changes will need to be made to this code to suit the particular application. 12 13 {{{#!c++ 14 #if ARM64 11 3. Copy the //wght_screen.h// from a standard project if possible similar to the project being updated. 12 13 {{{#!c++ 14 /* 15 * wght_screen.h 16 * 17 * 18 */ 19 20 #ifndef SRC_WGHT_SCREEN_H_ 21 #define SRC_WGHT_SCREEN_H_ 15 22 16 23 #define NUM_WT_INDEXES 3 // Gross, tare, net … … 19 26 #define WT_INDEX_NET 2 20 27 21 CFormRect rectWtLbl[NUM_WT_INDEXES]; // Location for gross, tare, net labels 22 CFormRect rectWt[NUM_WT_INDEXES]; 23 CFormRect rectWtUnits[NUM_WT_INDEXES]; 24 CFormRect rectWtStatus; 25 CFormRect rectCapacity[2]; // If OIML needs two lines 26 CFormRect rectErrorMsg; 27 CFormRect rectLargeMsg; // Size of all weight rects, used for "WEIGHT ERROR", or "OVER CAPACITY" 28 CFormRect rectManTare; 29 CFormRect rectBelowButtons; 30 CFormRect rectWeightBackground; 28 class CWeighingScreen 29 { 30 CFormRect rectWtLbl_[NUM_WT_INDEXES]; // Location for gross, tare, net labels 31 CFormRect rectWt_[NUM_WT_INDEXES]; 32 CFormRect rectWtUnits_[NUM_WT_INDEXES]; 33 CFormRect rectWtStatus_; 34 CFormRect rectCapacity_[2]; // If OIML needs two lines 35 CFormRect rectErrorMsg_; 36 CFormRect rectLargeMsg_; // Size of all weight rects, used for "WEIGHT ERROR", or "OVER CAPACITY" 37 CFormRect rectManTare_; 38 CFormRect rectBelowButtons_; 39 CFormRect rectWeightBackground_; 40 CFormRect rectOperator_; 41 CFormRect rectDateTime_; 42 43 public: 44 CWeighingScreen(void) 45 { 46 47 } 48 49 }; 50 31 51 32 52 void SetupDisplayLocations(void)