Changes between Version 76 and Version 77 of Docs/825gen2/Dev/UpdatingLegacyAppsToNewLook


Ignore:
Timestamp:
07/09/25 13:49:03 (2 weeks ago)
Author:
Don Wilson
Comment:

--

Legend:

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

    v76 v77  
    249249}
    250250}}}
    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.
     251The !EnableFullScreenMode() is optional but recommended for most new apps. However, this will require a little more work to make the app fully functional.
    252252
    25325310. Modify all the references to the Show//XXXX// show as ShowGTN() to add the weightScreen instance such as:
     
    26026012. 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:
    261261
    262 Following is an example input form if EnableFullScreenMode is not used.
     262Following is an example input form if !EnableFullScreenMode is not used.
    263263{{{#!c++
    264264void PresetScreen(void)
     
    293293In 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.
    294294
    295 Following is an example input form when EnableFullScreenMode is used.
     295Following is an example input form when !EnableFullScreenMode is used.
    296296
    297297{{{#!c++
     
    336336The // 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.
    337337
    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.
     338The 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.
    339339
    340340