Print Page | Close Window

multiline tooltip

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=7089
Printed Date: 22 November 2024 at 1:53pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: multiline tooltip
Posted By: mattf
Subject: multiline tooltip
Date Posted: 09 May 2007 at 4:53am
Hi,

In a CXTPReportView, is it possible to get a multilines tooltip for a record.

I don't want to use multilines row record, but I want to get a multilines tooltip when the mouse cursor is over the record.

thanks & regards,

Matt




Replies:
Posted By: Oleg
Date Posted: 09 May 2007 at 8:29am

Hi,

Did you try to set tooltip using SetTooltip method?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: mattf
Date Posted: 09 May 2007 at 8:46am
Perfect! Thanks 

Just one question: why the default tooltip is single line? Is it not better to get a multilines tooltip every time?

Matt


Posted By: Oleg
Date Posted: 10 May 2007 at 1:34am
its the thing :)

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: andrewg
Date Posted: 17 October 2007 at 9:46am
I'm curious about this,  as I was looking through the documentation and didn't see what you guys were talking about.

Are you just passing in '\n' characters in your tooltip to where you want the break?


Posted By: Nicola
Date Posted: 22 October 2007 at 2:56am
Sorry, but I don't undestand how to add a multiline tooltip to a record item.
 
I tried to use SetToolti( "string1\r\nstring2" ). But it doesn't work. Single line is displayed, \r and \n are replaced with wrong characters.
 
Could you help me?
 


Posted By: sserge
Date Posted: 22 October 2007 at 6:07pm
Hi,

Open our ReportSample. I've just successfully tried the following:

CMessageRecordItemPrice::CMessageRecordItemPrice(double dValue)
: CXTPReportRecordItemNumber(dValue, _T("$ %.2f"))
{
    SetTooltip(_T("this\r\nis multiline\r\ntooltip"));
}


--
WBR,
Serge


Posted By: Nicola
Date Posted: 26 October 2007 at 8:25am
I tried the same samples but on my pc it doesn't work. Tooltip has only one line: I have square inplace of new line.
 
Could it be I have an old version of Codejock sofware? My library version is 10.4.
 
Do you have any idea why?


Posted By: Baldur
Date Posted: 01 November 2007 at 9:10am
You must set the Balloonstyle-Tooltip (Paintmanager).
Other kinds of tooltips don't support multilines (Windowsproblem!).


Posted By: Oleg
Date Posted: 01 November 2007 at 2:59pm
Hello,
 
Yes, Think its because you have old version. Try evlaution of 11.2.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Nicola
Date Posted: 05 November 2007 at 4:50am
I tried to use

m_myReport.GetToolTipContext()->SetStyle(xtpToolTipBalloon);

but still it doesn't work in place of new line i have squares :-(
 
I bought few monts ago the version 10.4. Really I have to upgrade to fix this problem?
 


Posted By: Oleg
Date Posted: 05 November 2007 at 5:35am
Hello,
 
If you need this feature you have upgrade. 10.4 was released December 16, 2006.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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