xtpTabToolTipShrinkedOnly |
Post Reply |
Author | |
rdhd
Senior Member Joined: 13 August 2007 Location: United States Status: Offline Points: 886 |
Post Options
Thanks(0)
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) |
|
rdhd
Senior Member Joined: 13 August 2007 Location: United States Status: Offline Points: 886 |
Post Options
Thanks(0)
|
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? |
|
mcmastl
Admin Group Joined: 14 April 2015 Status: Offline Points: 79 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |