Herunterladen Inhalt Inhalt Diese Seite drucken

Beispiel 1: Normale Tastatur Mit Einem Eingabefeld; Keyboard / Tastatur - ELECTRONIC ASSEMBLY EA uniTFT Serie Bedienungsanleitung

Inhaltsverzeichnis

Werbung

Keyboard - Befehlsbeispiele

Beispiel 1: normale Tastatur mit einem Eingabefeld

Es wird eine normale QUERTZ-Tastatur gezeichnet. Die Eingaben landen in einer Editbox
Macro: Keyboard Input
/**Define missing Styles, for special Keys, like Shift, Return....
#CBD
5, 15,1, 100,50,
White (pressed), Corner Radius = 8
#CBO
5, 0,0,
110
/**Pressed zoom behaviour: Resize 110%
#CBT
5,
9
/**use Textstyle 9 (Nimbus/Arial 20)
#CTA
9,
1
/**Default is left justified, we need centered so redefine alignment
/**Define Keyboard
/**Keyboard 1 is default keyboard with small letters
#KDB
1,
1,"^1234567890ß\7\8";"\6qwertzuiopü+\D\D";"\5asdfghjklöä#\B";"<yxcvbnm,.-
\L\C";"
"
/**Keyboard 2 is showing the upper case letter (Cpas lock / Shift pressed)
#KDB
1,
2,'°!"§$%&/()=?
\7\8';"\6QWERTZUIOPÜ*\D\D";"\5ASDFGHJKLÖÄ'\B";"<YXCVBNM;:_\L\C";"
/**Define Labels for special Key. ButtonStyle =0 means use Style for Special keys
(see #KKP). You can overwrite this setting to set special Style for a code.
#KDS
1
5,0"Shift"; 6,0"Caps"; 7,0"Del"; 8,0"Back"; 11,0"Ins"; 12,0"Clear";
13,0"Return";
21,0"Undo"
/**Place Keyboard
#KKP
1, 1,5, (scrW()/2),0,8, 5,(scrW())
symmetry problems we place the keyboard with Anchor 8 in the middle of screen.
/**Define Editbox
#SEP
2, 14,
(scrW()/2),350,8
#SEK
1,
2
/**Connect Keyboard (ObjID=1) with Editbox
#SEA
2
/**Activate Editbox
Technische Änderungen vorbehalten. Wir übernehmen keine Haftung für Druckfehler und
Applikationsbeispiele
EA uniTFT050-A
8
/**Create new Style, use Grey gradient (not pressed), Grey-
/**Size: Maximum size of screen, to avoid
400,70,10,2,
10
/**Position, centred above Keyboard
"
146 / 172

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis