Skip to main content

TdxCustomNavBar.LoadFromStream(TStream,Boolean) Method

Loads the control’s layout from the specified stream.

Declaration

procedure LoadFromStream(AStream: TStream; LoadStyles: Boolean = True);

Parameters

Name Type
AStream TStream
LoadStyles Boolean

Remarks

Use the LoadFromStream method to load the control’s layout from a stream. Note that settings must have been saved using the SaveToStream method.

The AStream parameter specifies the stream from which to load settings. AStream can be any TStream descendant. For instance, you can use the TFileStream object to save/restore settings using a file. The LoadStyles parameter specifies whether to load style settings. It is optional and defaults to True. Note: if style settings haven’t been saved by the SaveToStream method, the LoadStyles parameter value is ignored.

If storing settings in a stream doesn’t suit your needs, refer to the SaveToIniFile and SaveToRegistry methods.

See Also