|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
2 |; ?% {: l. Q+ q5 \0 p/ g
: k1 @' ~' b2 E: P5 A1 Z- D$ c: h. X+ g5 ~$ j
- [4 r5 v$ i* y ]. T* [: u( W首先认识下关于菜单的后缀文件
+ U2 y8 F1 ]4 L' Z, A! s6 n8 Y. a# e/ n0 \- J
| | .tbr | Toolbar | .grb | Group | .gly | Gallery | .ddb | Drop-down | .rtb | Ribbon tab | .csb | Cascade | .abr | Attachment |
. P( d' ?# _6 @( V' V5 U% [4 r/ k8 v
# J! S0 L* |3 V: U* v m6 {RTB作为菜单ribbon 界面定义的关键,详细信息如下8 t! \& X3 t+ n
' l g% s; M8 Q* G( ~
9 a% z1 D% |& ~ Jcustomer_ribbon_tab.rtb
$ q6 c& r( D- p$ x3 Y ~!+ ^7 [# R3 [' c" Y9 |: G0 \1 ?
! Customer Ribbon Tab! J2 z% k1 l! k. {" n
!
, f7 ?! W9 A( v- O6 ?" }; }! This file will create a new customer tab containing three groups and
) n T4 x. w6 O# O" ?6 V! one top level button.
4 O5 [4 w2 m1 j# O!2 H b" J- P- o! ?. {% B" F& [4 m
?# k% u' R1 u3 J+ S' f
TITLE Customer Tab( Z/ p9 b4 q) `% v! a6 k# c
VERSION 170/ m! b% E2 u0 D3 L% v! E% ^
2 d! p" B9 p' z3 D* t4 ]! The first group represents a Ribbon group that references an existing
" \( E. B# c' X4 c! toolbar with no Ribbon style changes. 9 H6 p* K; e6 ^2 a+ t% [4 l
! - Q1 y: N6 t, [6 g# _
! This is the quickest way to add existing toolbar content into Ribbon mode.- I# N! \1 a$ t* {/ R- e% s) n
!
0 G8 |, f+ Y8 X7 UGROUP customer_toolbar.tbr
- r/ t1 t: b: J6 E% n" }' V% a! 如果想直接切换tbr 到 rtb,这是最快的
) w& O. ^# Q5 R) [& _2 ]" T% L! The second group represents a Ribbon group that references an existing
9 x& U E5 Z3 Z+ c! toolbar with Ribbon specific style changes added to it. There is no difference
0 y4 F+ U3 g. B5 {) @* J* j! in how this toolbar is referenced in the .rtb file compared to the first' F+ u b0 C) H: }6 f* C" R
! toolbar as a group. The only differences from the first group exist within
% {! m2 o. @% V, X- ^! the .tbr file itself.; ^" H8 v' ^( m- k2 J
!; {* d+ a4 L: Z7 H' x0 m$ {
! This approach has advantages for customers that will deploy both Ribbon and
% b$ r# N3 ~7 t7 |: G1 s) n1 \ V! Classic Mode customizations since all the content is defined in the .tbr 5 S" y4 E( A+ u, W \
! file and it will stay synchronized in both modes. Only one set of customizations1 F$ V& B1 z6 X( Y6 O% M3 ]
! will need to be maintained while still making use of RIBBON_STYLE to
& J$ z4 k) U; z! control the presentation of the buttons on the Ribbon./ Y- E7 c/ x% l3 g) Y: `
!/ i4 Y6 V x; H+ B2 f+ u: Y* {& U, L
GROUP customer_toolbar_alternate.tbr
" X. F3 f6 ~ r* }; H& ?
9 X" r1 w( D8 p! U. k! The third group represents a Ribbon group that has been created explicitly9 D x+ g" M0 D# d" l8 E6 R" V
! as a Ribbon group and will not exist in Classic Toolbar mode. This is the
; B7 }7 b. B; x/ x! preferred option since the user will be able to take advantage of all the
8 M2 ~* q$ O# R0 ?/ D! layout styles and containers offered by the Ribbon. + @5 P0 u# e0 e- v( N4 A' s
!
3 Q! ?: L0 ~4 l; c- U& p, j/ r! For customers that will deploy both Ribbon and Classic Mode customizations,
+ f) _8 V, z: y! this approach will result in no synchronization and two sets of customizations
; [* F! K: B6 C7 j! will need to be maintained.
0 K% m; w, r+ d) w7 U!& |3 ?! p6 M' e3 N
! A group can alternatively be defined directly inside the .rtb file by using the& I0 F, i+ }- a. {* W4 w# J
! keywords BEGIN_GROUP and END_GROUP.
" g! P: i0 ?- l9 n! O/ F1 D!
1 y6 N; W B" ^! g/ o& WGROUP customer_group.grb
$ ~4 v' {6 E; t" f1 W* v8 t6 n& ^( n$ y" }
! Example of a button that is placed directly on the Ribbon without being
$ Z! S3 l) [, C, H3 }! contained in a group. This is a simple way to add a button to a tab
$ y6 M: `! a1 r0 ~3 t- B1 p( M8 S! but is not recommended for many buttons since groups have advantages.
! E y t4 i* y' R( m! h. F! , y) O6 R+ \# p& i d( m
! A few advantages of groups:
: e f9 b$ P& J4 \# A& t( n! 1. Easier to move many buttons around together in quick customization. $ X2 |* u( [8 t! ?% r8 c4 l
! For example, MB3 on a group and choose "Add to Left Border Bar". ' F; c6 ~' t* E+ j
! This will move the whole group to a new location. If buttons are ) b# b% V) i: ^$ _
! not in a group, they need to be moved one at a time.6 b- _$ g, j# q4 T5 _5 O
!
4 j. H, M/ m, l- H6 ?0 f; k% Y$ }! 2. Provide a label to describe its contents.
5 u6 y" y- u3 w( q* C- L7 \6 v!
* x3 u2 \& s% W' L3 L6 K: r/ JBUTTON CUSTOMER_BUTTON_1* p5 D. M' o( |$ l- W/ c: g
LABEL Button1 Directly on Tab' T5 v: ]# k* h& \ ~3 m5 P8 I
+ N* [; k6 ]2 h
部分菜单可以单独写成group gallery 作为对应后缀,重复调用
5 V9 y9 s7 j* a( }. D! Example of a gallery defined in a GRB file.
& `, I4 C0 O& m2 L!
. H4 r8 l$ I! r! n) d; X! If this gallery is to be used in other places, then it could be . K# S! f; A$ L/ }3 T/ k
! defined in its own gallery (GLY) file and referenced here
) y, e0 x. e% ` a! Example:
. X2 ?' i: G* b+ q( m! GALLERY customer_gallery.gly
& n7 `9 }) D% W3 L5 u3 C$ i- i% N!0 O" l# w: F! P) T
BEGIN_GALLERY CUSTOMER_GALLERY
9 R$ b+ W+ w# v d2 @# ^* N; T8 GCOLUMN_IN_RIBBON 22 I- c) ?# O3 Z7 L- }# e: ^8 c2 A
COLUMN_IN_POPUP 2- k$ I! d! A. t
LABEL Gallery
, F. K+ g* h8 \. L8 U5 ZGALLERY_STYLE MEDIUM_IMAGE_AND_TEXT
% {5 S4 o: [" k0 s# O: r
6 b. \/ P7 @: \& D( y6 T BUTTON CUSTOMER_BUTTON_2
7 r' o( b- t( P6 ~ ; J2 D, C, z& C, [( m
BUTTON CUSTOMER_BUTTON_32 l" _& s) U* |$ ]9 Z
7 z: N9 T: w! ^$ B4 G: m$ ?; C }
BUTTON CUSTOMER_BUTTON_4: |+ J& S. w6 V- e$ ^4 x
, c3 e8 u) L+ X6 N D BUTTON CUSTOMER_BUTTON_5: V3 K6 Q/ t, v; T4 a
7 I+ q! j5 S8 r. aEND_GALLERY
3 T& [6 t' @/ Q% O5 x7 u
3 D4 x5 r; H* }, E2 U( I( D |
|