Changes between Version 85 and Version 86 of Docs/825gen2/Dev/UpdatingLegacyAppsToNewLook


Ignore:
Timestamp:
07/11/25 13:59:13 (2 weeks ago)
Author:
Don Wilson
Comment:

--

Legend:

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

    v85 v86  
    248248}
    249249}}}
    250 The !EnableFullScreenMode() is optional but recommended for new apps. When this is included the app will stay in the zoomed state and only show a keypad as needed for input fields. This is easier for users of the app. However, this may require a little more work to make the app fully functional. All menu screens must have an //Exit// button provided since there is no always shown there arrow buttons. Input screens should have //Cancel// or //ESC// and //Ok// buttons. The apphelpers.cpp/.h provides helpers to simplify these changes.
     250The !EnableFullScreenMode() is optional but recommended for new apps. When this is included the app will stay in the zoomed state and only show a keypad as needed for input fields. This is easier for users of the app. However, this may require a little more work to make the app fully functional. All menu screens must have an //Exit// button provided since there is no always shown arrow buttons. Input screens should have //Cancel// or //ESC// and //Ok// buttons. The apphelpers.cpp/.h provides helpers to simplify these changes.
    251251
    25225210. Modify all the references to the Show//XXXX// show as ShowGTN() to add the weightScreen instance such as:
     
    305305        SetupInputFormToUseFontSet(formSetup, rectInpBtn, 0.45, 1.3);
    306306
    307         FORM_ADD_INPUT2(Setup, Thresh,  rectInpBtn, rectKeypad, "On Threshold: ", 6, 0, 999999, NULL, &g_setup.onThresh, FORM_FLOAT | FORM_POPUP_LEFT_PROMPT, NULL, "Enter the on threshold");
     307        FORM_ADD_INPUT2(Setup, Thresh,  rectInpBtn, rectKeypad, "On Threshold: ",    6, 0, 999999, NULL, &g_setup.onThresh, FORM_FLOAT | FORM_POPUP_LEFT_PROMPT, NULL, "Enter the on threshold");
    308308        rectInpBtn += inputAdvanceY;
    309309        FORM_ADD_INPUT2(Setup, ViolTot, rectInpBtn, rectKeypad, "Total Violation: ", 6, 0, 999999, NULL, &g_setup.violWt[0], FORM_FLOAT | FORM_POPUP_LEFT_PROMPT, NULL, "Enter violation weight for total");
    310310        rectInpBtn += inputAdvanceY;
    311         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");
     311        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
    313313        formSetup.LeftAlignPromptInputs(inpThresh, inpViol1);