[solved] No highlight ofBackstage in office 2013 |
Post Reply |
Author | |
SvenC
Groupie Joined: 02 February 2007 Status: Offline Points: 79 |
Post Options
Thanks(0)
Posted: 15 December 2015 at 4:23am |
Hi,
can I enable highlighting of backstage commands when I use the Office 2013 theme and the mouse moves over a command? Seems a bit unresponsive without that. With Office 2010 or 2007 themes the commands get highlighted. VC++ 2010 with 16.3.1 and 2015 with 17.0 RC behave the same. This is how I add commands: CXTPRibbonBackstageView* pView = CXTPRibbonBackstageView::CreateBackstageView(GetCommandBars()); ... CXTPRibbonBackstageCommand *pCmd = pView->AddCommand(ID_SOME_COMMAND); Side note: I call SetCaption and SetPrompt on the pCmd if I have translated command texts. Can I do anything to make the commands responsive to the mouse moving over them? Regards SvenC
|
|
--
SvenC Toolkit Pro 15.3.1, 16.2.4, 16.3.1, 16.4.0, 17.2.0, 17.3.0, 18.0.1, 18.2 with VC++ 2010, 2012, 2013, 2015, 2017 |
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(1)
|
Hi SvenC,
Did you mean this highlighting ? http://forum.codejock.com/forum_posts.asp?TID=22840&PID=74291&SID=41901273z132dd7z821c1ec577fbe0707523148&title=v17-final-invisible-backstage-text#74291 Regards, Oleksandr Lebed |
|
SvenC
Groupie Joined: 02 February 2007 Status: Offline Points: 79 |
Post Options
Thanks(0)
|
Yes. And the code fragment worked:
CXTPPaintManager *pPM = pCommandBars->GetPaintManager(); XTPPaintTheme nPaintTheme = pPM->GetCurrentTheme(); CXTPRibbonBackstageView *pView = DYNAMIC_DOWNCAST(CXTPRibbonBackstageView, pRibbonBar->GetSystemButton()->GetCommandBar()); if(pView) pView->SetTheme(nPaintTheme); Thank you Sven
|
|
--
SvenC Toolkit Pro 15.3.1, 16.2.4, 16.3.1, 16.4.0, 17.2.0, 17.3.0, 18.0.1, 18.2 with VC++ 2010, 2012, 2013, 2015, 2017 |
|
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 |