|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
4 ]7 M5 h* K ~8 E! Z! D) _: a2 X/ W( {( A; ]+ a
( Z7 ?2 T% s3 j* J; z$ K
. b+ p) C$ e7 ~4 {+ S/ p8 _
首先认识下关于菜单的后缀文件0 T2 k7 @/ i) E, X8 f
& i/ [( ^$ J6 S; j6 N, \ l0 R$ E* M | | .tbr | Toolbar | .grb | Group | .gly | Gallery | .ddb | Drop-down | .rtb | Ribbon tab | .csb | Cascade | .abr | Attachment | 2 ~- H% f7 _8 n' O
1 [. o) i! e d3 b9 V
RTB作为菜单ribbon 界面定义的关键,详细信息如下0 H6 v4 q* E, R
9 r1 Y1 [' a7 Z3 l. @) `
- J# }- g; C) T* k/ R
customer_ribbon_tab.rtb* A- [+ h. {8 v& k3 R
!
: k- a& d" p& u2 ~* V7 w0 ~! Customer Ribbon Tab( J3 L. n N! p6 I3 s" c- ^& @7 c |
!
. b, U1 J, C$ _5 x2 W/ X# ^( m! This file will create a new customer tab containing three groups and: o9 D, _6 q5 h7 b# B
! one top level button.5 R, P2 r8 |! I* w. h8 d o# v
!
2 z" }+ q& ]4 z) ^: e0 |1 l* G( u, ?3 E7 _* _( q
TITLE Customer Tab% N9 L z1 O2 E3 i: S T! M
VERSION 1703 \+ I. B# u; p! {8 L) k( Z
$ Q/ i6 y _% W# ^! The first group represents a Ribbon group that references an existing
7 x3 V3 I- F+ t8 _, V$ D) u! toolbar with no Ribbon style changes.
; P. F% r0 D1 X+ w% Z( [' p" V: |!
. y; i3 n- `; m9 W( E! This is the quickest way to add existing toolbar content into Ribbon mode.: g: }" c/ F# L& |
!, H$ j4 h* {& |( ^+ [
GROUP customer_toolbar.tbr! ]4 |2 I5 `) e& i; p! M3 S: I
! 如果想直接切换tbr 到 rtb,这是最快的
1 }" D# H' I4 O' x8 I0 I% I! The second group represents a Ribbon group that references an existing
: \8 x- [+ l+ R- e( i7 B! toolbar with Ribbon specific style changes added to it. There is no difference: H; \* u7 B$ D/ n- j3 z9 E! @
! in how this toolbar is referenced in the .rtb file compared to the first0 \7 q- ~( J3 d$ W0 u v8 d- K8 q3 h
! toolbar as a group. The only differences from the first group exist within
# i a) _7 O# C3 Q9 j" e3 v! the .tbr file itself.9 Q0 ^7 B/ M- n* ?; d) \
!
6 C" d5 V! H+ E" k5 I- ~$ G! This approach has advantages for customers that will deploy both Ribbon and
: j( p0 y4 a4 k F8 A! Classic Mode customizations since all the content is defined in the .tbr
4 e9 z1 q" ?5 y# k+ X) _! file and it will stay synchronized in both modes. Only one set of customizations( f+ Y" z4 S% M+ X- ?
! will need to be maintained while still making use of RIBBON_STYLE to 6 x# F5 | E- ]; Y0 a( O) A
! control the presentation of the buttons on the Ribbon.
2 S Q! [/ ]4 _!
; U4 m1 z9 ~. @" }& |0 IGROUP customer_toolbar_alternate.tbr5 v! s% H2 `+ x
, g0 S2 G" x! R& q0 [. a! The third group represents a Ribbon group that has been created explicitly4 A# t6 C' j0 Y3 \! | G' j) F
! as a Ribbon group and will not exist in Classic Toolbar mode. This is the
! ^# n( u* a( t0 t: C1 }: d, f! preferred option since the user will be able to take advantage of all the
* e: g- f+ m, I. C# ~0 r! layout styles and containers offered by the Ribbon. * F7 Q! w. J. v; P) z6 u
!8 @) Q# ^; D! e1 r9 L7 q, ~$ |0 |
! For customers that will deploy both Ribbon and Classic Mode customizations, ) ?4 ~, @& g4 V) c
! this approach will result in no synchronization and two sets of customizations % `. N5 q- V: {9 ^8 W
! will need to be maintained.
# z0 m' F: h0 o. u7 p!
- u8 v% r* H( n1 G9 s2 P$ V! A group can alternatively be defined directly inside the .rtb file by using the( ]0 t% m* D4 z4 A+ o
! keywords BEGIN_GROUP and END_GROUP. 0 n% a: U0 Y- P: T- q
!
* A% C1 z6 g W- d+ c/ TGROUP customer_group.grb
+ S; o7 P4 U6 s: q1 S7 @" Z/ i* s
! w% X1 w' V# z$ L1 x! Example of a button that is placed directly on the Ribbon without being
; X! ?$ }# G2 Z, p) V7 p" N! contained in a group. This is a simple way to add a button to a tab. }" L* k! }+ l3 T) X
! but is not recommended for many buttons since groups have advantages.# O' }/ C+ A* W2 w# g; S- s* Z1 ]
! 7 o6 A) d" T9 J( b D) t
! A few advantages of groups:) [! @" D1 c5 @
! 1. Easier to move many buttons around together in quick customization.
' D( L* U1 E+ v& N6 i$ |! For example, MB3 on a group and choose "Add to Left Border Bar". + E6 V2 _5 L/ a) ?! j
! This will move the whole group to a new location. If buttons are
/ y0 u& T# ~# L( D, C, f! not in a group, they need to be moved one at a time.
V5 W- f9 b! O* `" I' a! _+ o s. b5 N1 N. `+ V& z. {- r6 M
! 2. Provide a label to describe its contents." j" d+ L" [* h6 {+ S0 f$ W! R% Y9 J1 n7 \
!! C$ H; O0 s" \: x% _; A
BUTTON CUSTOMER_BUTTON_17 S* H2 t2 g) H4 q" {0 t* T$ \: l
LABEL Button1 Directly on Tab
- Y3 h( `# o9 F# v8 D. a0 n4 M/ o( B. r6 r/ B5 _3 d9 s9 o
部分菜单可以单独写成group gallery 作为对应后缀,重复调用: M* m2 n* W7 J8 p# z; {1 B
! Example of a gallery defined in a GRB file./ P {1 W1 m6 I
! ( W* W1 n* ~1 K: z
! If this gallery is to be used in other places, then it could be 1 [) b7 U1 C# S3 d8 D* M, a
! defined in its own gallery (GLY) file and referenced here
, M! f& A+ Z* i" }4 c" {! Example:
; P5 J' _2 Q5 X" T4 I" `5 ?- T9 k! GALLERY customer_gallery.gly% C9 T8 d7 \9 T7 O. T0 h) C- }
!+ @4 p: L+ v7 N% Z, L# ~- l8 v
BEGIN_GALLERY CUSTOMER_GALLERY4 d/ F6 l. e+ {) c4 `" Y# q- N
COLUMN_IN_RIBBON 2
+ O) p8 U; Y/ W1 c, o0 D. r5 k7 ACOLUMN_IN_POPUP 2
# s6 g* F7 x# v/ y/ N. CLABEL Gallery6 d2 s3 |, ?; o$ o" k2 r& _9 ]" I
GALLERY_STYLE MEDIUM_IMAGE_AND_TEXT
9 K7 y+ s2 J5 Y e) S5 q2 \' w7 `7 @
BUTTON CUSTOMER_BUTTON_2
2 x/ m, Y6 r) _ I, m: s9 B! m- l( a0 T* F
BUTTON CUSTOMER_BUTTON_32 R* P5 h( Y$ R, ?0 ~' H0 k: r
& j$ h9 L. |% j9 O' q* ~
BUTTON CUSTOMER_BUTTON_4
, ^) A+ M; w( f7 K. ? / I6 z$ q5 B2 x& r3 v* e! _
BUTTON CUSTOMER_BUTTON_5
+ ?' T+ X) t% p7 g 1 w3 b r$ v1 J
END_GALLERY
, F D1 o1 G. ~. d1 s" g. K4 ?# x3 U+ V
|
|