Control Name | Unit | Class |
RX Database Labels | dbcombo | TDBStatusLabel |
Description:
TDBStatusLabel is a data-aware label used to show state
information or position information about DataSources. It can be
used on any dataset to report the current state, i.e. Inactive,
Browse, Edit, Insert, Set Key, Calculating Fields; or on Paradox
and dBase databases or on memory tables (TMemoryTable component)
to show logical or physical record position and number of
records.
When the Style property is lsState (by default) the <dataset_name>: <dataset_state> mnemonic is used to place the state label for the current state.
When the Style property is lsRecordNo the <current_record_number>:<full_record_count> mnemonic is used to place the record number and the total number of records within the string. TDBStatusLabel requires the DataSource property to be set to bind it to a dataset.
Property
Captions
Declaration:
Captions: TStrings;
Property
DataSetName
Declaration:
DataSetName: string;
Name contains the name of the dataset as referenced by other components.
Property
EditColor
Declaration:
EditColor: TColor;
When the database is in edit mode, TDBStatusLabel changes to the colour specified by EditColor.
Property
GlyphAlign
Declaration:
GlyphAlign: TGlyphAlign;
This property determines the location of a glyph displayed within a status label. The glyph can be placed either to the left (the default) or to the right of the caption.
Property
Layout
Declaration:
Layout: TTextLayout;
Layout specifies the vertical placement of the text within the label when the AutoSize property is False. Set Layout to specify how the text of the label is placed within the ClientRect of the label control .
Layout can be one of the following values:
- tlTop - The text appears at the
top of the label.
- tlCenter - The text is vertically centered in the label.
- tlBottom - The text appears along the bottom of the label.
Property
ShowOptions
Declaration:
ShowOptions: TDBLabelOptions;
Use this property to hide and show the caption and glyph of a TDBStatusLabel component.
Property
Style
Declaration:
Style: TDBLabelStyle;
Style defines the style defined by:
- IsState - TDBStatusLabel displays the state of the table.
- IsRecNo - TDBStatusLabel displays the current record number.
Event
OnGetDataName
Declaration:
OnGetDataName: TGetStringEvent;
OnGetDateName event is triggered when the OnGetDataName is called.
Index Page | About | Download
Creation Date: 4 Feb 1998 | Last Update: 16 Mar 2000