|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
: e4 R& G" k/ ]/ D, y; T. n1 E6 C& h6 e
; X, l8 {/ U6 {1 f
H5 {4 F. Q H, V, E: G( ]% d首先认识下关于菜单的后缀文件
0 _) y* j2 q; T, ^7 @( N0 I0 z( N4 Q/ P6 X9 r- s+ O
| | .tbr | Toolbar | .grb | Group | .gly | Gallery | .ddb | Drop-down | .rtb | Ribbon tab | .csb | Cascade | .abr | Attachment |
5 x0 h, Z& z1 x% F2 S% A" y3 v. r4 I/ O o' d& Z7 D
RTB作为菜单ribbon 界面定义的关键,详细信息如下
' }, t' C: {* t& U, q7 X# U
& ]7 Q `7 P4 L n1 c4 ` O1 ?! {9 d5 h+ n* ^
customer_ribbon_tab.rtb* O7 v; o2 ~, A; y
!
0 ]2 V/ T; N: E( C: K! Customer Ribbon Tab }0 A' b$ A" V c/ E
!
$ P5 ?+ u5 H/ b) B, e! This file will create a new customer tab containing three groups and
, R" J. c8 `' @& z& w+ w$ x4 L! one top level button.9 H7 {- g0 ~' s* E
!, x& W% h: l+ I- x8 p. f' z' m: S
; g' M9 H; b$ L5 a% a& FTITLE Customer Tab
& {6 Y) `8 A6 rVERSION 1707 X/ F* N3 u+ e% @; u1 }/ T
8 S+ E+ ?" U; ]9 f. g4 a
! The first group represents a Ribbon group that references an existing
% n$ F+ d% l- }% @: c! toolbar with no Ribbon style changes.
4 f3 c& A3 J# Y! 7 M7 }8 |* f* k6 p& ?
! This is the quickest way to add existing toolbar content into Ribbon mode.( k/ C: w6 `# O$ W$ \
!
9 }+ _7 w) X+ VGROUP customer_toolbar.tbr9 S; k( S# m5 S( @4 p$ x9 b
! 如果想直接切换tbr 到 rtb,这是最快的
$ m- Q& z# s2 L0 u& k! The second group represents a Ribbon group that references an existing
/ S2 W: N d/ \) U5 h" V, q! toolbar with Ribbon specific style changes added to it. There is no difference
$ W2 w$ [ {1 X$ e f6 s2 c! in how this toolbar is referenced in the .rtb file compared to the first
3 m1 m/ Y+ {( Z. L) f! toolbar as a group. The only differences from the first group exist within
; c A* ?& O1 E1 E5 V! the .tbr file itself.5 o8 z! ^* v C5 s* k
!
" n; u8 D" Z4 R! P) w, `- }! This approach has advantages for customers that will deploy both Ribbon and
0 Y% @& n; l" z% j% m6 K! Classic Mode customizations since all the content is defined in the .tbr 4 y9 v* k+ _& T: F: I& m
! file and it will stay synchronized in both modes. Only one set of customizations
/ n& _. k" k$ [# {6 C6 v! will need to be maintained while still making use of RIBBON_STYLE to
5 j+ e4 S& @& H, Q" N$ R7 ^# S4 |. i! control the presentation of the buttons on the Ribbon.
- F! `( l9 C7 L* E0 }7 u5 I!+ j- ~* D% `0 Z& ~, d- o! F
GROUP customer_toolbar_alternate.tbr/ u: J% M6 F4 `8 k
" n+ Q, _) N- ^5 K Z2 J0 R1 O
! The third group represents a Ribbon group that has been created explicitly
! U( h! C# X, _" ], t% \! as a Ribbon group and will not exist in Classic Toolbar mode. This is the9 b! e9 e2 g$ h' D3 q
! preferred option since the user will be able to take advantage of all the
7 u3 X/ h" B6 f' v4 v4 X% t# r1 }1 R! layout styles and containers offered by the Ribbon.
+ P# m5 l+ b$ E( S1 k- S+ ?1 g8 l!; E0 r* K* A) ~( x+ i
! For customers that will deploy both Ribbon and Classic Mode customizations, " c4 p, U- ~& J( }. _
! this approach will result in no synchronization and two sets of customizations
$ |0 M1 ^6 b7 m" @' [* w Q! will need to be maintained.8 u U) e0 {5 Q
!9 Y8 g) P# v# T) ?; P
! A group can alternatively be defined directly inside the .rtb file by using the
" S& G% {, t- ?! A! keywords BEGIN_GROUP and END_GROUP.
3 F4 y$ ^) ?0 b6 E: m) X* I, S!9 `! T1 B7 j4 h- r' l/ L# \
GROUP customer_group.grb: L* ^& e. R' A- V2 Y2 m
5 Y6 w7 f2 |$ N* @1 S5 r0 B
! Example of a button that is placed directly on the Ribbon without being
2 \1 F4 H! L* i! contained in a group. This is a simple way to add a button to a tab
2 p1 S. [4 {9 p# }. K! but is not recommended for many buttons since groups have advantages.
! [, X% P4 |$ \$ @; {4 m! 1 r6 N$ {' }- Q7 P3 i u# Y9 Z4 J) [9 D
! A few advantages of groups:
" v# P) P( C6 p3 C( X9 q. k6 f! 1. Easier to move many buttons around together in quick customization. 8 N H$ j. H. D
! For example, MB3 on a group and choose "Add to Left Border Bar".
& O" i$ V5 A u! Q% B" x$ U! This will move the whole group to a new location. If buttons are
4 B5 `7 A+ f, _/ m' _3 w! not in a group, they need to be moved one at a time.. W2 o) @9 h7 k) L
!
- y; D7 R6 u1 Q0 u% A3 S7 {2 l! 2. Provide a label to describe its contents.$ p6 H1 S) W3 a
! ~* @% Z5 G" l( }$ V+ O! ?
BUTTON CUSTOMER_BUTTON_1
' ?. K# c, [/ yLABEL Button1 Directly on Tab# E% T7 `( O# X9 Z2 a+ D9 I1 F
* F, l6 C3 T5 V; U& z
部分菜单可以单独写成group gallery 作为对应后缀,重复调用! H; i3 \+ A$ o
! Example of a gallery defined in a GRB file.! D' h2 u [8 c7 w
! 4 ?: E+ w C: x+ g9 B) o& r
! If this gallery is to be used in other places, then it could be
# k* F. w; n+ E: [: |+ J! defined in its own gallery (GLY) file and referenced here0 a S) V4 m) p# P; N
! Example:) i# T* z9 ?+ {$ i2 J8 [7 U3 _7 L
! GALLERY customer_gallery.gly
; {: p1 |2 a2 P7 h7 Z3 e" ?! [. E" `$ Z* L
BEGIN_GALLERY CUSTOMER_GALLERY7 B2 j! Z: V z6 L$ u
COLUMN_IN_RIBBON 2
) P& W6 e# r6 b7 n& c/ `/ O' m8 \5 tCOLUMN_IN_POPUP 2/ `7 Y6 o, \# u: K, o* m% A) a( J
LABEL Gallery' H8 k) i, e' H( t4 V
GALLERY_STYLE MEDIUM_IMAGE_AND_TEXT' ~* M% F2 d9 b% ]/ ^
! U4 h8 m" d: A* o7 J6 q3 r
BUTTON CUSTOMER_BUTTON_2
2 B4 E8 y; i" F5 Y8 B# J x, K% ]' i8 z. s* L0 o; G
BUTTON CUSTOMER_BUTTON_39 H0 z0 ~, c; e3 g% I
% R, z/ [ K. I
BUTTON CUSTOMER_BUTTON_42 O% M) A, l e! R
0 S/ m1 E# ~8 X/ [: p8 Q' J* [6 B
BUTTON CUSTOMER_BUTTON_5
. G! i5 r0 `4 s3 w Q }
" K: U" w/ C; p% p @! AEND_GALLERY
' q6 t4 `4 H% e+ e+ U: Q5 W f. U
t2 s S& N2 Q; c' i/ T; E8 y- D |
|