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


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

--

Legend:

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

    v61 v62  
    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. Create a new header file //wght_screen.h// in the //src// folder. Copy the following code into the header:
     113. Create a new header file //wght_screen.h// in the //src// folder. Copy the following code into the header. This is a starting point and the CFormRect variables defined are common for many projects. It may be necessary to add additional CFormRects for the project being updated.
    1212
    1313{{{#!c++
     
    185185}}}
    186186
    187 Modify this function for new style display such as:
     1876. Modify this function for new style display such as:
    188188
    189189{{{#!c++
     
    212212}}}
    213213
    214 Add the following header include to the main cpp file
     2147. Add the following header include to the main cpp file
    215215{{{#!c++
    216216#include "wght_screen.h"
    217217}}}
    218218
    219 Add an instance of the CWeighingScreen above all the functions such as:
     2198. Add an instance of the CWeighingScreen above all the functions such as:
    220220{{{#!c++
    221221CWeighingScreen weightScreen;
    222222}}}
    223223
    224 Modify all the references to the Show//XXXX// show as ShowGTN() to add the weightScreen instance such as:
    225 {{{#!c++
    226 weightScreen.ShowGTN();
    227 }}}
    228 
    229 
    230 6. Find the InitLCD function call and change as follows:
     224
     2259. Find the InitLCD function call and change as follows:
    231226
    232227{{{#!c++
     
    252247}}}
    253248
    254 
    255 
    256 6. Search for all menu and inputs forms such as search for "FORM_INIT" make appropriate changes to use new style FORM_ADD_INPUT2 instead of FORM_ADD_INPUT and FORM_ADD_BUTTON2 instead of FORM_ADD_BUTTON such as:
     24910. Modify all the references to the Show//XXXX// show as ShowGTN() to add the weightScreen instance such as:
     250{{{#!c++
     251weightScreen.ShowGTN();
     252}}}
     253
     25411. Search for all menu and inputs forms such as search for "FORM_INIT" make appropriate changes to use new style FORM_ADD_INPUT2 instead of FORM_ADD_INPUT and FORM_ADD_BUTTON2 instead of FORM_ADD_BUTTON such as:
    257255
    258256{{{#!c++