JVCL Help:TJvCustomTMTimeline.OnWriteObject

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Occurs when an object associated with a date needs to be written to a stream.


Pascal

 TJvObjectWriteEvent = procedure (Sender: TObject; Stream: TStream; const AObject: TObject) ofobject;
propertyOnWriteObject: TJvObjectWriteEvent;


Parameters

Parameters Description
AObject The new object to be associated with a date.
Stream Specifies the stream to which to write the custom data.
Sender The timeline view control that is writing the timeline data from the stream.


Description

Use OnWriteObject to write a handler that writes an object associated with a particular date, to the specified stream. The OnWriteObject may save custom date, so an OnReadObject handler can initialize a new object by reading that custom data from a stream and setting that new object's properties accordingly.
When you call SaveToStream or SaveToFile, the component fires an OnWriteObject event for each date that has an associated object.


See Also

TJvCustomTMTimeline.OnReadObject, TJvCustomTMTimeline.SaveToFile, TJvCustomTMTimeline.SaveToStream


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page