|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
×
【PLM之家-NX9.0二次开发实例视频】13 Block UI对话框创建% ^& `( S0 j; k( _( P
9 o8 g: x5 r) }& Y0 n 新的Block UI无论从界面和使用上,都非常的高效美观,调用控件方便快捷。具体的好处,我就不翻译了!5 t4 m& z$ h0 V0 V2 Z! l( k
视频见一楼!
' F2 _: y6 Y7 V9 ~) Y; Q# l3 M3 H7 s# h/ T% K: g+ W1 q
1 ? p/ ], Y) v7 |+ O- ^/ r3 M/ Q1 R
Block UI Styler is an application that NX users and third-party developers can use to interactively build dialog boxes that are consistent with the NX block-based user interface. A block is a reusable component of a dialog box, such as a text box, a list box, an option list, and so on. A group is a frame in a dialog box that encloses related blocks of options.
1 c% l: ^/ l6 K* c
) j7 g' Y6 }" `- H1 N( O" B& O3 c6 s# w- |
When you use Block UI Styler, you can:
) m" W. Q$ F' K& _5 D: N! P+ k; H" q•Reduce development time.
4 n3 M# ~7 A3 N•Enable rapid prototyping because of the visual builder and automatic file generation.
. p0 x! G+ {: ~) R/ G•Build NX dialog boxes to preset standards.' e" ^% u0 t3 c: J7 f7 l
•Maintain compatibility with MenuScript.
7 L$ L# _1 j; E: g2 U•Launch Block UI Styler dialog boxes from a MenuScript menubar.
; O+ F B2 O$ W7 ^) v' x9 L0 K3 oLocalization* [# N9 I1 L. ]( I( u' u) ^
# V, {& V* }8 {/ w9 n: f3 A
4 v9 K% V) n: ?: y k# O) W
2 t Z3 u! |4 J% A: I2 _" b; L/ ]% I) w0 ~" N$ X0 H6 U
6 w/ s% w, _) \( v$ KThe Block UI Styler enables you to build dialogs that contain localized text. However, this requires that the user's operating system environment is setup in the proper locale that supports the desired language. & s6 X: H, E. ^/ G S n" @
The Block UI Styler interface displays the programmable strings related directly to the UI block. Strings such as “Value” are used to update the block’s string value as supported by the NXOpen API. As an example, AString.getproperties.SetString("Value", myString) indicates that the value should be updated to the contents of myString since it utilizes the “Value” property id. This property id is displayed in the property editor as well (1st column) so that developers are aware of the correct id.
' W4 N- j. V1 kTherefore, these strings along with their associated values are intentionally designed to be displayed in English strings only. All columns of the property editor are displayed in English with the exception of the categorical group names. The user may enter localized strings as values to the properties of type UtfString or UtfStrings.
* l' k* u5 [3 Q5 t7 mThe first column of the object browser is also intentionally displayed in English. % L b3 _1 g x
! h' y% K$ ]6 T2 d, s+ \- s
+ V7 Z: A" [% h3 B( J( {2 s, B
8 w( x' W! c0 l. [2 k! ^. P9 ?5 m: ^; O1 ^
0 w( h% G+ H9 T" p; {
2 n$ P2 x3 b H# K% R2 s& q# t4 B
* S, C# Z m w* e, h. @
2 |, K" U; m6 v3 S2 t1 D+ R0 t1 D
& ^+ M! M, d2 x5 O) f, V. V5 s/ _% z: d
$ H! K" O8 ~7 X
& o& l& U2 D1 ?; o1 g' `3 O, {, e3 I% \6 z1 g
$ {3 S' I* s+ L, H: W d: A/ C
7 ~) i0 @1 a8 G/ ?. c9 Z( H& R1 g3 M4 F1 H6 l
. W, a" S) x* @0 j, k" a9 Y& F& Q: W3 k4 j
|
|