TxiBaseControlNode.ReadParams method

Unit: XIBase

Class: TxiBaseControlNode

Declaration:

procedure ReadParams(aNode: IXmlNode); virtual; abstract;

Reads the data required by the control from the aNode XML node. These are not values edited by the control but control parameters to tune it. For example, for an edit control, ReadParams would obtain width of the input field or the value of the flag that enables the password input mode.

Note: see the IXmlNode interface reference in the SimpleXML help file.

Example:

procedure TMyNode.ReadParams(aNode: IXmlNode);
begin
 inherited;
 f_Height := aNode.GetIntAttr('height', 60);
 f_NeededString := aNode.GetAttr('mystring', 'default value');
end;

 

The CHM file was converted to HTML by chm2web software.