Changes between Version 38 and Version 39 of Docs/825gen2/Dev/UpdatingLegacyAppsToNewLook


Ignore:
Timestamp:
02/09/24 08:30:24 (10 months ago)
Author:
Don Wilson
Comment:

--

Legend:

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

    v38 v39  
    264264const struct form_item_struct frmtm[nTimeItems] = {
    265265{
    266    // X  Y  Prompt   Len   Min   Max   Flag   Choices  Help
    267    {  0, 3,  "Hour: ",  2,   0,   23,   FORM_UINT8, NULL, "Enter the hour in 24 hour time\r3 p.m. = 15" },
    268    {  0, 5,  "Minute: ", 2,  0,   59,   FORM_UINT8, NULL, "Enter the minutes" },
    269    {  0, 7,  "Second" ", 2,  0,   59,   FORM_UINT8, NULL, "Enter the seconds" }
     266   // X  Y    Prompt      Len   Min  Max   Flag       Choices  Help
     267   {  0, 3,  "Hour:   ",   2,   0,   23,   FORM_UINT8, NULL, "Enter the hour in 24 hour time\r3 p.m. = 15" },
     268   {  0, 5,  "Minute: ",   2,   0,   59,   FORM_UINT8, NULL, "Enter the minutes" },
     269   {  0, 7,  "Second: ",   2,   0,   59,   FORM_UINT8, NULL, "Enter the seconds" }
    270270};
    271271
     
    293293}}}
    294294
     295Notice in the above example a const structure defines the form. A array of void pointers (pData) is setup to point to the data items to be read/changed when the form runs. This array is passed to the FormLCD function. The above code converted to CForm style is:
     296
     297{{{
     298
     299}}}
     300