TDBSRichViewEdit.AutoDisplay

<< Click to display table of contents >>

TDBSRichViewEdit.AutoDisplay

Determines whether to automatically display the contents of field in the TDBSRichViewEdit control.

property AutoDisplay: Boolean;

This property provides access to the RichViewEdit's property of the same name.

If AutoDisplay is True, the TDBSRichViewEdit control automatically displays new data when the underlying BLOB field changes (such as when moving to a new record).

If AutoDisplay is False, the control shows only the field name whenever the underlying BLOB field changes. To display the data, the user can double-click on the control.

The effect of AutoDisplay is not purely cosmetic. When AutoDisplay is False, if the data changes, the content of TDBSRichViewEdit document changes to the name of the field (written in the 0th text and paragraph style). Thus, if AutoDisplay is False, applications should be cautious about using the methods for saving contents to ascertain the value of the underlying field.

Calling the RichViewEdit.LoadField method causes component to update to the current value of the BLOB field. This change will also be reflected in the appearance of the control on screen.

Change the value of AutoDisplay to False if the automatic loading of BLOB fields seems to take too long.