Print Page | Close Window

ShowTitleAndDescription problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=11691
Printed Date: 17 November 2024 at 7:23pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ShowTitleAndDescription problem
Posted By: znakeeye
Subject: ShowTitleAndDescription problem
Date 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?!



Replies:
Posted By: mgampi
Date 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


Posted By: znakeeye
Date 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!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net