Changes between Version 65 and Version 66 of Docs/825gen2/Dev/UpdatingLegacyAppsToNewLook
- Timestamp:
- 04/04/25 13:22:49 (2 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/825gen2/Dev/UpdatingLegacyAppsToNewLook
v65 v66 170 170 }}} 171 171 172 5. Most older app projects have almost all of the code in the a single //cpp// file. Functions for displaying dynamic data on the main screen are usually named similar to 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.172 5. Most older app projects have almost all of the code in the a single //cpp// file. Functions for displaying dynamic data on the main screen are usually named similar to 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 //SetupDisplayLocations// function prototype. In the class definition do not include the //CWeighingScreen:: // in front of the function names. 173 173 174 174 For example ShowGTN cut and pasted from the main cpp and made a member function may look like this: