摘要:
代码如下: Option Explicit Private Type TBBUTTON iBitmap As Long idCommand As Long fsState As Byte fsStyle As Byte bReserved1 As Byte bReserved2 As Byte dwData As Long iString As Long End Type Priv... 阅读全文
摘要:
菜单项竟然跑到后面去了,搞了好多天,终于解决了 只要把这句代码放到main()的最前面就可以了 JPopupMenu.setDefaultLightWeightPopupEnabled(false); 阅读全文
摘要:
Option Explicit Implements esriCarto.IMaps Public m_Collection As Collection Private Sub Class_Initialize() Set m_Collection = New Collection End Sub '----------------IMaps接口的方法及属性的实现----------------... 阅读全文
摘要:
以前没时间上网找找,今天上网看了一番发现并没有提到这个问题的 但我确实没看到有像IMapcontrol2的showScrollbars的这个东西 后来到edn上才看到showScrollbars是IActiveView接口的方法 所以设置pagelayoutcontrol的滚动条用以下语句: pPageLayoutControl.ActiveView.ShowScrollBars = True 阅读全文
摘要:
添加文本,图例,图形比例尺,文字比例尺 Private Sub insertText_Click() Dim pActiveView As IActiveView Dim pGraphicsContainer As IGraphicsContainer Dim pTextElement As ITextElement, pTextSymbol As ITextSymbol, pColor A... 阅读全文
摘要:
Set pFieldsEdit = featLayer.FeatureClass.Fields strFieldInfo = "" Set pField = New Field Set pFieldEdit = pField With pFieldEdit .Name = txtFieldname.Text strFieldInfo = strFieldInfo & "字段名:... 阅读全文
摘要:
清除图层中所有图层的代码如下: IActiveView activeView = mainMapBean.getActiveView(); //获取当前地图的视图 activeView.clear(); //清除地图中的图层 activeView.refresh(); //刷新当前视图 新建一个对话框的过滤的类 import javax.swing.filechooser.FileF... 阅读全文