Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - ShowTitleAndDescription problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ShowTitleAndDescription problem

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: ShowTitleAndDescription problem
    Posted: 01 August 2008 at 8:06am
XTP 12.0.1
void CMyportControl::PreSubclassWindow()
{
...
GetToolTipContext()->SetStyle(xtpToolTipOffice2007);
GetToolTipContext()->ShowTitleAndDescription();
GetToolTipContext()->ShowImage(TRUE, 0);
GetToolTipContext()->SetMargin(CRect(2, 2, 2, 2));
GetToolTipContext()->SetMaxTipWidth(300);
GetToolTipContext()->SetDelayTime(TTDT_INITIAL, 900);
...
}
 
In my records:
GetItem(0)->SetTooltip("Test"); // No title
GetItem(0)->SetTooltip("Test\nTest"); // No title!!!
When I hover my items there is no title (nor icon) in the tooltip. What am I doing wrong?!
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 01 August 2008 at 2:05pm
Hi;
As I correctly remember a question I asked a few month ago, the tooltip only appears when the column width is less than the content.
To show the tooltip whenever the mouse is over an item, you have to do it yourself.

Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 03 August 2008 at 2:09pm
No, "SetTooltip" will make the skinned tooltip to always be shown. The problem is the tooltip itself. The title is not there!
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.172 seconds.