Changes between Version 53 and Version 54 of Docs/825gen2/Dev/UpdatingLegacyAppsToNewLook


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

--

Legend:

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

    v53 v54  
    5656}}}
    5757
    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.
     584. Create a source file wght_screen.cpp in the src folder. Do not just copy this entire file from a standard project. Copy the SetupDisplayLocations portion of the file from a standard app.
    5959
    6060
     
    166166}}}
    167167
    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:
     1685. Most older app project have almost all of the code in the a single cpp file. Most of the functions for displaying dynamic data on the main screen are named Show//XXXX// such as ShowDateTime, ShowGTN, etc...  Cut the code of 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. It will also be necessary to add the function names to the wght_screen.h or make sure they match names already in wght_screen.h.
     169
     170For example ShowDatetime will be:
    169171{{{
    170172void CWeighingScreen::ShowDateTime(void)
     
    175177}}}
    176178
    177 4. Find the InitLCD function call and change as follows:
     1796. Find the InitLCD function call and change as follows:
    178180
    179181{{{#!c++