|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
$ Y. ~9 o7 J! ~9 z5 F
2 E! {" u5 s3 d' y) j; F' H. k
7 G0 R t& `3 Q' C F
) y" O% p \) W/ b( S5 |: K ?首先认识下关于菜单的后缀文件1 n# [: q' j3 A# B. z" @' j! ]5 H
6 f9 G6 K$ _! n" I3 b9 O2 a | | .tbr | Toolbar | .grb | Group | .gly | Gallery | .ddb | Drop-down | .rtb | Ribbon tab | .csb | Cascade | .abr | Attachment |
7 y7 U1 ^- F3 P* m* m+ C( [0 i* |2 |8 H; ]0 b
RTB作为菜单ribbon 界面定义的关键,详细信息如下
% Y, [% T' i" Q N
" _; c# F% [, z h
4 r3 O- n! k. L% G6 ~8 O0 a i) N1 ]customer_ribbon_tab.rtb9 `7 M* N7 u: p5 F: U
!
, ^: [' ?; @) n( e9 p+ H+ _! Customer Ribbon Tab
7 Q" ]! V+ u: U( `1 s* O!
# x9 }; o: F' z+ y5 f! This file will create a new customer tab containing three groups and9 _7 X/ Y# l2 [
! one top level button., k, M* Z5 b8 S
!1 w4 w) d1 d9 ^
* O$ S) q7 S( ~% B/ e! {& \TITLE Customer Tab/ R _% C. b0 }( T* @7 \! l3 m i
VERSION 170
0 w1 q1 G2 N0 m3 L! j0 m7 s+ b" P8 j3 g. u
! The first group represents a Ribbon group that references an existing ! E& M" \$ p- O$ t) K
! toolbar with no Ribbon style changes. ! i7 ]! F- l$ d. K
!
: W& f; L, ]( y0 s0 p6 } n! This is the quickest way to add existing toolbar content into Ribbon mode.; D7 p5 E" ^; ]2 D0 E. N; z& z
!5 L5 X+ v& b, p/ N1 w P" Z. U; D" Q" |
GROUP customer_toolbar.tbr
: L& V# V7 e& k! 如果想直接切换tbr 到 rtb,这是最快的 2 D# o! V2 n7 H# @% z4 v! T% J" m1 y
! The second group represents a Ribbon group that references an existing
5 M4 P& @+ z" y, J. a1 U; B; Q: _0 u! toolbar with Ribbon specific style changes added to it. There is no difference. c: \" Y7 |# u. a3 k
! in how this toolbar is referenced in the .rtb file compared to the first% j* O5 f7 A% X2 ?, T" ?
! toolbar as a group. The only differences from the first group exist within $ M* B+ Z% H2 E5 a
! the .tbr file itself. c1 }* d! f! Z# j
!
$ A7 R4 d1 [2 [$ @, T% T; m! This approach has advantages for customers that will deploy both Ribbon and* }% X3 G; ~2 y, `0 B) u2 j" w
! Classic Mode customizations since all the content is defined in the .tbr 5 S9 c1 R- C3 \
! file and it will stay synchronized in both modes. Only one set of customizations) r3 Z# g# X9 ~# e K
! will need to be maintained while still making use of RIBBON_STYLE to 1 z8 Q! i0 a& F, ?' K
! control the presentation of the buttons on the Ribbon.
8 ]8 m, Q/ U9 h3 i6 v7 ^' H X3 c!
9 k+ H% M" p& S8 ]3 }GROUP customer_toolbar_alternate.tbr+ e& _- j9 X7 V: V! ~3 x
' ]' f& c) ^: c
! The third group represents a Ribbon group that has been created explicitly
1 A+ S# p0 d, G1 W' G% W+ K2 q! as a Ribbon group and will not exist in Classic Toolbar mode. This is the: C3 Z& G9 m% R/ C. ]; ^# [
! preferred option since the user will be able to take advantage of all the 2 X+ H3 b: D/ h: w5 f4 k% l
! layout styles and containers offered by the Ribbon. 1 I+ M7 V5 s5 |3 V. s: o: @5 s9 ?
!- N7 p6 L# W1 G/ `
! For customers that will deploy both Ribbon and Classic Mode customizations,
5 _2 [1 r1 v! ?, n! this approach will result in no synchronization and two sets of customizations , X& \- q1 U2 L% {$ F
! will need to be maintained.
6 y9 u6 U- \ }7 c: t; M!
9 h6 u1 ^3 E) ?1 E" p* _0 V! A group can alternatively be defined directly inside the .rtb file by using the1 A. c* A l% {9 o6 P
! keywords BEGIN_GROUP and END_GROUP. 6 H6 u( _3 h2 X) S& I! i
!
- {! X$ T9 f% E; yGROUP customer_group.grb
3 f4 k3 H6 D* n/ @0 n d' _, J* s3 o T' H( S/ c; P
! Example of a button that is placed directly on the Ribbon without being
& t: Q9 Q2 W' [; T$ R! contained in a group. This is a simple way to add a button to a tab8 k1 i, D9 a7 Q4 E
! but is not recommended for many buttons since groups have advantages.* i' t1 O- f8 X- ]" V' D) Q. |* `
!
' O# ?8 ?' A' d' f7 K6 d- B) V* q! A few advantages of groups:2 ~- g0 E; K" d* `5 D ^0 Y; Z% T
! 1. Easier to move many buttons around together in quick customization. * A& N- n, i; s9 T' e* ^6 k
! For example, MB3 on a group and choose "Add to Left Border Bar".
# d8 ~" k$ L( }5 i" s4 L* R( A! This will move the whole group to a new location. If buttons are
9 s$ p I: Z5 i C5 d! not in a group, they need to be moved one at a time.) I. W3 T( z" s# E) e# C: |1 k
!& A2 F! N$ Y6 t3 x! t, {3 j' R4 X% l
! 2. Provide a label to describe its contents.
9 [4 ^& G q% c; X/ N- n) x* {8 X!
8 z" Y% M! Z1 B$ z+ M8 I' uBUTTON CUSTOMER_BUTTON_18 a, ^ V2 t9 I C! F
LABEL Button1 Directly on Tab* b) n+ p. o+ f [/ k/ p6 j6 \
) J6 Y: \' u6 m4 M2 V
部分菜单可以单独写成group gallery 作为对应后缀,重复调用
! t& t2 e) P. M- |0 k) N! Example of a gallery defined in a GRB file.
) v% b& u" v, A7 C2 y!
7 {+ x% }: O$ y% T6 k$ f! If this gallery is to be used in other places, then it could be ! o0 J, R, e `( t1 V% ]0 e
! defined in its own gallery (GLY) file and referenced here' j: E, z' ?+ _* Y7 m3 y: i. b) K
! Example:! l0 s9 ]" k+ `0 C3 f/ o
! GALLERY customer_gallery.gly" Y p0 p5 Z8 b* t h& B
!
* C& n: E# s7 {. DBEGIN_GALLERY CUSTOMER_GALLERY
* F) _ O7 {$ B/ x" R4 q' V1 DCOLUMN_IN_RIBBON 2! e, k) F8 ~7 }: C
COLUMN_IN_POPUP 28 H, P& x& R4 k: x0 a
LABEL Gallery; n5 S. q$ n6 E: I* M2 `( V P
GALLERY_STYLE MEDIUM_IMAGE_AND_TEXT7 Y! Q' t, r& F
5 o, k- w3 C# a
BUTTON CUSTOMER_BUTTON_2
; e8 F7 @& [7 f" _( Y
1 O. W# K6 N. h0 Z8 e BUTTON CUSTOMER_BUTTON_3" i% ~$ ^$ I7 t, l& {9 [
+ a* ?0 l" B7 o: C! w$ v6 z1 n BUTTON CUSTOMER_BUTTON_4% ~1 C3 V: b2 H( |+ b% z) y
7 S2 g: H! L2 [0 m' ~ BUTTON CUSTOMER_BUTTON_5
: @: V0 n2 j/ A* ]* p6 E9 }
8 ]1 [0 q: u. J, aEND_GALLERY7 k7 t5 E$ w- `+ V9 a$ T
3 h7 V [# N4 J A r* @
|
|