📄 history.txt
字号:
EhLib history
Version 4.2
+ Added support of Delphi 2007.
In DBGridEh
+ Added IndicatorTitle property of TDBGridEhIndicatorTitle type:
The Upper left cell can react as button, draw the badge-triangle,
and display the dropdown menu on mouse clickling ( with possibility of
drawing global menu, which adjust using global property -
DBGridEhCenter.IndicatorTitleMenus and IndicatorTitleMenus.OnBuildIndicatorTitleMenu).
IndicatorTitle property has a next subprotperty:
DropdownMenu: TPopupMenu - The Local dropdown menu, appearing when you
press the upper left cell of the grid.
ShowDropDownSign: Boolean - Specifies whether to draw the badge-triangle.
You can set this property to show that the pressing on upper-left cell
will show the droped down menu.
TitleButton: Boolean - Specifies whether the upper left cell will act as button.
Besides the DropdownMenu will be droped down only when TitleButton = True.
UseGlobalMenu: Boolean - Specifies whether the global
DBGridEhCenter.IndicatorTitleMenus property will be use when building menu.
Added OnIndicatorTitleMouseDown event. Occurs when the mouse click on the
upper left cell of grid. The Cell must be adjusted in state of working as buttons
(IndicatorTitle.TitleButton = True). You can call DefaultIndicatorTitleMouseDown
method in this event to pass control to a global object - DBGridEhCenter.
Added OnBuildIndicatorTitleMenu event. Occurs when need to build list of menus
before menu is shown. You can call DefaultBuildIndicatorTitleMenu method
in this event to pass control to a global object - DBGridEhCenter.
Added OnCellMouseClick event. Occurs when mouse click in any cell of grid.
Event pass coordinates of the cell and offset of the mouse for upper
left corner of the cell. You can call DefaultCellMouseClick method
in this event to pass control to a global object - DBGridEhCenter.
+ In module DBGridEh.Pas appeared the new global object DBGridEhCenter of
TDBGridEhCenter type. This object is intended to manage a behaviour of all
objects of TCustomGridEh type or inherited from it. For instance, in
DBGridEhCenter you can specify the list a menu to be appearing in the
drop-down menu of the all grids when clicking on top left grid cell.
Besides, you may write the event of this global object and it will be
caused at activations of the similar event in any grid of the project.
Global object - DBGridEhCenter has a following properties and events:
IndicatorTitleMenus: Is the list of menu, which will be formed when
clicking on upper left cell of grid is occured. This property of the
global object will work for all grids, which IndicatorTitle.TitleButton = True.
(itmVisibleColumnsEh, itmCut, itmCopy, itmPaste, itmDelete, itmSelectAll).
OnBuildIndicatorTitleMenu: Occurs when need to build list of menus before
menu is shown.
OnCellMouseClick: Occurs when mouse click in any cell of grid.
OnIndicatorTitleMouseDown: Occurs when mouse click upper left cell of grid.
+ Added global variable - DBGridEhCenter. This variable controls the part of
behaviour of the grids. You can set properties, or events of this variable to
change the behaviour of all grids.
Changes in the other objects and procedures.
* The Corrections in ADODataDriverEh, SelectCommand, UpdateCommand... properties
now have a TADOCommandEh type.
* The parameters of OnAssignCommandParameter and OnGetBackUpdatedValues have been
changed in ADODataDriverEh object.
* All dfm files stores data in the text type.
* Fixed drawing lines in the gride when TColumnEh.HideDuplicated = True.
* Fixed memory leaks in the search box TDBGridEhFindDlg.
* Fixed error in the search dialogue, when invisible columns is present.
* Added support ftWideMemo.
* Fixed error of the recirculation in TPrintDBGridEh component when printing
the rows with height above of the page height.
* Fixed error when developer create new TDataDriver component on Form using
Popup menu 'Create DataDriver...' of TMemTableEh components.
+ In TDBLookupComboboxEh, Added support of the Memo fields.
* Fixed error of entering values from previous record (using Ctrl+')
when DBGridEh is connected to TMemTableEh.
Version 4.1
+ Added support of Delphi 2006 (Under VCL.Win32 and VCL.NET).
* Fixed a error of the grid twinkling in the tree mode on opening a node.
* Fixed a error of filling a list of values in the filter when
PickList and KeyList properties for the TColumnEh is filled .
* Some other bugfixes.
Version 4.0
* This version does not support Delphi 4 and C++ Builer 4 anymore.
+ New components:
TMemTableEh - dataset, which hold all data in memory.
TDataDriverEh - Delivers records in TMemTableEh and processes changed records.
TSQLDataDriverEh, TBDEDataDriverEh, TIBXDataDriverEh, TDBXDataDriverEh
and TADODataDriverEh
See detail info in AboutEhlib4_0.Txt
+ Added Action property or TBasicAction type in TEditButtonEh. So edit buttons
of the Edit controls can be associated with action.
Version 3.6
+ Added support of Delphi 2005 (Under VCL.Win32 and VCL.NET).
+ Added Tooltips property in TDBEditEh, TDBDateTimeEditEh, TDBNumberEditEh,
TDBLookupComboboxEh. Allows to show the whole text of the edit control in
special hint window if text does not fit in visible area. Text is displayed
when the mouse cursor situated above the edit control.
In TDBGridEh
+ Added OddRowColor and EvenRowColor property to draw odd and even
rows with different colors. It works only if sequence numbers are available
for DataSet(DataSet.IsSequenced = True) and DataSet.RecNo return valid info.
+ Added dghRecordMoving value in TDBGridEhOption type (OptionsEh property).
Allows to move records in dataset. Record is moved by striking and
moving mouse over indicator column. By default grid calls
TDatasetFeaturesEh.MoveRecords, where code save values of record, delete
record and insert new values in the position specified by RecNo.
+ Added OnMoveRecords event of TGridMoveRecordsEventEh type.
TGridMoveRecordsEventEh = function(Sender: TObject; BookmarkList: TStrings;
ToRecNo: Longint; TreeLevel: Integer; CheckOnly: Boolean): Boolean of object;
BookmarkList is a list of bookmarks which need to move.
ToRecNo is a destination RecNo.
TreeLevel is a destination level in tree list, used only when grid connected to
MemTableEh.
CheckOnly - determines whether the function have to return result, are there enabling
to move BookmarkList to ToRecNo, but does not move BookmarkList.
+ Added OnSelectionChanged event. Occurs when multiselected area has been changed.
* In AdvTech\MemTableEh: Added possibility to filter data in TreeList mode; usage one
array of records by the several datasets; moving records in TreeList in
dghRecordMoving mode.
Version 3.5
+ Added HighlightRequired property in TDBEditEh, TDBDateTimeEditEh, TDBNumberEditEh,
TDBLookupComboboxEh and TColumnEh, TColumnDefValuesEh. Determines whether need to
draw dotted red line under the text editor for empty required field (when
TField.Required = True and field is empty).
+ Added OnCheckDrawRequiredState event in TDBEditEh, TDBDateTimeEditEh, TDBNumberEditEh,
TDBLookupComboboxEh and TColumnEh. Write event need to change if need to draw a
condition RequiredState (dotted red line under the text editor).
+ Added property Layout: TTextLayout in TColumnEh. Specifies the vertical placement of
the text within the grid cell.
+ Added property HideDuplicates: Boolean in TColumnEh. Determines whether to hide
duplicated values in the column.
* Changed image of 3D borders in grid when the Windows XP themes active in application.
* Procedure ExcecuteDBGridEhFindDialog is renamed to ExecuteDBGridEhFindDialog.
* In AdvTech\MemTableEh: Added indexes and autogenerating the list of values for
dropdown box in filter cells.
Version 3.4
+ Added support of Delphi 8 (VCL.NET).
In TDBGridEh
+ Added property ToolTips in Footer and ColumnDefValues.Footer.
+ Added property SumValue: Variant in TColumnFooterEh.
+ Added property ShowImageAndText in TColumnEh. Allows to show Image from ImageList
and field Text in grid cell simultaneously. Set ImageIndex in OnGetCellParams event.
In TCustomDBEditEh
+ Added property Images: TCustomImageList. Images from imagelist can appear at the left
part of TDBEditEh, TDBDateTimeEditEh, TDBNumberEditEh or TDBLookupComboboxEh.
+ Added event OnGetImageIndex: TGetImageIndexEventEh.
TGetImageIndexEventEh = procedure(Sender: TObject; var ImageIndex: Integer) of object;
Event is called when Text or Value in TCustomDBEditEh is changed. Set new ImageIndex
depending on Text or Value.
Version 3.3
For TDBGridEh
+ Added new form 'DBGridEhFindDlgs' - find dialog in DBGridEh. Dialog allows
to find text in the grid: In specified column or on whole grid;
From any part of field, Whole field or From beging of the field.
Set new dghDialogFind value to OptionsEh to allows find dialog in DBGridEh.
Default shortcut to show find dialog in the grid is 'Ctrl-F'. When dghIncSearch
also included in the OptionsEh then first pressing 'Ctrl-F' enters the grid in
the Increment Search mode and holding 'Ctrl' press 'F' again will show the
find dialog.
In TDBGridEh
+ Added dghDialogFind value to the TDBGridEhOption type (property OptionsEh).
In TSTColumnFilterEh
+ Added KeyField, ListField, ListSource properties. Now you can adjust combobox
in SubTitle Filter cell. If Column.STFilter.ListSource is not empty then grid
will create combobox for such filter cell. ListSource defines the list of values
in drop-down list, ListField defines field whose values are displayed in
drop-down list, KeyField identifies the field in the ListSource dataset whose
value will takes to build filter expression.
In TSQLDatasetFeaturesEh
+ Added SupportsLocalLike property. Determines if the dataset supports 'Like'
keyword in Filter property. Modules from DataService directory of EhLib archive
rewrited to support this property.
In TMRUListEh
+ Added AutoAdd property of Boolean type. Determines that the edit control will
add new Text in MRUList automagically when control loses focus. Default value
for property is True. You can use it (set to False) to fill MRUList manually,
for instance from database table.
* Some bugfixes.
Version 3.2
In TDBGridEh
+ Added ability to fill cell by the value from previous record.
You can use "Ctrl+'" key to do it.
+ Added dghDblClickOptimizeColWidth value to the TDBGridEhOption type
(property OptionsEh). Adding this value to OptionsEh property
allows grid to set optimal column width (to fit text in cells of column).
on double-click on ColSizing line.
+ Added ability to show special row (under title) where you can enter
expressions in cells for filtering records in dataset.
(Expression in the cell can look like: "1", ">=1", ">1 AND <=5", "%TestStr%")
When cursor reside in the filter cell they can press ENTER to apply filter.
For automatically filtering data in dataset need to add one of the units
EhLib... (EhLibADO, EhLibBDE, EhLibCDS) to 'uses' clause of any unit of your
project. Now EhLib have objects to filter data in the TClientDataSet, TQuery,
TTable and TADOQuery. You have to write and register your own object to filter
data in DataSet that not present in this list or you can write
TDBGridEh.OnApplyFilter event for every grid.
Added property - STFilter: TSTDBGridEhFilter with subproperties:
property Local: Boolean - grid does not use it, but object that
perform filtering can determine whether it will filter locally
in dataset or on the server (by adding filter expressions in
SQL 'WHERE' clause).
property Visible: Boolean - Specifies whether the filter row is visible.
+ Added OnApplyFilter event.
+ Added ApplyFilter function in TDatasetFeaturesEh class.
In TColumnEh
+ Added new property - STFilter: TSTColumnFilterEh;
with properties
DataField: String - Specifies the field name that use to
filter data if Column.FieldName is not fit for it.
Visible: Boolean - Specifies whether user can enter expressions
in filter row for this column.
ExpressionStr: String - text expression in StFilter cell.
Expression: TSTFilterExpressionEh - coded expression in StFilter cell.
Version 3.1
* Changes in TRegPropStorageManEh:
'Key' property moved from 'published' to 'public' part.
(C++ Builder does not support HKEY type in published part).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -