|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
* O# |/ @7 \* ~6 V {5 D8 o
6 P2 Y( O: C0 A' o$ r9 \' x+ `: u3 ?
; L0 @ H% t9 H1 `0 a. p, z& q( Y首先认识下关于菜单的后缀文件1 a a" r B: |0 K2 f+ R3 C1 Y
# V$ z; l' ]' c8 A9 }* n- U
| | .tbr | Toolbar | .grb | Group | .gly | Gallery | .ddb | Drop-down | .rtb | Ribbon tab | .csb | Cascade | .abr | Attachment |
! z% j/ @# ~; p$ W3 h1 ]& X! p& n; h/ q( y& X! S1 q5 Y3 I) N2 D$ E* A
RTB作为菜单ribbon 界面定义的关键,详细信息如下4 m) l4 r) z5 t4 I4 t- E: M' h
j% W2 b* a0 J `) k1 m+ c9 ]2 D, L4 G3 H9 k* Y. c
customer_ribbon_tab.rtb! k* }4 M7 t9 Q. h0 A- }1 N6 K
!
0 x" v6 s9 |# O# n4 d: T! Customer Ribbon Tab* [' b& J, J- x h
! / x q" E) n) z {( ^0 D7 ^
! This file will create a new customer tab containing three groups and
3 F- O$ X) ^. J j2 D! one top level button.; C8 O, x. C( J- @7 o5 y- I
!
6 k1 C' \- m m" j# x5 A8 P* }' I; d! Y! k# C
TITLE Customer Tab
; `7 ?! O: \! AVERSION 170: J; A7 }" ^3 ~
6 h a) H( P# F1 Z5 ?9 y4 W! The first group represents a Ribbon group that references an existing
7 e2 O2 [7 [1 ?4 U d& g2 K! toolbar with no Ribbon style changes. 9 ^1 I5 ?3 v8 w; \0 t' Y9 ~3 s
!
' n+ u K" r3 i+ ^! This is the quickest way to add existing toolbar content into Ribbon mode./ h$ \; _/ A- H0 c# \
!
8 j R6 y2 f6 `6 ]5 f, IGROUP customer_toolbar.tbr
s7 q$ z" d$ }4 v% B7 K! 如果想直接切换tbr 到 rtb,这是最快的
5 s1 |+ S% @/ g% Z! The second group represents a Ribbon group that references an existing 1 ]8 c. {! m- e
! toolbar with Ribbon specific style changes added to it. There is no difference8 y1 i( G8 ]4 T8 o: `
! in how this toolbar is referenced in the .rtb file compared to the first' E! V6 X4 l* p5 O
! toolbar as a group. The only differences from the first group exist within : I9 x4 ~( j. J3 I* _; X/ @& C7 R; E9 R
! the .tbr file itself.& `# D* h- A$ K7 _6 k
!
* I- \1 Y) M6 m% S# @! This approach has advantages for customers that will deploy both Ribbon and
2 Z! L! d. Y3 z. H2 Z! Classic Mode customizations since all the content is defined in the .tbr 2 r2 E7 Y3 I7 V4 l/ b: n# b3 g
! file and it will stay synchronized in both modes. Only one set of customizations
& ~) w3 J! o! I# t, V/ n! will need to be maintained while still making use of RIBBON_STYLE to
+ U& u. _, { L1 b1 {! control the presentation of the buttons on the Ribbon.
% C, r2 d2 N! E& s2 G!
/ ?3 S" J7 V7 ]8 k1 R) rGROUP customer_toolbar_alternate.tbr
0 r4 | q: ] S1 M- L& j 9 Q* F& d3 j) r1 `: i. m
! The third group represents a Ribbon group that has been created explicitly2 k( I8 X6 a* E2 ]) S& M7 p
! as a Ribbon group and will not exist in Classic Toolbar mode. This is the
: x. z9 |" G) e9 \! preferred option since the user will be able to take advantage of all the % i. m2 M+ Q$ V+ J
! layout styles and containers offered by the Ribbon.
, c5 h2 H a/ d9 g' R!" R$ }$ k0 D& E+ T9 ^, Z' r
! For customers that will deploy both Ribbon and Classic Mode customizations,
/ p7 v0 a! g7 }4 u6 ^0 Z5 g; V! this approach will result in no synchronization and two sets of customizations
( o& d- x- @9 @# B4 O: e: I' M' t! will need to be maintained.
/ z# `0 n$ W2 A" E1 q, A!
. L* R2 d# t$ d! m2 q. w7 g! A group can alternatively be defined directly inside the .rtb file by using the
. U9 j% Z) x, o$ ?) n+ L5 k/ [! keywords BEGIN_GROUP and END_GROUP. / f" [" w6 n8 O- ^# u+ x; U6 x2 `" `
!# E5 n* q$ P' O0 w: _2 r
GROUP customer_group.grb
8 }4 g; |: w: Y4 C, @7 z! H+ `. B2 t7 V* v4 O' r v
! Example of a button that is placed directly on the Ribbon without being
; f% ~- X6 s/ c; x! contained in a group. This is a simple way to add a button to a tab
1 _9 V) u4 J! {4 X! but is not recommended for many buttons since groups have advantages.
8 V5 x) O3 F0 {! 2 M! A1 P- j/ B/ `- w- V) |- K* i
! A few advantages of groups:7 |( S1 |6 z' l) n% g# U
! 1. Easier to move many buttons around together in quick customization. 9 j3 D: D0 N% ^$ R3 m/ K; b5 D
! For example, MB3 on a group and choose "Add to Left Border Bar". , u! K# L8 y4 t1 l9 C
! This will move the whole group to a new location. If buttons are & Z7 k# D3 v" S8 v, ~; w" _# r7 R
! not in a group, they need to be moved one at a time.6 T( u" Y9 Z5 _" ~+ f4 i
!# b$ C+ D, l g6 M/ r# P( [7 a
! 2. Provide a label to describe its contents.
; b- C- {( \) g% ^7 p8 A!
( U. K# i$ u: |/ _' X* w. bBUTTON CUSTOMER_BUTTON_1
1 y$ g5 K H3 ULABEL Button1 Directly on Tab
) j, C& ^: @5 W) i- `% m
' p) Y8 J5 d" x& D& ~# N部分菜单可以单独写成group gallery 作为对应后缀,重复调用: V( ?/ W! _. j1 u6 f+ E5 G$ `
! Example of a gallery defined in a GRB file.
" i+ g: J% H6 z( d: K) X0 I% X" [!
& G7 M* P# D. v _! If this gallery is to be used in other places, then it could be
( x$ L3 W0 i1 V! i! N, V x* T! defined in its own gallery (GLY) file and referenced here' [- i% x% [' e q% m/ ~+ g' \
! Example:% ?& E7 N( }$ z$ z
! GALLERY customer_gallery.gly
/ u; x. D) B. \! f5 j!8 u# L5 u( g) t( L# B% C
BEGIN_GALLERY CUSTOMER_GALLERY. }! `6 G6 T# M% `$ U1 ?
COLUMN_IN_RIBBON 2
9 r0 K$ A+ V7 C, |$ S( VCOLUMN_IN_POPUP 2
9 C; g: n) W5 f- q- ~3 `LABEL Gallery
$ ^& Y$ H8 e" I) ?" v- k: }5 R7 wGALLERY_STYLE MEDIUM_IMAGE_AND_TEXT
" u9 B2 Q4 T- x; H) y' ~5 k7 B- {% |9 S; [0 A5 [# V
BUTTON CUSTOMER_BUTTON_2/ v3 y6 y/ l* h" ]6 f; s& \8 U
2 f# P! m% Q- k, u BUTTON CUSTOMER_BUTTON_3
" u' q. V6 L$ H
. N2 z: p+ s& a BUTTON CUSTOMER_BUTTON_4% ^6 T. Z# t8 m/ a/ a+ d$ U7 a+ o9 f
( B) x3 Z/ i) c6 X" D
BUTTON CUSTOMER_BUTTON_59 ?6 e$ f( |9 E+ q/ C& K9 C
" N% t2 x% v& T( h8 s0 \7 UEND_GALLERY0 v% v& U0 u3 a, _2 `) Q
: Y2 w' z% \2 K0 H
|
|