Print Page | Close Window

Different tooltip to explain the split button menu

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=15675
Printed Date: 21 September 2024 at 1:41am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Different tooltip to explain the split button menu
Posted By: znakeeye
Subject: Different tooltip to explain the split button menu
Date Posted: 20 November 2009 at 3:54pm
"For split buttons, use a different tooltip to explain the split button menu."
http://msdn.microsoft.com/en-us/library/cc872782.aspx - http://msdn.microsoft.com/en-us/library/cc872782.aspx
Haven't seen this in your samples, so I'm wondering if it's even possible with 13.2.1.
 
 
I want my ribbon applications to follow Microsoft guidelines, and here it seems CJ fails. Looking at the code, I sense this one could be tricky to implement. Or maybe it's already implemented? Do tell!



Replies:
Posted By: Oleg
Date Posted: 23 November 2009 at 5:15am
Hi,
 
Again its not "requare" - but "suggested".
A lot of split items in word that don't have additional tooltip.
You can override CXTPControlPopup and its OnToolHitTest method.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: rdhd
Date Posted: 05 December 2009 at 3:53pm
We wanted this too.
 
As Oleg says,
 
You can override CXTPControlPopup and its OnToolHitTest method.
 
 
But how do you get all the CJ code to create your class? For instance, when one calls LoadMenu, will CJ create your class or their own? When I stepped thru the CJ code, I found the hard-coded calls to create their class:
 

case xtpControlButtonPopup:

CXTPControlPopup* pControlPopup = (CXTPControlPopup*)CXTPControlPopup::CreateObject();

I never figured out a way to cause CJ to use my runtime class such as I can do when I create my subclassed ribbon using the command bars Add method where I pass in the runtime class name.

I ended up having to copy a lot of code just to change the class that is created.



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