|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
, X5 i2 y0 a! v" @& E! [* R: f9 l$ _# |; ?& z% f( _3 c) J4 E0 z5 }
! o6 J* T; k0 ^ o/ W: E7 r3 U) @- U
首先认识下关于菜单的后缀文件$ H; f! d/ `$ ~; y0 i$ [- ?
7 J0 B' i, {9 `3 Z0 M( n | | .tbr | Toolbar | .grb | Group | .gly | Gallery | .ddb | Drop-down | .rtb | Ribbon tab | .csb | Cascade | .abr | Attachment | - Y) j4 \! ?5 u1 G& S* J: m
. @/ C1 F. G3 b; Y. `, G9 j# D
RTB作为菜单ribbon 界面定义的关键,详细信息如下- B0 H5 u1 A7 S7 l9 t
) r" F& { _' v$ f& l2 D
) ], |# o/ T* }0 _) D! Fcustomer_ribbon_tab.rtb
* V0 S% P+ c0 S2 I1 W, z!8 F! o0 N" \ Z) G- p4 c- r
! Customer Ribbon Tab7 R8 W" l5 Y+ b0 c
! , j+ ~$ _) R9 P& n
! This file will create a new customer tab containing three groups and/ k: b3 u+ d$ ?5 g! r9 b
! one top level button.
1 p; T5 d5 t3 u$ r!" \, K, X% ~, q
4 Y8 y+ [7 K& _9 y6 y3 ~. K* L4 uTITLE Customer Tab
# G6 ]& m- W+ @- FVERSION 1702 |8 @' Y& T, N
9 t9 c j" ]( L! X1 w
! The first group represents a Ribbon group that references an existing , S" z5 c) T( y7 w# j9 X- r
! toolbar with no Ribbon style changes.
* J) n6 V& K' ~) ^' }) P* y: B1 l! X!
8 |- I S$ a+ u% b; j! This is the quickest way to add existing toolbar content into Ribbon mode.9 c/ Y1 g, @8 J9 L* f% g
!/ s2 k5 D; J, u; A
GROUP customer_toolbar.tbr
8 j. F; e9 ~1 o! 如果想直接切换tbr 到 rtb,这是最快的
* T2 c6 ]2 [6 k& C3 G6 f0 x! The second group represents a Ribbon group that references an existing
, d! F# F2 I2 z. H9 |9 z9 {% m! toolbar with Ribbon specific style changes added to it. There is no difference2 E1 E6 I/ @+ E$ D8 i) s
! in how this toolbar is referenced in the .rtb file compared to the first
% }& a0 N$ @; S! toolbar as a group. The only differences from the first group exist within 4 b4 W; o" b- |" l8 k* b
! the .tbr file itself.7 }8 W% o% ^8 Z" x7 ~
!
% t) b. ^2 y: a6 {8 K! This approach has advantages for customers that will deploy both Ribbon and ~; B/ Y" l: m* e, g6 J
! Classic Mode customizations since all the content is defined in the .tbr
g' {6 @2 `/ Q* ^) m! file and it will stay synchronized in both modes. Only one set of customizations( a' [7 H1 `. V" e8 N) B
! will need to be maintained while still making use of RIBBON_STYLE to
* {4 T2 O8 T' d5 ?& P% v5 R! a! control the presentation of the buttons on the Ribbon.
% F0 A( R' p/ l6 H!
8 R5 C& c. f/ ]7 m4 z7 w. sGROUP customer_toolbar_alternate.tbr
* r+ x; a" |. c# s- ], N9 ]0 z
4 T" b7 y( ~$ r" @2 i! t4 Z! The third group represents a Ribbon group that has been created explicitly
9 U z$ L/ d* J; ^% X# |/ r+ B5 h! as a Ribbon group and will not exist in Classic Toolbar mode. This is the
& |+ Y+ ?; u7 F, u9 d' {/ A/ @! preferred option since the user will be able to take advantage of all the
; b7 ]& ~7 f6 p% c1 x3 n j* G0 m! layout styles and containers offered by the Ribbon. % T6 v) }: ]; E0 @+ v' I% L
!) D7 V1 m: R" q3 M
! For customers that will deploy both Ribbon and Classic Mode customizations, / e4 W& D {8 D0 k
! this approach will result in no synchronization and two sets of customizations
' V+ g. C( X$ X7 D! U8 O; F/ R' p! will need to be maintained.- y! ?2 i: b/ q( g+ G
!" P8 C2 e, B0 y1 T4 p
! A group can alternatively be defined directly inside the .rtb file by using the
3 W* Z4 A, P. E( f! j; q0 l& l) z4 v! keywords BEGIN_GROUP and END_GROUP. . `0 A+ Z+ s# M9 s9 T3 M8 w
!1 i( a# |9 M" H4 `, |; r( V1 k
GROUP customer_group.grb
% ]+ U: W1 E3 }) I) }+ Q4 c( a5 t* k
6 o9 o) ~9 P4 x! Example of a button that is placed directly on the Ribbon without being- F9 ^+ ~8 h0 x4 K
! contained in a group. This is a simple way to add a button to a tab
9 r3 K6 P- i2 l9 s7 L5 R6 E: i; b! but is not recommended for many buttons since groups have advantages.
8 c0 J" H& I1 w& o5 n* ?& Y!
w0 g. E% Q% c! A few advantages of groups:
( O5 L( m+ q3 \4 p) h! 1. Easier to move many buttons around together in quick customization.
y. y d- W% R7 r8 C# Y! For example, MB3 on a group and choose "Add to Left Border Bar".
8 ?. E* h/ E- C+ s6 t! This will move the whole group to a new location. If buttons are
- g, {) I5 ~; ]5 n! not in a group, they need to be moved one at a time.
! l4 x* T3 c. X$ @6 ~% f!7 S, r7 K4 E5 J0 i$ Z; U- y+ i# H
! 2. Provide a label to describe its contents.
3 D" w3 d& y* R+ S6 r; {" U. N!
/ p" p; m+ g- \! j# Y* L/ j4 i8 ]BUTTON CUSTOMER_BUTTON_1
E- G4 K# `5 c$ MLABEL Button1 Directly on Tab3 f4 W& E2 w2 O6 j4 q7 x* t
, Z" e! y# Q$ s& f2 X4 v部分菜单可以单独写成group gallery 作为对应后缀,重复调用
5 c$ W t7 `$ @! Example of a gallery defined in a GRB file.
- u! B- o& o7 Z3 e5 k!
; V& ^$ e/ c& L4 B; J% }6 j+ j! If this gallery is to be used in other places, then it could be / v3 W ?( Z) @3 f7 X- v
! defined in its own gallery (GLY) file and referenced here* X# e3 s! m, u0 P* s% T
! Example:
5 U+ l# w$ F3 W/ _3 O7 ?2 H2 k, F! GALLERY customer_gallery.gly$ Z% d Y Z5 a# Z! H4 M" t
!$ C7 _% f0 q, o5 I+ F
BEGIN_GALLERY CUSTOMER_GALLERY
: H- l" c! _, o WCOLUMN_IN_RIBBON 28 ~: b4 r! G) |" c; Q' i5 ?9 S4 ]" M4 _
COLUMN_IN_POPUP 2
: p2 \4 B6 j' s7 V0 iLABEL Gallery
, m8 X' p# f" c/ P! V! _& n, o# u: LGALLERY_STYLE MEDIUM_IMAGE_AND_TEXT: ~* p4 m- y) I$ S$ [
2 q% x+ I3 @" @* ]( C, J% j
BUTTON CUSTOMER_BUTTON_2
+ x1 l7 e b4 N& E 5 P3 i) k. C2 x6 N
BUTTON CUSTOMER_BUTTON_3* H1 i& I0 _' G! m& W
' o# n$ _( H" n
BUTTON CUSTOMER_BUTTON_4
0 t' @. Z) A, G( K$ D, ?: K% k 9 d! m, w9 U: u+ x0 F
BUTTON CUSTOMER_BUTTON_5
, q- Q3 F. ?& C+ d2 r) D- b- T7 S
. P) ~& ^( d, z0 n5 ?& |END_GALLERY
3 {& M9 H3 A% s Q: f( u+ j5 Z( v
, S& ~& u, x# Q; q |
|