ShowTitleAndDescription problem |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
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?!
|
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1201 |
Post Options
Thanks(0)
|
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 |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
No, "SetTooltip" will make the skinned tooltip to always be shown. The problem is the tooltip itself. The title is not there!
|
|
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 |