gis
gis
管理员
管理员
  • 注册日期2003-07-16
  • 发帖数15951
  • QQ
  • 铜币25345枚
  • 威望15368点
  • 贡献值0点
  • 银元0个
  • GIS帝国居民
  • 帝国沙发管家
  • GIS帝国明星
  • GIS帝国铁杆
阅读:7908回复:27

编辑数据代码[下载]

楼主#
更多 发布于:2003-09-26 13:38
代码下载

很值得一看哦!
This sample demonstrates using the Edit, Editor, File and PanZoom Control's Command samples in conjunction with the Microsoft Windows Common ToolBar Control and ImageList Control. For the sample to run the following COM components must be registered on the system and referenced in Visual Basic:

ESRI Sample Edit Commands (Edit.dll)

ESRI Sample Editor Commands (Editor.dll)

ESRI Sample File Commands (File.dll)

ESRI Sample PanZoom Commands (PanZoom.dll)

Microsoft Windows Common Controls (Mscomctl.ocx)

When each ICommand is created it is passed the MapControl as a hook, so it knows what object it must work with and the Command is added to a Command's Collection with the Command's Name property as its key. The Command's Bitmap is added to the ImageList Control and a new Button is added to the ToolBar Control, both with key values set to the Command's Name property. The Button's image is accessed from the ImageList Control, and its Enabled, TooltipText and Description properties are set to those of the Command's Enabled, Tooltip and Message properties.

When a user clicks a button on the ToolBar, its ButtonClick event is fired. The Command item is returned from the Commands Collection using the Button's key value and its OnClick event is triggered. If the Command is a type of ITool it is set to the MapControl's CurrentTool.

The appearance of the ToolBarControl and the MapControl's CurrentTool is updated whenever the ToolBar's ButtonClick event or the MapControl's OnAfterDrawScreen event is triggered. The Enabled property of each Button in the ToolBar Control is set to that of its associated Command in the Commands Collection. If the MapControl's CurrentTool has become disabled the CurrentTool is set to Nothing.

How to use:
Ensure that the COM components are registered on the system.
Either run the EditData.exe or open the EditData.vbp and run from within the project.

Application: MapControl

Minimum ArcGIS Version Required: 8.2

Difficulty: Intermediate

喜欢0 评分0
GIS麦田守望者,期待与您交流。
amw269756
路人甲
路人甲
  • 注册日期2005-01-30
  • 发帖数58
  • QQ
  • 铜币258枚
  • 威望0点
  • 贡献值0点
  • 银元0个
1楼#
发布于:2007-04-18 11:56
非常感谢
举报 回复(0) 喜欢(0)     评分
home_xj5460
路人甲
路人甲
  • 注册日期2005-07-12
  • 发帖数65
  • QQ
  • 铜币297枚
  • 威望0点
  • 贡献值0点
  • 银元0个
2楼#
发布于:2007-04-17 15:39
谢谢,是不是来晚了,看不到了……
举报 回复(0) 喜欢(0)     评分
candycanqq
路人甲
路人甲
  • 注册日期2006-03-05
  • 发帖数57
  • QQ
  • 铜币264枚
  • 威望0点
  • 贡献值0点
  • 银元0个
3楼#
发布于:2007-04-16 16:22
<img src="images/post/smile/dvbbs/em03.gif" />
举报 回复(0) 喜欢(0)     评分
xinbo
路人甲
路人甲
  • 注册日期2006-02-28
  • 发帖数29
  • QQ
  • 铜币192枚
  • 威望0点
  • 贡献值0点
  • 银元0个
4楼#
发布于:2006-03-21 17:24
<img src="images/post/smile/dvbbs/em05.gif" />
举报 回复(0) 喜欢(0)     评分
pzmouse
路人甲
路人甲
  • 注册日期2006-03-05
  • 发帖数20
  • QQ
  • 铜币16枚
  • 威望0点
  • 贡献值0点
  • 银元0个
5楼#
发布于:2006-03-05 16:22
kankan....
举报 回复(0) 喜欢(0)     评分
pgisgpsrs
路人甲
路人甲
  • 注册日期2004-09-20
  • 发帖数59
  • QQ
  • 铜币405枚
  • 威望0点
  • 贡献值0点
  • 银元0个
6楼#
发布于:2005-06-08 17:21
<img src="images/post/smile/dvbbs/em03.gif" />
举报 回复(0) 喜欢(0)     评分
blaster
路人甲
路人甲
  • 注册日期2005-02-22
  • 发帖数153
  • QQ
  • 铜币486枚
  • 威望0点
  • 贡献值0点
  • 银元0个
7楼#
发布于:2005-06-06 16:50
<img src="images/post/smile/dvbbs/em01.gif" /><img src="images/post/smile/dvbbs/em01.gif" /><img src="images/post/smile/dvbbs/em02.gif" />
举报 回复(0) 喜欢(0)     评分
jufeng_82
路人甲
路人甲
  • 注册日期2005-04-21
  • 发帖数2
  • QQ
  • 铜币139枚
  • 威望0点
  • 贡献值0点
  • 银元0个
8楼#
发布于:2005-06-02 17:41
<P>到底该怎么用啊?新手请指点.....</P>
举报 回复(0) 喜欢(0)     评分
wzhipeng0117
路人甲
路人甲
  • 注册日期2005-05-05
  • 发帖数53
  • QQ
  • 铜币317枚
  • 威望0点
  • 贡献值0点
  • 银元0个
9楼#
发布于:2005-05-16 22:25
三可有
举报 回复(0) 喜欢(0)     评分
上一页
游客

返回顶部