|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
) s/ }5 G9 l6 w9 D% n) j+ l/ K" g* ~2 B$ |9 k9 m4 u
) g1 Y; O+ S+ E. d' ]0 A9 h8 a, ~
" r; [4 X# L: [6 l4 r' y
首先认识下关于菜单的后缀文件
9 M$ a' K. g8 v/ J' C
( d0 t M5 w- w | | .tbr | Toolbar | .grb | Group | .gly | Gallery | .ddb | Drop-down | .rtb | Ribbon tab | .csb | Cascade | .abr | Attachment | 5 W3 A! e- ?# e- V- A, g5 @
6 {' p0 d! j6 M0 h; p8 O: v: m9 ^- @RTB作为菜单ribbon 界面定义的关键,详细信息如下. {. x3 v' x( ?0 L5 j
x( O9 T) X* x
% n3 A) L V! v) v' w" ?9 \) h% Icustomer_ribbon_tab.rtb I, J9 L1 i% c
!
3 }( b; O# }' I( e! Customer Ribbon Tab
8 n; l8 Z/ C$ g2 }!
) [- N0 k$ M, k2 Y! This file will create a new customer tab containing three groups and) ?! p- { {- J# o" ^9 O# U/ c
! one top level button.4 }1 {) ?* a* h+ @
!
) }# Z/ J" X1 |4 c7 b1 R2 U: b& _, P0 v) V. ^8 @4 Y
TITLE Customer Tab5 r4 g- i* T8 g+ {' A: A4 e
VERSION 1700 G" b) O* j5 M! L Q; p
$ g6 X H- ] Z+ p! The first group represents a Ribbon group that references an existing 4 G4 o+ c3 O4 {, [7 O( `2 g
! toolbar with no Ribbon style changes. : D) s& ]' n7 r4 W# _6 [ W6 V0 M
! : E/ |% @4 ^' O2 Y5 l% X- F6 ]
! This is the quickest way to add existing toolbar content into Ribbon mode.
9 X$ w: x# k) v) p3 S5 ?!' h t1 @( ]% l4 Y; f! T5 k1 D7 L
GROUP customer_toolbar.tbr! c) N8 w9 n0 J. w# O+ Q% Q
! 如果想直接切换tbr 到 rtb,这是最快的
+ Q- X; `3 ^* ]* o4 j2 R4 r1 j! The second group represents a Ribbon group that references an existing
8 A* Z9 R, q9 T1 o2 s# a3 R @! toolbar with Ribbon specific style changes added to it. There is no difference
% G) y, F! x( a" ~( e! in how this toolbar is referenced in the .rtb file compared to the first2 m9 V, J2 w5 x3 g) E! l" Z. r
! toolbar as a group. The only differences from the first group exist within
: P* z: n$ Y& k& y7 ^6 q! the .tbr file itself.: f7 I' O: [6 y9 W" c
!' W5 `, i/ I8 |7 R$ |
! This approach has advantages for customers that will deploy both Ribbon and! j7 V' d. b8 D5 {1 v8 i- a- O
! Classic Mode customizations since all the content is defined in the .tbr 2 B% |. H# K6 F7 A8 w
! file and it will stay synchronized in both modes. Only one set of customizations
( m& A$ U7 S; W; ]+ `' O! will need to be maintained while still making use of RIBBON_STYLE to % ^" r3 M$ Q3 K$ k% l
! control the presentation of the buttons on the Ribbon.( @& t0 C; p. x0 ?3 I3 e$ p# x
!5 d7 [' t3 v* M) l" b M, m
GROUP customer_toolbar_alternate.tbr" j3 ?4 H8 L, B. z0 ?' H% V/ N0 Q" L
2 B6 s; J% K0 X6 R. b* [$ ?
! The third group represents a Ribbon group that has been created explicitly
+ x1 y3 }$ x" A: ?- y, ^6 [ h! as a Ribbon group and will not exist in Classic Toolbar mode. This is the% ^' B$ l4 T1 F5 x8 H1 t: w: t$ f
! preferred option since the user will be able to take advantage of all the 8 Y( I$ _; |0 x, s2 L+ C( C
! layout styles and containers offered by the Ribbon. " T; N% W- W3 V2 R
!
4 T! q0 m' o# r# b2 O! For customers that will deploy both Ribbon and Classic Mode customizations,
& K6 o; Q, b q: b1 m! this approach will result in no synchronization and two sets of customizations / F. T L4 E3 C0 T
! will need to be maintained.
( ^2 O& D- n/ ^& P& J1 Y# x' d!7 ?5 K, L& E o7 H; K5 x2 H
! A group can alternatively be defined directly inside the .rtb file by using the& m( h6 C r2 Q1 U
! keywords BEGIN_GROUP and END_GROUP.
( U7 w& Z% B( i7 N [!2 P7 o! v% A9 S4 \4 x7 z
GROUP customer_group.grb
7 k5 h1 |3 F, k9 X5 i6 P* }4 u& ?: U4 L0 m1 O
! Example of a button that is placed directly on the Ribbon without being+ u& T$ _$ H& I6 j
! contained in a group. This is a simple way to add a button to a tab
6 d0 ?$ J' o5 `! F$ v3 a! but is not recommended for many buttons since groups have advantages.
* H1 E# P( ]: R/ \8 \. x4 G4 o0 b! 7 `: j; Q' P% G& j
! A few advantages of groups:3 N* Y3 K! f5 \' {: a
! 1. Easier to move many buttons around together in quick customization.
5 m4 Q0 n' h: `# t! For example, MB3 on a group and choose "Add to Left Border Bar".
2 {+ w5 M# [8 G5 {9 ]! This will move the whole group to a new location. If buttons are ( k% `4 L1 I5 O" c% V x) w6 ^* q
! not in a group, they need to be moved one at a time.8 x3 i. {9 {$ z$ u
!
& s& o o9 X0 y7 h( U! 2. Provide a label to describe its contents.
8 f: A+ ?7 f9 I$ R$ W!! v3 ~7 L4 t0 N1 N+ o
BUTTON CUSTOMER_BUTTON_1
% w% K( D$ e1 ]LABEL Button1 Directly on Tab) {: U: Y+ l2 R9 ]+ v' y3 \8 b1 j
8 d0 b, }4 C6 P2 N; |' H0 X; M部分菜单可以单独写成group gallery 作为对应后缀,重复调用
+ C6 |- L$ t$ \4 }( I" C1 m! Example of a gallery defined in a GRB file.
( R+ {2 s6 S+ P1 e" ^" c: c!
5 C$ f( O/ y2 p$ p" g" K! If this gallery is to be used in other places, then it could be ) ?# W, g1 d% v; G
! defined in its own gallery (GLY) file and referenced here- J5 x' l& ] Y3 c F: @
! Example:
! G, c' P1 S( M1 L; n* Y! GALLERY customer_gallery.gly8 }9 Z$ W/ k8 j) j" M+ \
!: |- R% B5 h3 Q# ?
BEGIN_GALLERY CUSTOMER_GALLERY
7 i o0 r/ ] |) \7 HCOLUMN_IN_RIBBON 2) J4 u; ~- p9 ^3 I
COLUMN_IN_POPUP 2
7 y* \. W3 B( ~9 ]. b4 fLABEL Gallery3 x( u9 C( u( V" y4 ]
GALLERY_STYLE MEDIUM_IMAGE_AND_TEXT. J( c" e: W- g4 H+ f6 p# U
4 K+ v8 K& r0 u+ q0 j+ e0 ?- l BUTTON CUSTOMER_BUTTON_2, g& [% A4 m- o- M8 E
. M6 @3 g0 u, B$ C0 S6 k) m$ X BUTTON CUSTOMER_BUTTON_3
1 `9 s) v- b9 Q # b* z7 ?- V, B) S/ `8 J6 _/ Q
BUTTON CUSTOMER_BUTTON_4
3 z t; y! i$ Q7 }+ J- ~3 N( Y
/ B; ^% K$ Z* E, w8 C0 N BUTTON CUSTOMER_BUTTON_5
& [0 `- @) G4 E
4 a* t. T8 ~4 a7 R$ n) xEND_GALLERY e- {3 L" d& H% J' Z! X
. Z, j( ^0 R0 t3 T) U" G |
|