![]() |
New version problems |
Post Reply ![]() |
Author | |
BastianPL ![]() Groupie ![]() ![]() Joined: 15 April 2006 Status: Offline Points: 69 |
![]() ![]() ![]() ![]() ![]() Posted: 25 February 2011 at 3:16pm |
Hi, I have 2 problems using new version 15.0.1
For some reason subitems of systemmenu are not show as in previous version. The code used to create this control is as usual in OnCreateControl... if ( lpCreateControl->nID == ID_SETTINGS && lpCreateControl->nIndex == 5 ) { CXTPControlPopup* pControl = CXTPControlPopup::CreateControlPopup( xtpControlButtonPopup ); CMenu menu; menu.LoadMenu( IDR_SETTINGS ); CXTPRibbonSystemPopupBarPage* pPopupBar = new CXTPRibbonSystemPopupBarPage(); pPopupBar->SetCommandBars( GetCommandBars() ); pPopupBar->LoadMenu(menu.GetSubMenu(0)); CXTPControl* pControlLabel = pPopupBar->GetControls()->Add( xtpControlLabel, ID_FILE_SETTINGS_LABEL, NULL, 0 ); pControlLabel->SetWidth( 320 ); pControlLabel->SetItemDefault( TRUE ); pControlLabel->SetStyle( xtpButtonCaption ); pPopupBar->SetShowGripper( FALSE ); pPopupBar->SetDefaultButtonStyle( xtpButtonCaptionAndDescription ); pPopupBar->SetIconSize( CSize(32, 32) ); pControl->SetCommandBar( pPopupBar ); pPopupBar->InternalRelease(); lpCreateControl->pControl = pControl; return TRUE; } Hoever it looks a bit doggy.. Same code was working fine in previous version. ![]() |
|
Bastian
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
you don't need create CXTPRibbonSystemPopupBarPage if you don't use it as PopupBarPage. just create as CXTPPopupBar: CXTPPopupBar* pPopupBar = new CXTPPopupBar(); |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
BastianPL ![]() Groupie ![]() ![]() Joined: 15 April 2006 Status: Offline Points: 69 |
![]() ![]() ![]() ![]() ![]() |
Oleg thanks for a quick response Any other suggestions?
|
|
Bastian
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
You can add more buttons to main Popup to increase its height. Now CXTPRibbonSystemPopupBarPage aligned to its height. You can copy source code of CXTPRibbonSystemPopupBarPage to your local CMyRibbonSystemPopupBarPage and not include "if (nHeight > sz.cy) sz.cy = nHeight;" line. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
BastianPL ![]() Groupie ![]() ![]() Joined: 15 April 2006 Status: Offline Points: 69 |
![]() ![]() ![]() ![]() ![]() |
Ok That will do for now. However maybe it will be possible to add this as a feature to next version.
Last thing will be missing frame around CXTPRibbonSystemPopupBarPage as as in your example.
|
|
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 |