zoukankan      html  css  js  c++  java
  • ae右键菜单

    private IToolbarMenu m_ToolbarMenu;

               //Create a new ToolbarMenu
                m_ToolbarMenu = new ToolbarMenuClass();
                //Share the ToolbarControl's command pool
                m_ToolbarMenu.CommandPool = axToolbarControl1.CommandPool;
                //Set the hook to the PageLayoutControl
                m_ToolbarMenu.SetHook(axMapControl1);

                //Add commands to the ToolbarMenu
                m_ToolbarMenu.AddItem("esriControls.ControlsMapZoomInTool", -1, -1, false, esriCommandStyles.esriCommandStyleIconAndText);
                m_ToolbarMenu.AddItem("esriControls.ControlsMapZoomOutTool", -1, -1, false, esriCommandStyles.esriCommandStyleIconAndText);
                m_ToolbarMenu.AddItem("esriControls.ControlsMapPanTool", -1, -1, false, esriCommandStyles.esriCommandStyleIconAndText);
                m_ToolbarMenu.AddItem("esriControls.ControlsMapFullExtentCommand", -1, -1, true, esriCommandStyles.esriCommandStyleIconAndText);
                m_ToolbarMenu.AddItem("esriControls.ControlsMapZoomToLastExtentForwardCommand", -1, -1, false, esriCommandStyles.esriCommandStyleIconAndText);
      
                axToolbarControl1.SetBuddyControl(axMapControl1);
                axTOCControl1.SetBuddyControl(axMapControl1);
                axToolbarControl1.Enabled = true;
                axMapControl1.Enabled = true;
  • 相关阅读:
    $(document).ready() 与$(window).load()
    关于.NET玩爬虫这些事 【初码干货】
    关于c# .net爬虫
    UIScollView Touch事件
    UISearchBar 点击X 按钮收键盘
    IOS7 UITableView一行滑动删除后 被删除行的下一行的点击事件将被忽略解决办法
    IOS 使用dispatch_once 创建单例
    IOS 定位 单例
    IOS拷贝文件到沙盒
    IOS后台运行
  • 原文地址:https://www.cnblogs.com/zhangjun1130/p/1421042.html
Copyright © 2011-2022 走看看