|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
( W) r/ \) f5 `& L6 P2 h+ w/ O8 B4 o& ^' K2 O7 o4 a' ^( {
* `9 k+ r/ @! M2 n
8 k" H* A$ |% [5 ^2 {首先认识下关于菜单的后缀文件
+ z5 L3 r9 X F0 Z* B5 l2 J: U/ U( T4 A1 A1 X" ^1 g2 J) A
| | .tbr | Toolbar | .grb | Group | .gly | Gallery | .ddb | Drop-down | .rtb | Ribbon tab | .csb | Cascade | .abr | Attachment | + q9 g, G1 a9 Q" v2 ^
8 y7 l# K: S, b& Y: w5 I
RTB作为菜单ribbon 界面定义的关键,详细信息如下/ x1 b) C8 E" R$ a
/ C3 |# E+ N; a$ `4 K3 Q/ f9 }1 {6 ]% u, Z* Y8 r
customer_ribbon_tab.rtb
. J8 }+ o: X3 c" Q2 H!
C' L: u$ W' C% [$ T2 K! Customer Ribbon Tab! A, g# H5 p1 U, A; Y
! ( l" p+ g, M& q2 [/ |! n7 r
! This file will create a new customer tab containing three groups and
( q0 }9 P3 X5 _! q+ [8 a9 E& C4 P! one top level button.
* F2 ^. M; e5 w2 q; p!' j- s# q H5 s% g D, \
7 G9 a" G+ W4 I$ U& h; H/ j5 E2 ?
TITLE Customer Tab" [% I* ]) H- z s; f' G8 b
VERSION 170$ B, [# Q& G" q R* ]+ z1 H
- e9 r( P$ g0 N4 g- V- m
! The first group represents a Ribbon group that references an existing
4 `1 H. F0 ]+ E8 o4 }! toolbar with no Ribbon style changes.
' a5 Z5 P) `8 S% I& ?!
. @" M7 K) I$ A* `0 m! This is the quickest way to add existing toolbar content into Ribbon mode.4 X5 V8 p# x0 \' K) c/ h; |% }: k8 ]% Y) I
!7 D3 X i2 X; t5 e
GROUP customer_toolbar.tbr
6 \" o5 c6 m+ e) `! 如果想直接切换tbr 到 rtb,这是最快的
, C" {0 [* @) m! The second group represents a Ribbon group that references an existing
3 w7 D; z6 y8 v# `! toolbar with Ribbon specific style changes added to it. There is no difference
3 o' M, M: i9 Q8 `0 ]$ d% s, Z! in how this toolbar is referenced in the .rtb file compared to the first
6 v" i+ u% p* O6 A, {! toolbar as a group. The only differences from the first group exist within
# q4 v! O8 a3 `1 T# L) W! the .tbr file itself.
; m/ W7 W, }3 F!5 ]* V5 u* Z% \" G0 Z
! This approach has advantages for customers that will deploy both Ribbon and9 q+ q R7 T- s- d) `2 D
! Classic Mode customizations since all the content is defined in the .tbr - O$ ?2 U9 V8 M. v9 y* y0 B7 v
! file and it will stay synchronized in both modes. Only one set of customizations
) s4 h/ ^$ q0 H. S! will need to be maintained while still making use of RIBBON_STYLE to
5 p: @. q: N* _% {3 U! control the presentation of the buttons on the Ribbon.( K0 C: ~. Q1 J* t$ W6 H
!( E! a7 x8 M. A9 u% G0 Q* j
GROUP customer_toolbar_alternate.tbr: Q c* w# a8 Q
# w' Z# o; p, Y
! The third group represents a Ribbon group that has been created explicitly' J% c1 d3 ]6 {$ m
! as a Ribbon group and will not exist in Classic Toolbar mode. This is the- P% N2 f. {9 t0 H( t# o
! preferred option since the user will be able to take advantage of all the * |, H ]9 U! \. U( c4 H- U
! layout styles and containers offered by the Ribbon.
9 j" R# L6 g' @" _!2 K u. ?% [) w; o3 I" \
! For customers that will deploy both Ribbon and Classic Mode customizations, , J/ B# f6 r3 y( P! Z: @
! this approach will result in no synchronization and two sets of customizations
3 [7 B; l0 f" {" y* w! will need to be maintained.- x! F# s r% b6 F
!
. Q" z8 q; K$ t ~! A group can alternatively be defined directly inside the .rtb file by using the+ @3 X1 _4 f9 y( S. o
! keywords BEGIN_GROUP and END_GROUP.
# R% L" C7 Z* j!6 x8 ~6 u b1 E. S6 Q2 ?+ C2 Z; R
GROUP customer_group.grb
& V% i/ i, Y5 q" I' f- n* v
9 C) m1 @, `7 C9 s: ^/ {! Example of a button that is placed directly on the Ribbon without being
, v5 I: ]5 A& Z$ T2 @! contained in a group. This is a simple way to add a button to a tab
/ _3 }, y5 s' Q& d8 T# W5 V. q! but is not recommended for many buttons since groups have advantages.
- S! E) ]! N# O& [% \8 Z6 n; z% z y5 z5 y!
# Y8 \6 z; f0 L. v- X ^$ I: u! A few advantages of groups:
! W# I2 f6 U2 n; z* x+ D- X4 v! 1. Easier to move many buttons around together in quick customization.
: \$ ^: }4 E+ w, K. y& T! For example, MB3 on a group and choose "Add to Left Border Bar".
) i" v; ?7 ]) _: y# }) l# J. `! This will move the whole group to a new location. If buttons are ( m7 Y7 d* ^5 }: w* _ @! R( `
! not in a group, they need to be moved one at a time.
/ F6 i2 b( L5 E2 M% @- I/ ?!
# ?' N- ]& N3 A6 g! 2. Provide a label to describe its contents.7 l0 ~! e9 g+ a5 X( ? T
!
& d9 J+ v! j* K1 n+ \BUTTON CUSTOMER_BUTTON_1
! D( C2 |- b$ N( A0 uLABEL Button1 Directly on Tab+ ~2 |0 `1 s; e- y
# u. L. l/ b+ h部分菜单可以单独写成group gallery 作为对应后缀,重复调用8 t! Z: D& x; i5 j
! Example of a gallery defined in a GRB file.1 K4 y; W; l" I: _/ Q# u
!
% A( w; N& x0 o; v3 O& [0 V! If this gallery is to be used in other places, then it could be
' H, s3 a9 t9 M2 z: D' O9 p% S* ~! defined in its own gallery (GLY) file and referenced here
/ i, V" r C( ^3 r* C# X! Example:
7 Y0 R1 B' [$ Y/ X! GALLERY customer_gallery.gly
0 O" v4 }5 i. y7 n!" x$ V! t) m0 @5 t
BEGIN_GALLERY CUSTOMER_GALLERY
& ^% U; u: r6 ?* L1 @' e+ S& TCOLUMN_IN_RIBBON 2
6 _+ G; _2 N6 p/ CCOLUMN_IN_POPUP 2
/ q M0 ?4 s0 o! C* RLABEL Gallery
: [' e8 e4 V; C8 X9 t% aGALLERY_STYLE MEDIUM_IMAGE_AND_TEXT
% {" }5 l* ?3 P: L* y8 d* ?8 U, j7 U
5 x/ G- X! z" i2 e7 u- @& x BUTTON CUSTOMER_BUTTON_2
5 X2 W, {# T+ Q$ \ 8 A& Z ?2 q7 `* t
BUTTON CUSTOMER_BUTTON_3
: q: w. D0 }3 d 1 Q1 n* P% Z- e3 _, I/ G
BUTTON CUSTOMER_BUTTON_44 X% U) V! @1 q
: o. h8 s' p7 l! W4 Z& N
BUTTON CUSTOMER_BUTTON_5$ D2 b' s6 ~! T4 S- i0 X
5 K8 L5 n( ^) ]# F7 o! jEND_GALLERY6 g" K. A" G1 b% Y; U. y( b
! s$ i2 |1 S* C |
|