Changes between Version 62 and Version 63 of Docs/825gen2/Dev/UpdatingLegacyAppsToNewLook


Ignore:
Timestamp:
04/04/25 13:17:04 (2 weeks ago)
Author:
Don Wilson
Comment:

--

Legend:

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

    v62 v63  
    168168}}}
    169169
    170 5. 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 class definition under the //public:// label. In the class definition do not include the //CWeighingScreen::// in front of the function names.
     1705. 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 class definition under the //public// label. In the class definition do not include the //CWeighingScreen:: // in front of the function names.
    171171
    172172For example ShowGTN cut and pasted from the main cpp and made a member function may look like this: