Changes between Version 83 and Version 84 of Docs/825gen2/Dev/UpdatingLegacyAppsToNewLook


Ignore:
Timestamp:
07/09/25 15:30:23 (2 weeks ago)
Author:
Don Wilson
Comment:

--

Legend:

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

    v83 v84  
    311311        FORM_ADD_INPUT2(Setup, Viol1,   rectInpBtn, rectKeypad, "P1 Violation: ", 6, 0, 999999, NULL, &g_setup.violWt[1], FORM_FLOAT | FORM_POPUP_LEFT_PROMPT, NULL, "Violation weight for P1");
    312312
    313         formSetup.LeftAlignPromptInputs(inpThres, inpViol1);
     313        formSetup.LeftAlignPromptInputs(inpThresh, inpViol1);
    314314
    315315        AddFormOkButton(formSetup, btnOk);
     
    333333The FORM_ADD_INPUT2 statements have the rectKeypad for the second rectangle parameter. The is defined in apphelpers to specify that the keypad will be near the bottom of the screen. An additional flag //FORM_POPUP_LEFT_PROMPT//. This specifies that the prompt text for the input items will be left of the input fields.
    334334
    335 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.
    336 
    337 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.
     335The // formSetup.LeftAlignPromptInputs(inpThresh, inpViol1)// Statement is used to align the input fields. This function scans the input fields from //Thresh// through //Viol// 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.
     336
     337The 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.
    338338
    339339Another input form style is useful when !EnableFullScreenMode is used and the form has mostly selection items and numeric inputs.