Changes between Version 22 and Version 23 of Docs/825gen2/Dev/UpdatingLegacyAppsToNewLook
- Timestamp:
- 02/08/24 15:24:37 (10 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/825gen2/Dev/UpdatingLegacyAppsToNewLook
v22 v23 215 215 }}} 216 216 217 In the above example notice after FORM_INIT the function !SetupInputFormToUseFontSet is called. 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 that to 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_INPUTSto move the rect and rectInp down an appropriate amount for the next input.217 In the above example notice after FORM_INIT the function !SetupInputFormToUseFontSet is called. 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 that to 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. 218 218 219 219 {{{