|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
% b" p' e- p9 s( X! ]
7 c/ \- M& i1 d; {9 D- i: K( e' h4 |: c" ?4 ]
7 x/ `2 U$ u+ s& l" y7 @. h1 \
首先认识下关于菜单的后缀文件
' N7 w6 N. F% r) \* S
w; e3 o" ]# j/ E" Q | | .tbr | Toolbar | .grb | Group | .gly | Gallery | .ddb | Drop-down | .rtb | Ribbon tab | .csb | Cascade | .abr | Attachment | W& C+ {1 Z0 d( w9 I; z: l% l
; v0 ^6 ]" b/ G( [- Q
RTB作为菜单ribbon 界面定义的关键,详细信息如下/ b0 G) h& i$ y/ O0 u& S
. J% p# z' }+ @+ L3 |
+ k* A; V: t/ x% h) B4 w" n
customer_ribbon_tab.rtb: [2 b1 c5 `: r5 X- q: v- p
!8 M) l! T7 R ~& U
! Customer Ribbon Tab' n- Q# c/ m: K
! 5 U( l6 B" N/ C# ~9 @4 s' l0 Q8 q, z
! This file will create a new customer tab containing three groups and! I6 P" Z/ _% ^# F* Z! `
! one top level button.
( @# g) `1 s% j6 z!
' }1 b8 G4 n* C$ \# i
6 \6 [, c J! S# G6 E, i6 r2 XTITLE Customer Tab+ P3 |/ g* M2 r* b
VERSION 170+ \: \0 a! x( A- N- [) y+ S; N
' R) |0 r, Q" G2 O C
! The first group represents a Ribbon group that references an existing
2 M: \! b) s: q% r2 @8 \! toolbar with no Ribbon style changes. ' Q0 d! P- ~0 j; E
!
( u2 x+ @7 [% M: I$ l# U2 H! This is the quickest way to add existing toolbar content into Ribbon mode.
, X2 E+ s" z4 u% k/ O- J2 R!
. j" J6 b/ w0 U% k9 e `. YGROUP customer_toolbar.tbr! k) q. p. F3 Y+ \
! 如果想直接切换tbr 到 rtb,这是最快的
. s* \% `0 @; a! f1 w! [3 u# W0 {$ ?1 p! The second group represents a Ribbon group that references an existing 8 M2 |$ N8 w' _
! toolbar with Ribbon specific style changes added to it. There is no difference
r! ^" s( X' J! in how this toolbar is referenced in the .rtb file compared to the first! t& C: P' p5 X% Y( S2 s
! toolbar as a group. The only differences from the first group exist within + F! W/ L3 R5 D6 X
! the .tbr file itself.
+ G: V" x9 `* O) Z!
/ e ], w- _6 c/ v. U5 I! This approach has advantages for customers that will deploy both Ribbon and4 Z {( h2 v! M. h3 ?+ W
! Classic Mode customizations since all the content is defined in the .tbr
A) P) v) |1 f: H2 V3 ^6 W! file and it will stay synchronized in both modes. Only one set of customizations
' ~! W1 g. C/ o- B5 I8 n! will need to be maintained while still making use of RIBBON_STYLE to
5 Y# P& i. k+ R3 ~7 `( t: O! control the presentation of the buttons on the Ribbon.: G/ Q, t/ S5 J# K& j. j$ Q# q# L4 u
!
. e7 {/ O; W& S% F4 K6 WGROUP customer_toolbar_alternate.tbr& J1 \4 k$ v" s0 ]# k* i3 L4 m
6 ~% u% i( }/ @! The third group represents a Ribbon group that has been created explicitly
. h/ F R L1 C! as a Ribbon group and will not exist in Classic Toolbar mode. This is the
! H2 A' H. _5 X# C: `! preferred option since the user will be able to take advantage of all the
t9 e% g$ J8 K, X& @( U! layout styles and containers offered by the Ribbon.
& E4 g# V9 E% ]5 Z6 p7 u!
, L/ c5 s ?% f9 H6 P9 p+ H! For customers that will deploy both Ribbon and Classic Mode customizations,
6 A9 z5 p+ V( V3 Y! H! this approach will result in no synchronization and two sets of customizations
' J' ]# `' R# P) A! will need to be maintained.9 t/ R3 Y. z' E& p+ }9 a0 Y4 d
!# p9 O- D; E% K) s1 n4 s
! A group can alternatively be defined directly inside the .rtb file by using the
4 ?. G2 w3 c, J/ ^" S0 a( b" W! keywords BEGIN_GROUP and END_GROUP. ( T0 r' E2 [6 w3 w3 l& A
!5 u; s/ S! q5 f$ [ g
GROUP customer_group.grb" J5 M" {# G4 E- ^
/ n f6 }" v C4 [! Example of a button that is placed directly on the Ribbon without being
5 G2 {* K1 o5 K5 V! contained in a group. This is a simple way to add a button to a tab
) V' ^8 k; A! \1 b" p$ ~! but is not recommended for many buttons since groups have advantages.$ |6 k, C9 F( h, i. v
!
4 y0 ^0 O5 ?7 ]+ G7 m1 V! A few advantages of groups:- ~% ^) B: |0 F$ b
! 1. Easier to move many buttons around together in quick customization. # ^, |& w) h0 J5 M! e' J
! For example, MB3 on a group and choose "Add to Left Border Bar". 5 x! s* ~1 j, R3 T
! This will move the whole group to a new location. If buttons are 1 }( }& U3 x! U# U0 d
! not in a group, they need to be moved one at a time.
9 I$ i$ v9 h) L' L5 e' |!- ^/ T2 I+ p% |3 r1 @
! 2. Provide a label to describe its contents.
4 G; j: p$ T4 ^8 _+ s!& K' w# }" G) C1 `* s( }2 |- [
BUTTON CUSTOMER_BUTTON_1
! ^" k2 h! o KLABEL Button1 Directly on Tab
& a- ]4 f( q& `8 x9 {+ n
: V' D. n6 G9 H$ B& C5 i+ [部分菜单可以单独写成group gallery 作为对应后缀,重复调用
3 M' i7 t% K6 i1 R! Example of a gallery defined in a GRB file.3 ^) p2 T; x9 T+ u7 H3 n
!
/ B% P+ K; W1 c, q1 E! If this gallery is to be used in other places, then it could be - o0 T: ^6 y$ e7 h6 Z. q
! defined in its own gallery (GLY) file and referenced here( I! b1 z# s0 e* |% ^
! Example:: d; W+ E8 M. n9 {6 y
! GALLERY customer_gallery.gly& I& ?1 a m( Q7 [- Z; G: d7 @
!: r$ R- O: k: m6 g
BEGIN_GALLERY CUSTOMER_GALLERY
4 S3 z' N* k, U0 [ p7 f$ BCOLUMN_IN_RIBBON 2! C# }5 I! o: E+ ?$ X/ m: r5 ^
COLUMN_IN_POPUP 20 p3 ~& |: U4 Q/ v! A9 T f' x( }- Z
LABEL Gallery
1 h. ?' ]$ U% L% ?# ^ H/ {GALLERY_STYLE MEDIUM_IMAGE_AND_TEXT
* J4 T, n: U/ q. W# o4 }
) D$ E0 D8 w% L/ e+ l2 S BUTTON CUSTOMER_BUTTON_2+ }4 |! j0 g: G* S! Q7 c
" V$ ~- ~0 a9 h; F- L# c$ d BUTTON CUSTOMER_BUTTON_3% a0 ?" U/ n3 q5 g- a. d
( m9 q L% P: q: r d2 K D
BUTTON CUSTOMER_BUTTON_4
3 `* k9 B7 P4 y 0 f4 }3 u' U( ], M) Z& U: O D& D7 c
BUTTON CUSTOMER_BUTTON_5
( ~! x( Q F" O4 |$ P! C 9 \1 ?- i% _$ Y% i
END_GALLERY, V k; n/ r8 g9 I3 X! ~9 _: J
. d" K$ A; A @* }% J+ f |
|