xtpTabToolTipShrinkedOnly
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=22411
Printed Date: 23 November 2024 at 9:03am Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: xtpTabToolTipShrinkedOnly
Posted By: rdhd
Subject: xtpTabToolTipShrinkedOnly
Date Posted: 11 September 2014 at 12:57pm
I have turned on the MDI tabbed document behavior and now I want to see tooltips on the tabs displayed if the tab doesn't display the full name of the document. So I used xtpTabToolTipShrinkedOnly as the tip style.
Now I get no tips at all. If I open a bunch of tabs so one is clipped or I size the frame down to clip the tabs, I see the call to CXTPTabManager::IsItemSrhinked being made. But the m_nButtonLength is always equal in size to the m_nContentLength. It is obvious when my frame isn't big enough that the content is clipped so what am I doing wrong? If I move over just a bit more to the right of the last (and clipped tab), there is an area there that is initially blank but the arrow displays that lets me scroll the tab view over to the left so that the last tab becomes fully visible.
I can create a really big filename and open that file. CJ displays the tab with ellipsis since the name doesn't fit but when I break in the IsItemShrinked method, the m_nContentLength is really really big but the m_nButtonLength is the same size. So again, even though the text is clipped, no tip.
What are the semantics of xtpTabToolTipShrinkedOnly? That is, what exactly constitutes a "shrinked item" when it comes to the MDI tab system?
I would note when I shrink the frame so that my command ribbon tabs are clipped, the button length is less than the content length. So perhaps there is some call I need to recalculate the contents (UpdateContents is called frequently - during idle updating)
|
Replies:
Posted By: rdhd
Date Posted: 11 September 2014 at 1:03pm
By the way, one can see this with the RibbonMDISample code. Just add this in mainframe.cpp after "m_wndClient.Attach(this, FALSE)"
m_wndClient.EnableToolTips( xtpTabToolTipShrinkedOnly);
Then run the sample and perform a saveas and give the document a really huge name. Resize the frame down and even the "..." will be clipped and still no tip.
This looks like a bug but how to fix it?
|
Posted By: mcmastl
Date Posted: 15 April 2015 at 4:48pm
Thank you for letting us know of this issue. We have let our development team know to look further into the issue. If the matter has been resolved please let us know.
------------- Luke McMasters, Support Team CODEJOCK SOFTWARE SOLUTIONS
|
|