物探论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 485|回复: 0

C#中调用MAPX5.0(一)_第二部分

[复制链接]
发表于 2013-3-15 18:13:14 | 显示全部楼层 |阅读模式
//
   // axMap1
   //
   this.axMap1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
    | System.Windows.Forms.AnchorStyles.Left)
    | System.Windows.Forms.AnchorStyles.Right)));
   this.axMap1.Enabled = true;
   this.axMap1.Location = new System.Drawing.Point(8, 120);
   this.axMap1.Name = "axMap1";
   this.axMap1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axMap1.OcxState")));
   this.axMap1.Size = new System.Drawing.Size(424, 339);
   this.axMap1.TabIndex = 0;
   this.axMap1.PolyToolUsed += new AxMapXLib.CMapXEvents_PolyToolUsedEventHandler(this.mapMain_PolyToolUsed);
   this.axMap1.MouseUpEvent += new AxMapXLib.CMapXEvents_MouseUpEventHandler(this.axMap1_MouseUpEvent);
   this.axMap1.ThemeModifyRequested += new AxMapXLib.CMapXEvents_ThemeModifyRequestedEventHandler(this.axMap1_ThemeModifyRequested);
   this.axMap1.MouseDownEvent += new AxMapXLib.CMapXEvents_MouseDownEventHandler(this.axMap1_MouseDownEvent);
   this.axMap1.MapViewChanged += new System.EventHandler(this.axMap1_MapViewChanged);
   //
   // axMap2
   //
   this.axMap2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
    | System.Windows.Forms.AnchorStyles.Left)
    | System.Windows.Forms.AnchorStyles.Right)));
   this.axMap2.Enabled = true;
   this.axMap2.Location = new System.Drawing.Point(472, 136);
   this.axMap2.Name = "axMap2";
   this.axMap2.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axMap2.OcxState")));
   this.axMap2.Size = new System.Drawing.Size(240, 203);
   this.axMap2.TabIndex = 1;
   //
   // toolBar2
   //
   this.toolBar2.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
                      this.tbxuanze,
                      this.tbfangda,
                      this.tbbianxiao,
                      this.tbmanyou,
                      this.tbbiaozhu,
                      this.tbtianjiafuhao,
                      this.tbjuli,
                      this.tbmianji,
                      this.tbshuaxin,
                      this.tbxiangxi,
                      this.tbzuiduan});
   this.toolBar2.ButtonSize = new System.Drawing.Size(55, 35);
   this.toolBar2.DropDownArrows = true;
   this.toolBar2.Location = new System.Drawing.Point(0, 0);
   this.toolBar2.Name = "toolBar2";
   this.toolBar2.ShowToolTips = true;
   this.toolBar2.Size = new System.Drawing.Size(776, 41);
   this.toolBar2.TabIndex = 3;
   this.toolBar2.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar2_ButtonClick);
   //
   // tbxuanze
   //
   this.tbxuanze.Text = "选择";
   //
   // tbfangda
   //
   this.tbfangda.Text = "放大";
   this.tbfangda.ToolTipText = "放大";
   //
   // tbbianxiao
   //
   this.tbbianxiao.Text = "缩小";
   //
   // tbmanyou
   //
   this.tbmanyou.Text = "漫游";
   //
   // tbbiaozhu
   //
   this.tbbiaozhu.Text = "标注";
   //
   // tbtianjiafuhao
   //
   this.tbtianjiafuhao.Text = "添加符号";
   //
   // tbjuli
   //
   this.tbjuli.Text = "测距";
   //
   // tbmianji
   //
   this.tbmianji.Text = "面积";
   //
   // tbshuaxin
   //
   this.tbshuaxin.Text = "刷新";
   //
   // tbxiangxi
   //
   this.tbxiangxi.Text = "详细";
   //
   // tbzuiduan
   //
   this.tbzuiduan.Text = "最短实体";
   //
   // label1
   //
   this.label1.Location = new System.Drawing.Point(48, 104);
   this.label1.Name = "label1";
   this.label1.Size = new System.Drawing.Size(208, 16);
   this.label1.TabIndex = 4;
   this.label1.Text = "label1";
   //
   // mainMenu1
   //
   this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                       this.menuItem1,
                       this.menuItem3,
                       this.menuItem10,
                       this.menuItem17,
                       this.menuItem18});
   //
   // menuItem1
   //
   this.menuItem1.Index = 0;
   this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                       this.menuItem20,
                       this.menuItem21,
                       this.menuItem22,
                       this.menuItem23,
                       this.menuItem24,
                       this.menuItem25,
                       this.menuItem26,
                       this.menuItem33,
                       this.menuItem35,
                       this.menuItem34,
                       this.menuItem2});
   this.menuItem1.Text = "文件";
   //
   // menuItem20
   //
   this.menuItem20.Index = 0;
   this.menuItem20.Text = "打开地图...";
   this.menuItem20.Click += new System.EventHandler(this.menuItem20_Click);
   //
   // menuItem21
   //
   this.menuItem21.Index = 1;
   this.menuItem21.Text = "添加图层...";
   this.menuItem21.Click += new System.EventHandler(this.menuItem21_Click);
   //
   // menuItem22
   //
   this.menuItem22.Index = 2;
   this.menuItem22.Text = "-";
   //
   // menuItem23
   //
   this.menuItem23.Index = 3;
   this.menuItem23.Text = "保存";
   this.menuItem23.Click += new System.EventHandler(this.menuItem23_Click);
   //
   // menuItem24
   //
   this.menuItem24.Index = 4;
   this.menuItem24.Text = "另存为...";
   this.menuItem24.Click += new System.EventHandler(this.menuItem24_Click);
   //
   // menuItem25
   //
   this.menuItem25.Index = 5;
   this.menuItem25.Text = "导出..";
   this.menuItem25.Click += new System.EventHandler(this.menuItem25_Click);
   //
   // menuItem26
   //
   this.menuItem26.Index = 6;
   this.menuItem26.Text = "-";
   //
   // menuItem2
   //
   this.menuItem2.Index = 10;
   this.menuItem2.Text = "退出";
   //
   // menuItem3
   //
   this.menuItem3.Index = 1;
   this.menuItem3.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                       this.menuItem29,
                       this.menuItem28,
                       this.menuItem27,
                       this.menuItem15,
                       this.menuItem32,
                       this.menuItem31,
                       this.mutuceng,
                       this.menuItem30,
                       this.menuItem16});
   this.menuItem3.Text = "地图";
   //
   // menuItem29
   //
   this.menuItem29.Index = 0;
   this.menuItem29.Text = "坐标变换(投影)";
   this.menuItem29.Click += new System.EventHandler(this.menuItem29_Click);
   //
   // menuItem28
   //
   this.menuItem28.Index = 1;
   this.menuItem28.Text = "-";
   //
   // menuItem27
   //
   this.menuItem27.Index = 2;
   this.menuItem27.Text = "编辑";
   this.menuItem27.Click += new System.EventHandler(this.menuItem27_Click);
   //
   // menuItem15
   //
   this.menuItem15.Index = 3;
   this.menuItem15.Text = "-";
   //
   // menuItem32
   //
   this.menuItem32.Index = 4;
   this.menuItem32.Text = "缩放图层";
   this.menuItem32.Click += new System.EventHandler(this.menuItem32_Click);
   //
   // menuItem31
   //
   this.menuItem31.Index = 5;
   this.menuItem31.Text = "选择图层";
   this.menuItem31.Click += new System.EventHandler(this.menuItem31_Click);
   //
   // mutuceng
   //
   this.mutuceng.Index = 6;
   this.mutuceng.Text = "图层控制";
   this.mutuceng.Click += new System.EventHandler(this.mutuceng_Click);
   //
   // menuItem30
   //
   this.menuItem30.Index = 7;
   this.menuItem30.Text = "-";
   //
   // menuItem16
   //
   this.menuItem16.Index = 8;
   this.menuItem16.Text = "属性";
   this.menuItem16.Click += new System.EventHandler(this.menuItem16_Click);
   //
   // menuItem10
   //
   this.menuItem10.Index = 2;
   this.menuItem10.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                        this.menuItem11,
                        this.menuItem12,
                        this.menuItem13,
                        this.menuItem14});
   this.menuItem10.Text = "注释";
   //
   // menuItem11
   //
   this.menuItem11.Index = 0;
   this.menuItem11.Text = "添加符号";
   this.menuItem11.Click += new System.EventHandler(this.menuItem11_Click);
   //
   // menuItem12
   //
   this.menuItem12.Index = 1;
   this.menuItem12.Text = "添加文本";
   this.menuItem12.Click += new System.EventHandler(this.menuItem12_Click);
   //
   // menuItem13
   //
   this.menuItem13.Index = 2;
   this.menuItem13.Text = "移除";
   this.menuItem13.Click += new System.EventHandler(this.menuItem13_Click);
   //
   // menuItem14
   //
   this.menuItem14.Index = 3;
   this.menuItem14.Text = "设置";
   this.menuItem14.Click += new System.EventHandler(this.menuItem14_Click);

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|物探论坛 ( 鄂ICP备12002012号 微信号:iwutan )

GMT+8, 2024-5-10 23:25 , Processed in 0.065339 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表