![]() |
Tooltip context for report control? |
Post Reply ![]() |
Author | |
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() 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?
|
|
![]() |
|
Oleg ![]() Senior Member ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
it already supports tooltipcontext:
m_wndReport.GetToolTipContext().
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
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?
|
|
![]() |
|
Oleg ![]() Senior Member ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Call pItem->SetToolTip(..) to set some tooltip.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
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!
|
|
![]() |
|
Oleg ![]() Senior Member ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi, What version do you have ? Did you call SetToolTip for this Hello world item ? |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
I have 11.20 and I did not call SetToolTip. |
|
![]() |
|
Oleg ![]() Senior Member ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello, if you don't call SetToolTip used standard tip. if you call - used Themed with delay.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
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?
|
|
![]() |
|
Oleg ![]() Senior Member ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Yes, I sure.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
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 |