Print Page | Close Window

CXTPPropertyPatab highlight issue Office2013 white

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=22503
Printed Date: 25 December 2024 at 12:18pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPPropertyPatab highlight issue Office2013 white
Posted By: rdhd
Subject: CXTPPropertyPatab highlight issue Office2013 white
Date 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?



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



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