Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPPropertyPatab highlight issue Office2013 white
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPPropertyPatab highlight issue Office2013 white

 Post Reply Post Reply
Author
Message
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 891
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Topic: CXTPPropertyPatab highlight issue Office2013 white
    Posted: 06 January 2015 at 12:32pm
When we use Office2013 White command bar theme, our options dialog fails to highlight tabs or color the selected tab. Word 2013 does support both highlighting and selected tab coloring.

Is this a bug in CodeJock or do I need to do something special to get the same functionality we see when using Office2007/2010 themes?
Back to Top
mrmathis View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 May 2007
Location: United States
Status: Offline
Points: 105
Post Options Post Options   Thanks (0) Thanks(0)   Quote mrmathis Quote  Post ReplyReply Direct Link To This Post Posted: 27 January 2015 at 9:19am
I tracked this down to a call we had in place to set the list style.  I think this was put there several years ago to change the hilite style to something the planner liked better.  The old call was:
 
    pList->SetListStyle(xtpListBoxOffice2007);
In conjunction with an Office 2013 theme, however, that call eventually turned the control's theme into CXTPListBoxThemeResource, and that doesn't seem to do much to hilite the selected item.
 
I fixed it with something like this:
 
    XTPListBoxStyle listBoxStyle = xtpListBoxOffice2007;
    if (xtpThemeOffice2013 == pMyMainFrame->GetCommandBarsTheme())
            listBoxStyle = xtpListBoxOffice2013;
     pList->SetListStyle(listBoxStyle);
It might be nice if CXTPListBoxThemeResource responded better to being used, though.
 
 
--Mike
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.