阅读:7908回复:27
编辑数据代码[下载]
代码下载
很值得一看哦! 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 |
|
|
1楼#
发布于:2003-10-03 11:46
非常感谢
|
|
2楼#
发布于:2003-10-31 10:44
ding
|
|
3楼#
发布于:2003-11-11 14:44
3x
|
|
4楼#
发布于:2003-11-11 16:29
不错
|
|
5楼#
发布于:2003-11-27 17:37
谢谢,收到
|
|
6楼#
发布于:2004-02-16 09:54
非常需要。谢谢
|
|
7楼#
发布于:2004-06-03 16:51
3Q
|
|
|
8楼#
发布于:2004-06-05 11:25
kankan
|
|
9楼#
发布于:2004-08-15 23:11
非常感谢
|
|
|
上一页
下一页