Changes between Version 5 and Version 6 of Docs/825gen2/Dev/UpdatingLegacyAppsToNewLook
- Timestamp:
- 02/08/24 11:41:05 (10 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/825gen2/Dev/UpdatingLegacyAppsToNewLook
v5 v6 5 5 Otherwise, the follow the below steps. 6 6 1. 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. 7 2. Copy code for main screen features such as below: 7 2. Find the InitLCD function call and change as follows: 8 {{{ 9 void IndStartup(void) { 10 #if ARM64 11 InitLCD(DSP_INIT_NEW_STYLE_APP); 12 #else 13 InitLCD(); 14 #endif 15 // .. Additional code 16 17 } 18 19 }}} 20 21 3. Copy code for main screen features such as below: 22 8 23 {{{ 9 24 #if ARM64 … … 126 141 }}} 127 142 128 3. Modify functions that do display operations such as shown:143 4. Modify functions that do display operations such as shown: 129 144 130 145 {{{ … … 156 171 }}} 157 172 158 4. 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:173 5. 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: 159 174 160 175 {{{