|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
1 D3 T, b5 U5 w6 u7 p1 f4 \( @
6 m( J: ?* P0 o7 `) t' s
' v3 }( Z0 R$ ?6 n+ n0 Z R% _6 S
~3 x6 r. J( U O U. ^+ e首先认识下关于菜单的后缀文件7 J4 |1 B4 u7 w+ I' |0 u
9 d4 g' |( L C" t/ f v" q
| | .tbr | Toolbar | .grb | Group | .gly | Gallery | .ddb | Drop-down | .rtb | Ribbon tab | .csb | Cascade | .abr | Attachment | . }( P3 Z5 \2 u7 R! i0 c
5 p2 p" j: P( K
RTB作为菜单ribbon 界面定义的关键,详细信息如下
6 T& R1 A \6 t4 g, w/ o- d
4 k+ U2 Z# U$ g' s, d
/ \( v5 B. f2 T# h6 Hcustomer_ribbon_tab.rtb
' w% m' b5 B. r; v8 p# [9 p; h!7 J' j* W: k4 V" W5 i% f
! Customer Ribbon Tab
: w( q7 [' O5 ^+ o. ^! u4 H! 1 g, p: {0 z0 x) I' @ s1 ^" Q/ \
! This file will create a new customer tab containing three groups and
" _; a$ v, l( h& J+ j0 {% ?1 O! one top level button.
; O, _5 d3 c6 G0 i t!' d4 p+ Y2 ?2 M9 R! H3 r
% U: X! D6 S4 i8 t! F) R
TITLE Customer Tab( X j) P8 E* e9 v
VERSION 170
5 A+ R. m9 a& D2 ^$ _" \, e6 i: Z/ w- W# R. {, v. [' R+ [
! The first group represents a Ribbon group that references an existing / A0 V+ ~" p: K/ }' O, I
! toolbar with no Ribbon style changes. ' @+ N# H7 I, J) s7 |( _2 d8 E
!
8 C. B- _5 @. t0 | L! This is the quickest way to add existing toolbar content into Ribbon mode.6 E5 u& `6 p# ^: X- G' @' t! k" t, L
!' } j7 A& `7 J
GROUP customer_toolbar.tbr) I; i4 V) ^+ w
! 如果想直接切换tbr 到 rtb,这是最快的 0 F5 \# e- x- M0 s2 w
! The second group represents a Ribbon group that references an existing , X) C# s% x. Q6 H. a
! toolbar with Ribbon specific style changes added to it. There is no difference
7 Z0 Y5 I9 A$ M! in how this toolbar is referenced in the .rtb file compared to the first
; u0 W7 s0 Z5 b0 J6 Y2 O! toolbar as a group. The only differences from the first group exist within
* P G8 `) h& ^6 C+ I- s$ {! the .tbr file itself." ^* `$ M' v4 q* Z+ A7 ~
!6 k" T3 K: q6 Z; H! B
! This approach has advantages for customers that will deploy both Ribbon and
5 o2 e Z5 g6 B( F! Classic Mode customizations since all the content is defined in the .tbr
9 G4 r+ o3 Z# R1 L4 j" {! file and it will stay synchronized in both modes. Only one set of customizations
' o: n2 o( Z, p! `) I* i! will need to be maintained while still making use of RIBBON_STYLE to
, A8 d- i; e5 v Z& g) p! control the presentation of the buttons on the Ribbon.+ F I$ w6 l/ I; @& y. }$ Y' t# P
!* z) } s7 {' A, S% Y, ^4 x
GROUP customer_toolbar_alternate.tbr
1 r9 Q9 g" @& O4 L* e 2 V, U# e# t$ R3 |! h* g% H5 V
! The third group represents a Ribbon group that has been created explicitly/ k. q$ c' N# ?
! as a Ribbon group and will not exist in Classic Toolbar mode. This is the* R* j& L( ~/ i0 i, Z$ M
! preferred option since the user will be able to take advantage of all the
% H0 ?, ^5 ]! U8 o& X! layout styles and containers offered by the Ribbon. 4 k+ f( }* x, i. C3 G" O! L
!
5 k3 R, Q8 B' I' E, n. {- V* k! For customers that will deploy both Ribbon and Classic Mode customizations, 5 I2 Q, A/ Z: @+ ^% A5 G% j6 i5 q
! this approach will result in no synchronization and two sets of customizations ( v- g3 y7 T; l$ i( r1 w
! will need to be maintained.
* @" S! } i# s5 C!9 O0 Z2 g8 S/ \! b: C8 z* C# e
! A group can alternatively be defined directly inside the .rtb file by using the
+ a0 E0 C( J; q% @8 _. ~3 D! keywords BEGIN_GROUP and END_GROUP. 3 ]! [+ V ?. I; T9 ]
!5 c: ~0 O- ?9 Y3 t) r) D
GROUP customer_group.grb
( r- W& a! Y$ | C1 T- c3 B4 a
3 J5 B0 n- M: H( Q$ E5 {4 B$ i8 R! Example of a button that is placed directly on the Ribbon without being- p) @- W9 C9 p0 D6 j7 m
! contained in a group. This is a simple way to add a button to a tab
% J& ]1 W, c. {% t- n! but is not recommended for many buttons since groups have advantages.* X4 F- _, W) k/ A. @
! $ c! s3 h! W( W, p3 L2 Q
! A few advantages of groups:3 C3 [/ W# M2 l9 w. h0 p& `2 i
! 1. Easier to move many buttons around together in quick customization.
4 c" Z8 \4 E7 b$ @7 o% b3 j! For example, MB3 on a group and choose "Add to Left Border Bar". ' R' @0 q9 I/ u7 `. r* q
! This will move the whole group to a new location. If buttons are
. _. C; p0 }" l3 f! not in a group, they need to be moved one at a time.
. r3 P! ?: K7 e!
! g% ]' p. c, |7 p, Z3 ^! 2. Provide a label to describe its contents.
' x' b1 X) H" C, ^! i0 Y!
+ ~* L, ~2 ^# w, O2 p1 |, d; n2 _! j# a9 JBUTTON CUSTOMER_BUTTON_1
0 h+ j+ r; Q' i, q- lLABEL Button1 Directly on Tab
$ W: a4 Q- p" N8 Z% M- f% N5 |: g/ C! {7 g; ^
部分菜单可以单独写成group gallery 作为对应后缀,重复调用
) `4 u4 b! J' k4 h' \! Example of a gallery defined in a GRB file.
1 m8 ?" J8 K8 L' m# F!
8 l- {5 x$ o( g% a: L! If this gallery is to be used in other places, then it could be . m1 p7 T, ~) K- a J
! defined in its own gallery (GLY) file and referenced here% z" C7 H, y+ M, A9 u
! Example:$ {- p: j6 ~) F5 y* l! ~
! GALLERY customer_gallery.gly
+ F7 E& `/ k, S!" {3 K5 P; b Z% Q; k; {
BEGIN_GALLERY CUSTOMER_GALLERY
/ f& Q, f, y, I3 n. B+ L; A1 W dCOLUMN_IN_RIBBON 2
5 @" {* b$ A8 O6 }; `COLUMN_IN_POPUP 2
" ]; ?6 w9 p* L0 a& qLABEL Gallery; k0 S) v& ]" f# [$ R
GALLERY_STYLE MEDIUM_IMAGE_AND_TEXT% n5 d$ H$ F9 G% \* k/ [/ P
2 M0 r6 }7 |. _" U9 T BUTTON CUSTOMER_BUTTON_2
4 L% r, R' N0 Q % r H' K2 h% P
BUTTON CUSTOMER_BUTTON_3
% w+ j0 z# _ E( }7 m
" @2 k& _8 K1 D7 ]' H0 \ BUTTON CUSTOMER_BUTTON_49 r& W5 z4 }. H3 }
" ]$ t' t$ A- ?% {, s BUTTON CUSTOMER_BUTTON_54 I$ h* Y' h$ N& ?0 Y, x
/ ?% u8 g" e- | NEND_GALLERY
1 K2 W" x. U. x2 T3 e* p7 @
8 [1 K+ G B! @% D, I. ?1 m |
|