ButtonLayout Class

class NXOpen.UIStyler.ButtonLayout

Bases: NXOpen.UIStyler.StylerItem

Represents a Button Layout for UI Styler.

New in version NX5.0.0.

Properties

Property Description
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.
GetSelectedIndexValue Gets selected index
GetSensitivity Gets the sensitivity
InitializeAttachment Returns initialized dialog item attachment information
IsEqualTo Equates two styler items
SetAttachment Specifies the updated dialog item attachment information
SetDefaultAction Sets default action
SetSensitivity Sets the sensitivity

Property Detail

Visibility

ButtonLayout.Visibility

Returns or sets the visibility

-------------------------------------

Getter Method

Signature Visibility

Returns:
Return type:bool

New in version NX5.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature Visibility

Parameters:type (bool) – TRUE if visible, FALSE if invisible

New in version NX5.0.0.

License requirements: None.

Method Detail

AddActivateHandler

ButtonLayout.AddActivateHandler

Registers activate callback.

This method should be called before calling UIStyler.Dialog.Show() or UIStyler.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.

GetSelectedIndexValue

ButtonLayout.GetSelectedIndexValue

Gets selected index

Signature GetSelectedIndexValue()

Returns:
Return type:int

New in version NX5.0.0.

License requirements: None.

GetSensitivity

ButtonLayout.GetSensitivity

Gets the sensitivity

Signature GetSensitivity()

Returns:
Return type:bool

New in version NX5.0.0.

License requirements: None.

SetDefaultAction

ButtonLayout.SetDefaultAction

Sets default action

Signature SetDefaultAction()

New in version NX5.0.0.

License requirements: None.

SetSensitivity

ButtonLayout.SetSensitivity

Sets the sensitivity

Signature SetSensitivity(subitemIndex, type)

Parameters:
  • subitemIndex (int) – If the entire dialog item should change to the new sensitivity state, set this field to UF_STYLER_NO_SUB_INDEX. If only one subitem should change to the new sensitivity state, set this field to its zero-based index.
  • type (bool) – TRUE if sensitive, FALSE if insensitive

New in version NX5.0.0.

License requirements: None.