Dragon_G
路人甲
路人甲
  • 注册日期2003-08-07
  • 发帖数20
  • QQ
  • 铜币197枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:1556回复:2

实现Identify对话框思路????

楼主#
更多 发布于:2006-09-13 12:18
<P>本人想在AE中实现IDentify功能;</P>
<P>具体思路如下:</P>
<P>1:建立一个类class Identify:BaseTool</P>
<P>2:在public override void OnMouseDown(int Button, int Shift, int X, int Y)<BR>        {<BR>            DIdentify dindentify = new DIdentify();//我定义的对话框,显示属性<BR>            dindentify.Show();<BR>        }</P>
<P>3:在DIdentify中实现空间查询;</P>
<P>问题在这:我的工具条上有这么一个按钮来实现点击功能,我怎么来调用我刚才写的这个功能?????</P>
喜欢0 评分0
Dragon_G
路人甲
路人甲
  • 注册日期2003-08-07
  • 发帖数20
  • QQ
  • 铜币197枚
  • 威望0点
  • 贡献值0点
  • 银元0个
1楼#
发布于:2006-09-13 12:25
private void toolStripButton11_Click(object sender, EventArgs e)<BR>        {<BR>           ????????????????????????????????????????<BR>        }
举报 回复(0) 喜欢(0)     评分
gis
gis
管理员
管理员
  • 注册日期2003-07-16
  • 发帖数15947
  • QQ554730525
  • 铜币25339枚
  • 威望15364点
  • 贡献值0点
  • 银元0个
  • GIS帝国居民
  • 帝国沙发管家
  • GIS帝国明星
  • GIS帝国铁杆
2楼#
发布于:2006-09-14 09:55
<P>应该在dindentify.Show();的过程中或者之前,你已经加载了要素(feature)的属性信息;</P>
<P>所以你点"这么一个按钮"后,然后在地图上"点",然后空间查询,然后显示查询出的要素信息</P>
<P>++++++++++++++++++++++++++++++++</P>
<P>这里有个例子</P>
<P>http://edndoc.esri.com/arcobjects/9.0/Samples/Controls/Commands/Identify/Identify.htm </P>
<P>下载这个dll例子,引用到你的工程里,就可以使用了:0</P>
<P>Private Sub Form_Load()<br>  Dim pCommand as EsriSystemUI.ICommand<br>  set pCommand = new Identify<br>  PCommand.OnCreate MapControl1.Object<br> MapControl.CurrentTool = pCommand <br>End Sub</P>
[此贴子已经被作者于2006-9-14 9:57:09编辑过]
举报 回复(0) 喜欢(0)     评分
游客

返回顶部