|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
: M& B/ t+ c; _0 D9 a9 K
- l2 l8 C# L3 m9 B* N! s
R" Z+ h( y9 f7 [( W' Q
/ O; _# ~0 Q8 l; ^. e$ t
首先认识下关于菜单的后缀文件
) A' {" C; h' _
, q" x3 k* l2 |) f6 }9 c | | .tbr | Toolbar | .grb | Group | .gly | Gallery | .ddb | Drop-down | .rtb | Ribbon tab | .csb | Cascade | .abr | Attachment | % R# k* w. k4 X
/ {6 Q# _/ Z' q' T4 `: R, M5 d
RTB作为菜单ribbon 界面定义的关键,详细信息如下) K9 W! j+ y4 ?: S9 x( D* R6 v6 S" S
8 j9 D: |6 M: k5 I# I
, H, N" L3 e* L; L$ W5 W' k6 L2 Hcustomer_ribbon_tab.rtb
# _; X; U" R1 e) P6 U7 U!
$ w4 l7 A' j6 Y6 P% B. R5 U3 _! Customer Ribbon Tab8 t! k; ]% N) N
! ; b# Q8 J( j+ _% T+ ?
! This file will create a new customer tab containing three groups and
- i& C! D! @5 z2 g! Y, ^3 g! one top level button.9 p# b; v, |( H( d
!* X* i2 _$ z f7 ]2 i) P" g
: z F& q( R% A, T0 GTITLE Customer Tab/ W4 y2 t9 E3 ` L3 _4 h
VERSION 170
1 I8 @8 u) m$ R( C1 r/ I4 L2 k! f+ U, {3 B& p3 F
! The first group represents a Ribbon group that references an existing
( h5 T" Q" N4 H5 F$ R9 \! toolbar with no Ribbon style changes. 4 E6 z* V% [" E# W X
! : s7 `, A; ~! r
! This is the quickest way to add existing toolbar content into Ribbon mode.' o4 j0 H- \8 a+ {" \
!. {4 S' Y6 r; n: D$ D! d' r
GROUP customer_toolbar.tbr
! q% t6 u3 ~- r! }" |9 P* P# R) W! 如果想直接切换tbr 到 rtb,这是最快的 4 ^4 G6 z; E$ Y* L* h% m. g
! The second group represents a Ribbon group that references an existing : _. d9 k- o2 K8 b0 R( ?2 k
! toolbar with Ribbon specific style changes added to it. There is no difference, R* Z6 j, V, a* [. S
! in how this toolbar is referenced in the .rtb file compared to the first: X5 |8 I. [2 ?" X9 N5 U8 p9 ]
! toolbar as a group. The only differences from the first group exist within . a% a% `' F: H4 y
! the .tbr file itself.
# S( m% }3 l* i$ d8 G2 G!
* _3 Z$ \$ ]' `3 R& B, B+ R! This approach has advantages for customers that will deploy both Ribbon and
R& y6 C9 X- n& B5 j: d! m! Classic Mode customizations since all the content is defined in the .tbr & E8 l. v3 _' @) t. r) H
! file and it will stay synchronized in both modes. Only one set of customizations
5 e2 l: F% ~, m- Y9 M4 K' l! will need to be maintained while still making use of RIBBON_STYLE to
* d' t. ~9 v, X0 D0 ], P! control the presentation of the buttons on the Ribbon.
1 ^6 J }7 r. e( w6 [6 ^* C& `!
* r# X# A# a$ J+ E* J+ LGROUP customer_toolbar_alternate.tbr: X: X3 b2 T' J; j! y) K9 n
5 A/ L) J4 P8 e. F- w
! The third group represents a Ribbon group that has been created explicitly# K" j, Q+ m0 k G/ W
! as a Ribbon group and will not exist in Classic Toolbar mode. This is the4 ]5 s& l, K1 w& `
! preferred option since the user will be able to take advantage of all the
8 g; g, m9 ~7 \1 U j, ?! layout styles and containers offered by the Ribbon. + a( }& Q( j9 E
!
" f, Z! A+ E3 Z% ]4 Z! For customers that will deploy both Ribbon and Classic Mode customizations,
0 K5 z# r- f9 _2 O, F! this approach will result in no synchronization and two sets of customizations 0 v M: k2 k' c: b3 O. l
! will need to be maintained.
5 i5 p V5 R* F!. u# P. e, v! V+ m2 r! G& f
! A group can alternatively be defined directly inside the .rtb file by using the
7 p' m5 p7 V! x# e" ?* J" L. Y! keywords BEGIN_GROUP and END_GROUP.
4 J% l9 P6 x! q3 {% @! J5 C! Q2 x1 i!
]) t% z# k! ]% ^3 m3 m! L; KGROUP customer_group.grb
/ A& w1 o3 f$ W; Z& x, F4 Z9 x8 \
$ a) y7 K; Y1 [! Example of a button that is placed directly on the Ribbon without being+ F' L5 H1 ]0 V# \6 p
! contained in a group. This is a simple way to add a button to a tab, y5 u0 K& \# e( `( l2 b5 s( z
! but is not recommended for many buttons since groups have advantages.7 g- G$ o0 ]3 [
!
4 r# A- L0 |) d9 b5 u$ d! A few advantages of groups:# C+ l: i% z/ X# I" ?4 C
! 1. Easier to move many buttons around together in quick customization. / ?7 q2 l9 E; B0 y* G# J7 s5 D5 a3 q7 F
! For example, MB3 on a group and choose "Add to Left Border Bar".
& ] K; w3 w( l9 T( h/ K( f H! This will move the whole group to a new location. If buttons are 5 d9 i8 g3 R- x" ?
! not in a group, they need to be moved one at a time.
% a# x D& G, W! O6 [* R!; Y$ r9 Z4 W' V- g6 e- ^
! 2. Provide a label to describe its contents.
3 I3 R& V. E- n; F!
; l+ e) o, [5 ^" q6 k kBUTTON CUSTOMER_BUTTON_1/ l2 c) \6 U6 b
LABEL Button1 Directly on Tab
/ o* i- m. I h: ?( n7 b c S) D* h( Q2 S
部分菜单可以单独写成group gallery 作为对应后缀,重复调用
( w3 }4 W7 |/ ^1 |7 u; O4 O6 y! Example of a gallery defined in a GRB file.* u4 x. {- @& }$ V) q h
! , C- `; ^! Y1 q) n
! If this gallery is to be used in other places, then it could be
# L* b# G) R+ S2 [1 K! defined in its own gallery (GLY) file and referenced here
& V$ Y+ d- R6 l! h/ ]' M! z4 t! Example:; X* B6 M: B+ Y7 ?/ f! v: {: b
! GALLERY customer_gallery.gly
! x3 F- x) {3 j5 D) E!. c. o& k) |( ?7 c% Z
BEGIN_GALLERY CUSTOMER_GALLERY
4 t' J+ Y- Q7 ZCOLUMN_IN_RIBBON 2
$ I, E/ E; H A! W5 d6 zCOLUMN_IN_POPUP 2
/ [% f4 {. d4 {! N- E5 ~- sLABEL Gallery
8 B. B; [3 A \% w4 UGALLERY_STYLE MEDIUM_IMAGE_AND_TEXT
5 T1 `: U7 P( t" q" l+ F- p; [' p/ D. {1 S! ]- V$ o T
BUTTON CUSTOMER_BUTTON_2
9 m/ H$ p D( k9 g3 [2 b
+ Q9 c4 g0 `$ j* [* H BUTTON CUSTOMER_BUTTON_3
- W0 u e" a: i9 H " I* s" h- @, C% Z# j5 }
BUTTON CUSTOMER_BUTTON_4
" }& J$ U- j* y1 ~8 o
+ r- F1 [! E' b& `" Y BUTTON CUSTOMER_BUTTON_57 J+ T$ ~/ y, D" {$ g% N3 x
- `# B9 R( Q$ ^' P+ kEND_GALLERY1 V5 r0 Z0 W9 s4 T# V9 @3 r
( H! w8 n9 x3 V0 m1 b) ]- L+ L4 h
|
|