|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
( [, q& a5 ~9 d" h# }, E; d5 H$ y- G( [
1 ?% J2 c+ ?6 y6 C
, c3 j, `3 p- `% H
首先认识下关于菜单的后缀文件
3 `, f1 S/ E( J$ I
# \- o! \+ j" y+ ^: a. ]* s: y | | .tbr | Toolbar | .grb | Group | .gly | Gallery | .ddb | Drop-down | .rtb | Ribbon tab | .csb | Cascade | .abr | Attachment | 6 @0 l3 Q: s2 l2 H
; b# U+ A1 N; Z/ J: V
RTB作为菜单ribbon 界面定义的关键,详细信息如下
5 ^; j. x5 f; g" W5 s# e5 m' i5 t Q! l$ I
! ~ Y: g8 W& @( ecustomer_ribbon_tab.rtb/ Z' s3 D) r3 p- [" Y
!
9 O) H0 ?5 {; i o! c9 F! Customer Ribbon Tab; x" V4 ~6 N' h/ t2 |9 ?# q6 ^
!
1 B/ l0 o+ }7 s, w+ V6 ^! This file will create a new customer tab containing three groups and5 y( n V* j# @2 c" v$ A
! one top level button.
2 M# m6 s9 q% i6 F' |+ o7 j!
7 H g1 r2 |9 m8 g4 D& b& q( r
" ~! O* r5 D# t7 ?5 C1 zTITLE Customer Tab0 G4 g# i* L$ i* S# r
VERSION 170( e' e; U2 e& x; j) R' Y) {8 z
1 X& s& S z) {" g: q
! The first group represents a Ribbon group that references an existing
1 y' I( ]8 W. }( X; W) i! toolbar with no Ribbon style changes. . C. k+ j8 Z* F' U& O& L
! 6 s( L; Y. Q8 \$ H; ?% O1 z& |7 P
! This is the quickest way to add existing toolbar content into Ribbon mode.
% d" m& ^ P) {9 \!
5 O3 F: Z3 ^1 p& YGROUP customer_toolbar.tbr# E6 V0 a# f+ u: y
! 如果想直接切换tbr 到 rtb,这是最快的
$ c3 L* y d: E/ b7 m: M5 V. R4 B! The second group represents a Ribbon group that references an existing . e& r# D5 H8 d# Z
! toolbar with Ribbon specific style changes added to it. There is no difference
# Y2 r* g4 g) m; y* ~ i1 w1 Y! in how this toolbar is referenced in the .rtb file compared to the first" Q% {- k* { v" z
! toolbar as a group. The only differences from the first group exist within 0 m7 v1 d# s% Q, X8 h
! the .tbr file itself.
, k" @- e* ?! h' Z9 h, ~ ?( X!
5 K# h6 @. A/ i! This approach has advantages for customers that will deploy both Ribbon and
0 v0 C; o+ S$ b) b4 V! D! Classic Mode customizations since all the content is defined in the .tbr . J0 C4 k' n9 I
! file and it will stay synchronized in both modes. Only one set of customizations& A3 s0 y! m+ P" h
! will need to be maintained while still making use of RIBBON_STYLE to
$ y' K7 Z6 D2 @( N: S! control the presentation of the buttons on the Ribbon.- |3 e: X1 G' }
!
& Y, f. c7 Z+ _GROUP customer_toolbar_alternate.tbr
& w/ e+ x3 U( Q0 v f
- y; |* V- L( c/ ?- r2 a! The third group represents a Ribbon group that has been created explicitly
0 S; ~ T: h" t8 }! as a Ribbon group and will not exist in Classic Toolbar mode. This is the7 [2 I* }% j+ E8 T7 \, r/ l
! preferred option since the user will be able to take advantage of all the
8 A' ]& T9 v' V" r- H! layout styles and containers offered by the Ribbon. " U2 q. n7 \" v. t+ Z! E( h7 R% Q0 T
!( Q5 ]( K0 x$ j) u% l' @9 i( z
! For customers that will deploy both Ribbon and Classic Mode customizations,
: M# ~, z! M9 s! this approach will result in no synchronization and two sets of customizations
# g# g$ E, u4 ` v7 u2 ~+ U4 r2 i; H {! will need to be maintained.6 s8 }8 S/ j; t! b# O4 h8 M
!) F( T9 J+ @/ c5 `7 M
! A group can alternatively be defined directly inside the .rtb file by using the5 j) V I" J# Z% u2 m2 i3 W, N
! keywords BEGIN_GROUP and END_GROUP. - \; _( v/ ]( [" g: t
!
2 g. E0 `/ H* _+ wGROUP customer_group.grb
5 X; `% y U% d% `5 ^* t! x& ^7 R5 ~9 z9 C" b8 n' [8 C5 H/ T9 v
! Example of a button that is placed directly on the Ribbon without being
& {' q3 d! m" l; f! contained in a group. This is a simple way to add a button to a tab. o/ x. V! n2 T, ?2 F* q
! but is not recommended for many buttons since groups have advantages.
& Q: I; r/ w. O9 [4 V! 0 R" M! g8 a) J- c8 \) P: s; D
! A few advantages of groups:
8 }, d# }/ E o# ]& {3 ?0 ?! 1. Easier to move many buttons around together in quick customization.
) @' V9 Y- m: A! r. W! For example, MB3 on a group and choose "Add to Left Border Bar". 9 H# v% o/ L# K
! This will move the whole group to a new location. If buttons are
; t. B ]1 k- M0 ~! not in a group, they need to be moved one at a time.* ~! E. `3 E; \" k
!
" o2 i1 T" p2 G0 d5 t! 2. Provide a label to describe its contents.0 d8 y/ p8 z( L) Y# }' d
! G% k$ Q" D' G& r4 @
BUTTON CUSTOMER_BUTTON_1
# b9 s) _9 L: C i% k$ w/ `LABEL Button1 Directly on Tab
9 d' i' [# M& t) o
# ?5 y0 R) v% N部分菜单可以单独写成group gallery 作为对应后缀,重复调用% F. M6 t0 l2 A# ?/ W9 U( i$ b
! Example of a gallery defined in a GRB file.) n: i$ c3 \( ~: T- ~) O
!
, T% _/ b( r- t4 h! If this gallery is to be used in other places, then it could be
: c" h) w3 E' p+ l5 u! defined in its own gallery (GLY) file and referenced here$ O; O' x, S3 v6 l
! Example:9 T( q% p: y/ g6 U' ]- m# H% k7 G
! GALLERY customer_gallery.gly5 @. {2 _, E2 T& E- R8 m! h
!2 N: ?0 {% j8 F7 s+ q- P% A
BEGIN_GALLERY CUSTOMER_GALLERY' R7 X+ z# s& [6 c, J2 _ j5 r
COLUMN_IN_RIBBON 2
1 F; N. l0 ]- w5 K9 y% e) E" M$ uCOLUMN_IN_POPUP 2
( ]* b+ W) f% A YLABEL Gallery
% t1 u& p0 G$ H, Z! NGALLERY_STYLE MEDIUM_IMAGE_AND_TEXT" a J! S Y/ V9 l k" `
6 J! x6 I( |% P BUTTON CUSTOMER_BUTTON_2
+ H0 Z! x9 ]- p/ r2 d! m $ O( S. K0 V# o2 |7 X& w5 r
BUTTON CUSTOMER_BUTTON_3; ^/ M1 F: F+ }) \" u- o/ y
& M+ E* i& Y% z2 ~9 b1 ~" K
BUTTON CUSTOMER_BUTTON_4
+ k+ w( W0 M: m+ K, N' f) v
4 s N u: C+ A( [. [/ e BUTTON CUSTOMER_BUTTON_5, A/ k L) N. C) j$ F
( |1 A- P* J2 I* y% n z4 B0 EEND_GALLERY1 ^" h* o w- Z
6 l+ Y, \6 b& T: r4 X
|
|