Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Tooltip context for report control?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Tooltip context for report control?

 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: Tooltip context for report control?
    Posted: 19 October 2007 at 3:50pm
I managed to modify the tooltip context for my report control, but not its records. It seems items still have that ugly standard tooltip style.
 
How do I fix this?
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: 20 October 2007 at 2:08am
Hi,
 
it already supports tooltipcontext:
 
m_wndReport.GetToolTipContext().
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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: 20 October 2007 at 8:01am
Yes, but only for the headers etc. If I put CXTPReportRecordItem in my records, their tooltip is not skinned.
 
I use the ribbon theme and 2007-style for the tooltip of the report control. If the text of my items is "compressed" I see this ugly win95-tooltip when I hover the item.
 
For instance; my item has the text "This is a long story about a report item which shows an ugly tooltip." and since the column is 100 pixels wide I only see "This is a long story...". Now, if I hover this text I see that ugly Win95-tooltip with the complete string.
 
Most certainly a bug since I did indeed change the tooltip context.
 
Any ideas?
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: 22 October 2007 at 2:23am
Hi,
 
Call pItem->SetToolTip(..) to set some tooltip.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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: 24 October 2007 at 5:47pm

That won't solve it. Let me explain the issue in detail.

Premises:
1) I'm running Windows XP SP2, Classic style.
2) I have set a 2007-tooltip context in my report control.
3) The tooltips of the actual control do indeed have the 2007-style.
 
Bug:
When I resize a column so that a text is compressed. That is, "Hello world!" becomes "Hell..." and I put the mouse cursor over this item, the tooltip is not skinned!
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: 25 October 2007 at 2:01am

Hi,

What version do you have ? Did you call SetToolTip for this Hello world item ?

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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: 25 October 2007 at 3:15am

I have 11.20 and I did not call SetToolTip.

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: 25 October 2007 at 4:24am

Hello,

if you don't call SetToolTip used standard tip. if you call - used Themed with delay.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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: 31 October 2007 at 4:59am
That seems odd. If I explicitly set the tooltip context I expect the report control not to show any standard tooltips. Are you sure this is not a design flaw?
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: 31 October 2007 at 9:18am
Yes, I sure.
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.