EHLib安装到D2007的方法 大 | 中 | 小

本文解决EHLib在Delphi 2007中安装时出现的TBytes类型冲突问题,并提供EHLib v4.2.16中文汉化版的安装方法,包括文件内容的汉化和界面美化。

 

EHLib安装到D2007时会发生错误,是因为D2007在SysUtils单元定义了TBytes类型,而早期的Delphi没有定义,EHLib自己在EhLibVCL定义了,这造成在D2007里面的冲突。

打开EhLibVCL单元,把下面一行:

  TBytes = array of Byte;

改为:

{$ifndef VER185}  //加上版本判断,VER185是D2007在SysUtils单元中定义了的一个编译标记
  TBytes = array of Byte;
{$endif}

即可。

附:EhLib v4.2.16 中文汉化版安装方法

EhLib v4.2.16 中文汉化版,Faceker.com 修改版。

此版本是根据网上的 EhLib 4.2.16 原版汉化修改而来,只汉化了文件内容,未改变原版的目录结构,所以安装时请按照原版 Readme 文件中的安装方法安装,将 Common 目录中的内容拷贝到 Delphi(X) 目录,然后安装 Delphi(X) 目录中相应的 .dpk 文件即可。

详细安装方法可参考以下文章:
http://www.faceker.com/200708/ehlib-tutorial-install.html

汉化和修改的内容:

1. DataService/EhLibADO.pas
第40行,ADODataSetDriverName函数:
原:Result := 'MSACCESS'
现:Result := 'MSSQL'
功能:字符串、日期界定符匹配(STFilter.Local=False情况下)

2.Common/EhLibConsts.pas
功能:常数汉化

3.Common/DBGridEhFindDlgs.pas/dfm
A、FillColumnsList函数:
  原:cbFindIn.Items.AddObject('', nil);
  现:cbFindIn.Items.AddObject(‘<全部>’, nil);
B、界面中ComboBox中Items及KeyItems及Text汉化;
C、主界面汉化;

4.Common/PrnDgDlg.pas/dfm
功能:界面汉化

5.Common/PrvFrmEh.pas/dfm
功能:界面汉化

6.Common/PrViewEh.pas
327行 TPreviewBox.Create 方法. 由 FViewMode = vmFullPage 改为 FViewMode = vm100

7.Common/DBUtilsEh.pas
GetOneExpressionAsLocalFilterString 和 GetOneExpressionAsSQLWhereString 函数
功能:查询行字符串查询默认为LIKE查询.

该汉化版根据网上的 4.2.16 版汉化修改而来,未更改其目录结构,也未做核心功能的修改,汉化了所有用于显示的中文资源及界面,并且更改了默认的打印预览界面,添加了图标,使其更加美观。

EhLib 4.2 最大的变化是增加了 IndicatorTitle 属性,也算是一个很有特色的功能,在某些情况下也非常有用。

该汉化版具体详细的更新请查看:http://www.Faceker.com 。
Ehlib 是著名的数据库连接控制,版本为5.2.84,DBgrid增强VCL控件;支持多表头,多固定列,按表头排序,支持合计列,并支持直接打印。可以和PB的ataWindow媲美。 本版本含完整源代码,支持以下 IDE: Delphi 5,6,7,2005 C++Builder 5,6 BDS 2006 (Delphi 2006, C++Builder 2006) Delphi 2007 RAD Studio 2009 (Delphi 2009, C++Builder 2009) Embarcadero RAD Studio 2010 (Delphi 2010, C++Builder 2010) 本人已在Delphi XE中运行通过,在本人编制的进销存软件中应用完全正常。 注:Delphi 2010、XE里面安装不要修改bpl文件的输出路径,采用默认值,否则安装难以成功。 Version 5.2 + Added feature to group data in the DBGridEh. It is allowed to make grouping at run-time and design-time. Grouping works only when the grid is connected to TMemTableEh dataset. Use next subproperties of Grid.DataGrouping property to adjust grouping Active: Boolean - Set this propery true to active grouping. DefaultStateExpanded: Boolean - defines initial expapnding/collapsing state of new created elements of the grouping tree. GroupLevels: TGridDataGroupLevelsEh - Collection of group levels. Use this property to create template of the grouping. GroupPanelVisible: Boolean - Set this property to True to show special panel at the top part of the grid. Then the panel is thisible it is allowed to form group levels by mouse. Drag title of the requaried column to the group panel and drop it onto panel. Font: TFont - Controls the attributes of the default font of group records in the grid. Color: Tcolor - Default background color of the group records. See demonstration project of grouping in Demos\DataGrouping directory. Version 5.1 * The type of RowPanel property was changed. Instead of Boolean type, now it is an object property with subproperies: Active: Boolean - Defines if it is possible to place cells under each over and if every propetry can have personal hight. + NavKeysNavigationType: TGridRowPanelNavKeysNavigationTypeEh - defines the order of navigation over cells in the grid when keys Up, Down, Left, Right are pressed. rpntRowT
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值