Herunterladen Inhalt Inhalt Diese Seite drucken

Beispiel 2: 10Er Tastatur (Animiert) - ELECTRONIC ASSEMBLY EA uniTFT Serie Bedienungsanleitung

Inhaltsverzeichnis

Werbung

Beispiel 2: 10er Tastatur (animiert)

Es wird eine Editbox angezeigt, die beim aktivieren (durch Touch) automatisch eine Tastatur einblendet
Macro: Keyboard with numbers
/**Define missing Styles, for special Keys, like Clr, Return....
#CBD
5, 15,1, 100,50,
White (pressed), Corner Radius = 8
#CBO
5, 0,0,
110
/**Pressed zoom behaviour: Resize 110%
#CBT
5,
5
/**use Textstyle 5 (Nimbus/Arial 30 centred)
/**Define Keyboard
#KDB
1,
1,"789\C";"456+";"123-";"00,\D"
#KDS
1
12,0"Clr";
and '-' to use special Style, we need to redefine these codes
/**Place Keyboard
#KKP
1, 1,5, (scrW()/2),0,8, 5, 0, 300,
if Editbox is activated by touch
#AOA
1, 102, (objX(1,8)), (-objH(1))
middle of screen, but object is placed directly outside the screnn (bottom)
/**Define Editbox
#SEP
2, 14,
(scrW()/2),350,8
#SEK
1,
2
/**Connect Keyboard (ObjID=1) with Editbox
#TID
1,
2
/**Make Editbox touchable
Zurück
zu den Befehlen.
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-
?+
?-
,5"+";
,5"-";
13,0,"Ok"
/**Set Animation, Postion is exactly in the
400,70,10,2,
/**Define special Keys. As we want '+'
100
/**Animation time: 1 sec to show Keyboard
10
/**Position, centred above Keyboard
147 / 172

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis