Changes between Version 38 and Version 39 of Docs/825gen2/Dev/UpdatingLegacyAppsToNewLook
- Timestamp:
- 02/09/24 08:30:24 (10 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/825gen2/Dev/UpdatingLegacyAppsToNewLook
v38 v39 264 264 const struct form_item_struct frmtm[nTimeItems] = { 265 265 { 266 // X Y Prompt Len Min Max FlagChoices Help267 { 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" } 270 270 }; 271 271 … … 293 293 }}} 294 294 295 Notice 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