Difference between revisions of "A1 Demo Code Snippet"
Line 22: | Line 22: | ||
display( "edit - field length: 7; move the arrow keys; press END, HOME... ", 13, 5, 0); | display( "edit - field length: 7; move the arrow keys; press END, HOME... ", 13, 5, 0); | ||
− | // | + | // str: "abcdefghijklmnopqrstuvwxyz" |
+ | // row: 16, column: 5, field length (4th parameter): 7 | ||
key = edit(str, 16, 5, 7, 80, &insert, &offset, &index); | key = edit(str, 16, 5, 7, 80, &insert, &offset, &index); | ||
</pre> | </pre> |
Latest revision as of 19:13, 9 September 2013
display("abcdefghijklmnopqrstuvwxyz (string)", 4, 5, 0); display( "display - field length: 5", 6, 10+5+7, 0); // field length (last parameter): 5, row: 7 display("abcdefghijklmnopqrstuvwxyz", 7, 5, 5); display( "display - field length: 15", 8, 15+7, 0); // field length: 15, row: 9 display("abcdefghijklmnopqrstuvwxyz", 9, 5, 15); display( "display - field length: 26", 10, 15+7, 0); // field length: 0, row: 11 display("abcdefghijklmnopqrstuvwxyz", 11, 5, 26); // row: 13, column: 5 display( "edit - field length: 7; move the arrow keys; press END, HOME... ", 13, 5, 0); // str: "abcdefghijklmnopqrstuvwxyz" // row: 16, column: 5, field length (4th parameter): 7 key = edit(str, 16, 5, 7, 80, &insert, &offset, &index);