Skip to main content

TdxBarManager.LoadFromStream(TStream) Method

Loads the bar manager’s settings from a stream.

Declaration

procedure LoadFromStream(AStream: TStream);

Parameters

Name Type
AStream TStream

Remarks

Call this LoadFromStream method to load the bar manager’s settings from the stream specified by the AStream parameter. If nil is passed for the parameter, the LoadFromStream method does nothing. The bar manager’s settings can be stored in a stream using the SaveToStream method.

Please refer to the description of the SaveToIniFile method for details on which bar manager’s settings are saved to a stream.

New bar items – which were added to a toolbar after storing its settings to the registry, INI file or stream – will be visible after restoring the settings.

Note

Before loading the settings using the LoadFromStream method ensure that the Position property of the source stream points to the same position as it was prior to calling the SaveToStream method.

See Also