Print Page | Close Window

[solved] No highlight ofBackstage in office 2013

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=22820
Printed Date: 28 November 2024 at 7:51am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [solved] No highlight ofBackstage in office 2013
Posted By: SvenC
Subject: [solved] No highlight ofBackstage in office 2013
Date 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



Replies:
Posted By: olebed
Date Posted: 24 January 2016 at 3:05am
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" rel="nofollow - http://forum.codejock.com/forum_posts.asp?TID=22840&PID=74291&SID=41901273z132dd7z821c1ec577fbe0707523148&title=v17-final-invisible-backstage-text#74291

Regards,
 Oleksandr Lebed



Posted By: SvenC
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net