TDBRichViewEdit.AutoDisplay

<< Click to display table of contents >>

TDBRichViewEdit.AutoDisplay

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

property AutoDisplay: Boolean;

If AutoDisplay is True, the TDBRichViewEdit 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 TDBRichViewEdit 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 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.