Delphi XE6 Firemonkey: StyleLookup inherit text value as well


I am using styles for first time and get strange behavior.
The font properties etc inherit fine but my text value is replaced with the text value from the referenced TLabel.
Am I doing something wrong?

km = new TLabel(Bord);
km->Parent = Bord;
km->Position->X = 42;
km->Position->Y = 7;
km->Width = 38;
km->Height = 14; //up to here these properties are fine
km->StyleLookup = “style_km”; //inherit style from other TLabel
km->Text = “9009 km”; //this is ignored – the text from other TLabel displays at runtime

Comments are closed.