Macro: Define Radiogroup
/**Place 3 picture buttons as switches
#TSP
101, 4,
"Radio 1
#TSP
102, 4,
"Radio 2
#TSP
103, 4,
"Radio 3
#TRA
100,
101-103
#OFP
15, 10,3,
100
#TCS
2,
101
/**Only the pixels with alpha channel >0 are touchable, so it's only the knop and
text that are touchable
/**We want the background behind the strings as active area, too
#CFC
300, $000000,
#OFP
300,
2,10 101-103
button
#MDT
100,
"tm_Radio"
called every time
#MRN
"tm_Radio"
Touch-Macro: Radio
/**Place String to show which button is active
#SFP
200, 1, 300,200,4,
active Obj-Id of Radio-Group
ID=101, we need to substract 100
Beispiel 3: Slider als Toucheingabe
Ein gebogener Bargraph wird plaziert, als Toucheingabe deklariert. Die Toucheinstellung wird als digitaler String
visualisiert.
Technische Änderungen vorbehalten. Wir übernehmen keine Haftung für Druckfehler und
Applikationsbeispiele
EA uniTFT050-A
"; "";
40,300,4
"; "";
40,200,4
"; "";
40,100,4
/**Define a radiogroup and add buttons
/**Add a rectangular frame / background to the radiogroup.
/**Use predefined Grey->LightGrey color gradient
/**Set Button 1 as active in the group as default
1
/**define new drawstyle. Color is not intressting:
/**we set Alpha to 1 so transparent, but touchable
/**Add a rectangular frame / background behind each touch
/**Connect whole Radiogroup to one touch macro, that is
/**a button down event occurs
/**Call that touchmacro manually to set the default values
"Active button:
%d"; (butR(100)-100)
/**butR(ObjID) returns
/**As first button has
139 / 172