Einzelnen Beitrag anzeigen

Andreas L.

Registriert seit: 23. Mai 2011
Ort: Furth im Wald
308 Beiträge
 
Delphi 11 Alexandria
 
#7

AW: SVG-Komponente oder Unit für Delphi

  Alt 10. Nov 2019, 10:30
Kann nicht das TPath aus FMX SVG Laden und anzeigen?
In die Data-Property von TPath kann man tatsächlich SVG-XML eintragen. Aber die Komponente behält das XML nicht. Es wird auch nichts angezeigt. Via Code passiert auch nichts:

  Path1.Data.Data := Memo1.Lines.Text; Was mache ich falsch?

EDIT:

In der Online-Hilfe steht das man über diese Property kein XML laden kann.
Zitat:
The Data property supports only a comma-separated list of instructions defined for the d attribute of the path element in SVG 1.0.

In SVG 1.0, the d attribute contains the moveto, line, curve, arc, and closepath instructions. All instructions are expressed as one character (for example, a moveto is expressed as an M).
http://docwiki.embarcadero.com/Libra...cts.TPath.Data

Aber wie soll es dann gehen? Es gibt keine Load, Set, Open, Read, Get oder sonstwas Methode.
Andreas Lauß
Blog

Geändert von Andreas L. (10. Nov 2019 um 10:34 Uhr)
  Mit Zitat antworten Zitat