Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » RibbonBar Quick Access Buttons Customization Problem Collapse All
Subject Author Date
Andreas Schneider Sep 27, 2007 - 9:16 AM

Hello Prof-UIS Team,

RibbonBar Quick Access Buttons Customization it is not possible to add commands from the File (Window/Bar).

When you run the RibbonBar.exe example, and open the Quick Access Buttons Customization Page, there are all the RibbonPages you can select Commands from, but the File-"Bar" is missing, so it’s not possible to add "open" or "close" to the Quick Access Buttons Customization.

Can this be done somehow ?

Best regards,
Andreas

parikshit nangre May 10, 2008 - 12:53 AM

hi


 


this is parikshit from india. have you implemented CExtRibbonbar in a dialog based application? if so please reply me as soon as possible or mail me on parikshit.nangre@pxlsoft.com

Andreas Schneider Sep 28, 2007 - 1:38 AM

Thank you for your fast response

Technical Support Sep 27, 2007 - 2:33 PM

Please update the CExtRibbonOptionsPageCustomizeQATB::OnSrcComboSelEndOK() methods source code so you will see the commands from the file menu at the beginning of the All Command category:

void CExtRibbonOptionsPageCustomizeQATB::OnSrcComboSelEndOK()
{
      ASSERT_VALID( this );
      m_listBoxChooseCommandsFrom.ResetContent();
CExtRibbonBar * pRibbonBar = RibbonOptionsPage_GetBar();
      if( pRibbonBar == NULL )
            return;
CExtRibbonNodeTabPageCollection * pColNode = pRibbonBar->Ribbon_GetTabPageRootNode();
      if( pColNode == NULL )
            return;
INT nCategoryCurSel = m_comboChooseCommandsFrom.GetCurSel();
      if( nCategoryCurSel < 0 )
            return;
      ASSERT_VALID( pColNode );
INT nPageNodeCount = INT( pColNode->GetNodeCount() );
      ASSERT( nCategoryCurSel <= nPageNodeCount );
      // initialize categories combo box
      if( nCategoryCurSel == nPageNodeCount )
      {
            CExtRibbonNode * pFileNode = pRibbonBar->Ribbon_GetFileRootNode();
            if( pFileNode != NULL )
            {
                  ASSERT_VALID( pFileNode );
                  pFileNode->Ribbon_InitCommandsListBox( m_listBoxChooseCommandsFrom );
            }
            INT nPageNodeIndex;
            for( nPageNodeIndex = 0; nPageNodeIndex < nPageNodeCount; nPageNodeIndex ++ )
            {
                  CExtCustomizeCmdTreeNode * pNode =
                        pColNode->ElementAt( nPageNodeIndex );
                  ASSERT_VALID( pNode );
                  pNode->Ribbon_InitCommandsListBox( m_listBoxChooseCommandsFrom );
            } // for( nPageNodeIndex = 0; nPageNodeIndex < nPageNodeCount; nPageNodeIndex ++ )
      } // if( nCategoryCurSel == nPageNodeCount )
      else
      {
            CExtCustomizeCmdTreeNode * pNode =
                  pColNode->ElementAt( nCategoryCurSel );
            ASSERT_VALID( pNode );
            pNode->Ribbon_InitCommandsListBox( m_listBoxChooseCommandsFrom );
      } // else from if( nCategoryCurSel == nPageNodeCount )
      if( m_listBoxChooseCommandsFrom.GetCount() > 0 )
            m_listBoxChooseCommandsFrom.SetCurSel( 0 );
      _UpdateButtons();
}