|
阅读:1744回复:3
AE开发问题
请问怎样在AE中实现如ArcMap的toc中的点击左键弹出Symbol Selector对话框,点击右键弹出ColorPalette
|
|
|
1楼#
发布于:2007-07-24 22:25
<P> Private Sub TOC_OnMouseDown(ByVal sender As Object, ByVal e As ESRI.ArcGIS.TOCControl.ITOCControlEvents_OnMouseDownEvent) Handles TOC.OnMouseDown<BR> Dim pOther As Object = Nothing<BR> Dim pItem As esriTOCControlItem<BR> Dim pIndex As Object = Nothing<BR> Dim pMap As IMap = Nothing<BR> Dim pLayer As ILayer = Nothing</P>
<P> 'Determine what kind of item has been clicked on<BR> TOC.HitTest(e.x, e.y, pItem, pMap, pLayer, pOther, pIndex)<BR> If e.button = 2 Then</P> <P> 'Only layer items can have their labels edited<BR> If pItem = esriTOCControlItem.esriTOCControlItemLayer Then<BR> TOCPopupMenu.ShowPopup(Control.MousePosition)<BR> End If<BR> ElseIf e.button = 1 Then<BR> If pItem = esriTOCControlItem.esriTOCControlItemLegendClass Then<BR> If TypeOf pOther Is ILegendGroup Then<BR> ''Todo sth<BR> End If<BR> End If<BR> End If</P> <P> End Sub</P> |
|
|
|
2楼#
发布于:2007-07-24 16:11
<P>有谁对ae开发了解多点的,请多写些在上面</P>
|
|
|
3楼#
发布于:2007-06-09 11:23
使用ae9.2就有Symbol Selector对话框
|
|
|