NX Open C++ Reference Guide
Public Types | Public Member Functions | List of all members
NXOpen::BlockStyler::ListBox Class Reference

Represents a ListBox block
Created in NX6.0.0. More...

Inheritance diagram for NXOpen::BlockStyler::ListBox:
NXOpen::BlockStyler::UIBlock NXOpen::TaggedObject

Public Types

typedef NXOpen::Callback1< int,
NXOpen::BlockStyler::ListBox * > 
AddCallback
 Add callback
Created in NX6.0.0. More...
 
typedef NXOpen::Callback1< int,
NXOpen::BlockStyler::ListBox * > 
DeleteCallback
 Delete callback. More...
 

Public Member Functions

bool AllowDeselectForSingleSelect ()
 Returns the AllowDeselectForSingleSelect. More...
 
std::vector< NXStringGetListItems ()
 Gets the ListItems. More...
 
std::vector< int > GetSelectedItemBooleans ()
 Gets the SelectedItemBooleans. More...
 
std::vector< int > GetSelectedItems ()
 Gets SelectedItems. More...
 
std::vector< NXStringGetSelectedItemStrings ()
 Gets the SelectedItemStrings. More...
 
int Height ()
 Returns the Height
Created in NX8.5.0. More...
 
bool IsAddButtonSensitive ()
 Returns the IsAddButtonSensitive
Created in NX8.5.0. More...
 
bool IsDeleteButtonSensitive ()
 Returns the IsDeleteButtonSensitive
Created in NX8.5.0. More...
 
bool Localize ()
 Returns the Localize. More...
 
int MaximumHeight ()
 Returns the MaximumHeight
Created in NX8.5.0. More...
 
int MaximumStringLength ()
 Returns the MaximumStringLength
Created in NX8.5.0. More...
 
int MinimumHeight ()
 Returns the MinimumHeight
Created in NX8.5.0. More...
 
bool ResizeHeightWithDialog ()
 Returns the ResizeHeightWithDialog
Created in NX8.5.0. More...
 
int SelectedItemIndex ()
 Returns the SelectedItemIndex. More...
 
NXString SelectedItemString ()
 Returns the SelectedItemString. More...
 
void SetAddButtonSensitive (bool sensitive)
 Sets the IsAddButtonSensitive
Created in NX8.5.0. More...
 
void SetAddHandler (const NXOpen::BlockStyler::ListBox::AddCallback &cb)
 Sets the Add handler. More...
 
void SetAllowDeselectForSingleSelect (bool allow)
 Sets the AllowDeselectForSingleSelect. More...
 
void SetDeleteButtonSensitive (bool sesitive)
 Sets the IsDeleteButtonSensitive
Created in NX8.5.0. More...
 
void SetDeleteHandler (const NXOpen::BlockStyler::ListBox::DeleteCallback &cb)
 Sets the Delete handler. More...
 
void SetHeight (int height)
 Sets the Height
Created in NX8.5.0. More...
 
void SetListItems (std::vector< NXString > &items)
 Sets the ListItems
Created in NX8.5.0. More...
 
void SetLocalize (bool localize)
 Sets the Localize. More...
 
void SetMaximumHeight (int maxHeight)
 Sets the MaximumHeight
Created in NX8.5.0. More...
 
void SetMaximumStringLength (int maxLength)
 Sets the MaximumStringLength
Created in NX8.5.0. More...
 
void SetMinimumHeight (int minHeight)
 Sets the MinimumHeight
Created in NX8.5.0. More...
 
void SetResizeHeightWithDialog (bool resize)
 Sets the ResizeHeightWithDialog
Created in NX8.5.0. More...
 
void SetSelectedItemBooleans (const std::vector< int > &items)
 Sets the SelectedItemStrings. More...
 
void SetSelectedItemIndex (int index)
 Sets the SelectedItemIndex. More...
 
void SetSelectedItems (const std::vector< int > &selectedItems)
 Sets SelectedItems
Created in NX8.5.0. More...
 
void SetSelectedItemString (const NXString &string)
 Sets the SelectedItemString. More...
 
void SetSelectedItemString (const char *string)
 Sets the SelectedItemString. More...
 
void SetSelectedItemStrings (std::vector< NXString > &strings)
 Sets the SelectedItemStrings. More...
 
void SetShowAddButton (bool show)
 Sets the ShowAddButton. More...
 
void SetShowDeleteButton (bool show)
 Sets the ShowDeleteButton. More...
 
void SetShowMoveUpDownButtons (bool show)
 Sets the ShowMoveUpDownButtons. More...
 
void SetSingleSelect (bool sinleSelect)
 Sets the SingleSelect. More...
 
bool ShowAddButton ()
 Returns the ShowAddButton. More...
 
bool ShowDeleteButton ()
 Returns the ShowDeleteButton. More...
 
bool ShowMoveUpDownButtons ()
 Returns the ShowMoveUpDownButtons. More...
 
bool SingleSelect ()
 Returns the SingleSelect. More...
 
- Public Member Functions inherited from NXOpen::BlockStyler::UIBlock
bool Enable ()
 Returns the Enable. More...
 
bool Expanded ()
 Returns the Expanded
Created in NX8.5.0. More...
 
void Focus ()
 Focuses on the block. More...
 
NXOpen::BlockStyler::PropertyListGetProperties ()
 Returns the properties of the block. More...
 
bool Group ()
 Returns the Group
Created in NX8.5.0. More...
 
NXString Label ()
 Returns the Label
Created in NX8.5.0. More...
 
NXString Name ()
 Returns the name of the block or BlockID
Created in NX6.0.0. More...
 
void SetEnable (bool enable)
 Sets the Enable. More...
 
void SetExpanded (bool expanded)
 Sets the Expanded
Created in NX8.5.0. More...
 
void SetGroup (bool group)
 Sets the Group
Created in NX8.5.0. More...
 
void SetLabel (const NXString &label)
 Sets the Label
Created in NX8.5.0. More...
 
void SetLabel (const char *label)
 Sets the Label
Created in NX8.5.0. More...
 
void SetShow (bool show)
 Sets the Visibility of block. More...
 
bool Show ()
 Returns the Visibility of block. More...
 
NXString Type ()
 Returns the type of block
Created in NX6.0.0. More...
 
- Public Member Functions inherited from NXOpen::TaggedObject
tag_t Tag () const
 Returns the tag of this object. More...
 

Detailed Description

Represents a ListBox block
Created in NX6.0.0.


Member Typedef Documentation

Add callback
Created in NX6.0.0.



License requirements : None

Delete callback.

Return a non-zero value in order to veto the deletion.
Created in NX6.0.0.

License requirements : None

Member Function Documentation

bool NXOpen::BlockStyler::ListBox::AllowDeselectForSingleSelect ( )

Returns the AllowDeselectForSingleSelect.

Allows deselection of item using Ctrl+MB1 when single select is true.
Created in NX8.5.0.

License requirements : None

std::vector<NXString> NXOpen::BlockStyler::ListBox::GetListItems ( )

Gets the ListItems.

Returns

Created in NX8.5.0.

License requirements : None
std::vector<int> NXOpen::BlockStyler::ListBox::GetSelectedItemBooleans ( )

Gets the SelectedItemBooleans.

This method returns an integer array of boolen values populated with 0 and 1

Returns

Created in NX8.5.0.

License requirements : None
std::vector<int> NXOpen::BlockStyler::ListBox::GetSelectedItems ( )

Gets SelectedItems.

Returns
selected items
Created in NX8.5.0.

License requirements : None
std::vector<NXString> NXOpen::BlockStyler::ListBox::GetSelectedItemStrings ( )

Gets the SelectedItemStrings.

Returns

Created in NX8.5.0.

License requirements : None
int NXOpen::BlockStyler::ListBox::Height ( )

Returns the Height
Created in NX8.5.0.



License requirements : None

bool NXOpen::BlockStyler::ListBox::IsAddButtonSensitive ( )

Returns the IsAddButtonSensitive
Created in NX8.5.0.



License requirements : None

bool NXOpen::BlockStyler::ListBox::IsDeleteButtonSensitive ( )

Returns the IsDeleteButtonSensitive
Created in NX8.5.0.



License requirements : None

bool NXOpen::BlockStyler::ListBox::Localize ( )

Returns the Localize.

If true, translates the Label string into the language of the current locale.
Created in NX8.5.0.

License requirements : None

int NXOpen::BlockStyler::ListBox::MaximumHeight ( )

Returns the MaximumHeight
Created in NX8.5.0.



License requirements : None

int NXOpen::BlockStyler::ListBox::MaximumStringLength ( )

Returns the MaximumStringLength
Created in NX8.5.0.



License requirements : None

int NXOpen::BlockStyler::ListBox::MinimumHeight ( )

Returns the MinimumHeight
Created in NX8.5.0.



License requirements : None

bool NXOpen::BlockStyler::ListBox::ResizeHeightWithDialog ( )

Returns the ResizeHeightWithDialog
Created in NX8.5.0.



License requirements : None

int NXOpen::BlockStyler::ListBox::SelectedItemIndex ( )

Returns the SelectedItemIndex.

Valid only if SingleSelect is true. Otherwise -1 is returned.
Created in NX8.5.0.

License requirements : None

NXString NXOpen::BlockStyler::ListBox::SelectedItemString ( )

Returns the SelectedItemString.

Valid only if SingleSelect is true. Otherwise empty string is returned.
Created in NX8.5.0.

License requirements : None

void NXOpen::BlockStyler::ListBox::SetAddButtonSensitive ( bool  sensitive)

Sets the IsAddButtonSensitive
Created in NX8.5.0.



License requirements : None

Parameters
sensitivesensitive
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

Parameters
cbcb
void NXOpen::BlockStyler::ListBox::SetAllowDeselectForSingleSelect ( bool  allow)

Sets the AllowDeselectForSingleSelect.

Allows deselection of item using Ctrl+MB1 when single select is true.
Created in NX8.5.0.

License requirements : None

Parameters
allowallow
void NXOpen::BlockStyler::ListBox::SetDeleteButtonSensitive ( bool  sesitive)

Sets the IsDeleteButtonSensitive
Created in NX8.5.0.



License requirements : None

Parameters
sesitivesesitive
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

Parameters
cbcb
void NXOpen::BlockStyler::ListBox::SetHeight ( int  height)

Sets the Height
Created in NX8.5.0.



License requirements : None

Parameters
heightheight
void NXOpen::BlockStyler::ListBox::SetListItems ( std::vector< NXString > &  items)

Sets the ListItems
Created in NX8.5.0.



License requirements : None

Parameters
itemsitems
void NXOpen::BlockStyler::ListBox::SetLocalize ( bool  localize)

Sets the Localize.

If true, translates the Label string into the language of the current locale.
Created in NX8.5.0.

License requirements : None

Parameters
localizelocalize
void NXOpen::BlockStyler::ListBox::SetMaximumHeight ( int  maxHeight)

Sets the MaximumHeight
Created in NX8.5.0.



License requirements : None

Parameters
maxHeightmax height
void NXOpen::BlockStyler::ListBox::SetMaximumStringLength ( int  maxLength)

Sets the MaximumStringLength
Created in NX8.5.0.



License requirements : None

Parameters
maxLengthmax length
void NXOpen::BlockStyler::ListBox::SetMinimumHeight ( int  minHeight)

Sets the MinimumHeight
Created in NX8.5.0.



License requirements : None

Parameters
minHeightmin height
void NXOpen::BlockStyler::ListBox::SetResizeHeightWithDialog ( bool  resize)

Sets the ResizeHeightWithDialog
Created in NX8.5.0.



License requirements : None

Parameters
resizeresize
void NXOpen::BlockStyler::ListBox::SetSelectedItemBooleans ( const std::vector< int > &  items)

Sets the SelectedItemStrings.

Selects the list items based on input boolean array. Item is deselcted if value is 0 and selected otherwise.
Created in NX8.5.0.

License requirements : None

Parameters
itemsitems
void NXOpen::BlockStyler::ListBox::SetSelectedItemIndex ( int  index)

Sets the SelectedItemIndex.

Valid only if SingleSelect is true. Otherwise -1 is returned.
Created in NX8.5.0.

License requirements : None

Parameters
indexindex
void NXOpen::BlockStyler::ListBox::SetSelectedItems ( const std::vector< int > &  selectedItems)

Sets SelectedItems
Created in NX8.5.0.



License requirements : None

Parameters
selectedItemsselected items
void NXOpen::BlockStyler::ListBox::SetSelectedItemString ( const NXString string)

Sets the SelectedItemString.

Valid only if SingleSelect is true. Otherwise empty string is returned.
Created in NX8.5.0.

License requirements : None

Parameters
stringstring
void NXOpen::BlockStyler::ListBox::SetSelectedItemString ( const char *  string)

Sets the SelectedItemString.

Valid only if SingleSelect is true. Otherwise empty string is returned.
Created in NX8.5.0.

License requirements : None

Parameters
stringstring
void NXOpen::BlockStyler::ListBox::SetSelectedItemStrings ( std::vector< NXString > &  strings)

Sets the SelectedItemStrings.

Selects the list items based on input array of strings.
Created in NX8.5.0.

License requirements : None

Parameters
stringsstrings
void NXOpen::BlockStyler::ListBox::SetShowAddButton ( bool  show)

Sets the ShowAddButton.

If true, Add button is shown.
Created in NX8.5.0.

License requirements : None

Parameters
showshow
void NXOpen::BlockStyler::ListBox::SetShowDeleteButton ( bool  show)

Sets the ShowDeleteButton.

If true, Delete button is shown.
Created in NX8.5.0.

License requirements : None

Parameters
showshow
void NXOpen::BlockStyler::ListBox::SetShowMoveUpDownButtons ( bool  show)

Sets the ShowMoveUpDownButtons.

If true, MoveUp and MoveDown buttons are shown.
Created in NX8.5.0.

License requirements : None

Parameters
showshow
void NXOpen::BlockStyler::ListBox::SetSingleSelect ( bool  sinleSelect)

Sets the SingleSelect.

If true, only single item can be selected.
Created in NX8.5.0.

License requirements : None

Parameters
sinleSelectsinle select
bool NXOpen::BlockStyler::ListBox::ShowAddButton ( )

Returns the ShowAddButton.

If true, Add button is shown.
Created in NX8.5.0.

License requirements : None

bool NXOpen::BlockStyler::ListBox::ShowDeleteButton ( )

Returns the ShowDeleteButton.

If true, Delete button is shown.
Created in NX8.5.0.

License requirements : None

bool NXOpen::BlockStyler::ListBox::ShowMoveUpDownButtons ( )

Returns the ShowMoveUpDownButtons.

If true, MoveUp and MoveDown buttons are shown.
Created in NX8.5.0.

License requirements : None

bool NXOpen::BlockStyler::ListBox::SingleSelect ( )

Returns the SingleSelect.

If true, only single item can be selected.
Created in NX8.5.0.

License requirements : None


The documentation for this class was generated from the following file:
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.