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

multiline tooltip

 Post Reply Post Reply
Author
Message
mattf View Drop Down
Newbie
Newbie


Joined: 28 June 2006
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote mattf Quote  Post ReplyReply Direct Link To This Post Topic: multiline tooltip
    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

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 09 May 2007 at 8:29am

Hi,

Did you try to set tooltip using SetTooltip method?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
mattf View Drop Down
Newbie
Newbie


Joined: 28 June 2006
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote mattf Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 10 May 2007 at 1:34am
its the thing :)
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
andrewg View Drop Down
Groupie
Groupie


Joined: 24 September 2007
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote andrewg Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
Nicola View Drop Down
Newbie
Newbie


Joined: 22 October 2007
Location: Italy
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote Nicola Quote  Post ReplyReply Direct Link To This Post 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?
 
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Nicola View Drop Down
Newbie
Newbie


Joined: 22 October 2007
Location: Italy
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote Nicola Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
Baldur View Drop Down
Senior Member
Senior Member


Joined: 22 November 2006
Location: Germany
Status: Offline
Points: 244
Post Options Post Options   Thanks (0) Thanks(0)   Quote Baldur Quote  Post ReplyReply Direct Link To This Post Posted: 01 November 2007 at 9:10am
You must set the Balloonstyle-Tooltip (Paintmanager).
Other kinds of tooltips don't support multilines (Windowsproblem!).
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Nicola View Drop Down
Newbie
Newbie


Joined: 22 October 2007
Location: Italy
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote Nicola Quote  Post ReplyReply Direct Link To This Post 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?
 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
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.203 seconds.