请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
×
【PLM之家NX10.0新功能视频】3 资源工具条开发API接口& Q' O4 y, y4 ? y/ l
7 {& V* I( T/ M- l- w) H7 m3 g; ?6 C! O% N( B7 N
【PLM之家NX10.0新功能视频】3 资源工具条开发API接口
+ u4 c! C- O5 b( Q$ A- m% F0 l( P: O" L" l9 Y; e7 @, K. [
可以通过ResourceBarManager 类创建自己的功能,包括图标的定义等。
% l9 \8 A5 [: u t- d
4 H& v- P# D8 D& \6 t# x4 K! E4 {6 l
•Create 0 i0 f5 W; @9 T- R1 G
/ z- e3 u3 M; mCreatesa tab, which is added to the Resource bar when you set the visibility. 5 y7 ?2 X) q( ?: K
•RegisterActivationCallback + I: D! i) R7 t9 h1 i
+ b' ^' n9 X/ I* }; `Activatesand displays the custom window when you click the tab.
9 K" c0 C! D0 U, G0 x% p•ActivateTab
1 g$ s0 N5 a0 B5 t5 l! W2 K$ H6 A+ V- M
Activatesand displays the custom window immediately; you do not need to click the tab. 7 n2 P. H/ m) N. j. f S/ T7 `( c) l
•GetWindowHandle
2 E' }& B! v3 z; M" i+ ]) L) K: q; B* C- ~2 _6 N6 V
Createsan NX docking window, which is used as the parent to host your custom window.
- h6 w( Q' C2 V0 A2 Z•SetTabAvailability
" l# [6 o1 P* g7 L
' ?! ^ y' e Q+ h: m" Y+ V6 B$ |Controlsthe visibility of the tab in the Resource bar area.
+ D! t' G9 p9 _9 m4 N# {•Destroy $ X, o, [5 K' D6 T! o- F
- g9 f* w }: f0 H" X" D Y
Removesyour custom window and tab from NX.
6 ?- L1 I" G: r) M# y* z7 ?/ a d W |5 |8 G
7 O1 j& A0 u' o# Y0 d
; }9 {$ q, v- E) {6 B
) J0 [5 Z, V" C5 c( |8 M$ V |