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

Represents an interface to manage Resource Bar tabs. More...

Public Types

typedef NXOpen::Callback1< int,
int > 
ActivationCallback
 Prototype for the callback used to activate a tab page. More...
 

Public Member Functions

void ActivateTab (int tabId)
 Activate the resource bar tab. More...
 
int Create (const NXString &tabTitle, const NXString &tabIcon)
 Create a tab by registering the tab data. More...
 
int Create (const char *tabTitle, const char *tabIcon)
 Create a tab by registering the tab data. More...
 
void Destroy (int tabId)
 Remove and destroy the tab asscociated with the given tab id from the resource bar area. More...
 
NXOpen::WindowHandleGetWindowHandle (int tabId)
 Return a NX docking window associated with the given tab id. More...
 
int RegisterActivationCallback (int tabId, const NXOpen::ResourceBarManager::ActivationCallback &activateTabCb)
 Register a callback which will be called whenever a custom tab is about to be activated. More...
 
void SetTabVisibility (int tabId, bool visible)
 Set the visibility of the tab in the resource bar area. More...
 
tag_t Tag () const
 Returns the tag of this object. More...
 

Detailed Description

Represents an interface to manage Resource Bar tabs.

The class can be used to create new tabs and manage the visibility and activation state of these tabs on the Resource Bar.
To obtain an instance of this class, refer to NXOpen::UI

Usable only on Windows

Created in NX10.0.0.

Member Typedef Documentation

Prototype for the callback used to activate a tab page.


Created in NX10.0.0.

License requirements : None

Member Function Documentation

void NXOpen::ResourceBarManager::ActivateTab ( int  tabId)

Activate the resource bar tab.


Created in NX10.0.0.

License requirements : None

Parameters
tabIdThe unique tab id
int NXOpen::ResourceBarManager::Create ( const NXString tabTitle,
const NXString tabIcon 
)

Create a tab by registering the tab data.

The new tab will show up right away if the Resource Bar is currently visible.

Returns
The unique tab id for the registered tab
Created in NX10.0.0.

License requirements : None
Parameters
tabTitleTab title. This title will be displayed in tooltip as well
tabIconTab bitmap. User can specify a NX bitmap or a new bitmap with path
int NXOpen::ResourceBarManager::Create ( const char *  tabTitle,
const char *  tabIcon 
)

Create a tab by registering the tab data.

The new tab will show up right away if the Resource Bar is currently visible.

Returns
The unique tab id for the registered tab
Created in NX10.0.0.

License requirements : None
Parameters
tabTitleTab title. This title will be displayed in tooltip as well
tabIconTab bitmap. User can specify a NX bitmap or a new bitmap with path
void NXOpen::ResourceBarManager::Destroy ( int  tabId)

Remove and destroy the tab asscociated with the given tab id from the resource bar area.


Created in NX10.0.0.

License requirements : None

Parameters
tabIdThe unique tab id
NXOpen::WindowHandle* NXOpen::ResourceBarManager::GetWindowHandle ( int  tabId)

Return a NX docking window associated with the given tab id.

The docking window will be created only when the custom tab is being activated. Applications can use the docking window as the parent window to host their child window in resource bar area. Applications should create a child window as a container since it extends to the maximum bounds of the docking window.

Returns
The tab window associated with the given tab id
Created in NX10.0.0.

License requirements : None
Parameters
tabIdThe unique tab id
int NXOpen::ResourceBarManager::RegisterActivationCallback ( int  tabId,
const NXOpen::ResourceBarManager::ActivationCallback activateTabCb 
)

Register a callback which will be called whenever a custom tab is about to be activated.

Returns
Identifier of registered callback
Created in NX10.0.0.

License requirements : None
Parameters
tabIdA unigue tab id identifying the callback
activateTabCbCallback to register
void NXOpen::ResourceBarManager::SetTabVisibility ( int  tabId,
bool  visible 
)

Set the visibility of the tab in the resource bar area.

The tab is visible by default when it gets created.


Created in NX10.0.0.

License requirements : None

Parameters
tabIdThe unique tab id
visibleTurn the tab's visibility on or off
tag_t NXOpen::ResourceBarManager::Tag ( ) const

Returns the tag of this object.


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