NX Open C++ Reference Guide
|
Represents a ListBox block
Created in NX6.0.0.
More...
Public Types | |
typedef NXOpen::Callback1< int, NXOpen::BlockStyler::ListBox * > | AddCallback |
Add callback Created in NX6.0.0. | |
typedef NXOpen::Callback1< int, NXOpen::BlockStyler::ListBox * > | DeleteCallback |
Delete callback. | |
Public Member Functions | |
void | SetAddHandler (const NXOpen::BlockStyler::ListBox::AddCallback &cb) |
Sets the Add handler. | |
void | SetDeleteHandler (const NXOpen::BlockStyler::ListBox::DeleteCallback &cb) |
Sets the Delete handler. |
Represents a ListBox block
Created in NX6.0.0.
typedef NXOpen::Callback1<int, NXOpen::BlockStyler::ListBox *> NXOpen::BlockStyler::ListBox::AddCallback |
Add callback
Created in NX6.0.0.
License requirements : None
typedef NXOpen::Callback1<int, NXOpen::BlockStyler::ListBox *> NXOpen::BlockStyler::ListBox::DeleteCallback |
Delete callback.
Return a non-zero value in order to veto the deletion.
Created in NX6.0.0.
License requirements : None
void NXOpen::BlockStyler::ListBox::SetAddHandler | ( | const NXOpen::BlockStyler::ListBox::AddCallback & | cb | ) |
Sets the Add handler.
This handler is called when the Add button is pressed. The handler is responsible for adding an item to the list. Nothing will be added to the list unless the handler adds it.
Created in NX6.0.0.
License requirements : None
cb | cb |
void NXOpen::BlockStyler::ListBox::SetDeleteHandler | ( | const NXOpen::BlockStyler::ListBox::DeleteCallback & | cb | ) |
Sets the Delete handler.
If you set this handler, the handler will be called when the Delete button is pressed. The handler does not need to implement code to delete the item. The list will delete the selected items if and only if the handler returns 0.
Created in NX6.0.0.
License requirements : None
cb | cb |