zoukankan      html  css  js  c++  java
  • zedgraph右键菜单的汉化

    http://blog.csdn.net/jeryler/article/details/7876376

    修改 zedGraphControl的ContextMenuBuilder事件即可!

     zedGraphControl2.ContextMenuBuilder += MyContextMenuBuilder;

    private static void MyContextMenuBuilder(ZedGraphControl control, ContextMenuStrip menuStrip,
                        Point mousePt, ZedGraphControl.ContextMenuObjectState objState)
            {
                foreach (ToolStripMenuItem item in menuStrip.Items)
                {
                    switch (item.Name)
                    {
                        case "copied_to_clip":
                            item.Text = @"复制到剪贴板";
                            break;
                        case "copy":
                            item.Text = @"复制";
                            break;
                        case "page_setup":
                            item.Text = @"页面设置...";
                            break;
                        case "print":
                            item.Text = @"打印...";
                            break;
                        case "save_as":
                            item.Text = @"另存图表...";
                            break;
                        case "set_default":
                            item.Text = @"恢复默认大小";
                            break;
                        case "show_val":
                            item.Text = @"显示节点数值";
                            break;
                        case "title_def":
                            item.Text = @"标题";
                            break;
                        case "undo_all":
                            item.Text = @"还原缩放/移动";
                            break;

                        case "unpan":
                            item.Text = @"还原移动";
                            break;

                        case "unzoom":
                            item.Text = @"还原缩放";
                            break;

                        case "x_title_def":
                            item.Text = @"X 轴";
                            break;
                        case "y_title_def":
                            item.Text = @"Y 轴";
                            break;

                    }
                }
            }

  • 相关阅读:
    GPS坐标转化距离(短距离模型公式)
    jquery ajax 同步异步的执行
    视频播放的基本原理
    [css或js控制图片自适应]
    asp.net中js和jquery调用ashx的不同方法分享,需要的朋友可以参考一下
    [转载]在网页中插入media,RealPlayer等控件
    数组的几种排序算法的实现(3)
    -- HTML标记大全参考手册[推荐]
    数组的几种排序算法的实现(2)
    数组的几种排序算法的实现(1)
  • 原文地址:https://www.cnblogs.com/chucklu/p/3842034.html
Copyright © 2011-2022 走看看