MapXtreme2005之WinApp开发----基本工具
2008-07-14 16:30
477 查看
MapInfo.Tools命名空间包含用于 MapXtreme 中所有桌面工具的常用自定义 Tool 定义。
MapTools集合是 MapControl 基类
MapInfo.Mapping.FeatureViewer的成员。
View 工具是
ZoomIn、ZoomOut、Center 和 Pan。
常用 Select 工具包括:
SelectPoint、SelectPolygon、SelectRect、SelectRadius 和 SelectRegion。
SelectPoint 工具允许用户移动对象、调整对象的大小和旋转对象。Select 节点模式允许用户将独立点移动、增加或删除到对象和从对象移动、增加或删除独立点。使用 SelectRect、SelectRadius 和 SelectPolygon 工具,动态 Selection 显示当鼠标移动时何种对象可以在选择集内。
Add Feature 工具包括:
AddPoint、AddLine、AddPolyline、AddPolygon、AddCircle、AddEllipse 和 AddRectangle。每个 Add 工具都具有样式和插入图层属性。
要将常用 Tool 分配给鼠标 LeftButton、MiddleButton 和 RightButton,则为适当的鼠标按键属性使用以下字符串工具名称:"Arrow"、"ZoomIn"、"ZoomOut"、"Center"、"Pan"、"Select"、"SelectRect"、"SelectRadius"、"SelectPolygon"、"SelectRegion"、"AddPoint"、"AddLine"、"AddPolyline"、"AddPolygon"、"AddRectangle"、"AddCircle"、"AddEllipse"、"AddText" 和 "Label"。
上面截图中几个工具按钮对应的代码为:
private void btnZoomIn_Click (object sender, EventArgs e) { MainMap.Tools.LeftButtonTool = "ZoomIn"; } private void btnZoomOut_Click (object sender, EventArgs e) { MainMap.Tools.LeftButtonTool = "ZoomOut"; } private void btnPan_Click (object sender, EventArgs e) { MainMap.Tools.LeftButtonTool = "Pan"; } private void btnSelect_Click (object sender, EventArgs e) { MainMap.Tools.LeftButtonTool = "Select"; } private void btnLayerControl_Click (object sender, EventArgs e) { LayerControlDlg laydlg = new LayerControlDlg(); laydlg.Map = MainMap.Map; laydlg.LayerControl.Tools = MainMap.Tools; laydlg.ShowDialog(); } private void btnCenter_Click (object sender, EventArgs e) { MainMap.Tools.LeftButtonTool = "Center"; } private void btnLabel_Click (object sender, EventArgs e) { MainMap.Tools.LeftButtonTool = "Label"; } private void btnSelectRect_Click (object sender, EventArgs e) { MainMap.Tools.LeftButtonTool = "SelectRect"; }
Mapxtreme2005V6.7 + VS2005
相关文章推荐
- 20个可以帮你简化iOS app开发流程的工具
- Windows App开发之应用布局与基本导航
- Java项目开发环境构建工具 Gradle 使用笔记(简单、基本)
- 人人都是开发者:5款傻瓜式APP开发工具
- 技术大众化--10款无需编程的App DIY开发工具
- 微软发布Win10 Mobile开发者旁加载应用部署工具 WinAppDeployCmd
- 5 款傻瓜式手机 APP 开发工具
- Yapp:傻瓜式自助App开发工具
- [APP开发] 在 Win 7或8 下使用 VirtualBOX 虚拟机安装 OS X 10.10 Yosemite 及 Xcode 6.1
- 手机APP开发常用工具有哪些
- 使用下面这些工具和技巧,帮你快速开发一个Android App
- Java项目开发环境构建工具 Gradle 使用笔记(简单、基本)
- mobile web app 开发工具收集
- 羊皮书APP(Android版)开发系列(六)几个工具的选取
- Microsoft Experss 2005 系列开发工具下载地址
- 放眼未来-了解APP开发工具
- iOS开发之工具篇-20个可以帮你简化移动app开发流程的工具
- ios开发APP必须要了解的基本配置
- 'DeviceOne'技术跨平台App开发-最简单的app开发工具
- 2..移动APP开发使用什么样的原型设计工具比较合适?