|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
! h, u# i& m" Q* h
) l' ?! v; S, Z+ J
# n8 m3 n' l7 q, z& r7 E5 R0 e u- n8 D1 k' d
首先认识下关于菜单的后缀文件
! B# l& M" m$ w. ^( A/ H( C1 h) ?, N4 P& r
| | .tbr | Toolbar | .grb | Group | .gly | Gallery | .ddb | Drop-down | .rtb | Ribbon tab | .csb | Cascade | .abr | Attachment | $ p2 R/ [- N! x, ?1 r9 a+ q
9 a( o3 y: \/ e' P
RTB作为菜单ribbon 界面定义的关键,详细信息如下, z$ }1 Y- ~" S7 `( i x- k+ E
3 [, C, G5 F9 z0 l+ ~& A; ~
! W5 L, D. R% m6 j; Y: F3 n Hcustomer_ribbon_tab.rtb+ F5 K8 X2 O. \8 o
!
( n* w1 ~! m) X' S( x5 X! Customer Ribbon Tab
+ g7 |: I, j9 z; ] l( X! ( J5 `" C' D3 _8 t0 {' b4 M' [
! This file will create a new customer tab containing three groups and8 B3 t; F/ i n
! one top level button.+ K) a/ S3 S3 K+ g% w8 _
!
O7 g3 l; L# A* y# r/ e! U$ p* v0 @. `) @8 Y
TITLE Customer Tab- c" h5 u* _( d9 [9 f
VERSION 170
! r9 k3 U' P0 G$ x, U o
0 v o* C$ J: @! The first group represents a Ribbon group that references an existing
' `5 y1 k/ ]2 Z: X! toolbar with no Ribbon style changes. + h1 P6 `5 E! b; }
! . w, ?/ M) x$ L0 l( b4 a7 L
! This is the quickest way to add existing toolbar content into Ribbon mode.6 n/ E' j0 y2 V
!
; m; R9 v+ z ^7 g7 e uGROUP customer_toolbar.tbr4 k7 U# _/ _! T5 a+ q$ Z$ x: c
! 如果想直接切换tbr 到 rtb,这是最快的 2 [7 Y5 O7 m. I/ ~* r" S4 f
! The second group represents a Ribbon group that references an existing
0 I: W- ~, q: ~, m4 q0 n8 q% \$ W! toolbar with Ribbon specific style changes added to it. There is no difference2 f, s7 ~. S# I+ D6 H
! in how this toolbar is referenced in the .rtb file compared to the first
4 y. ?7 i/ B* s: E0 a! toolbar as a group. The only differences from the first group exist within
+ R- t) b0 ^- t" Y8 j! the .tbr file itself.; k* k; l2 i* K9 d! v
!
2 |& j$ g1 \7 A C# \+ N* Z) G5 O! This approach has advantages for customers that will deploy both Ribbon and3 |0 _6 H8 i5 O9 G( W9 B( @
! Classic Mode customizations since all the content is defined in the .tbr ' {* M) S0 f6 f
! file and it will stay synchronized in both modes. Only one set of customizations
/ m1 G( P3 }: Y2 n! m' n+ y- i0 W! will need to be maintained while still making use of RIBBON_STYLE to
: h' o' |( M9 ~8 \! control the presentation of the buttons on the Ribbon.0 b0 g, i! e. s! ^7 f1 R
!
# X3 x/ F8 ?. c6 D$ F1 [( _GROUP customer_toolbar_alternate.tbr
( ^ B' C' k: d: X5 U1 A
& A* X' F" u# R7 t |! x! The third group represents a Ribbon group that has been created explicitly
/ M" k+ C) u' i" ~) u+ w% E! as a Ribbon group and will not exist in Classic Toolbar mode. This is the
4 g, R0 E/ n* {; W" A! preferred option since the user will be able to take advantage of all the 5 u! }0 I7 x% y6 f, A1 s
! layout styles and containers offered by the Ribbon.
5 Z! i. Z) e, t# z/ B!
% G0 T w% H. i( m- D. W3 {! For customers that will deploy both Ribbon and Classic Mode customizations,
$ m- T! H; f7 R: L! this approach will result in no synchronization and two sets of customizations
. u) m- U3 o7 Y9 V' f! will need to be maintained.
/ H! I- M( B2 [: @$ k! }!2 k; _3 C m8 y$ k1 y! a' ^
! A group can alternatively be defined directly inside the .rtb file by using the
& d. X* H+ x6 }1 S2 Q/ b& S* n! keywords BEGIN_GROUP and END_GROUP. ! D) o# t( |- ~, S
!
. D: ? l6 j. w# `: v) C* z1 aGROUP customer_group.grb
) E$ ]+ z2 ]" S s' u8 r6 n9 U
' f9 J$ P; }( a! Example of a button that is placed directly on the Ribbon without being! G- g1 _8 q7 _( B+ \& ]
! contained in a group. This is a simple way to add a button to a tab
- t4 C. V4 Q6 g( l9 S" \5 k! but is not recommended for many buttons since groups have advantages.
( x5 i" U' U, D) g8 \!
5 ^, B t* R) F1 b( A! S9 h! A few advantages of groups:$ T3 C4 i) Y6 b! |6 ^( ~
! 1. Easier to move many buttons around together in quick customization. ! H1 l. c) }, _& Y' K1 q a% D
! For example, MB3 on a group and choose "Add to Left Border Bar". 8 S6 o: S3 {) p4 ^, Y2 L
! This will move the whole group to a new location. If buttons are # D) m V8 z+ ^, W
! not in a group, they need to be moved one at a time.
2 [5 d6 Z2 O2 G8 j; X- j, T0 P!
' x! n2 t! p" W! 2. Provide a label to describe its contents.% R! P2 a* I6 i6 O
!! j: p5 g) a$ ^
BUTTON CUSTOMER_BUTTON_1
) i& g' b2 d$ j) n4 I: @! |LABEL Button1 Directly on Tab
. C: a( K# P! d: T7 K
6 ~" o2 V3 _* n; ?9 K部分菜单可以单独写成group gallery 作为对应后缀,重复调用
& s' P" J8 w0 {, F7 B! Example of a gallery defined in a GRB file.
* U1 k* @; \" d! " p$ I. B5 U) S) q
! If this gallery is to be used in other places, then it could be
$ E) S6 C# ]- [8 W7 `! defined in its own gallery (GLY) file and referenced here
8 v/ S0 k9 h' P7 ]4 T, x! Example:" U" r L4 @6 H" [
! GALLERY customer_gallery.gly2 q% A, ~$ Q( d9 h$ M2 r* u
!
$ @, k5 V3 J% _' z2 DBEGIN_GALLERY CUSTOMER_GALLERY: j% x) z0 l7 Q/ F8 ?: Y) O2 f/ x& l
COLUMN_IN_RIBBON 2
. S' M& `3 t- }COLUMN_IN_POPUP 2" b* T( [3 R6 L7 }# i# |0 {
LABEL Gallery) `- G4 N( Y# j8 ~( i, [6 k
GALLERY_STYLE MEDIUM_IMAGE_AND_TEXT1 l A- ~* f3 n4 c# O; y
) W2 Y# s. G( E! \
BUTTON CUSTOMER_BUTTON_2
% c# G# C, w3 R5 v! l, c6 A) a _, k9 v1 h5 b$ [7 j) h2 p
BUTTON CUSTOMER_BUTTON_3) D- @: Y; L6 w6 E3 L( y
) K% [) J; ~* y. v; v2 o
BUTTON CUSTOMER_BUTTON_4
5 B, X* `" R1 o: h) O& ]
$ m$ w7 p" U9 b+ T- z. H! u: Q BUTTON CUSTOMER_BUTTON_5$ a, G5 H+ ]; p
: x% u' I8 V1 c: n4 y
END_GALLERY) z+ V, ?+ O5 R
/ y; a% q$ O( O( R- u8 X- b |
|