Changes between Version 76 and Version 77 of Docs/825gen2/Dev/UpdatingLegacyAppsToNewLook
- Timestamp:
- 07/09/25 13:49:03 (2 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/825gen2/Dev/UpdatingLegacyAppsToNewLook
v76 v77 249 249 } 250 250 }}} 251 The EnableFullScreenMode() is optional but recommended for most new apps. However, this will require a little more work to make the app fully functional.251 The !EnableFullScreenMode() is optional but recommended for most new apps. However, this will require a little more work to make the app fully functional. 252 252 253 253 10. Modify all the references to the Show//XXXX// show as ShowGTN() to add the weightScreen instance such as: … … 260 260 12. 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: 261 261 262 Following is an example input form if EnableFullScreenMode is not used.262 Following is an example input form if !EnableFullScreenMode is not used. 263 263 {{{#!c++ 264 264 void PresetScreen(void) … … 293 293 In the above example notice after FORM_INIT the function !SetupInputFormToUseFontSet is called. !SetupInputFormToUseFontSet is a helper function defined in apphelpers.cpp. This gives the form a pointer to the fonts that were initialized previously. The function also sets the starting positions of the rect, and rectInp rectangles that are used to define where to show the prompts and input fields. The final parameter is a string used to determine the width of the prompts. This should be the longest prompt text in the form. The !AdvanceInputRects function call is used between FORM_ADD_INPUT2 calls to move the rect and rectInp down an appropriate amount for the next input. 294 294 295 Following is an example input form when EnableFullScreenMode is used.295 Following is an example input form when !EnableFullScreenMode is used. 296 296 297 297 {{{#!c++ … … 336 336 The // formSetup.LeftAlignPromptInputs(inpThres, inpViol1)// Statement is used to align the input fields. This function scans the input fields from //Thres// through //Viol// and finds the longer prompt text. It then sets all the input field coordinates all of these inputs so that the input prompts are lined up based on the longest prompt. 337 337 338 The function !SetupInputFormToUseFontSet is called. !SetupInputFormToUseFontSet is a helper function defined in apphelpers.cpp. This gives the form a pointer to the fonts that were initialized previously. The function also sets the starting positions of the rect , and rectInp rectangles that are used to define where to show the prompts and input fields. The final parameter is a string used to determine the width of the prompts. This should be the longest prompt text in the form. The !AdvanceInputRects function call is used between FORM_ADD_INPUT2 calls to move the rect and rectInp down an appropriate amount for the next input.338 The function !SetupInputFormToUseFontSet is called. !SetupInputFormToUseFontSet is a helper function defined in apphelpers.cpp. This gives the form a pointer to the fonts that were initialized previously. The function also sets the starting positions of the rectInpBtn rectangle that is used to define where to show the prompts and input fields. The following parameter is a value that is a percentage of the display area to set the width of the input fields. 339 339 340 340