http://bbs.2ccc.com/topic.asp?topicid=74320

怎么将DBNavigator显示时是中文标题

来源:本网整理
 

如何将DBNavigator显示时是中文标题?
如题:

就是现在想实现在DBNavigator上显示的是中文文字,而不是原来默认的图标?

------解决方案--------------------
关注 
------解决方案--------------------
uses 
buttons

TSpeedButton(DBNavigator1.Controls[0]).Caption := '第一条 '; 
TSpeedButton(DBNavigator1.Controls[0]).Glyph := nil; //去掉图标

class helper for

https://www.cnblogs.com/GarfieldTom/archive/2010/01/18/1650311.html

为DBNavigator的按钮加中文

 

转自:http://hi.baidu.com/debiansir/item/0699f5b6bb4d99f063388e71

/*Delphi中数据库控件DBNavigator使用起来不错,但是按钮上“+”、“-”等含义对于中国的用户不习惯,甚至不知道是什么含义。改成相应含义的汉字表示出来 */

unit Unit1;

interface

uses 
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, 
Dialogs, Grids, DBGrids, ExtCtrls, DBCtrls;

type 
TMyNavgator = class(TDBNavigator); 
TForm1 = class(TForm) 
DBNavigator1: TDBNavigator; 
procedure FormCreate(Sender: TObject); 
private 
{ Private declarations } 
public 
{ Public declarations } 
end;

var 
Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.FormCreate(Sender: TObject); 
begin 
TMyNavgator(DBNavigator1).Buttons[nbFirst].Caption:= '首条 '; 
TMyNavgator(DBNavigator1).Buttons[nbPrior].Caption:= '上一条 '; 
TMyNavgator(DBNavigator1).Buttons[nbNext].Caption:= '下一条 '; 
TMyNavgator(DBNavigator1).Buttons[nbLast].Caption:= '末条 '; 
TMyNavgator(DBNavigator1).Buttons[nbInsert].Caption:= '添加 '; 
TMyNavgator(DBNavigator1).Buttons[nbDelete].Caption:= '删除 '; 
TMyNavgator(DBNavigator1).Buttons[nbEdit].Caption:= '修改 '; 
TMyNavgator(DBNavigator1).Buttons[nbPost].Caption:= '提交 '; 
TMyNavgator(DBNavigator1).Buttons[nbCancel].Caption:= '撤销 '; 
TMyNavgator(DBNavigator1).Buttons[nbRefresh].Caption:= '刷新 '; 
end; 
end.

DBNavigator1 按钮标题中文 提示中文的更多相关文章

  1. sublime text 3文件标题无法显示中文的解决办法

    前言 你是否遇也到了sublime文件标题无法显示中文的问题呢?如下列图片所示: 解决办法 1.点击菜单栏Preferences - > Settings. 打开下图: 2.在右边User内加入 ...

  2. 使用vee-validate表单插件是如何设置中文提示?

    最近在写vue表单验证的时候,在网上找到一款不错的插件vee-validate,在使用的过程中发现配置不了中文提示,这就很苦恼了,基本上网上的配置办法我都看过,都是有问题的,比如这种 import z ...

  3. Easyui 修改jquery validatebox为英文校验提示为中文提示

    修改jquery validatebox为英文校验提示为中文提示 by:授客 QQ:1033553122 测试环境 jquery-easyui-1.5.3 问题描述: 如图,想把校验提示由英文改成中文 ...

  4. Uploadify3.2中文提示

    版本:Uploadify Version 3.2官网:http://www.uploadify.com Uploadify是一款基于Jquery的上传插件,用起来很方便.但上传过程中的提示语言为英文, ...

  5. 关于 Visual Studio 中文提示的问题

    [转自 https://blog.csdn.net/iloli/article/details/51055299] [转自 http://www.cnblogs.com/hellowin/p/6383 ...

  6. IOS 修改UIAlertController的按钮标题的字体颜色,字号,内容

    IOS 修改UIAlertController的按钮标题的字体颜色,字号,内容 UIAlertController *alertVC = [UIAlertController alertControl ...

  7. JavaScript 正则匹配中文,中文符号,空格,全数字,以https:// 开头的url,用于各种场景的输入校验

    业务场景1: 密码输入框需要验证输入中文,中文符号,空格等情况,以便于给出错误提示 业务场景2: 输入框只允许输入数字的情况 业务场景3: 输入框允许输入均为数字或以https:// 开头的url的情 ...

  8. java判断字符串中是否包含中文 过滤中文

    package com.test; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Test ...

  9. js和jquery 实现网站来消息网站标题闪动提示

    js版 <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"&g ...

随机推荐

  1. CSc 352 (Spring 2019): Assignment

    CSc 352 (Spring 2019): Assignment 11Due Date: 11:59PM Wed, May 1The purpose of this assignment is to ...

  2. 初涉wheel 组

    入门 在一次处理su切换的问的时候出现一个问题, [cheng1@localhost ~]$ su cheng2 密码: su: 鉴定故障 [cheng1@localhost ~]$ 试过很多次, 也 ...

  3. spring-IoC的配置文件applicationContext.XML

    <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.spr ...

  4. POJ1848--Tree ——树形dp

    题意:给你一个树,问你最少连几条边可以让树中的每一个节点在且只在一个环内.如果无法完成就输出-1. 我们设dp[i][0]为根节点为i的树变成每一个节点都在且只在一个环里所需要的最小边数.dp[i][ ...

  5. [转载]使用IEDriverServer.exe驱动IE11,实现自动化测试

    转自:https://www.cnblogs.com/feiquan/p/8531618.html 下载地址: http://dl.pconline.com.cn/download/771640-1. ...

  6. Lintcode470-Tweaked Identical Binary Tree-Easy

    470. Tweaked Identical Binary Tree Check two given binary trees are identical or not. Assuming any n ...

  7. python-request-各方法使用及格式

    Request库方法介绍 方法 说明 requests.request() 构造一个请求,支撑一下各方法的基础方法  requests.get()  获取HTML网页的主要方法,对应于HTTP的GET ...

  8. php接口签名验证

    在做一些api接口设计时候会遇到设置权限问题,比如我这个接口只有指定的用户才能访问. 很多时候api接口是属于无状态的,没办法获取session,就不能够用登录的机制去验证,那么 大概的思路是在请求包 ...

  9. 报错:keep must be either "first", "last" or False

    data_mac_set = data_mac.drop_duplicates(['std_mac']) 此时会报错:keep must be either "first", &q ...

  10. 一键安装Lnmp教程

    LNMP一键安装包 系统需求: CentOS/RHEL/Fedora/Debian/Ubuntu/Raspbian Linux系统 需要3GB以上硬盘剩余空间 128M以上内存,Xen的需要有SWAP ...