TdxBarManager中的英文怎么改成中文

shyghostwolf 2004-04-16 01:06:30
程序运行时点击菜单右下方的三角出现:add or remove buttons
怎么把他改成中文,我看有的软件实现了,但我不知道是怎么实现的,
发表下你的高见!谢了!
...全文
140 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
xthmpro_cn 2004-04-16
  • 打赏
  • 举报
回复
首先你使用Builder all 编译你的工程,如果还不是中文的话,就把你改过的文件拷贝到你的源代码目录,然后再编译.
shyghostwolf 2004-04-16
  • 打赏
  • 举报
回复
找到了C:\Program Files\Developer Express Inc\ExpressBars\Delphi 7\Sources下的dxBarStrs.pas文件 我把他改了,如下,但编译后还是不能中文!

unit dxBarStrs;

interface

resourcestring
dxSBAR_LOOKUPDIALOGCAPTION = 'Select value';
dxSBAR_LOOKUPDIALOGOK = 'OK';
dxSBAR_LOOKUPDIALOGCANCEL = 'Cancel';

dxSBAR_DIALOGOK = 'OK';
dxSBAR_DIALOGCANCEL = 'Cancel';
dxSBAR_COLOR_STR_0 = 'Black';
dxSBAR_COLOR_STR_1 = 'Maroon';
dxSBAR_COLOR_STR_2 = 'Green';
dxSBAR_COLOR_STR_3 = 'Olive';
dxSBAR_COLOR_STR_4 = 'Navy';
dxSBAR_COLOR_STR_5 = 'Purple';
dxSBAR_COLOR_STR_6 = 'Teal';
dxSBAR_COLOR_STR_7 = 'Gray';
dxSBAR_COLOR_STR_8 = 'Silver';
dxSBAR_COLOR_STR_9 = 'Red';
dxSBAR_COLOR_STR_10 = 'Lime';
dxSBAR_COLOR_STR_11 = 'Yellow';
dxSBAR_COLOR_STR_12 = 'Blue';
dxSBAR_COLOR_STR_13 = 'Fuchsia';
dxSBAR_COLOR_STR_14 = 'Aqua';
dxSBAR_COLOR_STR_15 = 'White';
dxSBAR_COLORAUTOTEXT = '(automatic)';
dxSBAR_COLORCUSTOMTEXT = '(custom)';
dxSBAR_DATETODAY = 'Today';
dxSBAR_DATECLEAR = 'Clear';
dxSBAR_DATEDIALOGCAPTION = 'Select the date';
dxSBAR_TREEVIEWDIALOGCAPTION = 'Select item';
dxSBAR_IMAGEDIALOGCAPTION = 'Select item';
dxSBAR_IMAGEINDEX = 'Image Index';
dxSBAR_IMAGETEXT = 'Text';
dxSBAR_PLACEFORCONTROL = 'The place for the ';
dxSBAR_CANTASSIGNCONTROL = 'You cannot assign the same control to more than one TdxBarControlContainerItem.';

dxSBAR_WANTTORESETTOOLBAR = 'Are you sure you want to reset the changes made to the ''%s'' toolbar?';
dxSBAR_WANTTORESETUSAGEDATA = 'This will delete the record of the commands you''ve used in this application and restore the default set of visible commands to the menus and toolbars. It will not undo any explicit customizations. Are you sure you want to proceed?';
dxSBAR_BARMANAGERMORETHENONE = 'A Form should contain only a single TdxBarManager';
dxSBAR_BARMANAGERBADOWNER = 'TdxBarManager should have as its Owner - TForm (TCustomForm)';
dxSBAR_NOBARMANAGERS = 'There are no TdxBarManagers available';
dxSBAR_WANTTODELETETOOLBAR = 'Are you sure you want to delete the ''%s'' toolbar?';
dxSBAR_WANTTODELETECATEGORY = 'Are you sure you want to delete the ''%s'' category?';
dxSBAR_WANTTOCLEARCOMMANDS = 'Are you sure you want to delete all commands in the ''%s'' category?';
dxSBAR_RECURSIVESUBITEMS = 'You cannot create recursive subitems';
dxSBAR_COMMANDNAMECANNOTBEBLANK = 'A command name cannot be blank. Please enter a name.';
dxSBAR_TOOLBAREXISTS = 'A toolbar named ''%s'' already exists. Type another name.';
dxSBAR_RECURSIVEGROUPS = 'You cannot create recursive groups';

dxSBAR_DEFAULTCATEGORYNAME = 'Default';

dxSBAR_CP_ADDSUBITEM = 'Add &SubItem';
dxSBAR_CP_ADDBUTTON = 'Add &Button';
dxSBAR_CP_ADDITEM = 'Add &Item';
dxSBAR_CP_DELETEBAR = 'Delete Bar';

dxSBAR_CP_RESET = '&Reset';
dxSBAR_CP_DELETE = '&Delete';
dxSBAR_CP_NAME = '&Name:';
dxSBAR_CP_CAPTION = '&Caption:'; // is the same as dxSBAR_CP_NAME (at design-time)
dxSBAR_CP_DEFAULTSTYLE = 'Defa&ult style';
dxSBAR_CP_TEXTONLYALWAYS = '&Text Only (Always)';
dxSBAR_CP_TEXTONLYINMENUS = 'Text &Only (in Menus)';
dxSBAR_CP_IMAGEANDTEXT = 'Image &and Text';
dxSBAR_CP_BEGINAGROUP = 'Begin a &Group';
dxSBAR_CP_VISIBLE = '&Visible';
dxSBAR_CP_MOSTRECENTLYUSED = '&Most recently used';

dxSBAR_ADDEX = 'Add...';
dxSBAR_RENAMEEX = 'Rename...';
dxSBAR_DELETE = 'Delete';
dxSBAR_CLEAR = 'Clear';
dxSBAR_VISIBLE = 'Visible';
dxSBAR_OK = 'OK';
dxSBAR_CANCEL = 'Cancel';
dxSBAR_SUBMENUEDITOR = 'SubMenu Editor...';
dxSBAR_SUBMENUEDITORCAPTION = 'ExpressBars SubMenu Editor';
dxSBAR_INSERTEX = 'Insert...';

dxSBAR_MOVEUP = 'Move Up';
dxSBAR_MOVEDOWN = 'Move Down';
dxSBAR_POPUPMENUEDITOR = 'PopupMenu Editor...';
dxSBAR_TABSHEET1 = ' Toolbars ';
dxSBAR_TABSHEET2 = ' Commands ';
dxSBAR_TABSHEET3 = ' Options ';
dxSBAR_TOOLBARS = 'Toolb&ars:';
dxSBAR_TNEW = '&New...';
dxSBAR_TRENAME = 'R&ename...';
dxSBAR_TDELETE = '&Delete';
dxSBAR_TRESET = '&Reset...';
dxSBAR_CLOSE = 'Close';
dxSBAR_CAPTION = '自定义';
dxSBAR_CATEGORIES = 'Cate&gories:';
dxSBAR_COMMANDS = 'Comman&ds:';
dxSBAR_DESCRIPTION = 'Description ';

dxSBAR_CUSTOMIZE = '&C 自定义......';
dxSBAR_ADDREMOVEBUTTONS = '&A 添加或删除按钮';
dxSBAR_MOREBUTTONS = 'More Buttons';
dxSBAR_RESETTOOLBAR = '&R 重置工具栏';
dxSBAR_EXPAND = 'Expand (Ctrl-Down)';
dxSBAR_DRAGTOMAKEMENUFLOAT = 'Drag to make this menu float';

dxSBAR_TOOLBARNEWNAME = 'Custom ';
dxSBAR_CATEGORYADD = 'Add Category';
dxSBAR_CATEGORYINSERT = 'Insert Category';
dxSBAR_CATEGORYRENAME = 'Rename Category';
dxSBAR_TOOLBARADD = 'Add Toolbar';
dxSBAR_TOOLBARRENAME = 'Rename Toolbar';
dxSBAR_CATEGORYNAME = '&Category name:';
dxSBAR_TOOLBARNAME = '&Toolbar name:';
dxSBAR_CUSTOMIZINGFORM = 'Customization Form...';

dxSBAR_MODIFY = '... modify';
dxSBAR_PERSMENUSANDTOOLBARS = 'Personalized Menus and Toolbars ';
dxSBAR_MENUSSHOWRECENTITEMS = 'Me&nus show recently used commands first';
dxSBAR_SHOWFULLMENUSAFTERDELAY = 'Show f&ull menus after a short delay';
dxSBAR_RESETUSAGEDATA = '&Reset my usage data';

dxSBAR_OTHEROPTIONS = 'Other ';
dxSBAR_LARGEICONS = '&Large icons';
dxSBAR_HINTOPT1 = 'Show Tool&Tips on toolbars';
dxSBAR_HINTOPT2 = 'Show s&hortcut keys in ToolTips';
dxSBAR_MENUANIMATIONS = '&Menu animations:';
dxSBAR_MENUANIM1 = '(None)';
dxSBAR_MENUANIM2 = 'Random';
dxSBAR_MENUANIM3 = 'Unfold';
dxSBAR_MENUANIM4 = 'Slide';
dxSBAR_MENUANIM5 = 'Fade';

implementation

end.
xthmpro_cn 2004-04-16
  • 打赏
  • 举报
回复
自己做汉化,你找到这个原文件,把他修改了。
文件名大概是:*str*.pas,*conts*.pas,
或者你查找含有这个字符串的文件。
2010/10/11, 4.0.11 ------------------------------------------------------------------------------------------------------------------------------- 1、增加acroMultiLib.pas,封装了几个函数在里面 2、增加对Delphi XE的支持。 3、按命名管理,把Acro改为acro 4、修正DDManager,在cell输入空白的DDKey后,离开改行,然后再也不能修改改行的DDKey,也不能取消,只能强制退出的问题。 5、为了尽量不引入不需要的元件,devexpress元件的支持函数分解到多个pas和dpk。 6、增加了几个flash演示影片 2010/6/15, 4.0.10 ------------------------------------------------------------------------------------------------------------------------------- 1、在IDataLocate接口增加DoBeforeReplaceComponent和DoAfterReplaceComponent函数,这样Class的ReplaceMethod就可以在替换 集合元件时触发事件,让用户有机会决定是否替换其的子元件,如TdxBarManager 2、在TAcroMultiResourceRepository增加函数: function GetDisplayValue(ADDKeyRecResourceStringRec):string; function GetDisplayValueAnsi(ADDKeyRecResStringRec):ansistring;overload; function GetDisplayValueUnicode(ADDKeyRecResStringRec):WideString;overload; 从原始ResourceString获得翻译结果 3、在TMultiClassMethodStorage增加函数: procedure RegisterClassMethod(AClass:TClass;AMethod:TMultiLanguageReplaceProc; ABeginUpdateProc:TMultiLanguageBeginUpdateProc; AEndUpdateProc:TMultiLanguageEndUpdateProc);overload;virtual; 在TAcroMultiScreen替换Form时,会调用每个元件注册的BeginUpdatePro和EndUpdateProc,这样可以很好的控制效率, 特别是cxTreeList/cxGrid元件,因为替换Column的Properties时也可能引起cxTreeList/cxGrid反复Repaint

5,392

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧