RealItem Class¶
-
class
NXOpen.UIStyler.RealItem¶ Bases:
NXOpen.UIStyler.StylerItemRepresents a Real for UI Styler
New in version NX5.0.0.
Properties¶
| Property | Description |
|---|---|
| ItemValue | Returns or sets the item value |
| Sensitivity | Returns or sets the sensitivity |
| Visibility | Returns or sets the visibility |
Methods¶
| Method | Description |
|---|---|
| AddActivateHandler | Registers activate callback. |
| Dispose | Free resources associated with the instance. |
| GetItemType | Gets the dialog item type. |
| InitializeAttachment | Returns initialized dialog item attachment information |
| IsEqualTo | Equates two styler items |
| SetAttachment | Specifies the updated dialog item attachment information |
| SetBitmap | |
| SetFocus | Sets focus |
| SetLabel | Set the label |
Property Detail¶
ItemValue¶
-
RealItem.ItemValue¶ Returns or sets the item value
-------------------------------------Getter Method
Signature
ItemValueReturns: Return type: float New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ItemValueParameters: itemVal (float) – Real value to display in the text field New in version NX5.0.0.
License requirements: None.
Sensitivity¶
-
RealItem.Sensitivity¶ Returns or sets the sensitivity
-------------------------------------Getter Method
Signature
SensitivityReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
SensitivityParameters: type (bool) – TRUE if sensitive, FALSE if insensitive New in version NX5.0.0.
License requirements: None.
Visibility¶
-
RealItem.Visibility¶ Returns or sets the visibility
-------------------------------------Getter Method
Signature
VisibilityReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
VisibilityParameters: type (bool) – TRUE if visible, FALSE if invisible New in version NX5.0.0.
License requirements: None.
Method Detail¶
AddActivateHandler¶
-
RealItem.AddActivateHandler¶ Registers activate callback.
This method should be called before calling
UIStyler.Dialog.Show()orUIStyler.Dialog.RegisterWithUiMenu()Signature
AddActivateHandler(activateevent, isDialogLaunchingEvent)Parameters: - activateevent (CallableObject) – Callback for activate event
- isDialogLaunchingEvent (bool) – TRUE if dialog is going to launch, FALSE if not
New in version NX5.0.0.
License requirements: None.
SetBitmap¶
-
RealItem.SetBitmap¶ Signature
SetBitmap(strBitmap)Parameters: strBitmap (str) – Filename with .ubm, .xpm, or .bmp extension that contains a bitmap definition New in version NX5.0.0.
License requirements: None.