CXTPRibbonGroup problem |
Post Reply |
Author | |
BastianPL
Groupie Joined: 15 April 2006 Status: Offline Points: 69 |
Post Options
Thanks(0)
Posted: 25 April 2007 at 11:52am |
Hi, I am trying to add CXTPRibbon Group functionality to my application. I want to drop down popup gallery if user clicks on group button. My code does not working. Do You have any solutions ???// add formats group CXTPRibbonGroup *pRibbonGroup = pRibbonTab->AddGroup( "Formats" ); pRibbonGroup->ShowOptionButton(); pRibbonGroup->GetControlGroupOption()->SetID( ID_GALLERY_FORMAT); m_pFormatsGallery = (CXTPControlGallery *)pRibbonGroup->Add( new CXTPControlGallery(), ID_GALLERY_FORMAT ); m_pFormatsGallery->ShowBorders( TRUE ); m_pFormatsGallery->ShowLabels( FALSE ); m_pFormatsGallery->ShowScrollBar( TRUE ); InitialiseFormatGroup( pCommandBars ); m_pFormatsGallery->SetControlSize( m_FormatGalleryControl.GetControlSize() ); m_pFormatsGallery->SetItems( m_pFormats ); // add formats popup control CMenu formatMenu; formatMenu.LoadMenu( IDR_MENU_FORMAT ); CXTPPopupBar *pPopupBar = CXTPPopupBar::CreatePopupBar( pCommandBars ); pPopupBar->LoadMenu( formatMenu.GetSubMenu( 0 ) ); m_pFormatsGallery->SetCommandBar( pPopupBar ); pPopupBar->EnableAnimation(); pPopupBar->InternalRelease();
Thanks for help |
|
Bastian
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |