Changes between Version 95 and Version 96 of Docs/825gen2/Dev/UpdatingLegacyAppsToNewLook


Ignore:
Timestamp:
07/22/25 13:11:36 (21 hours ago)
Author:
Don Wilson
Comment:

--

Legend:

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

    v95 v96  
    337337In the above example FORM_INIT has additional flags //nFormFlgAutoPresentPopup | nFormFlgShowPopupTabKeypad//. This is to show the popup keypad automatically and include the small tab keypad to navigate between input fields.
    338338
     339The function !SetupInputFormToUseFontSet is called after FORM_INIT. !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. The optional forth parameter is the height of the input fields based on the font height.
     340
    339341The FORM_ADD_INPUT2 statements have the rectKeypad for the second rectangle parameter. This is defined in apphelpers.cpp to specify that the keypad will be near the bottom of the screen. An additional flag //FORM_POPUP_LEFT_PROMPT// is used for inputs to specify that the prompt text will be left of the input field.
    340342
    341343The //formSetup.!LeftAlignPromptInputs(inpThresh, inpViol1)// Statement is used to align the input fields. This function scans the input fields from //Thresh// through //Viol1// and finds the longest 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.
    342344
    343 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. The optional forth parameter is the height of the input fields based on the font height.
    344345
    345346Another input form style is useful when !EnableFullScreenMode is used and the form has mostly selection items and numeric inputs.