|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
1 g& A7 _) Y7 o, A/ o$ \. _
8 c# Q+ V. |. b z
8 s1 w; Z* `! }9 C1 ]/ d2 B
1 `6 \* b) b* ~$ R, v" H首先认识下关于菜单的后缀文件1 X0 T5 m4 {" r4 J
- S; I) }$ _* k. F- ?4 O9 J: F
| | .tbr | Toolbar | .grb | Group | .gly | Gallery | .ddb | Drop-down | .rtb | Ribbon tab | .csb | Cascade | .abr | Attachment |
4 f/ A3 v6 {8 L* W3 r: c! Z% g* r3 ?( b4 q
RTB作为菜单ribbon 界面定义的关键,详细信息如下1 c/ `: a+ L/ q( |. P1 O4 s) B
- T# c' Z/ P$ c# T( x% C
# z- ]2 T% Z$ ^$ Bcustomer_ribbon_tab.rtb L1 y" C9 L1 G
!
; S; ~: A1 T Z! Customer Ribbon Tab
2 W9 V0 r6 v' r4 m" B$ ` r- ^! 0 \4 J$ _) V0 G0 X! ] s
! This file will create a new customer tab containing three groups and
# t% N) G# D7 a! one top level button.
! @, p# j0 q \/ {; c$ `!# R! |3 a0 B2 e' G% b0 ]2 k9 E
1 F. e- C) U: J2 R
TITLE Customer Tab
4 p$ I4 m' r" h, j, h6 y# C% cVERSION 1700 y& \2 V4 J$ ~/ J5 N$ [7 X
0 G6 N/ r- o7 K5 m$ k: W, m! The first group represents a Ribbon group that references an existing ( d9 i& [& }* h; m, |9 `7 d
! toolbar with no Ribbon style changes.
7 ~* {" H+ s( R1 w i0 K!
" x7 o# M& x% L! This is the quickest way to add existing toolbar content into Ribbon mode./ t1 D/ \- }$ e. |- r2 F: o
!
8 W1 [) C# e+ `7 B, @/ [GROUP customer_toolbar.tbr
7 k* g4 s5 ~3 p+ a3 K! 如果想直接切换tbr 到 rtb,这是最快的
* Y( m6 n" {0 o7 o/ b6 `! The second group represents a Ribbon group that references an existing
) |. C" P1 o4 Z/ z& x! b! toolbar with Ribbon specific style changes added to it. There is no difference- U& b$ Z l$ r; F$ R3 O) b, G' B
! in how this toolbar is referenced in the .rtb file compared to the first
2 ^8 Q* U/ p4 [ O1 \8 P! toolbar as a group. The only differences from the first group exist within % ^8 `+ z* [9 x! Y4 g6 n
! the .tbr file itself.) ~# ^' Z. E. c8 m
!- h5 v6 h7 M' s7 C( p. {. k# d9 p+ {
! This approach has advantages for customers that will deploy both Ribbon and
, ?% Y8 Z1 | m6 v# l+ X! Classic Mode customizations since all the content is defined in the .tbr , \+ I, `# Q# v0 j
! file and it will stay synchronized in both modes. Only one set of customizations- J* l R* G! s: @# y& y
! will need to be maintained while still making use of RIBBON_STYLE to / J3 S) e) y/ P2 L: @" U! L( u+ e
! control the presentation of the buttons on the Ribbon.0 \# c& w( g* `+ d2 K
!
/ Z; R; C3 A: { X! f& k, [( b7 wGROUP customer_toolbar_alternate.tbr
, g& _4 ^% x# R7 [( J. n% S
7 Y6 |, G3 I& s* F1 L* e0 ?3 Y! The third group represents a Ribbon group that has been created explicitly. Y$ C1 {8 p( I0 D# }$ `
! as a Ribbon group and will not exist in Classic Toolbar mode. This is the
% |& F8 W$ l# m4 F; L! preferred option since the user will be able to take advantage of all the
& o. C. i2 |4 l3 ]6 |! layout styles and containers offered by the Ribbon. : K8 U5 [& s+ A4 t8 n1 h! T
!
1 _, }3 d! n6 \! For customers that will deploy both Ribbon and Classic Mode customizations,
( K. u* w) f3 b- E/ N! this approach will result in no synchronization and two sets of customizations / U/ S9 ^" k: M- V
! will need to be maintained.
2 ]: [4 \% F5 N2 v7 Y!8 s% q% f$ X" `, @9 s U
! A group can alternatively be defined directly inside the .rtb file by using the
* E( g3 h2 T ~& a! keywords BEGIN_GROUP and END_GROUP.
+ H, H6 ?: K2 y* _& a!2 b [- O7 A6 p: h9 u- q
GROUP customer_group.grb
4 d# r7 k6 W: V
4 U( Y' y7 o4 p) F! Example of a button that is placed directly on the Ribbon without being
$ H; s4 k$ x! X& d2 w7 M! contained in a group. This is a simple way to add a button to a tab1 F- C( R$ w( e9 `
! but is not recommended for many buttons since groups have advantages.% D" e3 y3 j# r9 T- s+ [. _( A
! 9 c$ v, C+ y* z
! A few advantages of groups:
0 N' u* A# h6 R+ D' F8 \1 C5 K! 1. Easier to move many buttons around together in quick customization. " J) p4 e) F6 ]* d% K
! For example, MB3 on a group and choose "Add to Left Border Bar".
" n% M6 c' P3 l0 A2 Y7 t9 P! This will move the whole group to a new location. If buttons are
7 q5 v- ^9 j/ o! u: F! not in a group, they need to be moved one at a time.* C0 _( c+ f0 _; B4 Y# ?4 ~
!
" c. t' j: P: e1 ?/ \9 J; R! 2. Provide a label to describe its contents.( m- S4 S* m8 _& |1 z# @
!1 l& S" y, R. y; G( E
BUTTON CUSTOMER_BUTTON_1
( ]2 T: k' P. r2 hLABEL Button1 Directly on Tab) ]# K+ z/ w n- i& K- R" R
6 n* v7 c! y; H) z3 u9 a6 a2 |
部分菜单可以单独写成group gallery 作为对应后缀,重复调用
: g) t. G& M. X4 D; [! Example of a gallery defined in a GRB file.2 P) n. [0 E* s' \, l
! + {7 C( }$ j, A1 _* C! O1 G ^& d
! If this gallery is to be used in other places, then it could be
4 V( Y" Y/ P$ T) L! defined in its own gallery (GLY) file and referenced here2 P* v. H. ~( x1 q5 h, Z, J% {
! Example:
& n5 P; q3 z# |0 m+ j+ U% O a! GALLERY customer_gallery.gly
% @- k8 W0 m( @1 W. U m3 V!
8 v9 |5 |* p( CBEGIN_GALLERY CUSTOMER_GALLERY1 Y& [: w% K- N+ g* e, |& z- {
COLUMN_IN_RIBBON 2" K1 p0 m+ }* l; ^6 t
COLUMN_IN_POPUP 29 H# B+ e( v" |6 U; W+ |( a' N
LABEL Gallery
+ R p1 H- E% \. F3 oGALLERY_STYLE MEDIUM_IMAGE_AND_TEXT
; V! O* T1 v& _0 [/ u! W4 ?
; R9 g/ N/ O) a/ I) P; v! t3 ^ BUTTON CUSTOMER_BUTTON_20 v7 w2 ~9 Y9 X5 ~
. N, ~2 P; n9 \1 l" ]5 @1 d7 _: q$ y( e BUTTON CUSTOMER_BUTTON_3) i7 [' ^3 T1 N. q: K
' D6 Z( g1 |9 a
BUTTON CUSTOMER_BUTTON_4
2 F; z, [5 k" `0 g, [5 s
! f: m1 [5 O! s( J0 b5 s BUTTON CUSTOMER_BUTTON_5% J! ?8 i* \: i5 x) ^1 @) p) ^
$ U2 S6 L4 C/ g5 n
END_GALLERY3 T. b* ?0 c4 M3 q* U6 q. t
5 { w/ M, D9 U5 ?$ {$ M |
|