|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
3 \; `8 I" n* z! J
* l, b7 r3 g8 q# ^7 F, r- A8 l- s
1 v; m: C! X; ^6 s7 B7 t$ g
" ?# K- c5 ^9 X首先认识下关于菜单的后缀文件& v0 K$ S9 R; _6 i
3 U/ x0 B$ |! l& D
| | .tbr | Toolbar | .grb | Group | .gly | Gallery | .ddb | Drop-down | .rtb | Ribbon tab | .csb | Cascade | .abr | Attachment |
! |! b4 ?* e& H+ W; V' `! B" \' X7 T' b. S+ H( Q
RTB作为菜单ribbon 界面定义的关键,详细信息如下$ @. ~1 h; O- K9 m
8 I( U9 Z1 x6 o6 A; L0 [- j: |
: O8 u8 ]2 e- ~customer_ribbon_tab.rtb/ |) ]- s3 @ |1 u4 D% y
!
8 S- V' n# O" Q) f$ W. d! Customer Ribbon Tab
* s# |& t4 M; n3 [+ n z! 8 j- } p: G2 q2 }/ I
! This file will create a new customer tab containing three groups and# G5 ~1 q( E$ G8 I H. ^" a4 b
! one top level button.8 u, M" l- ^9 c4 \% z h
!3 J( |9 Z# B3 o. c& X7 c! o/ X0 k
6 i5 w2 [3 j. F9 e7 h, J4 }4 pTITLE Customer Tab0 w0 o4 o) C' ]3 a
VERSION 170
$ F* Q6 j3 K# d$ d# a* z: [; {3 A4 o3 [3 w& G0 h% T( Q
! The first group represents a Ribbon group that references an existing
) U+ m; x& R: T, M3 \! toolbar with no Ribbon style changes. 0 J* G2 I. ^: U3 z3 Y9 D
! % C% ?5 H. C) F3 I2 U
! This is the quickest way to add existing toolbar content into Ribbon mode.7 p8 V* T' O) ~
!' ]2 z& P9 r! b) g5 y7 T
GROUP customer_toolbar.tbr
& q: h/ R @$ d$ U7 ^: U! 如果想直接切换tbr 到 rtb,这是最快的
. k( L0 m: ~; }, }) m! X5 e6 |! The second group represents a Ribbon group that references an existing 0 ]$ i9 B- I' B: ~, n
! toolbar with Ribbon specific style changes added to it. There is no difference" f$ N! s \* D
! in how this toolbar is referenced in the .rtb file compared to the first* {( M7 c0 V3 A3 x; u R1 g
! toolbar as a group. The only differences from the first group exist within T8 e( |; L* D( |% j+ O7 W- k
! the .tbr file itself.
; c2 Q! n8 [, `- h5 b!% t) T p+ y; \& d4 {
! This approach has advantages for customers that will deploy both Ribbon and( D! e7 }4 x+ q8 ?8 H" u3 i- a) D
! Classic Mode customizations since all the content is defined in the .tbr
9 `9 k1 k. [2 j# k8 ~, v! file and it will stay synchronized in both modes. Only one set of customizations
" Z! c4 O6 M4 v9 s! will need to be maintained while still making use of RIBBON_STYLE to
3 E! w. `+ J8 V1 G; T; _! control the presentation of the buttons on the Ribbon.' F$ a& z; o g; b( }" U2 @" u
!
1 a) @) y1 A$ P V, t9 i' j1 mGROUP customer_toolbar_alternate.tbr
/ J+ G3 _; ~( Z0 a/ ]; W
% d) g$ ], c- b! z' W4 @$ N! The third group represents a Ribbon group that has been created explicitly% J- h8 k9 w( ?! Z1 a/ n! h
! as a Ribbon group and will not exist in Classic Toolbar mode. This is the/ X |5 \) j' o2 ~: I
! preferred option since the user will be able to take advantage of all the
, J0 K; g4 h6 z7 Q! layout styles and containers offered by the Ribbon.
6 O7 l& u7 H; O; \!9 w) A. B% q e" N
! For customers that will deploy both Ribbon and Classic Mode customizations,
% F! I! n1 ?( Q! this approach will result in no synchronization and two sets of customizations
* G. o2 a7 Z/ C# J8 x ?! will need to be maintained.7 V7 P4 z6 [+ V# B* b
!( O8 g, E/ |+ d, Y$ Y
! A group can alternatively be defined directly inside the .rtb file by using the
7 `0 ] O. k; w! v, b) I! keywords BEGIN_GROUP and END_GROUP.
0 j o7 j5 l, E3 Y# e+ Q9 a!
6 a7 {) C6 B9 M& KGROUP customer_group.grb( t# \; X' w% s# w
& R/ f6 O7 r) M* N! Example of a button that is placed directly on the Ribbon without being# [' c7 L; y+ l( {( P
! contained in a group. This is a simple way to add a button to a tab+ [- Z5 w0 k3 v7 ]' D/ `: r
! but is not recommended for many buttons since groups have advantages.
2 E# l: _" }4 K& l1 h!
* y$ O* @! m2 f! A few advantages of groups:5 @" D7 @; S1 ~% ?* V
! 1. Easier to move many buttons around together in quick customization. 2 C t7 d9 h2 c' s' t
! For example, MB3 on a group and choose "Add to Left Border Bar". ( Y3 Z; v8 r% d4 y1 g& B( \. }8 S
! This will move the whole group to a new location. If buttons are . L) J0 G* u# Y# Q/ v" k6 K
! not in a group, they need to be moved one at a time.
: f: I, x. B6 V1 [/ G5 h!9 b+ Q. V" X0 Z m
! 2. Provide a label to describe its contents.
& V E1 o6 W: R' s" D [5 ^8 E!/ p# Z! B. Y6 j# r: f9 U3 V
BUTTON CUSTOMER_BUTTON_1
0 J4 o3 S, b9 e' Z4 gLABEL Button1 Directly on Tab
6 h/ ~- v+ @9 Y1 z" K8 A: n5 n) F5 d* B
部分菜单可以单独写成group gallery 作为对应后缀,重复调用
# g: F* L V4 C; V+ \: k$ Q! Example of a gallery defined in a GRB file.
L' Z% f2 V+ n! j3 _!
- a0 r$ D, p' G& Z9 i+ i; u! If this gallery is to be used in other places, then it could be
2 p) A# {' O) l" g3 l2 k! defined in its own gallery (GLY) file and referenced here
: ~+ p# D/ j9 M9 t! Example:! z) c9 D3 b9 q4 A1 o
! GALLERY customer_gallery.gly
" }- K8 |2 c1 j' n8 g% h6 A!
- H8 n2 H( L, I |: oBEGIN_GALLERY CUSTOMER_GALLERY
8 Z, q5 Z6 S$ w( z: `COLUMN_IN_RIBBON 2; N/ _. x7 i: M
COLUMN_IN_POPUP 2
A4 p" W3 X+ L, J4 K# e) ^- ELABEL Gallery
! f3 z% @/ I& D U+ OGALLERY_STYLE MEDIUM_IMAGE_AND_TEXT
2 r4 D! d6 {- B6 | ` L/ I1 _7 ]/ ^9 c$ v4 E& T2 Y" v
BUTTON CUSTOMER_BUTTON_2# P8 S9 @* p0 f# a' o9 ~6 T
3 U" U9 ]( }0 P& I
BUTTON CUSTOMER_BUTTON_3" \' c& k0 y) U1 R+ O# O) ~
5 q; x* M9 L+ U, \4 F5 Q, O* G9 S5 k BUTTON CUSTOMER_BUTTON_4
3 V! I% R- e, x# _: ~9 V
: c( n, D; N" f- N BUTTON CUSTOMER_BUTTON_5
% T. D' Z' p7 o' y i7 l! C }; K& }. D8 i
END_GALLERY. \, N! L. T8 h& n) g
/ o+ ~$ L! Q! v, m1 @
|
|