Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - xtpTabToolTipShrinkedOnly
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

xtpTabToolTipShrinkedOnly

 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: 886
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Topic: xtpTabToolTipShrinkedOnly
    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)
Back to Top
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 886
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
mcmastl View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 April 2015
Status: Offline
Points: 79
Post Options Post Options   Thanks (0) Thanks(0)   Quote mcmastl Quote  Post ReplyReply Direct Link To This Post 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
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.141 seconds.