Discussion:
Balloon tip on a window
(too old to reply)
David Thielen
2009-07-08 01:47:24 UTC
Permalink
Hi;

What's the best way to get a balloon tip who's parent is a HWND window
(ie not a .NET window)? I need it to have the little [X] box in it to
kill it too.

thanks - dave

***@at-at-***@windward.dot.dot.net
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
Zhi-Xin Ye [MSFT]
2009-07-08 12:29:55 UTC
Permalink
Hi Dave,

I think the easiest way to add the close button to the tooltip is handle
the ToolTip.Draw event to draw a close icon on the tooltip , since no
matter you click on the close button or click on other place of the tooltip
, the tooltip will close anyway.

Another way to add the close button is add the TTS_CLOSE style to the
tooltip, there's a sample on the CodeProject that demonstrates how to do
this:
http://www.codeproject.com/KB/shell/balloontipsarticle.aspx

If you have any questions or concerns, please feel free to let me know.

Sincerely,
Zhi-Xin Ye
Microsoft Managed Newsgroup Support Team

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
***@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
David Thielen
2009-07-08 17:26:08 UTC
Permalink
Post by Zhi-Xin Ye [MSFT]
Hi Dave,
I think the easiest way to add the close button to the tooltip is handle
the ToolTip.Draw event to draw a close icon on the tooltip , since no
matter you click on the close button or click on other place of the tooltip
, the tooltip will close anyway.
Another way to add the close button is add the TTS_CLOSE style to the
tooltip, there's a sample on the CodeProject that demonstrates how to do
http://www.codeproject.com/KB/shell/balloontipsarticle.aspx
I was hoping there was a .NET Window class that does the balloon. I
dislike having to call native code. Oh well...

thanks - dave

***@at-at-***@windward.dot.dot.net
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
David Thielen
2009-07-08 21:18:28 UTC
Permalink
Post by Zhi-Xin Ye [MSFT]
Hi Dave,
I think the easiest way to add the close button to the tooltip is handle
the ToolTip.Draw event to draw a close icon on the tooltip , since no
matter you click on the close button or click on other place of the tooltip
, the tooltip will close anyway.
Another way to add the close button is add the TTS_CLOSE style to the
tooltip, there's a sample on the CodeProject that demonstrates how to do
http://www.codeproject.com/KB/shell/balloontipsarticle.aspx
Hi;

I'm trying to use the code in that article. The sample app from it
works fine. But when I try to use it in my AddIn, where the parent
control is the main Excel window, I get 3 problems:

1) The control does not receive mouse clicks and so never goes away.

2) It does not draw the close icon.

3) If I move the Excel window, the tooltip does not move with it.

Does this only work if tied to a Control? And if so should I just put
an invisible 1x1 Control over Excel and then tie the balloon to it?

I am using the MessageBalloon class from the project.

thanks - dave

***@at-at-***@windward.dot.dot.net
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
Zhi-Xin Ye [MSFT]
2009-07-13 15:18:37 UTC
Permalink
Hi Dave,

You don't have to create an invisible control over the Excel, all you need
to do is enable the visual style on the Office add-in, see the following KB
article for more details:

How to apply Windows XP themes to Office COM add-ins
http://support.microsoft.com/kb/830033

If anything is unclear, please feel free to let me know.


Best Regards,
Zhi-Xin Ye
Microsoft Managed Newsgroup Support Team

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
***@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.
Tooltips not moving with windows
2009-08-23 13:03:01 UTC
Permalink
Post by Zhi-Xin Ye [MSFT]
Hi Dave,
You don't have to create an invisible control over the Excel, all you need
to do is enable the visual style on the Office add-in, see the following KB
How to apply Windows XP themes to Office COM add-ins
http://support.microsoft.com/kb/830033
If anything is unclear, please feel free to let me know.
Best Regards,
Zhi-Xin Ye
Microsoft Managed Newsgroup Support Team
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
This posting is provided "AS IS" with no warranties, and confers no rights.
Loading...