DISCLAIMER: This video is boring to the average YouTube viewer.
We show an example of rolling text. For this we write the text in an edit. If the text changes, we calculate the duration (number of characters x 55%), the length (LastPoint) and the starting point of the animation. The animation is carried out by moving the points (DummyRoll) on the X axis. We set the color via StyleLookup on listboxheaderlabel.
Tutorial: PathLabel in FireMonkey (Delphi DX 10.4.1 Sydney) auf Windows
Wir zeigen ein Beispiel für rollenden Text. Hierzu schreiben wir den Text in ein Edit. Wenn sich der Text ändert, berechnen wir die Dauer (Zeichenanzahl x 55%), die Länge (LastPoint) und den Startpunkt der Animation. Die Ausführung der Animation erfolgt durch die Verschiebung der Punkte (DummyRoll) auf der X-Achse. Die Farbe stellen wir über StyleLookup auf listboxheaderlabel.
MeasureText, TextToPath, TextWidth, FloatAnimation
#FireMonkey #Delphi