Rename Protocol/FrameworkHii.h to Protocol/HiiFramework.h to follow the naming conven...
[mirror_edk2.git] / IntelFrameworkModulePkg / Universal / DriverSampleDxe / Vfr.vfr
1 // *++
2 //
3 // Copyright (c) 2006, Intel Corporation
4 // All rights reserved. This program and the accompanying materials
5 // are licensed and made available under the terms and conditions of the BSD License
6 // which accompanies this distribution. The full text of the license may be found at
7 // http://opensource.org/licenses/bsd-license.php
8 //
9 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11 //
12 // Module Name:
13 //
14 // Vfr.vfr
15 //
16 // Abstract:
17 //
18 // Sample Setup formset
19 //
20 // Revision History:
21 //
22 // --*/
23
24
25
26 #include "NVDataStruc.h"
27
28
29 typedef struct {
30 UINT8 Field8;
31 UINT16 Field16;
32 UINT8 OrderedList[3];
33 } MyIfrNVData2;
34
35 typedef struct {
36 UINT8 Field8;
37 UINT16 Field16;
38 UINT8 OrderedList[3];
39 } MyIfrNVData3;
40
41 #define MY_TEXT_KEY 0x100
42
43 #define LABEL_1_VALUE 0x01
44 #define LABEL_2_VALUE 0x1000
45 #define LABEL_UPDATE_BBS 0x2222
46 #define LABEL_END_UPDATE_BBS 0x2223
47
48 formset
49 guid = FORMSET_GUID,
50 title = STRING_TOKEN(STR_FORM_SET_TITLE),
51 help = STRING_TOKEN(STR_FORM_SET_TITLE_HELP),
52 class = 0x10,
53 subclass = 0,
54
55 varstore MyIfrNVData2, key = 0x1234, name = MY_DATA2, guid = FORMSET_GUID;
56
57 varstore MyIfrNVData, key = 0x1324, name = MY_DATA1, guid = FORMSET_GUID;
58
59 varstore MyIfrNVData3, key = 0x4321, name = MY_DATA3, guid = FORMSET_GUID;
60
61 form formid = 1,
62 title = STRING_TOKEN(STR_FORM1_TITLE); // note formid is a variable (for readability) (UINT16) - also added Form to the line to signify the Op-Code
63
64 subtitle text = STRING_TOKEN(STR_SUBTITLE_TEXT);
65
66 subtitle text = STRING_TOKEN(STR_SUBTITLE_TEXT2);
67
68 banner
69 title = STRING_TOKEN(STR_BANNER_TITLE),
70 line 1,
71 align center;
72
73 banner
74 title = STRING_TOKEN(STR_BANNER_TITLE),
75 line 2,
76 align left;
77
78 banner
79 title = STRING_TOKEN(STR_BANNER_TITLE),
80 line 2,
81 align right;
82
83 text
84 help = STRING_TOKEN(STR_TEXT_HELP),
85 text = STRING_TOKEN(STR_CPU_STRING),
86 text = STRING_TOKEN(STR_CPU_STRING2),
87 flags = 0,
88 key = 0;
89
90 text
91 help = STRING_TOKEN(STR_EXIT_TEXT),
92 text = STRING_TOKEN(STR_EXIT_TEXT),
93 text = STRING_TOKEN(STR_EXIT_TEXT),
94 flags = INTERACTIVE,
95 key = 0x1237;
96
97 oneof varid = MyIfrNVData.SuppressGrayOutSomething,
98 prompt = STRING_TOKEN(STR_ONE_OF_PROMPT),
99 help = STRING_TOKEN(STR_ONE_OF_HELP),
100 option text = STRING_TOKEN(STR_ONE_OF_TEXT4), value = 0x0, flags = 0;
101 option text = STRING_TOKEN(STR_ONE_OF_TEXT5), value = 0x1, flags = 0;
102 option text = STRING_TOKEN(STR_ONE_OF_TEXT6), value = 0x2, flags = DEFAULT;
103 endoneof;
104
105 oneof varid = MyIfrNVData.BootOrderLarge,
106 prompt = STRING_TOKEN(STR_ONE_OF_PROMPT),
107 help = STRING_TOKEN(STR_ONE_OF_HELP),
108 option text = STRING_TOKEN(STR_BOOT_ORDER1), value = 0x0, flags = INTERACTIVE, key = 1;
109 option text = STRING_TOKEN(STR_BOOT_ORDER2), value = 0x1, flags = INTERACTIVE | DEFAULT, key = 2;
110 endoneof;
111
112 grayoutif ideqval MyIfrNVData.SuppressGrayOutSomething == 0x1;
113 suppressif ideqval MyIfrNVData.SuppressGrayOutSomething == 0x0;
114 label 0;
115 checkbox varid = MyIfrNVData.ChooseToActivateNuclearWeaponry,
116 prompt = STRING_TOKEN(STR_CHECK_BOX_PROMPT),
117 help = STRING_TOKEN(STR_CHECK_BOX_HELP),
118 flags = 1, // Flags behavior for checkbox is overloaded so that it equals a DEFAULT value. 1 = ON, 0 = off
119 key = 0,
120 endcheckbox;
121 endif;
122
123
124 //
125 // Ordered list:
126 // sizeof(MyIfrNVData) storage must be UINT8 array, and
127 // size written for the variable must be size of the entire
128 // variable.
129 //
130 //
131 suppressif ideqval MyIfrNVData.SuppressGrayOutSomething == 0x0;
132 label LABEL_UPDATE_BBS;
133 orderedlist
134 varid = MyIfrNVData.BootOrder,
135 prompt = STRING_TOKEN(STR_BOOT_OPTIONS),
136 help = STRING_TOKEN(STR_NULL_STRING),
137 option text = STRING_TOKEN(STR_BOOT_OPTION2), value = 2, flags = RESET_REQUIRED;
138 option text = STRING_TOKEN(STR_BOOT_OPTION1), value = 1, flags = RESET_REQUIRED;
139 option text = STRING_TOKEN(STR_BOOT_OPTION3), value = 3, flags = RESET_REQUIRED;
140 option text = STRING_TOKEN(STR_BOOT_OPTION4), value = 4, flags = RESET_REQUIRED;
141 endlist;
142 label LABEL_END_UPDATE_BBS;
143 endif;
144
145 suppressif ideqval MyIfrNVData.SuppressGrayOutSomething == 0x2;
146 orderedlist
147 varid = MyIfrNVData.OrderedList,
148 prompt = STRING_TOKEN(STR_TEST_OPCODE),
149 help = STRING_TOKEN(STR_TEXT_HELP),
150 option text = STRING_TOKEN(STR_ONE_OF_TEXT1), value = 4, flags = RESET_REQUIRED;
151 option text = STRING_TOKEN(STR_ONE_OF_TEXT2), value = 3, flags = RESET_REQUIRED;
152 option text = STRING_TOKEN(STR_ONE_OF_TEXT3), value = 2, flags = RESET_REQUIRED;
153 option text = STRING_TOKEN(STR_TEXT_HELP), value = 1, flags = RESET_REQUIRED;
154 endlist;
155 endif;
156
157 label 100;
158
159 goto 0x1234,
160 prompt = STRING_TOKEN(STR_GOTO_DYNAMIC),
161 help = STRING_TOKEN(STR_GOTO_HELP),
162 flags = INTERACTIVE,
163 key = 0x1234;
164
165 goto 0x1234,
166 prompt = STRING_TOKEN(STR_GOTO_DYNAMIC2),
167 help = STRING_TOKEN(STR_GOTO_HELP),
168 flags = INTERACTIVE,
169 key = 0x1235;
170
171 //
172 // VARSTORE tests
173 //
174 // Till now, been using variable NvData (must be reserved)
175 // now we do a varselect for variable NvData3
176 inconsistentif prompt = STRING_TOKEN(STR_ERROR_POPUP),
177 ideqid MyIfrNVData3.Field16 == MyIfrNVData3.Field16
178 endif;
179 // now we do a varselect_pair for variable NvData2 and NvData3
180 inconsistentif prompt = STRING_TOKEN(STR_ERROR_POPUP),
181 ideqid MyIfrNVData2.Field16 == MyIfrNVData3.Field16
182 endif;
183
184
185 // now we do a varselect_pair for variable NvData and NvData2
186 // inconsistentif prompt = STRING_TOKEN(STR_ERROR_POPUP),
187 // ideqid MyIfrNVData2.Field16 == MyIfrNVData.TestLateCheck
188 // endif;
189
190 inconsistentif prompt = STRING_TOKEN(STR_ERROR_POPUP),
191 ideqid MyIfrNVData.TestLateCheck == MyIfrNVData.TestLateCheck2
192 endif;
193
194 oneof varid = MyIfrNVData.TestLateCheck,
195 prompt = STRING_TOKEN(STR_TEST_OPCODE),
196 help = STRING_TOKEN(STR_ONE_OF_HELP),
197 option text = STRING_TOKEN(STR_ONE_OF_TEXT1), value = 0, flags = LATE_CHECK | RESET_REQUIRED;
198 option text = STRING_TOKEN(STR_ONE_OF_TEXT2), value = 1, flags = LATE_CHECK | DEFAULT | RESET_REQUIRED;
199 endoneof;
200
201 oneof varid = MyIfrNVData.TestLateCheck2,
202 prompt = STRING_TOKEN(STR_TEST_OPCODE2),
203 help = STRING_TOKEN(STR_ONE_OF_HELP),
204 option text = STRING_TOKEN(STR_ONE_OF_TEXT1), value = 0, flags = LATE_CHECK | DEFAULT | RESET_REQUIRED;
205 option text = STRING_TOKEN(STR_ONE_OF_TEXT2), value = 1, flags = LATE_CHECK | RESET_REQUIRED;
206
207 endoneof;
208
209 oneof varid = MyIfrNVData.QuestionAboutTreeHugging,
210 prompt = STRING_TOKEN(STR_ONE_OF_PROMPT),
211 help = STRING_TOKEN(STR_ONE_OF_HELP),
212 option text = STRING_TOKEN(STR_ONE_OF_TEXT1), value = 0, flags = RESET_REQUIRED;
213 option text = STRING_TOKEN(STR_ONE_OF_TEXT2), value = 1, flags = DEFAULT | RESET_REQUIRED;
214 option text = STRING_TOKEN(STR_ONE_OF_TEXT3), value = 0x03, flags = RESET_REQUIRED;
215
216 endoneof;
217
218 string varid = MyIfrNVData.MyStringData,
219 prompt = STRING_TOKEN(STR_MY_STRING_PROMPT2),
220 help = STRING_TOKEN(STR_MY_STRING_HELP2),
221 flags = INTERACTIVE,
222 key = 0x1234,
223 minsize = 6,
224 maxsize = 0x14,
225 endstring;
226
227 text
228 help = STRING_TOKEN(STR_GRAYOUT_TEST),
229 text = STRING_TOKEN(STR_GRAYOUT_TEST),
230 text = STRING_TOKEN(STR_GRAYOUT_TEST),
231 flags = INTERACTIVE,
232 key = 0x1555;
233
234 text
235 help = STRING_TOKEN(STR_SUPPRESS_TEST),
236 text = STRING_TOKEN(STR_SUPPRESS_TEST),
237 text = STRING_TOKEN(STR_SUPPRESS_TEST),
238 flags = INTERACTIVE,
239 key = 0x1556;
240
241 text
242 help = STRING_TOKEN(STR_CLEAR_TEST),
243 text = STRING_TOKEN(STR_CLEAR_TEST),
244 text = STRING_TOKEN(STR_CLEAR_TEST),
245 flags = INTERACTIVE,
246 key = 0x1557;
247
248 grayoutif vareqval var(VAR_EQ_TEST_NAME) == 0x1;
249 suppressif vareqval var(VAR_EQ_TEST_NAME) == 0x1000;
250 label 30;
251 checkbox varid = MyIfrNVData.ChooseToActivateNuclearWeaponry,
252 prompt = STRING_TOKEN(STR_CHECK_BOX_PROMPT),
253 help = STRING_TOKEN(STR_CHECK_BOX_HELP),
254 flags = 1,
255 key = 0,
256 endcheckbox;
257 endif;
258
259
260 numeric varid = MyIfrNVData.HowOldAreYouInYearsManual,
261 prompt = STRING_TOKEN(STR_NUMERIC_MANUAL_PROMPT),
262 help = STRING_TOKEN(STR_NUMERIC_HELP0),
263 minimum = 0,
264 maximum = 0xf0, // 0xf0 = 240 in decimal
265 step = 0, // Stepping of 0 equates to a manual entering
266 // of a value, otherwise it will auto-increment
267 // with a left/right arrow
268 default = 21,
269
270 endnumeric;
271
272 numeric varid = MyIfrNVData.HowTallAreYouManual,
273 prompt = STRING_TOKEN(STR_TALL_MANUAL_PROMPT),
274 help = STRING_TOKEN(STR_NUMERIC_HELP1),
275 minimum = 0,
276 maximum = 300,
277 step = 0, // Stepping of 0 equates to a manual entering
278 // of a value, otherwise it will auto-increment
279 // with a left/right arrow
280 default = 175,
281
282 endnumeric;
283
284 inventory
285 help = STRING_TOKEN(STR_INVENTORY_HELP),
286 text = STRING_TOKEN(STR_INVENTORY_TEXT1),
287 text = STRING_TOKEN(STR_INVENTORY_TEXT2);
288
289
290 restore defaults,
291 formid = 4,
292 prompt = STRING_TOKEN(STR_RESTORE_DEFAULTS_PROMPT),
293 help = STRING_TOKEN(STR_RESTORE_DEFAULTS_HELP),
294 flags = 0,
295 key = 0;
296
297 save defaults,
298 formid = 4,
299 prompt = STRING_TOKEN(STR_SAVE_DEFAULTS_PROMPT),
300 help = STRING_TOKEN(STR_SAVE_DEFAULTS_HELP),
301 flags = 0,
302 key = 0;
303
304 //
305 // Case with no flags or key
306 //
307 save defaults,
308 formid = 4,
309 prompt = STRING_TOKEN(STR_SAVE_DEFAULTS_PROMPT),
310 help = STRING_TOKEN(STR_SAVE_DEFAULTS_HELP);
311 //
312 // Case with no key
313 //
314 save defaults,
315 formid = 4,
316 prompt = STRING_TOKEN(STR_SAVE_DEFAULTS_PROMPT),
317 help = STRING_TOKEN(STR_SAVE_DEFAULTS_HELP),
318 flags = 0;
319 //
320 // Case with no flags
321 //
322 save defaults,
323 formid = 4,
324 prompt = STRING_TOKEN(STR_SAVE_DEFAULTS_PROMPT),
325 help = STRING_TOKEN(STR_SAVE_DEFAULTS_HELP),
326 key = 0;
327
328 label LABEL_2_VALUE;
329
330 grayoutif ideqval MyIfrNVData.HowOldAreYouInYearsManual == 23 AND ideqval MyIfrNVData.SuppressGrayOutSomething == 0x1;
331 numeric varid = MyIfrNVData.HowOldAreYouInYears,
332 prompt = STRING_TOKEN(STR_NUMERIC_PROMPT),
333 help = STRING_TOKEN(STR_NUMERIC_HELP2),
334 minimum = 0,
335 maximum = 243,
336 step = 3,
337 default = 18,
338
339 endnumeric;
340
341 label LABEL_1_VALUE;
342
343 //
344 // Numeric with no step or default specified
345 //
346 numeric varid = MyIfrNVData.HowTallAreYou,
347 prompt = STRING_TOKEN(STR_NUMERIC_PROMPT1),
348 help = STRING_TOKEN(STR_NUMERIC_HELP3),
349 minimum = 0,
350 maximum = 190,
351 // step = 1, // Stepping of 1 if not specified
352 // default = minimum; // if not specified
353 endnumeric;
354 endif;
355
356 string varid = MyIfrNVData.MyStringData,
357 prompt = STRING_TOKEN(STR_MY_STRING_PROMPT),
358 help = STRING_TOKEN(STR_MY_STRING_HELP),
359 minsize = 6,
360 maxsize = 0x14,
361 endstring;
362
363 password varid = MyIfrNVData.WhatIsThePassword,
364 prompt = STRING_TOKEN(STR_PASSWORD_PROMPT),
365 help = STRING_TOKEN(STR_PASSWORD_HELP),
366 minsize = 6,
367 maxsize = 20, // new opcode
368 encoding = 1,
369 endpassword;
370 password varid = MyIfrNVData.WhatIsThePassword2,
371 prompt = STRING_TOKEN(STR_PASSWORD_PROMPT),
372 help = STRING_TOKEN(STR_PASSWORD_HELP),
373 minsize = 6,
374 maxsize = 20, // new opcode
375 encoding = 1,
376 endpassword;
377 //
378 // Test with flags and key fields
379 //
380 password varid = MyIfrNVData.WhatIsThePassword,
381 prompt = STRING_TOKEN(STR_PASSWORD_PROMPT),
382 help = STRING_TOKEN(STR_PASSWORD_HELP),
383 flags = INTERACTIVE,
384 key = 0x2000,
385 minsize = 6,
386 maxsize = 20, // new opcode
387 encoding = 1,
388 endpassword;
389
390 goto 2,
391 prompt = STRING_TOKEN(STR_GOTO_FORM2), //SecondSetupPage // this too has no end-op and basically it's a jump to a form ONLY
392 help = STRING_TOKEN(STR_GOTO_HELP);
393
394 goto 3,
395 prompt = STRING_TOKEN(STR_GOTO_FORM3), //ThirdSetupPage // this too has no end-op and basically it's a jump to a form ONLY
396 help = STRING_TOKEN(STR_GOTO_HELP);
397
398 endform;
399
400 form formid = 2, // SecondSetupPage,
401 title = STRING_TOKEN(STR_FORM2_TITLE); // note formid is a variable (for readability) (UINT16) - also added Form to the line to signify the Op-Code
402
403
404 date year varid = Date.Year, // Note that it is a member of NULL, so the RTC will be the system resource to retrieve and save from
405 prompt = STRING_TOKEN(STR_DATE_PROMPT),
406 help = STRING_TOKEN(STR_DATE_YEAR_HELP),
407 minimum = 1998,
408 maximum = 2099,
409 step = 1,
410 default = 2004,
411
412 month varid = Date.Month, // Note that it is a member of NULL, so the RTC will be the system resource to retrieve and save from
413 prompt = STRING_TOKEN(STR_DATE_PROMPT),
414 help = STRING_TOKEN(STR_DATE_MONTH_HELP),
415 minimum = 1,
416 maximum = 12,
417 step = 1,
418 default = 1,
419
420 day varid = Date.Day, // Note that it is a member of NULL, so the RTC will be the system resource to retrieve and save from
421 prompt = STRING_TOKEN(STR_DATE_PROMPT),
422 help = STRING_TOKEN(STR_DATE_DAY_HELP),
423 minimum = 1,
424 maximum = 31,
425 step = 0x1,
426 default = 1,
427
428 enddate;
429
430 time hour varid = Time.Hours, // Note that it is a member of NULL, so the RTC will be the system resource to retrieve and save from
431 prompt = STRING_TOKEN(STR_TIME_PROMPT),
432 help = STRING_TOKEN(STR_TIME_HOUR_HELP),
433 minimum = 0,
434 maximum = 23,
435 step = 1,
436 default = 0,
437
438 minute varid = Time.Minutes, // Note that it is a member of NULL, so the RTC will be the system resource to retrieve and save from
439 prompt = STRING_TOKEN(STR_TIME_PROMPT),
440 help = STRING_TOKEN(STR_TIME_MINUTE_HELP),
441 minimum = 0,
442 maximum = 59,
443 step = 1,
444 default = 0,
445
446 second varid = Time.Seconds, // Note that it is a member of NULL, so the RTC will be the system resource to retrieve and save from
447 prompt = STRING_TOKEN(STR_TIME_PROMPT),
448 help = STRING_TOKEN(STR_TIME_SECOND_HELP),
449 minimum = 0,
450 maximum = 59,
451 step = 1,
452 default = 0,
453
454 endtime;
455
456 date year varid = Date.Year, // Note that it is a member of NULL, so the RTC will be the system resource to retrieve and save from
457 prompt = STRING_TOKEN(STR_DATE_PROMPT),
458 help = STRING_TOKEN(STR_DATE_YEAR_HELP),
459 minimum = 1939,
460 maximum = 2101,
461 step = 1,
462 default = 1964,
463
464 month varid = Date.Month, // Note that it is a member of NULL, so the RTC will be the system resource to retrieve and save from
465 prompt = STRING_TOKEN(STR_DATE_PROMPT),
466 help = STRING_TOKEN(STR_DATE_MONTH_HELP),
467 minimum = 1,
468 maximum = 12,
469 step = 1,
470 default = 1,
471
472 day varid = Date.Day, // Note that it is a member of NULL, so the RTC will be the system resource to retrieve and save from
473 prompt = STRING_TOKEN(STR_DATE_PROMPT),
474 help = STRING_TOKEN(STR_DATE_DAY_HELP),
475 minimum = 1,
476 maximum = 31,
477 step = 0x1,
478 default = 1,
479
480 enddate;
481
482 time hour varid = Time.Hours, // Note that it is a member of NULL, so the RTC will be the system resource to retrieve and save from
483 prompt = STRING_TOKEN(STR_TIME_PROMPT),
484 help = STRING_TOKEN(STR_TIME_HOUR_HELP),
485 minimum = 0,
486 maximum = 23,
487 step = 1,
488 default = 0,
489
490 minute varid = Time.Minutes, // Note that it is a member of NULL, so the RTC will be the system resource to retrieve and save from
491 prompt = STRING_TOKEN(STR_TIME_PROMPT),
492 help = STRING_TOKEN(STR_TIME_MINUTE_HELP),
493 minimum = 0,
494 maximum = 59,
495 step = 1,
496 default = 0,
497
498 second varid = Time.Seconds, // Note that it is a member of NULL, so the RTC will be the system resource to retrieve and save from
499 prompt = STRING_TOKEN(STR_TIME_PROMPT),
500 help = STRING_TOKEN(STR_TIME_SECOND_HELP),
501 minimum = 0,
502 maximum = 59,
503 step = 1,
504 default = 0,
505
506 endtime;
507
508 grayoutif
509 ideqval Date.Day == 21
510 AND
511 ideqval Date.Month == 8;
512
513 hidden value = 32, key = 0x7777;
514
515 endif; // grayoutif
516
517 suppressif
518 ideqval Date.Day == 8
519 AND
520 ideqval Date.Month == 21;
521
522 hidden value = 32, key = 0x7777;
523
524 endif; // suppressif
525
526
527 hidden value = 32, key = 0x1234;
528
529 inconsistentif prompt = STRING_TOKEN(STR_ERROR_POPUP),
530 ideqval MyIfrNVData.HowOldAreYouInYearsManual == 4
531 endif;
532
533 inconsistentif prompt = STRING_TOKEN(STR_ERROR_POPUP),
534 ideqvallist MyIfrNVData.HowOldAreYouInYearsManual == 1 2 3 4
535 endif;
536
537 inconsistentif prompt = STRING_TOKEN(STR_ERROR_POPUP),
538 ideqid MyIfrNVData.HowOldAreYouInYearsManual == MyIfrNVData.MyFavoriteNumber
539 endif;
540
541 // grayoutif
542 //
543 // If the day is 31 AND months is any of the following 2, 4, 6, 9, 11
544 //
545 inconsistentif prompt = STRING_TOKEN(STR_ERROR_POPUP),
546 ideqval Date.Day == 31
547 AND
548 ideqvallist Date.Month == 2 4 6 9 11
549 endif;
550
551 //
552 // If the day is 30 AND month is 2
553 //
554 inconsistentif prompt = STRING_TOKEN(STR_ERROR_POPUP),
555 ideqval Date.Day == 30
556 AND
557 ideqval Date.Month == 2
558 endif;
559
560 //
561 // If the day is 29 AND month is 2 AND it year is NOT a leapyear
562 //
563 inconsistentif prompt = STRING_TOKEN(STR_ERROR_POPUP),
564 ideqval Date.Day == 0x1D
565 AND
566 ideqval Date.Month == 2
567 AND
568 NOT
569 ideqvallist Date.Year == 2004 2008 20012 20016 2020 2024 2028 2032 2036
570 endif;
571
572 checkbox varid = MyIfrNVData.ChooseToActivateNuclearWeaponry,
573 prompt = STRING_TOKEN(STR_CHECK_BOX_PROMPT),
574 help = STRING_TOKEN(STR_CHECK_BOX_HELP),
575 flags = 1,
576 key = 0,
577 endcheckbox;
578
579 text
580 help = STRING_TOKEN(STR_TEXT_HELP),
581 text = STRING_TOKEN(STR_TEXT_TEXT_1);
582
583 text
584 help = STRING_TOKEN(STR_TEXT_HELP),
585 text = STRING_TOKEN(STR_TEXT_TEXT_1),
586 text = STRING_TOKEN(STR_TEXT_TEXT_2),
587 flags = 0,
588 key = MY_TEXT_KEY;
589
590 goto 1,
591 prompt = STRING_TOKEN(STR_GOTO_FORM1), //MainSetupPage // this too has no end-op and basically it's a jump to a form ONLY
592 help = STRING_TOKEN(STR_GOTO_HELP);
593
594 endform;
595
596 form formid = 3, title = STRING_TOKEN(STR_FORM3_TITLE); // note formid is a variable (for readability) (UINT16) - also added Form to the line to signify the Op-Code
597
598 grayoutif ideqval MyIfrNVData.SuppressGrayOutSomething == 0x1;
599 text
600 help = STRING_TOKEN(STR_TEXT_HELP),
601 text = STRING_TOKEN(STR_TEXT_TEXT_1);
602
603 endif; //end grayoutif
604
605 text
606 help = STRING_TOKEN(STR_TEXT_HELP),
607 text = STRING_TOKEN(STR_TEXT_TEXT_1);
608
609 endform;
610
611 form formid = 4, title = STRING_TOKEN(STR_FORM3_TITLE);
612
613 endform;
614
615 form formid = 0x1234, // Dynamically created page,
616 title = STRING_TOKEN(STR_DYNAMIC_TITLE); // note formid is a variable (for readability) (UINT16) - also added Form to the line to signify the Op-Code
617
618 label 0x1234;
619
620 endform;
621
622 endformset;