Мои Конспекты
Главная | Обратная связь

...

Автомобили
Астрономия
Биология
География
Дом и сад
Другие языки
Другое
Информатика
История
Культура
Литература
Логика
Математика
Медицина
Металлургия
Механика
Образование
Охрана труда
Педагогика
Политика
Право
Психология
Религия
Риторика
Социология
Спорт
Строительство
Технология
Туризм
Физика
Философия
Финансы
Химия
Черчение
Экология
Экономика
Электроника

Editing Display properties





Помощь в ✍️ написании работы
Поможем с курсовой, контрольной, дипломной, рефератом, отчетом по практике, научно-исследовательской и любой другой работой

To edit the display properties of a selected TField component, click the Properties tab on the Object Inspector window. The following table summarizes display properties that can be edited. Not all properties appear for all TField descendents.

 

Table 3.7 TField properties

Property Purpose
Alignment Displays contents of field left justified, right justified, or centered within a data-aware component.
Calculated True, field value can be calculated by a CalcFields method at run time. False, field value is determined from the current record.
Currency True, numeric field displays monetary values. False, numeric field does not display monetary values.
DisplayFormat Specifies the format of data displayed in a data-aware component.
DisplayLabel Specifies the column name for a field in a TDBGrid.
DisplayWidth Specifies the width, in characters, of a grid column that display this field.
EditFormat Specifies the edit format of data in a data-aware component.
EditMask Limits data-entry in an editable field to specified types and ranges of characters, and specifies any special, non-editable characters that appear within the field (hyphens, parentheses, etc.).
FieldName Specifies the actual name of column in the physical table from which the TField component derives its value and data type.
Index Specifies the order of the field in a dataset.
MaxValue Specifies the maximum numeric value that can be entered in an editable numeric field.
MinValue Specifies the minimum numeric value that can be entered in an editable numeric field.
Name Specifies the component name of the TField component within Delphi.
ReadOnly True: Field can be displayed in a component, but cannot be edited by a user. False: Field can be displayed and edited.
Size Specifies the maximum number of characters that can be displayed or entered in a string-based field, or the size of byte and var byte fields.
Tag Long integer bucket available for programmer use in every component as needed.
Visible True: Field is displayed by a TDBGrid component. User-defined components can also make display decisions based on this property. False: Field is not displayed by a TDBGrid component.

Not all properties are available to all TField components. For example, a component of type TStringField does not have Currency, MaxValue, or DisplayFormat properties. A component of type TFloatField does not have a Size property.

Boolean properties, those that can be toggled between True and False, can be changed by double-clicking the property in the Object Inspector. Other properties require you to enter values or pick from drop-down lists in the Object Inspector. All TField properties can also be manipulated programmatically.

While the purpose of most properties is straight-forward, some properties, such as Calculated, require additional programming steps to be useful. Others, such as DisplayFormat, EditFormat, and EditMask, are interrelated; their settings must becoordinated. For more information about using the Calculated property, see “Programming a calculated field.” For more information about using DisplayFormat, EditFormat, and EditMask, see “Formatting fields.”

 

Доверь свою работу ✍️ кандидату наук!
Поможем с курсовой, контрольной, дипломной, рефератом, отчетом по практике, научно-исследовательской и любой другой работой



Поиск по сайту:







©2015-2020 mykonspekts.ru Все права принадлежат авторам размещенных материалов.