Changes between Version 95 and Version 96 of Docs/825gen2/Dev/UpdatingLegacyAppsToNewLook
- Timestamp:
- 07/22/25 13:11:36 (21 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/825gen2/Dev/UpdatingLegacyAppsToNewLook
v95 v96 337 337 In 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. 338 338 339 The 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 339 341 The 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. 340 342 341 343 The //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. 342 344 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.344 345 345 346 Another input form style is useful when !EnableFullScreenMode is used and the form has mostly selection items and numeric inputs.