gis
gis
管理员
管理员
  • 注册日期2003-07-16
  • 发帖数15947
  • QQ554730525
  • 铜币25339枚
  • 威望15364点
  • 贡献值0点
  • 银元0个
  • GIS帝国居民
  • 帝国沙发管家
  • GIS帝国明星
  • GIS帝国铁杆
阅读:7264回复: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
applee
路人甲
路人甲
  • 注册日期2003-08-16
  • 发帖数26
  • QQ
  • 铜币198枚
  • 威望0点
  • 贡献值0点
  • 银元0个
1楼#
发布于:2003-10-03 11:46
非常感谢
举报 回复(0) 喜欢(0)     评分
NinJa
路人甲
路人甲
  • 注册日期2003-10-29
  • 发帖数144
  • QQ
  • 铜币238枚
  • 威望0点
  • 贡献值0点
  • 银元0个
2楼#
发布于:2003-10-31 10:44
ding
举报 回复(0) 喜欢(0)     评分
tzsheng
路人甲
路人甲
  • 注册日期2003-11-05
  • 发帖数47
  • QQ
  • 铜币81枚
  • 威望0点
  • 贡献值0点
  • 银元0个
3楼#
发布于:2003-11-11 14:44
3x
举报 回复(0) 喜欢(0)     评分
jinzeng
路人甲
路人甲
  • 注册日期2003-07-28
  • 发帖数26
  • QQ
  • 铜币189枚
  • 威望0点
  • 贡献值0点
  • 银元0个
4楼#
发布于:2003-11-11 16:29
不错
举报 回复(0) 喜欢(0)     评分
trsoft
路人甲
路人甲
  • 注册日期2003-11-26
  • 发帖数56
  • QQ
  • 铜币253枚
  • 威望0点
  • 贡献值0点
  • 银元0个
5楼#
发布于:2003-11-27 17:37
谢谢,收到
举报 回复(0) 喜欢(0)     评分
liubz
路人甲
路人甲
  • 注册日期2003-09-25
  • 发帖数56
  • QQ
  • 铜币248枚
  • 威望0点
  • 贡献值0点
  • 银元0个
6楼#
发布于:2004-02-16 09:54
非常需要。谢谢
举报 回复(0) 喜欢(0)     评分
ch1219553
路人甲
路人甲
  • 注册日期2004-06-01
  • 发帖数25
  • QQ
  • 铜币258枚
  • 威望0点
  • 贡献值0点
  • 银元0个
7楼#
发布于:2004-06-03 16:51
3Q
我会努力的!
举报 回复(0) 喜欢(0)     评分
zdygis
路人甲
路人甲
  • 注册日期2004-01-08
  • 发帖数15
  • QQ
  • 铜币190枚
  • 威望0点
  • 贡献值0点
  • 银元0个
8楼#
发布于:2004-06-05 11:25
kankan
举报 回复(0) 喜欢(0)     评分
eeleo_Lion
论坛版主
论坛版主
  • 注册日期2003-11-29
  • 发帖数1798
  • QQ
  • 铜币551枚
  • 威望0点
  • 贡献值0点
  • 银元0个
9楼#
发布于:2004-08-15 23:11
非常感谢
人生得意须尽欢,莫使金樽空对月。 天生我材必有用,千金散尽还复来。
举报 回复(0) 喜欢(0)     评分
上一页
游客

返回顶部