|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
- k, K3 f$ X; t3 c5 [" D7 j) B d0 h. u: p- }4 w& e3 O
. z# U/ k9 @" T
+ t x0 u" y* a! r* o7 u8 v首先认识下关于菜单的后缀文件
: m. E( R P" S0 X9 Q
0 P; Q2 Z5 U6 |, |' }6 j4 H | | .tbr | Toolbar | .grb | Group | .gly | Gallery | .ddb | Drop-down | .rtb | Ribbon tab | .csb | Cascade | .abr | Attachment | 3 f$ V8 \$ E$ J
( J+ o' s8 [" L) T- K
RTB作为菜单ribbon 界面定义的关键,详细信息如下0 @. d/ r; v. l' _
5 Z% v& N' Q/ _- i+ A7 H
8 k) T6 t5 \( l+ }customer_ribbon_tab.rtb
" t: k. T: _* h& C6 t!
, ]! K( H3 h6 S. {& h8 |! Customer Ribbon Tab
1 U% l- v7 Y' K: P! q7 q!
9 |1 T, @4 m: d7 L0 g- Z% ^6 q8 F/ w6 y! This file will create a new customer tab containing three groups and- u L2 \4 x& r+ V3 [- `& a& \
! one top level button.
7 X0 O1 b; g* e, G# p. }!
+ K5 j: b- A+ A$ H# ]! r! u4 t
/ k ?' t, E, w& H+ n9 VTITLE Customer Tab# t- j8 R6 P) g B) z
VERSION 170
7 p# v1 m. D' }( D8 ?2 I
0 @8 F/ u& W8 p! The first group represents a Ribbon group that references an existing ! q( Q: B7 ^3 d0 y7 L
! toolbar with no Ribbon style changes. " j4 o4 a5 H, s( d! ?
!
6 `0 E/ H! C# @3 M2 Y' u t! This is the quickest way to add existing toolbar content into Ribbon mode.
1 i/ e e7 D' Z8 F' G!0 g# @; F3 r* _. g: I( s
GROUP customer_toolbar.tbr
/ ^. k$ H5 p _) M! E! 如果想直接切换tbr 到 rtb,这是最快的 ) L( C, W! y) _0 Z; s# c- f
! The second group represents a Ribbon group that references an existing ) g! x7 o! w7 v2 A+ u0 @& s7 @
! toolbar with Ribbon specific style changes added to it. There is no difference* h5 ]$ ^# _6 A3 i$ Z# }( J1 f
! in how this toolbar is referenced in the .rtb file compared to the first4 h# r7 A9 Y- {
! toolbar as a group. The only differences from the first group exist within
5 |' Q/ O/ t' d$ c6 e4 o- U U# g! the .tbr file itself.
5 C0 y% ]; z3 ]0 h1 N. B!
! `7 G6 t0 L, c; q; g5 Z2 z8 u5 J! This approach has advantages for customers that will deploy both Ribbon and
/ N, W3 ~' ?! l8 X! Classic Mode customizations since all the content is defined in the .tbr
) J' s, E3 r' |: T G! file and it will stay synchronized in both modes. Only one set of customizations; u5 q4 {; G( y+ j& I8 M4 ]
! will need to be maintained while still making use of RIBBON_STYLE to
1 Y. G/ m. ]- {; D% P, n# [% Y. S! control the presentation of the buttons on the Ribbon.) C+ T r# Z* K- ?" f
!+ y+ R/ Z0 ?$ |) h
GROUP customer_toolbar_alternate.tbr+ s7 r# W8 N/ L
8 ^6 Q' V% \( k/ j- D: k
! The third group represents a Ribbon group that has been created explicitly
- E& T* l6 j9 _* x) E5 ~& X4 o! as a Ribbon group and will not exist in Classic Toolbar mode. This is the+ \* g* z- p; F, d+ j/ v/ B3 O
! preferred option since the user will be able to take advantage of all the 6 j# `) o6 ^4 @/ D+ i# ]
! layout styles and containers offered by the Ribbon.
9 P, @7 `5 p/ [% L% }!+ D1 `: E5 P# b4 o6 ?. F% Z2 f
! For customers that will deploy both Ribbon and Classic Mode customizations, 4 M& A! Y3 ^. W- j4 x D' n* t7 q
! this approach will result in no synchronization and two sets of customizations
^, A# S" z' }& w! will need to be maintained.
' W# U/ `, t1 j% z!
3 T9 w* t! _, x/ i+ e9 A! A group can alternatively be defined directly inside the .rtb file by using the5 r7 Y {6 D: f7 ^, [' s: ^
! keywords BEGIN_GROUP and END_GROUP.
" J( @5 Y& s: x!
: B, }; G j* g7 f MGROUP customer_group.grb( E+ D! V+ o: o" L- Y0 P1 _
. w7 j$ R" M% b$ z3 o
! Example of a button that is placed directly on the Ribbon without being
8 L/ O* o; E% U+ J! contained in a group. This is a simple way to add a button to a tab9 S/ f* o+ u6 t7 R; A% R; X( J* r
! but is not recommended for many buttons since groups have advantages.. }; E6 d7 O. e2 f
! : B4 K+ F% M6 m" C
! A few advantages of groups:/ l4 F: p* b# K" D' ~( \" u- x
! 1. Easier to move many buttons around together in quick customization. 9 E, I& ^0 z: `, Q
! For example, MB3 on a group and choose "Add to Left Border Bar".
* Y; N- V) q1 K) d8 L! This will move the whole group to a new location. If buttons are
1 }6 y! h8 B' I c1 F# ]! not in a group, they need to be moved one at a time.: } ~( M* F) i' L* F$ E) Y
!7 i/ Q' q. Y5 G6 q, f
! 2. Provide a label to describe its contents.3 C( m7 E+ ?( A0 v8 J, _3 J2 F# T* k
!9 C1 ^: C! A) }7 Y; u& A
BUTTON CUSTOMER_BUTTON_1/ ?% u5 Q0 ?) H* Z$ O7 C
LABEL Button1 Directly on Tab/ k8 ]; G' j$ Q
3 w* C; L0 h( |' ~, N5 y部分菜单可以单独写成group gallery 作为对应后缀,重复调用4 }& `5 P9 B& f k; u
! Example of a gallery defined in a GRB file.
$ l) L% G' D! z! Q! v3 b! ) ~3 k* M* r- v: ^
! If this gallery is to be used in other places, then it could be 0 O; q, i5 y1 P. A6 t: \8 F* d
! defined in its own gallery (GLY) file and referenced here0 Z0 T* k2 B4 s9 c* m) j, a
! Example:
/ N3 ^( X* V) N! GALLERY customer_gallery.gly" ?% Z* T. f/ q5 [( K/ {
!
6 |! E3 S" }" e% _BEGIN_GALLERY CUSTOMER_GALLERY) [5 f3 ]9 y4 V+ N( `
COLUMN_IN_RIBBON 29 V' A! ~9 f# h7 T
COLUMN_IN_POPUP 2
% }. S/ r& H5 ~- s/ K3 wLABEL Gallery2 G$ ^, q" H" U
GALLERY_STYLE MEDIUM_IMAGE_AND_TEXT! M' q' i) \$ L. U8 G
2 I0 A# N. v9 C7 F
BUTTON CUSTOMER_BUTTON_2- G0 U& l( G4 y0 u1 V
. R. j7 ^ G# P1 l- e' R4 l+ R BUTTON CUSTOMER_BUTTON_3
( l& ]* E- z7 w" C( ?& ?
& Y) b- b- P7 |" C* k. j BUTTON CUSTOMER_BUTTON_4
) @2 A; t6 \ v, @3 W3 s
2 c1 L2 ?3 I" X6 p6 @* b BUTTON CUSTOMER_BUTTON_5
8 ~4 j' X2 m" Y% s* N1 `# Q% O
% I3 N9 Z( K+ c% r1 XEND_GALLERY. d) x( h6 Q1 H! T8 _: \1 y2 {" v
- b5 j {. w* T/ h6 i |
|