📄 history.txt
字号:
+ Added C++ Builder 6 support.
In TDBDateTimeEditEh and TDBComboBoxEh
+ Added OnCloseUp and OnDropDown events.
In TDBGridEhScrollBar class (DBGridEh.VertScrollBar, HorzScrollBar)
+ Added property ExtScrollBar: TScrollBar.
Now you can attach external scrollbars to the grid.
DBGridEh.VertScrollBar can be show in three mode:
Always show, Never show, Auto show.
Use property DBGridEh.VertScrollBar.VisibleMode.
INCOMPATIBILITY: To be more look like DBGrid component the DBGridEh component
select row (multiselect) on first mouse click when Options have dgMultiSelect
value and AllowedSelections have not gstRectangle value.
Version 2.2
In TDBEditEh
+ Added properties WantTabs and WantReturns.
INCOMPATIBILITY: In TColumnEh all published properties moved to public section.
New TDBGridColumnEh object added that inherited from TColumnEh and have
properties in published section. TDBGridEh uses TDBGridColumnEh to create
columns. You can have incompatibility if you inherit TColumnEh object.
Use TDBGridColumnEh object now.
+ Dropdown box in TDBLookupComboBoxEh and TColumnEh for look fields
now inherited from TCustomDBGridEh. Now dropdown box can have
MultiTitle, can fit columns width to window width, can have column lines
and row lines, allows to change column widths, can have sortmarkers in titles,
have event that calls when user press title, allows to change characteristics
of individual column.
RESTRICTION: In EhLIb compiled under Delphi 4 or CBuilder 4 dropdown box
can not resize or move columns or click the titles.
+ Added new unit - DBLookupGrid.Pas, contains TPopupDataGridEh component that
uses as Dropdown box in TDBLookupComboBoxEh and TColumnEh for look fields.
In TColumnEh
+ Added property DropDownBox of TColumnDropDownBoxEh type
TColumnDropDownBoxEh = class(TPersistent)
property AutoFitColWidths: Boolean;
property ColumnDefValues: TColumnDefValuesEh;
property Columns: TDBGridColumnsEh;
property Options: TDBLookupGridEhOptions;
property UseMultiTitle: Boolean;
end;
using properties of DropDownBox property you can control
dropdown box for inplace editor of columns that connected
to lookup fields.
In TDBLookupComboboxEh
+ Added
property AutoFitColWidths: Boolean;
property ColumnDefValues: TColumnDefValuesEh;
property Columns: TDBGridColumnsEh;
property Options: TDBLookupGridEhOptions;
property UseMultiTitle: Boolean;
in TLookupComboboxDropDownBoxEh object
(TDBLookupComboboxEh.DropDownBox property)
In TColumnEh and TDBLookupComboboxEh
+ Added events
OnDropDownBoxCheckButton - Occurs to define is there title can be pressed.
OnDropDownBoxDrawColumnCell - Occurs when the dropdown box needs to paint a cell.
OnDropDownBoxGetCellParams - Occurs when the dropdown box needs to paint a cell.
OnDropDownBoxSortMarkingChanged - Occurs after changing sortmarker.
OnDropDownBoxTitleBtnClick - Occurs after clicking on title button.
Version 2.1
Added new file EhLibConsts.Pas - contains resource of strings.
Added partially support of BiDirection.
Added partially support of the Double-Byte Character Set.
In TDBGridEh
+ Added property FieldColumns;
property FieldColumns[const FieldName: String]: TColumnEh; default;
So you can use next syntax to access column by
filed name: DBGridEh1['FieldName']
In TDBEditEh, TDBDateTimeEditEh, TDBComboBoxEh, TDBNumberEditEh and TColumnEh
added property
+ EditButtons of TEditButtonsEh type.
Class TEditButtonsEh is a collection of TEditButton classes.
So the edit controls and columns can have several edit buttons.
In TDropDownBoxEh added property
+ SpecRow of TSpecRowEh type.
In TColumnEh added property
+ DropDownSpecRow of TSpecRowEh type.
TSpecRowEh = class(TPersistent)
property CellsText: String;
property Color: TColor;
property Font: TFont;
property Value: Variant;
property Visible: Boolean;
property ShortCut: TShortCut
property ShowIfNotInKeyList: Boolean;
end;
TSpecRowEh represent the special row in dropdown box for lookup
fields in column of DBGridEh and in TDropDownBoxEh class of
TDBLookupComboboxEh component. This row will be active when lookup
field or lookupcombobox have value equals specrow value or when
value not in list of key value.
* In the OnButtonClick event for TDBComboBoxEh,
TDBLookupComboboxEh, TDBDateTimeEditEh the Sender parameter is
TEditButtonControlEh object. Use TEditButtonControlEh(Sender).Parent
syntax to access the edit control whose button have been clicked.
Version 2.0
EhLib 2.0 does not support Delphi 3 or C++ Builder 3.
In TDBGridEh
+ For columns that attached to lookup Fields it support
possibility of changing values if TField.KeyFields and
TField.LookupKeyFields is kept a list of several
names of fields (list is separated by semicolon).
+ In TDBGridEhOption type (OptionsEh propery) dghRowHighlight
value is added - it allows to highlight current record.
+ Added crpDropDownRowsEh and crpDropDownWidthEh values
in TColumnEhRestoreParam type, it allows to save and restore
DropDownRows and DropDownWidth properties of TColumnEh
in/from the registry or ini file.
+ Added property AllowedSelections: TDBGridEhAllowedSelections;
TDBGridEhAllowedSelections = set of
(gstRecordBookmarks, gstRectangle, gstColumns, gstAll);
Defines what types of selection is available in grid.
dgMultiSelect value in Options property also affects
available of selection.
+ Added property ColumnDefValues: TColumnDefValuesEh
TColumnDefValuesEh = class(TPersistent)
AlwaysShowEditButton: Boolean
EndEllipsis: Boolean
AutoDropDown: Boolean
DblClickNextVal: Boolean
ToolTips: Boolean
DropDownSizing: Boolean
DropDownShowTitles: Boolean
Title.Alignment: TAlignment
Title.Color: TColor
Title.TitleButton: Boolean
Title.EndEllipsis: Boolean
Title.ToolTips: Boolean
Title.Orientation: TTextOrientationEh
defines default values for newly created colonies.
In TColumEh
+ Added OnNotInList event. Operates when user enter
a text not kept in the list of values. If this event
is assigned then user is automatically allowed to enter
a text not kept in the list. Event makes sense if row
is based on lookup field or PickList is filled or
PickList and KeyList is filled.
+ Added OnGetCellParams event:
TGetColCellParamsEventEh = procedure (Sender: TObject;
EditMode: Boolean; Params: TColCellParamsEh) of object;
TColCellParamsEh = class
property Col:Longint;
property Row:Longint;
property State: TGridDrawState;
property Font: TFont read FFont;
property Background: TColo;
property Alignment: TAlignment;
property ImageIndex: Integer;
property Text: String read;
property CheckboxState: TCheckBoxState;
property ReadOnly: Boolean;
end;
Requests the parameters of cell before draw/editing.
+ Added OnUpdateData event:
TColCellUpdateDataEventEh = procedure(Sender: TObject;
var Text: String; var Value: Variant;
var UseText: Boolean; var Processed: Boolean) of object;
Operates when writing data from InplaceEditor in DataSet field.
You can change text or value, UseText defines what parameter
is used for writing: Text or Value. You may themselves write
data to the field and sets Processed in True.
+ Added OnEditButtonClick event:
TButtonClickEventEh = procedure(Sender: TObject;
var Handled: Boolean) of object;
+ Added OnEditButtonDown event:
TButtonDownEventEh = procedure(Sender: TObject; TopButton: Boolean;
var AutoRepeat: Boolean; var Handled: Boolean) of object;
TopButton - when style of the button ebsUpDownEh, defines
that pressed upper button.
AutoRepeat - repeat events if mouse is keeping pressed.
In TDBSumListProducer
* State Of working group operations goCount is changed. When in
TDBSum installed by GroupOperation = goCount and
FieldName <> '' that SumValue will contain an amount of records
for which field <FieldName> is not Null.
In TDBLookupComboboxEh
* Component has changed an ancestor, so possible inconsistency of
functioning with the preceding version.
+ Supports working with lookup fields that containing in
TField.KeyFields and TField.LookupKeyFields properties the list of
the several names of fields, in the same way possible enter a list
of several names of fields in DataField and KeyField properties of
combobox. List of field names must be separated by semicolon
(For instance: 'CustNo;EmpNo').
+ Added OnButtonDown event:
TButtonDownEventEh = procedure(Sender: TObject; TopButton: Boolean;
var AutoRepeat: Boolean; var Handled: Boolean) of object;
TopButton - when style of the button ebsUpDownEh, defines
that pressed upper button.
AutoRepeat - repeat events if mouse is keeping pressed.
Added 4 new components:
TDBEditEh - to edit text values.
TDBDateTimeEditEh - to edit date or time values.
TDBComboBoxEh - to edit text values with capacity to
select values from list.
TDBNumberEditEh - to edit numeric values.
Common features in all components.
Can works as in data-aware mode as in usual not data-aware mode.
If DataField and DataSource properties is not assigned then
component works in usual not data-aware mode.
Have Flat and AlwaysShowBorder properties to show
in the flat mode.
Have Text (String type) and Value (Variant type) properties.
Moreover Value can accept Null value or:
String type for TDBEditEh and TDBComboBoxEh,
TDateTime, TDate, TTime, Double type for TDBDateTimeEditEh,
all numeric types for TDBNumberEditEh.
Have an OnUpdateData event that occurs before writing data
in DataSet field or in internal variable when not data-aware mode.
Event is call when component lose the focus or
when DataSet send PostData event.
Individual features of components.
TDBEditEh, TDBComboBoxEh and TDBLookupComboboxEh have WordWrap
propertiy to show and edit multiline text. Don't forget to hang
up AutoSize propertiy if you want to change and fix a height of
the control.
Version 1.7
+ Added Delphi 6 support.
In TDBLookupComboboxEh
+ Added AlwaysShowBorder propery.
* Some bugfixes.
Version 1.61
In TDBLookupComboboxEh
+ Added OnNotInList event. Event occurs when the user enters a value
that isn't in the lookup list.
In TDBSumListProducer
+ Added group operation goAvg to calculate average values.
In TPrintDBGridEh
+ Added OnBeforePrint and OnAfterPrint events to write specifyed action
before or after grid have been printed/previewed.
In TDBGridEh
+ Added possibility to set aggregate fields in footers at design time.
So you can use more powerful mechanism of aggregate values imbedded
in TClientDataSet component.
* Some bugfixes.
Version 1.6
+ Added new component TDBLookupComboboxEh:
Provides all functionality of TDBLookupCombobox and adds
several new features as follows:
Can have flat style.
Allows assign values as to KeyValue property just and to
display Text property.
Allows to type (assign) values to Text property not
contained in data list (Style = csDropDownEh).
Allows to hold KeyValue and Text as not affecting to
each other values. Take effect when KeyField, ListField,
ListSource, DataField and DataSource properties is empty.
Drop down list can:
Show titles,
Have sizing grip,
Automaticaly set width as sum of DisplayWidth of
the list fields (Width = -1),
Automaticaly drops on user pressed the key.
Edit button can:
Show DropDown, Ellipsis or Bitmap image.
Have specified width.
Have additional events: OnKeyValueChanged, OnButtonClick.
In TDBGridEh
+ In Flat mode shows edit buttons just as flat.
In TColumnEh
+ Added DropDownShowTitles property.
* Some bugfixes.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -