驯服Backstage
时 间:2011-07-01 20:38:16
作 者:小魏 ID:2173 城市:青浦
摘 要:Backstage;Ribbon
正 文:
Backstage是OFFICE2010里出来的代替原来的OFFICE菜单的.而之前写的Ribbon代码这时可能会变成了加载项.而Backstage会显示一些我们不想被显示的重要内容.如<个人信息选项>等.
找了网上的所有资料,发现所有的经验都是针对2007的.关于Backstage的资料却少见.
以下是本人的Ribbon代码,其中 <backstage></backstage>的内容可供大家参考.
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui"
loadImage="CallBackLoadImage"
onLoad="MyRibbonLoad" >
<!-- 关闭所有功能区,以便于重新定义 -->
<ribbon startFromScratch="true">
<!-- 自定义快速启动区 -->
<qat>
<sharedControls>
<control idQ="Undo" />
<control idQ="Redo" />
<control idQ="RecordsRefreshRecords" />
<!-- 显示关闭打印预览 -->
<control idQ="PrintPreviewClose" />
<!-- 显示总计 -->
<control idQ="RecordsTotals" />
<!-- 新的分组 -->
<!-- <control idQ="sep1" /> -->
<control idQ="Cut"/>
<control idQ="Copy" />
<control idQ="Paste" />
<!-- 新的分组,导出到EXCEL,刷新所有数据 -->
<!-- <separator idQ="sep2" /> -->
<control idQ="ExportExcel" />
<control idQ="DataRefreshAll" />
<!-- 查找,升续,降续 -->
<control idQ="FindDialog" />
<control idQ="SortUp" />
<control idQ="SortDown" />
<control idQ="FilePrintPreview" />
<!-- 显示加载项 -->
<control idQ="GroupAddInsCustomToolbars" />
</sharedControls>
</qat>
<tabs>
<!-- 创建新的功能区 -->
<tab id="Home" label="管理系统开始菜单">
<group idQ="GroupClipboard" />
<group idQ="GroupTextFormatting" />
<group idQ="GroupRichText" />
<group idQ="GroupRecords" />
<group idQ="GroupClipboard" />
<group idQ="GroupFindAccess" />
<group idQ="GroupSortAndFilter" />
<!-- 创建新的组 -->
<group id="group1" label="Basic Button Attributes Examples">
<button id="button1" label="Buttion1"
size="large"
getEnabled="MyEnable"
getVisible="MyVisible"
image="CokeClassic.png"
onAction="=Bt1()"
supertip= "In this example, we load a custom image without ability to change image at runtime"
/>
<button id="button2" label="button2"
size="large"
getEnabled="MyEnable"
getVisible="MyVisible"
image="CokeZero.png"
onAction="=Bt2()"
/>
<button id="button3"
size="large"
getLabel="MyLabel"
getEnabled="MyEnable"
getVisible="MyVisible"
imageMso="EquationMatrixGallery"
onAction="=Bt3()"
supertip= "In this example, we set an MSO office image from the built in icons"
/>
</group>
</tab>
<tab id="gongnenqu" label="功能区">
<group id="loadFormsGroup1" label="Load Forms1">
</group>
<group id="loadFormsGroup2" label="Load Forms2">
<button id="loadForm2Button" label="Load Form2" onAction="HandleOnAction" tag="Form2" />
<button id="loadForm1Button" label="Load Form1" onAction="HandleOnAction" tag="Form1"/>
<button id="WZWUnderline"
label="Protect All Table"
size="normal"
getImage="MyImage"
tag="happy.png"
supertip= "ldsjfdjsljfldsjfldsjfl"
/>
</group>
</tab>
<tab id="wzwOICQ" label="在线人员">
</tab>
</tabs>
</ribbon>
<backstage>
<tab id="testArea" label="Sample Scenarios" columnWidthPercent="30" insertAfterMso="TabInfo" visible="true" >
<firstColumn>
<group id="grpTwo" label="Group Two" visible="true" >
<primaryItem>
<menu id="menuOne" label="DropDown Menu">
<menuGroup id="menuGrpOne" >
<button id="btnOne" label="Button one" />
<button id="btnTwo" label="Button two" />
<checkBox id="chkBoxOne" label="Sample Check Box" />
</menuGroup>
</menu>
</primaryItem>
<topItems>
<imageControl id="imgControlOne" imageMso="BlogHomePage"/>
<groupBox id="grpBox" label="Group Box with Check Boxes and Radio Group">
<checkBox id="chkBox1" label="A Check Box" />
<checkBox id="chkBox2" label="Disabled Check Box" enabled="false" />
<radioGroup id="rdoGrp" label="Nested Radio Group" >
<radioButton id="firstRadioBtn" label="1st Radio Button"/>
<radioButton id="secondRadioBtn" label="2nd Radio Button"/>
</radioGroup>
</groupBox>
</topItems>
</group>
</firstColumn>
</tab>
<button idQ="ApplicationOptionsDialog" visible="false"/>
<button idQ="FileExit" visible="false"/>
</backstage>
</customUI>
Access软件网QQ交流群 (群号:54525238) Access源码网店
常见问答:
技术分类:
源码示例
- 【源码QQ群号19834647...(12.17)
- Access对子窗体数据进行批...(10.30)
- 最精简的组合框行来源数据快速输...(10.25)
- Access仿平台的多值选择器...(10.24)
- 【Access日期区间段查询】...(10.22)
- 【Access源码示例】VBA...(10.12)
- Access累乘示例,Acce...(10.09)
- 数值8.88,把整数8去掉,转...(10.08)
- 【Access自定义函数】一个...(09.30)
- 【Access选项卡示例】Ac...(09.09)
学习心得
最新文章
- 【Access IIF函数嵌套示例...(11.26)
- Access快速开发平台--使用组...(11.25)
- Access快速开发平台--对上传...(11.22)
- Access快速开发平台企业版--...(11.18)
- 不会用多表联合查询,多表查询没结果...(11.16)
- 【案例分享】主键字段值含有不间断空...(11.16)
- Access快速开发平台--后台D...(11.14)
- 微软Access邀测新Monaco...(11.12)
- Access列表框左右互选、列表框...(11.11)
- 高效率在导入数据前删除记录(11.10)