Error reading TFont.Name:Invalid property value. Code for this is below.
PPanel.Background := XMLStorage.ReadColor('ButtonBackground', 'Colour', clSilver);
PPanel.PCaption[1].Text := XMLStorage.ReadString('LabelOne', 'Caption', 'TRCODE' );
PPanel.PCaption[1].Top := XMLStorage.ReadInteger('LabelOne', 'Top', 1);
PPanel.PCaption[1].Left := XMLStorage.ReadInteger('LabelOne', 'Left', 1);
PPanel.PCaption[1].Font := XMLStorage.ReadFont('LabelOne', 'Font', TFont.Create);
PPanel.PCaption[1].Align := XMLStorage.ReadInteger('LabelOne', 'Alignment', 1);
PPanel.PCaption[1].AutoSize := XMLStorage.ReadBool('LabelOne', 'AutoSize', True);
PPanel.PCaption[1].Visible := XMLStorage.ReadBool('LabelOne', 'Visible', True);
This worked OK with my earlier Delphi 10.4.2 and LMDtools ( not sure version but likely 2019 )
The XML file its trying to load is as below... full file attached
<LabelOne>
<Caption Type="String">BRNAME</Caption>
<Caption Type="string">TRCODE</Caption>
<Top Type="Integer">1</Top>
<Left Type="Integer">1</Left>
<Font Type="Font">
<Charset Type="Identifier">DEFAULT_CHARSET</Charset>
<Color Type="Identifier">clRed</Color>
<Height Type="Integer">-15</Height>
<Name Type="String">Tahoma</Name>
<Size Type="Integer">11</Size>
<Style Type="Set">fsBold</Style>
</Font>
<Alignment Type="Integer">2</Alignment>
<AutoSize Type="Identifier">-1</AutoSize>
<Visible Type="Identifier">-1</Visible>
</LabelOne>
Comments