Update numeric validation patch and round out example1

This commit is contained in:
Matthew R. Wilson committed 2023-11-11 15:02:02 -08:00
1 parent 54e3008e26
commit efb8f9edf9
2 files changed
+22 -17

No files matched your search

+12 -10
View File
@@ -33,8 +33,8 @@ var screen1 = go3270.Screen{
{Row: 6, Col: 0, Content: "Password . . . ."},
{Row: 6, Col: 19, Name: "password", Write: true, Hidden: true},
{Row: 6, Col: 40}, // field "stop" character
{Row: 7, Col: 0, Content: "EmployeeId . . . ."},
{Row: 7, Col: 19, Name: "employeeId", Write: true, Highlighting: go3270.Underscore, NumericOnly: true},
{Row: 7, Col: 0, Content: "Employee ID . . ."},
{Row: 7, Col: 19, Name: "employeeID", Write: true, Highlighting: go3270.Underscore, NumericOnly: true},
{Row: 7, Col: 40}, // field "stop" character
{Row: 8, Col: 0, Content: "Press"},
{Row: 8, Col: 6, Intense: true, Content: "enter"},
@@ -50,14 +50,16 @@ var screen2 = go3270.Screen{
{Row: 4, Col: 19, Name: "fname"}, // We're giving this field a name to replace its value at runtime
{Row: 5, Col: 0, Content: "And your last name is"},
{Row: 5, Col: 22, Name: "lname"}, // We're giving this field a name to replace its value at runtime
{Row: 6, Col: 0, Name: "passwordOutput"},
{Row: 8, Col: 0, Content: "Press"},
{Row: 8, Col: 6, Intense: true, Content: "enter"},
{Row: 8, Col: 12, Content: "to enter your name again, or"},
{Row: 8, Col: 41, Intense: true, Content: "PF3"},
{Row: 8, Col: 45, Content: "to quit and disconnect."},
{Row: 11, Col: 0, Color: go3270.Turquoise, Highlighting: go3270.ReverseVideo, Content: "Here is a field with extended attributes."},
{Row: 11, Col: 42}, // remember to "stop" fields with a regular field, to clear the reverse video for example
{Row: 6, Col: 0, Content: "And your employeed ID is"},
{Row: 6, Col: 22, Name: "employeeID"}, // We're giving this field a name to replace its value at runtime
{Row: 7, Col: 0, Name: "passwordOutput"},
{Row: 9, Col: 0, Content: "Press"},
{Row: 9, Col: 6, Intense: true, Content: "enter"},
{Row: 9, Col: 12, Content: "to enter your name again, or"},
{Row: 9, Col: 41, Intense: true, Content: "PF3"},
{Row: 9, Col: 45, Content: "to quit and disconnect."},
{Row: 12, Col: 0, Color: go3270.Turquoise, Highlighting: go3270.ReverseVideo, Content: "Here is a field with extended attributes."},
{Row: 12, Col: 42}, // remember to "stop" fields with a regular field, to clear the reverse video for example
{Row: 22, Col: 0, Content: "PF3 Exit"},
}