rvico TRichView Reference | TDBRichView

TDBRichView.AutoDisplay

Top  Previous  Next

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

property AutoDisplay: Boolean;

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


TRichView © trichview.com