Changes between Version 30 and Version 31 of Docs/825gen2/Dev/UpdatingLegacyAppsToNewLook


Ignore:
Timestamp:
02/08/24 15:42:56 (10 months ago)
Author:
Don Wilson
Comment:

--

Legend:

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

    v30 v31  
    243243}}}
    244244
    245 In the above example notice after FORM_INIT the function !SetupMenuFormToUseFontSet is called. This gives the form a pointer to the fonts that were initialized previously. The function also sets the starting position of the rect rectangle that is used to define where to show the button. Notice between FORM_ADD_BUTTON2 lines the rect is advanced by **rect += btnAdvanceY;**  The CFormRect class contains multiple values. The += operator is overloaded to allow the advance as shown. The !AdvanceInputRects function from the previous example is actually doing the same thing, but for input forms to advance both the prompt and the input rectangles.
     245In the above example notice after FORM_INIT the function !SetupMenuFormToUseFontSet is called. This gives the form a pointer to the fonts that were initialized previously. The function also sets the starting position of the rect rectangle that is used to define where to show the button.
     246
     247Notice between FORM_ADD_BUTTON2 lines the rect is advanced by **rect += btnAdvanceY;**  The CFormRect class contains multiple values. The += operator is overloaded to allow the advance as shown. The !AdvanceInputRects function from the previous example is actually doing the same thing, but for input forms to advance both the prompt and the input rectangles.
    246248{{{
    247249static inline void AdvanceInputRects(CFormRect& rect, CFormRect& rectInp)