Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - [solved] No highlight ofBackstage in office 2013
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[solved] No highlight ofBackstage in office 2013

 Post Reply Post Reply
Author
Message
SvenC View Drop Down
Groupie
Groupie


Joined: 02 February 2007
Status: Offline
Points: 79
Post Options Post Options   Thanks (0) Thanks(0)   Quote SvenC Quote  Post ReplyReply Direct Link To This Post Topic: [solved] No highlight ofBackstage in office 2013
    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
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (1) Thanks(1)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 24 January 2016 at 3:05am
Back to Top
SvenC View Drop Down
Groupie
Groupie


Joined: 02 February 2007
Status: Offline
Points: 79
Post Options Post Options   Thanks (0) Thanks(0)   Quote SvenC Quote  Post ReplyReply Direct Link To This Post Posted: 25 January 2016 at 3:47am
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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.