Changes between Version 50 and Version 51 of Docs/825gen2/Dev/UpdatingLegacyAppsToNewLook


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

--

Legend:

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

    v50 v51  
    992. 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.
    1010
    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
     113. 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_
    1522
    1623#define NUM_WT_INDEXES  3 // Gross, tare, net
     
    1926#define WT_INDEX_NET    2
    2027
    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;
     28class 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
     43public:
     44   CWeighingScreen(void)
     45   {
     46
     47   }
     48
     49};
     50
    3151
    3252void SetupDisplayLocations(void)