请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
×
【PLM之家NX10.0新功能视频】3 资源工具条开发API接口
, J) T d8 `' e; F- @+ j0 r4 h$ G* n3 v0 g6 c
$ l. |' N4 [3 S3 ], h
【PLM之家NX10.0新功能视频】3 资源工具条开发API接口
+ {( y& ^' [5 w, ?5 V$ {. K
. Y O6 W: ]8 O可以通过ResourceBarManager 类创建自己的功能,包括图标的定义等。 2 C! E3 B- W4 W5 K1 u8 H2 }. r
% o1 ]! H. ]# Y2 |$ l: f
* A& q; f8 C$ p* d) |! @
•Create 5 l, n1 ~" M1 z9 d
% m1 n5 }/ c T8 ^
Createsa tab, which is added to the Resource bar when you set the visibility.
- \+ G" U* x) d! M# r) o•RegisterActivationCallback # W8 H$ Y% y* W3 }- | E/ s
8 G6 C/ d( t+ _+ \7 z4 Y& [/ m3 qActivatesand displays the custom window when you click the tab.
* L8 B* a/ j5 U$ _) z; J•ActivateTab
1 J1 d$ O( l4 X6 ]; ?
* }7 _9 O1 ~: y8 }: C0 t$ fActivatesand displays the custom window immediately; you do not need to click the tab.
) a( [) R. B$ V•GetWindowHandle
: T- {/ U# y9 O( Z, ~" E0 z5 [( V7 o! x5 U2 f0 g$ I; J; b$ o S
Createsan NX docking window, which is used as the parent to host your custom window.
# O9 S/ y3 D3 a w" J•SetTabAvailability
- { ?1 L$ F& _! C. _# q8 i$ c$ R9 V2 T& b
Controlsthe visibility of the tab in the Resource bar area. & f0 i& w5 q: s) _
•Destroy 5 a/ c: H, D, \, i: q u' U
7 h- g. w% h8 j: P' Z
Removesyour custom window and tab from NX. . A7 a( C& U% U* k
( ^: [- @3 u% h. r: h0 ?& O
+ r4 z' @, ?, D5 \1 ^+ x' { M0 D! I' _: K4 a' U4 t* A8 r& e
; }+ H. t$ q/ u! Z1 o& p6 d |