阅读:3842回复:5
如何实现从data view切换到layout view窗口?急
如何实现从data view切换到layout view窗口?急
|
|
1楼#
发布于:2004-07-21 23:07
<P>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0> <TR > <TD vAlign=top> <P align=left><B>DataFrame</B><B> Commands</B><p></p></P></TD> <TD vAlign=top> <P align=right><v:shapetype><v:stroke joinstyle="miter"></v:stroke><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"></v:f><v:f eqn="sum @0 1 0"></v:f><v:f eqn="sum 0 0 @1"></v:f><v:f eqn="prod @2 1 2"></v:f><v:f eqn="prod @3 21600 pixelWidth"></v:f><v:f eqn="prod @3 21600 pixelHeight"></v:f><v:f eqn="sum @0 0 1"></v:f><v:f eqn="prod @6 1 2"></v:f><v:f eqn="prod @7 21600 pixelWidth"></v:f><v:f eqn="sum @8 21600 0"></v:f><v:f eqn="prod @7 21600 pixelHeight"></v:f><v:f eqn="sum @10 21600 0"></v:f></v:formulas><v:path connecttype="rect" gradientshapeok="t" extrusionok="f"></v:path><lock aspectratio="t" v:ext="edit"></lock></v:shapetype><v:shape></v:shape><p></p></P></TD></TR></TABLE> <P align=left> <B>Description:</B> This sample provides a set of sample commands and tools related to the DataFrame that can either be used in conjunction with the MapControl and PageLayoutControl, or can be used to customize ArcMap. <p></p></P> <P align=left>The sample assumes previous experience in creating custom Tools and Commands. <p></p></P> <P> <TABLE cellPadding=0 border=0> <TR > <TD > <P align=left><B>RemoveData command</B><p></p></P></TD></TR> <TR > <TD > <P align=left>The IMap::ClearLayers method is used to remove all data from the FocusMap.<p></p></P></TD></TR></TABLE> <P align=left> <B>How to use:</B> <p></p></P> <OL type=1> <LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt">Register the DataFrames.dll <p></p></LI> <LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt">Either add the Commands to the ArcMap interface with the Customize dialog. <p></p></LI> <LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt">Or to use the Commands with the MapControl or PageLayoutControl add a reference to the 'ESRI Sample DataFrame Commands' and use the following code. <p></p></LI></OL> <P align=left>4. Dim pCommand As ICommand<p></p></P> <P align=left>5. Set pCommand = New ESRI_DataFrames.RemoveData<p></p></P> <P align=left>6. pCommand.OnCreate MapControl1.Object<p></p></P> <P ><B>Application:</B> ArcMap, MapControl, PageLayoutControl <B>Minimum ArcGIS Version Required:</B> 8.2 <B>Difficulty:</B> Advanced</P> [此贴子已经被作者于2004-7-21 23:07:50编辑过]
|
|
|
2楼#
发布于:2004-07-21 11:02
<P>如果你是编程实现那么需要自己编程实现,只是MapControl控件和PageLayout控制哪个可见的问题</P><P>如果你是在ArcMap点击视图下面的小按钮就可以切换!</P><P>什么是用程序打开ArcMap?不懂!</P>
|
|
|
3楼#
发布于:2004-07-21 10:36
<P>就是用程序打开ARCMAP后,加上图层,然后将视图切换为布局视图,原来缺省的是数据视图。</P>
|
|
4楼#
发布于:2004-07-21 10:36
<P>就是用程序打开ARCMAP后,加上图层,然后将视图切换为布局视图,原来缺省的是数据视图。</P>
|
|
5楼#
发布于:2004-07-21 10:27
<P>什么意思?什么环境?</P>
|
|
|