|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
% z: Z2 v8 r3 \# k
/ g1 [$ K7 B" ]% i- G
- X% P9 e" S" }
9 Y* [% M: `9 e. V5 O首先认识下关于菜单的后缀文件 V# [. x$ U6 `0 T% ?
9 S. d9 y0 t/ f7 F$ n
| | .tbr | Toolbar | .grb | Group | .gly | Gallery | .ddb | Drop-down | .rtb | Ribbon tab | .csb | Cascade | .abr | Attachment |
: s7 J; l+ P' D' w: l ]% R2 G: |% g4 s+ n! v* E8 @3 a
RTB作为菜单ribbon 界面定义的关键,详细信息如下/ `2 x3 t3 l8 Z# l3 T$ F
( w w: u8 ?7 y: v7 ~* ]2 N2 A! y5 X% v8 P: b0 |" K. T
customer_ribbon_tab.rtb# u$ F, m' O7 A2 _* H
!
, @+ g7 {: [" T' s* G( E! Customer Ribbon Tab
3 x# d0 N" N9 ]) S$ m!
2 B/ E8 \1 J; @. a3 f! This file will create a new customer tab containing three groups and: P: \ }0 m1 z% }2 y
! one top level button." y# Z1 n8 M i% ~' h
!3 A0 u M+ l; _7 m. K0 U
( l/ B2 \# K) W: F9 \) E' UTITLE Customer Tab, |. T2 J6 \5 {) g# t* ?* q
VERSION 170
& s1 |- o/ y- y* }# Z3 ?2 Y( s4 T" M9 f1 |. \* y2 I0 \
! The first group represents a Ribbon group that references an existing
7 c+ A8 S5 S" S7 C. `! toolbar with no Ribbon style changes. 1 e% C1 Z! B- I& F5 G( E
! . A- e5 G9 T% j- g" ~0 L4 y! o( O2 T6 z
! This is the quickest way to add existing toolbar content into Ribbon mode.6 a1 X3 N8 L8 M" T! \- k! r' O! G- {
!8 _( R! p" c' \2 v& f! w+ F6 I
GROUP customer_toolbar.tbr7 n& |# \! f; q, I& T0 ~8 q
! 如果想直接切换tbr 到 rtb,这是最快的 + N9 o2 q% ]. s9 J! W U
! The second group represents a Ribbon group that references an existing : I8 F( ?3 `2 d, v' Y
! toolbar with Ribbon specific style changes added to it. There is no difference
6 q- p& ^8 ^# ]$ q6 K! x! in how this toolbar is referenced in the .rtb file compared to the first: f, E2 |0 w. I% E9 m$ b8 ]' W
! toolbar as a group. The only differences from the first group exist within
) S' O5 d5 ]- { E2 y; Y! the .tbr file itself.! e9 N% f. @8 O" G0 i
!) K" X. a6 x+ m' L5 X; ?
! This approach has advantages for customers that will deploy both Ribbon and
% }- G) S9 D0 i# h! Classic Mode customizations since all the content is defined in the .tbr
" H, }4 E, i1 h7 j* M! file and it will stay synchronized in both modes. Only one set of customizations1 u4 z: `& z9 h) t1 r: y8 m [0 g/ N
! will need to be maintained while still making use of RIBBON_STYLE to
0 ]" n5 l2 u5 F% y5 N/ }$ Z! control the presentation of the buttons on the Ribbon., G3 o- k3 x4 l {9 N7 o
!
, F N1 |9 G8 m0 SGROUP customer_toolbar_alternate.tbr
3 L* ?' a- {. v& a/ g A, r; p6 W2 n
! The third group represents a Ribbon group that has been created explicitly- N9 t- t) x1 b- g
! as a Ribbon group and will not exist in Classic Toolbar mode. This is the9 k# u" j9 C q# ]1 G
! preferred option since the user will be able to take advantage of all the 4 V* C# v0 K; I$ e4 ]- M) E
! layout styles and containers offered by the Ribbon.
! }& Y/ Y0 M9 D$ ~ ?7 X `!& y8 z2 p. u5 B! J6 \$ y
! For customers that will deploy both Ribbon and Classic Mode customizations, 4 w+ j5 d3 Y2 p6 C G2 m7 S
! this approach will result in no synchronization and two sets of customizations
0 s: `( B! D0 {) p( n2 f" D ?* T! will need to be maintained.
- t2 M" J; M! [! f& y!
: y ]& {0 A# @ \- T! A group can alternatively be defined directly inside the .rtb file by using the
; Z7 e5 U# v( |7 x! T( d! keywords BEGIN_GROUP and END_GROUP.
4 U; J1 ~4 F( h8 n/ V2 v, ^!
' g4 B5 @$ }8 i; C* L. _' oGROUP customer_group.grb4 P& d8 @- {9 C p9 u
" H ?% X+ C2 j# C8 b% u
! Example of a button that is placed directly on the Ribbon without being/ B: `& o0 E8 b3 S3 R
! contained in a group. This is a simple way to add a button to a tab
( p. y- j \$ P) I) l9 X+ \! but is not recommended for many buttons since groups have advantages.
, E" z! x" Z: E! 1 }, v2 Z$ I7 H+ b! \
! A few advantages of groups:; @- ?% N7 r9 [$ Y# J4 o. K3 S
! 1. Easier to move many buttons around together in quick customization. 9 G) h8 F: l$ C5 A7 w R' H, a
! For example, MB3 on a group and choose "Add to Left Border Bar". % ^2 N9 ]" J9 p7 U! i' l* Z
! This will move the whole group to a new location. If buttons are
# L, R+ x6 O5 U9 m5 {! not in a group, they need to be moved one at a time.4 H' c& p6 Q8 c9 S5 v v
!! n, S) e6 [; ~0 g/ f' [ C
! 2. Provide a label to describe its contents.
4 t0 U' M2 C. c6 H% h!5 h1 I! z- h1 w9 p4 r& m0 i
BUTTON CUSTOMER_BUTTON_11 r* p0 U( | Q+ h* D$ E
LABEL Button1 Directly on Tab
& j: i/ f" l) L0 O' v S2 c! N+ J5 y2 C/ p3 ?
部分菜单可以单独写成group gallery 作为对应后缀,重复调用
, u% r* u/ h0 i+ @& G/ A0 O! Example of a gallery defined in a GRB file. f. G+ s! s0 E! M4 A5 a1 Q
! # {) C* _9 f2 S+ J
! If this gallery is to be used in other places, then it could be " c- B& g' |1 W3 M8 ^( O, {
! defined in its own gallery (GLY) file and referenced here
; D- v9 s1 A/ I- i! Example:
$ J! ^5 l3 [+ V! o0 d! GALLERY customer_gallery.gly, g5 T0 K5 b# R: X" x
!+ W$ Q% S9 W; g
BEGIN_GALLERY CUSTOMER_GALLERY
0 h* {% d% d8 g5 ACOLUMN_IN_RIBBON 22 v, H( k) D% j" v6 X3 ]
COLUMN_IN_POPUP 2
, S* B- a: W& M% ]0 mLABEL Gallery5 u/ m9 z( Q7 q/ L. ]6 A# g
GALLERY_STYLE MEDIUM_IMAGE_AND_TEXT
, T# g; E! H. e0 P7 Q3 G' M1 w# j
2 S2 w6 ^6 o. I6 E; E6 J BUTTON CUSTOMER_BUTTON_2
( V* _. I. M J; z* U' k
' h9 @5 b. g9 { BUTTON CUSTOMER_BUTTON_3
+ d( {6 N' I. t! Y4 ^ 2 Z' L5 c5 [8 ]* p u2 M- X
BUTTON CUSTOMER_BUTTON_4$ W4 h8 C3 t# E& s+ @
- C( U- z* x$ E6 P6 w1 t
BUTTON CUSTOMER_BUTTON_5
9 b) R; [ V8 p
7 j7 u+ V3 b1 y! ~. Z8 E5 DEND_GALLERY
$ S! R/ X2 } Q( N" x: `% |9 {. p3 l2 a
|
|