|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
% x. P/ S: c4 H8 O
9 O# F5 ^1 M) q9 R' R) ]& F% q4 |' t2 P- V# e: k# }: l
; ]$ U( p* `/ `& D# }首先认识下关于菜单的后缀文件- v' f6 L0 O8 |2 C7 O3 r
2 z# M( b0 Z) B: c | | .tbr | Toolbar | .grb | Group | .gly | Gallery | .ddb | Drop-down | .rtb | Ribbon tab | .csb | Cascade | .abr | Attachment |
( d* D' F$ [2 w3 x- V8 U6 N; W6 L8 f0 ?$ K6 S4 n- {
RTB作为菜单ribbon 界面定义的关键,详细信息如下
" B* E+ n! }5 D. l# k, P& i1 U ?/ f5 P
[/ i" r M Y8 a) u; ]
customer_ribbon_tab.rtb7 Q9 p7 M+ c; h
!0 Z# m; s3 i; W* w4 l: j
! Customer Ribbon Tab, C, d$ a3 e; H3 d8 G4 o
! 0 D% M8 O% y; b
! This file will create a new customer tab containing three groups and
# C( w1 [" |+ V7 j+ y6 d3 U9 i! one top level button.) L# b- [$ X5 H4 ~: ]( S
!4 O3 S, F- }) X+ \
: f6 d, E, @. c; V+ |TITLE Customer Tab
+ J% y5 \8 j5 j7 C9 v/ x7 RVERSION 170" l& f! C9 h, s3 `1 l" n
, H' W, q8 H4 N% h' e2 q! The first group represents a Ribbon group that references an existing
6 @, q# R# `: Q) X; `# D! toolbar with no Ribbon style changes.
! j- x* b& ?2 }! ~!
! C, d# P+ m4 l! This is the quickest way to add existing toolbar content into Ribbon mode.
) j7 S4 N2 H& u' z!6 D5 l( U2 C! S# {) s' `
GROUP customer_toolbar.tbr
/ E W% j7 w2 C% q! 如果想直接切换tbr 到 rtb,这是最快的 : M& Z _3 s+ v) @& U
! The second group represents a Ribbon group that references an existing ' w; Q( b2 ]5 q; S H
! toolbar with Ribbon specific style changes added to it. There is no difference
+ B5 Y5 s1 y0 ?! in how this toolbar is referenced in the .rtb file compared to the first
3 m" m% f7 N5 B' e" S+ m! toolbar as a group. The only differences from the first group exist within
) } t" r f0 `2 U# y8 L! the .tbr file itself.
9 j v" O8 k; }6 B9 k!
1 n! u* k& T% V! d7 g! A7 J! This approach has advantages for customers that will deploy both Ribbon and
' n0 L4 X+ P. ~) l! Classic Mode customizations since all the content is defined in the .tbr
/ i8 _2 y* I# _; a: ?) p' i! file and it will stay synchronized in both modes. Only one set of customizations
9 L5 ^+ Y+ P- ~) u/ `) M; n. k! will need to be maintained while still making use of RIBBON_STYLE to 9 Z4 x' Z; V$ L% ^3 @* x) N
! control the presentation of the buttons on the Ribbon.' ?* H7 [/ A; E" i$ h! T
!
6 M* w- H3 i5 sGROUP customer_toolbar_alternate.tbr! {4 q; f0 c) f: T; Z. J
/ T4 O A; y/ Q7 M. T
! The third group represents a Ribbon group that has been created explicitly5 O% p- P) M( b) l- f! ^
! as a Ribbon group and will not exist in Classic Toolbar mode. This is the! c' A1 D9 \8 M
! preferred option since the user will be able to take advantage of all the
7 n" I" @0 Q+ q4 M! layout styles and containers offered by the Ribbon. / q$ O# E8 d5 P
!
- D" m, H1 J- q/ {* I, g! For customers that will deploy both Ribbon and Classic Mode customizations, % m8 t7 H+ i0 I7 h4 w
! this approach will result in no synchronization and two sets of customizations
2 Y$ G- _% k3 ?' R, f$ h: V' q! will need to be maintained.
' C" ~6 J- D* q: m!
$ C9 Y& s1 s/ v; j1 f) q! z1 Q5 v! A group can alternatively be defined directly inside the .rtb file by using the. S; I0 {: Z6 G
! keywords BEGIN_GROUP and END_GROUP. ; C, Z+ {0 D4 k9 n4 r* B
!+ @& z6 T- C" c( |/ y
GROUP customer_group.grb
' v3 Y" h: b9 ~, T- S+ m$ K3 R2 M4 b# @7 b3 z' j. {# }
! Example of a button that is placed directly on the Ribbon without being3 I9 Z9 |7 I2 `
! contained in a group. This is a simple way to add a button to a tab+ Z2 ?& t' l* i% {& r- O4 B
! but is not recommended for many buttons since groups have advantages.4 F t4 F5 j5 M6 B1 T: o1 T: n9 ?
!
8 I+ y3 Y, v1 b9 ^8 Z! A few advantages of groups:
% X) M9 M4 @! r, a( a6 n! 1. Easier to move many buttons around together in quick customization.
4 Y/ }! }( S; O+ Z7 E! For example, MB3 on a group and choose "Add to Left Border Bar". 2 ]9 X1 s8 l7 \
! This will move the whole group to a new location. If buttons are 7 W2 E' f* j3 y4 Y+ P
! not in a group, they need to be moved one at a time.& X: ?( S% C' u& V; A
!
# e( G9 w6 `, @; ]9 W! 2. Provide a label to describe its contents.- k2 F* t: u' O2 q4 q0 f2 k/ v
!4 w6 X4 a+ f5 w3 c6 @9 d2 p
BUTTON CUSTOMER_BUTTON_1% h& Z _; e+ N& t
LABEL Button1 Directly on Tab
8 J' D" B3 X8 x
, Y' B% Z% |5 x$ E1 @部分菜单可以单独写成group gallery 作为对应后缀,重复调用2 b% \& t, I! n! A1 U
! Example of a gallery defined in a GRB file.
7 a1 c7 k z2 B t, ^# V) A! 4 i+ \. a- ^1 U1 d5 V; z1 t
! If this gallery is to be used in other places, then it could be
# H8 g) \: P3 }4 n2 q m! defined in its own gallery (GLY) file and referenced here
) q7 f- x: ~0 q k9 W5 K# i! Example:
3 E2 o: Y5 S1 i5 n7 p1 d! GALLERY customer_gallery.gly8 |% R8 L' g: @
!
: l- W! X }* Q1 J d" o/ K; JBEGIN_GALLERY CUSTOMER_GALLERY
- V% E7 M$ Q2 g/ z" `, Z. F. iCOLUMN_IN_RIBBON 2
8 G9 j% J# i5 m; {- v9 dCOLUMN_IN_POPUP 2$ r, y( n6 f; O- Z' Y
LABEL Gallery/ U5 I: E' Y# R3 H" w. S3 b
GALLERY_STYLE MEDIUM_IMAGE_AND_TEXT
5 j! x; |% {8 S* B4 a" ~
( _' A2 F1 `, } k7 } BUTTON CUSTOMER_BUTTON_2
: O! F" X0 v( V% k8 j9 a2 J
1 i0 z. A9 C. B# u/ Q" Z BUTTON CUSTOMER_BUTTON_3
. \$ a: D. C+ j4 K
6 Q7 f* z* O' v, z/ k ^4 x BUTTON CUSTOMER_BUTTON_4
4 B8 Z2 X7 y8 B- D9 H" [
. T1 r; X& `' F ^% x BUTTON CUSTOMER_BUTTON_5* H, O+ N1 R a; x% E7 g
. S( u' J/ {- N$ B, J
END_GALLERY5 o2 W% b/ S. }" J, P" L( X+ Y
7 a' [- w8 U- Z8 L% S: f1 m" J$ C) d |
|