📄 使用arcgis engine 开发自定义gis应用--第七部分 - gis大讲堂.htm
字号:
style="FONT-SIZE: 10pt">定制与扩展</FONT></FONT></B><FONT
face=TimesNewRoman><FONT
style="FONT-SIZE: 10pt"></FONT></FONT></FONT></P>
<P align=left><FONT size=3><FONT color=#000000><FONT
face=宋体>对于</FONT><FONT
face="Times New Roman">ToolbarControl</FONT><FONT
face=宋体>允许许多定制选项,一个</FONT><FONT face="Times New Roman">ArcGIS
Engine</FONT><FONT
face=宋体>应用程序可以多种多样的用户界面(增加、删除命令或工具),而这个工作是通过客户化自定制对话框来实现的,这在设计应用程序时对工具和菜单的设计,继任这样,</FONT><FONT
face="Times New Roman">ToolbarControl</FONT><FONT
face=宋体>也可以自动保存和导入自身已经包含的工具或命令,当然</FONT><FONT
face="Times New Roman">ToolbarControl</FONT><FONT
face=宋体>支持核心的</FONT><FONT face="Times New Roman">ESRI ArcGIS
</FONT><FONT face=宋体>工具和命令作为定制的组件来使用,当然</FONT><FONT
face="Times New Roman">ToolbarControl </FONT><FONT
face=宋体>一直都与其的绑定的控件一起使用,比如:</FONT><FONT
face="Times New Roman">MapControl, PageLayoutControl, ReaderControl,
SceneControl, </FONT><FONT face=宋体>或者</FONT><FONT
face="Times New Roman"> GlobeControl</FONT><FONT
face=宋体>,这个可以通过</FONT><FONT face="Times New Roman">ToolbarControl
</FONT><FONT face=宋体>属性来进行设置(当然在程序中也可以使用),或者通过程序</FONT><FONT
face="Times New Roman">SetBuddyControl </FONT><FONT
face=宋体>方法来设置,</FONT><FONT
face="Times New Roman">ToolbarControl</FONT><FONT
face=宋体>它自身已经有了一组命令、工具,工具控件及菜单与其关联的控件关联使用,比如:放大命令工具,当</FONT><FONT
face="Times New Roman">ToolbarControl </FONT><FONT
face=宋体>的关联控件是</FONT><FONT face="Times New Roman">MapControl
</FONT><FONT face=宋体>时就有效,当然也就会触发</FONT><FONT
face="Times New Roman">‘ZoomIn’ </FONT><FONT
face=宋体>功能,这里还包含很多其他的命令、工具来供开发者使用,我们可以通过下面的图来了解它们之间的关系。</FONT></FONT></FONT><BR><FONT
face="Times New Roman"><FONT size=3><FONT
color=#000000></FONT></FONT></FONT><BR><BR><IMG class=absmiddle
alt=""
src="使用ArcGIS Engine 开发自定义GIS应用--第七部分 - GIS大讲堂.files/image.gif"
border=0> <A title=查看积分策略说明
href="http://bbs.esrichina-bj.cn/ESRI/member.php?action=credits&view=getattach"
target=_blank>图片附件</A>: <A class=bold
href="http://bbs.esrichina-bj.cn/ESRI/attachment.php?aid=3098"
target=_blank>1.JPG</A> (2007-3-25 11:13 AM, 12.4 K)<BR><BR><IMG
onmousewheel="return imgzoom(this);"
onmouseover="if(this.resized) this.style.cursor='hand';"
onclick="if(!this.resized) {return false;} else {window.open('attachments/forumid_14/1_uEM2oCzGGV9L.jpg');}"
alt=""
src="使用ArcGIS Engine 开发自定义GIS应用--第七部分 - GIS大讲堂.files/1_uEM2oCzGGV9L.jpg"
onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='点击在新窗口查看全图\nCTRL+鼠标滚轮放大或缩小';}"
border=0></P><BR><BR>
<P align=left><FONT color=#000000><B><FONT face=Arial,Bold><FONT
style="FONT-SIZE: 10pt">ToolbarControl</FONT></FONT></B><B><FONT
face=宋体><FONT
style="FONT-SIZE: 10pt">控件的架构</FONT></FONT></B><B><FONT
face=Arial,Bold><FONT
style="FONT-SIZE: 10pt"></FONT></FONT></B></FONT></P>
<P align=left><FONT size=3><FONT color=#000000><FONT
face=宋体>其实</FONT><FONT
face="Times New Roman">ToolbarControl</FONT><FONT
face=宋体>控件的架构与</FONT><FONT face="Times New Roman">ArcGIS
Desktop</FONT><FONT
face=宋体>应用程序架构相似,程序开发者可以作这些提供的“组件”来建立自己的基于</FONT><FONT
face="Times New Roman">ToolbarControl</FONT><FONT
face=宋体>的应用程序,这个</FONT><FONT
face="Times New Roman">ToolbarControl</FONT><FONT
face=宋体>容器对象主要是</FONT><FONT
face="Times New Roman">toolbarItems</FONT><FONT
face=宋体>项来增加,它自身来启动这些命令、工具的显示及状态,一个</FONT><FONT
face="Times New Roman">ToolbarControl</FONT><FONT
face=宋体>提供了主命令、工具、</FONT><FONT
face="Times New Roman">ToolControls</FONT><FONT
face=宋体>和</FONT><FONT face="Times New Roman">
ToolbarMenus</FONT><FONT face=宋体>。在</FONT><FONT
face="Times New Roman">ToolbarMenu </FONT><FONT
face=宋体>中包含了</FONT><FONT
face="Times New Roman">ToolbarItems</FONT><FONT
face=宋体>,其中</FONT><FONT face="Times New Roman">ToolbarMenu
</FONT><FONT
face=宋体>与一个逻辑关联项关联了相似的功能或增加项的排列来指定你要使用的功能。对于</FONT><FONT
face="Times New Roman">CustomizeDialog </FONT><FONT
face=宋体>包含一人非模态对话框来允许命令、工具栏的定义并且菜单定义来增中到</FONT><FONT
face="Times New Roman">ToolbarControl</FONT><FONT
face=宋体>中,当然这是通过设置</FONT><FONT
face="Times New Roman">IToolbarControl::Customize</FONT><FONT
face=宋体>属性为</FONT><FONT face="Times New Roman">true</FONT><FONT
face=宋体>的情况下才能使用,这是因为非模态对话框的机制而定的,我们可以通过下面的图来了解</FONT><FONT
face="Times New Roman">Toolbarcontrol</FONT><FONT
face=宋体>、</FONT><FONT face="Times New Roman">ToolbarItem</FONT><FONT
face=宋体>、</FONT><FONT face="Times New Roman">ToolbarMenu</FONT><FONT
face=宋体>、</FONT><FONT
face="Times New Roman">CustomizeDialog</FONT><FONT
face=宋体>之间的关系:</FONT></FONT></FONT></P>
<P align=left><BR><BR><IMG class=absmiddle alt=""
src="使用ArcGIS Engine 开发自定义GIS应用--第七部分 - GIS大讲堂.files/image.gif"
border=0> <A title=查看积分策略说明
href="http://bbs.esrichina-bj.cn/ESRI/member.php?action=credits&view=getattach"
target=_blank>图片附件</A>: <A class=bold
href="http://bbs.esrichina-bj.cn/ESRI/attachment.php?aid=3099"
target=_blank>2.JPG</A> (2007-3-25 11:13 AM, 111.46 K)<BR><BR><IMG
onmousewheel="return imgzoom(this);"
onmouseover="if(this.resized) this.style.cursor='hand';"
onclick="if(!this.resized) {return false;} else {window.open('attachments/forumid_14/2_5gwQSzBhaTV3.jpg');}"
alt=""
src="使用ArcGIS Engine 开发自定义GIS应用--第七部分 - GIS大讲堂.files/2_5gwQSzBhaTV3.jpg"
onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='点击在新窗口查看全图\nCTRL+鼠标滚轮放大或缩小';}"
border=0></P><BR><BR>[<I> 本帖最后由 北斗星 于 2007-3-25 11:15 AM 编辑
</I>]</DIV></TD></TR>
<TR>
<TD vAlign=bottom><BR><BR><BR><IMG alt=""
src="使用ArcGIS Engine 开发自定义GIS应用--第七部分 - GIS大讲堂.files/sigline.gif"><BR>
<DIV class=signature
style="OVERFLOW: hidden; max-height: 20em; maxHeight: 245px">欢迎参加ESRI2007巡展</DIV></TD></TR>
<TR>
<TD align=right> <A
href="http://bbs.esrichina-bj.cn/ESRI/post.php?action=reply&fid=14&tid=6808&repquote=34846&extra=page%3D1">引用</A>
<A
href="http://bbs.esrichina-bj.cn/ESRI/misc.php?action=report&fid=14&tid=6808&pid=34846&page=1">报告</A>
<A onclick="fastreply('回复 #1 北斗星 的帖子')"
href="http://bbs.esrichina-bj.cn/ESRI/viewthread.php?tid=6808&extra=page%3D1###">回复</A>
<A onclick=scroll(0,0)
href="http://bbs.esrichina-bj.cn/ESRI/viewthread.php?tid=6808&extra=page%3D1###"><IMG
alt=顶部 src="使用ArcGIS Engine 开发自定义GIS应用--第七部分 - GIS大讲堂.files/top.gif"
border=0></A> </TD></TR>
<TR class=t_infoline>
<TD class=line
style="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; PADDING-TOP: 5px">[广告]
<A href="http://www.esrichina-bj.cn/2007roadshow/index.htm"
target=_blank>想了解最新的GIS技术?赶快报名参加“2007ESRI中国(北京)有限公司全国巡展”</A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV>
<DIV class=spaceborder style="MARGIN-BOTTOM: 4px; WIDTH: 98%">
<TABLE class=t_row cellSpacing=0 cellPadding=4 width="100%" align=center>
<TBODY>
<TR style="HEIGHT: 100%">
<TD class=t_user vAlign=top width="18%"><A class=bold
href="http://bbs.esrichina-bj.cn/ESRI/viewpro.php?uid=5714"
target=_blank>suke4131</A> <BR>
<DIV class=smalltxt>新手上路<BR><IMG alt="Rank: 1"
src="使用ArcGIS Engine 开发自定义GIS应用--第七部分 - GIS大讲堂.files/star_level1.gif"><BR><BR><BR><BR>UID
5714<BR>精华 0<BR>积分 55<BR>帖子 40<BR>金钱 55 <BR>威望 0 <BR>阅读权限 5<BR>注册
2006-11-8<BR>状态 离线 </DIV></TD>
<TD
style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px"
vAlign=top width="82%">
<TABLE class=t_msg cellSpacing=0 cellPadding=4 border=0>
<TBODY>
<TR>
<TD>
<DIV>
<DIV class="right t_number"><A class=bold
onclick="window.clipboardData.setData('text','http://bbs.esrichina-bj.cn/ESRI/viewthread.php?tid=6808&page=1#pid35231')"
href="http://bbs.esrichina-bj.cn/ESRI/viewthread.php?tid=6808&extra=page%3D1###">#2</A></DIV>
<DIV style="PADDING-TOP: 4px">发表于 2007-3-19 02:46 PM <A
href="http://bbs.esrichina-bj.cn/ESRI/viewpro.php?uid=5714">资料</A>
<A
href="http://bbs.esrichina-bj.cn/ESRI/pm.php?action=send&uid=5714"
target=_blank>短消息</A> </DIV></DIV></TD></TR>
<TR>
<TD class=line style="PADDING-TOP: 10px" vAlign=top height="100%"><A
title="评分 0"
href="http://bbs.esrichina-bj.cn/ESRI/misc.php?action=viewratings&tid=6808&pid=35231"
name=pid35231></A>
<DIV style="FONT-SIZE: 12px">非常期待北斗星的精彩讲座!!!</DIV></TD></TR>
<TR>
<TD align=right> <A
href="http://bbs.esrichina-bj.cn/ESRI/post.php?action=reply&fid=14&tid=6808&repquote=35231&extra=page%3D1">引用</A>
<A
href="http://bbs.esrichina-bj.cn/ESRI/misc.php?action=report&fid=14&tid=6808&pid=35231&page=1">报告</A>
<A onclick="fastreply('回复 #2 suke4131 的帖子')"
href="http://bbs.esrichina-bj.cn/ESRI/viewthread.php?tid=6808&extra=page%3D1###">回复</A>
<A onclick=scroll(0,0)
href="http://bbs.esrichina-bj.cn/ESRI/viewthread.php?tid=6808&extra=page%3D1###"><IMG
alt=顶部 src="使用ArcGIS Engine 开发自定义GIS应用--第七部分 - GIS大讲堂.files/top.gif"
border=0></A> </TD></TR>
<TR class=t_infoline>
<TD class=line
style="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; PADDING-TOP: 5px">[广告]
<A href="http://www.esrichina-bj.cn/2007roadshow/index.htm"
target=_blank>想了解最新的GIS技术?赶快报名参加“2007ESRI中国(北京)有限公司全国巡展”</A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV>
<DIV class=spaceborder style="MARGIN-BOTTOM: 4px; WIDTH: 98%">
<TABLE class=t_row cellSpacing=0 cellPadding=4 width="100%" align=center>
<TBODY>
<TR style="HEIGHT: 100%">
<TD class=t_user vAlign=top width="18%"><A class=bold
href="http://bbs.esrichina-bj.cn/ESRI/viewpro.php?uid=6301"
target=_blank>妹寐轩主</A> <BR>
<DIV class=smalltxt>新手上路<BR><IMG alt="Rank: 1"
src="使用ArcGIS Engine 开发自定义GIS应用--第七部分 - GIS大讲堂.files/star_level1.gif"><BR><BR><BR><BR>UID
6301<BR>精华 0<BR>积分 75<BR>帖子 132<BR>金钱 75 <BR>威望 0 <BR>阅读权限 5<BR>注册
2006-12-6<BR>状态 离线 </DIV></TD>
<TD
style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px"
vAlign=top width="82%">
<TABLE class=t_msg cellSpacing=0 cellPadding=4 border=0>
<TBODY>
<TR>
<TD>
<DIV>
<DIV class="right t_number"><A class=bold
onclick="window.clipboardData.setData('text','http://bbs.esrichina-bj.cn/ESRI/viewthread.php?tid=6808&page=1#pid36181')"
href="http://bbs.esrichina-bj.cn/ESRI/viewthread.php?tid=6808&extra=page%3D1###">#3</A></DIV>
<DIV style="PADDING-TOP: 4px">发表于 2007-3-22 11:53 AM <A
href="http://bbs.esrichina-bj.cn/ESRI/viewpro.php?uid=6301">资料</A>
<A
href="http://bbs.esrichina-bj.cn/ESRI/pm.php?action=send&uid=6301"
target=_blank>短消息</A> </DIV></DIV></TD></TR>
<TR>
<TD class=line style="PADDING-TOP: 10px" vAlign=top height="100%"><A
title="评分 0"
href="http://bbs.esrichina-bj.cn/ESRI/misc.php?action=viewratings&tid=6808&pid=36181"
name=pid36181></A>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -