改了Delphi6的/source/vcl/vdbconsts.pas中的代码之后怎么没有反应呀?(50分)

  • 主题发起人 主题发起人 sunjade
  • 开始时间 开始时间
S

sunjade

Unregistered / Unconfirmed
GUEST, unregistred user!
各位老大:
我现在把TDBNavigator控件的提示信息(原来的提示信息是英文的)改成中文的信息
之后怎么没有反应呀?我是改了source/vcl/vdbconsts.pas文件是的内容的。按理讲当我
改了之后我按了TDBNavigator控件的删除按钮它应该弹出我所改的信息才对呀,也就是应
该弹出“是要删除这条记录吗?”的信息才对呀。各位老大知道是什么原因吗?
我改的文件如下:
{ *************************************************************************** }
{ }
{ Delphi and Kylix Cross-Platform Visual Component Library }
{ }
{ Copyright (c) 1999, 2001 Borland Software Corporation }
{ }
{ Licensees holding a valid Borland No-Nonsense License for this Software may }
{ use this file in accordance with such license, which appears in the file }
{ license.txt that came with this Software. }
{ }
{ *************************************************************************** }

unit VDBConsts;

interface

resourcestring
{ DBCtrls }
SFirstRecord = 'First record';
SPriorRecord = 'Prior record';
SNextRecord = 'Next record';
SLastRecord = 'Last record';
SInsertRecord = 'Insert record';
SDeleteRecord = 'Delete record';
SEditRecord = 'Edit record';
SPostEdit = 'Post edit';
SCancelEdit = 'Cancel edit';
SConfirmCaption = 'Confirm';
SRefreshRecord = 'Refresh data';
//SDeleteRecordQuestion = 'Delete this records?';
SDeleteRecordQuestion = '是要删除这条记录吗?';
SDeleteMultipleRecordsQuestion = 'Delete all selected records?';
SDataSourceFixed = 'Operation not allowed in a DBCtrlGrid';
SNotReplicatable = 'Control cannot be used in a DBCtrlGrid';
SPropDefByLookup = 'Property already defined by lookup field';
STooManyColumns = 'Grid requested to display more than 256 columns';

{ DBLogDlg }
SRemoteLogin = 'Remote Login';

{ DBOleEdt }
SDataBindings = 'Data Bindings...';

implementation

end.
 
注意,在你的project菜单中的options项的Directories/conditionsy页的searchpath中
指定你的改过pas文件的位置,如果不指定,系统将使用已经编译好的dcu
 
删除lib目录下的VDBConsts.dcu文件,将
/Program Files/Borland/Delphi6/Source/Vcl目录加入搜索的路径中
tools菜单下.
 
非常谢谢两位老大!
 
后退
顶部