请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
×
【PLM之家NX10.0新功能视频】3 资源工具条开发API接口 G& g* S2 J' F7 Y' U8 ^
9 ?. a8 H' b+ W7 Z9 n( a) o
! {. a( @( e$ v6 v
【PLM之家NX10.0新功能视频】3 资源工具条开发API接口
6 p. d8 h" C# [- q* q B) p
; z! T* j; p% h. H, ?( X% |可以通过ResourceBarManager 类创建自己的功能,包括图标的定义等。 3 R* K5 ~4 {4 G, \
6 m' ]9 ], B' G- z& [$ I% S5 n+ {) V# @7 Q
•Create 4 ~+ H* l# j! S: }1 k
( Z1 X+ D% x, f% n G) @0 c& A" OCreatesa tab, which is added to the Resource bar when you set the visibility. 3 \8 P" N" f; s K1 G6 U; K
•RegisterActivationCallback ) |/ B3 T5 [3 M& t
- e" c* V% M$ c4 A* l
Activatesand displays the custom window when you click the tab.
( S+ l2 @! u8 i# r! I, }' O2 ]•ActivateTab , ~8 D. c3 I+ F3 i8 A
/ y; C: b a, h: e! K8 zActivatesand displays the custom window immediately; you do not need to click the tab.
) x5 }# k; E- m6 u•GetWindowHandle
& x% g( W2 U5 O( q% t# V3 j( b9 a8 ]" K
Createsan NX docking window, which is used as the parent to host your custom window. ) S: H% U$ {( w6 n: F
•SetTabAvailability
+ ~3 h& b! V6 i$ a% v! X
8 d$ n$ k& H' P, r, t+ J( n' [Controlsthe visibility of the tab in the Resource bar area.
1 b. H# E* v ?1 R! w; O•Destroy 1 i% y; x( `8 g6 I4 |
- e; v+ n1 q' H+ b" }- n# z
Removesyour custom window and tab from NX.
# ?. f5 z5 A) x( n! l& x4 u ?% C
. t( W: N$ K( u6 ~, n* N }/ K s" J
: U( O) `8 F6 }4 Q
, B8 i; Z8 o! I9 w! d
|