阅读:1710回复:2
实现Identify对话框思路????
<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> |
|
1楼#
发布于:2006-09-13 12:25
private void toolStripButton11_Click(object sender, EventArgs e)<BR> {<BR> ????????????????????????????????????????<BR> }
|
|
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编辑过]
|
|
|