| 资源简介: |
The Library contains components and classes for Borland Delphi versions 5, 6, 7, 8 & 9 , Borland C++ Builder versions 5 & 6, Borland Developer Studio 2006 and CodeGear Delphi 2007. Version 4.2 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. * 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. |