473,786 Members | 2,771 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ToolTip Class

I have implemented the ToolTip class for a user control that inheirits from
the panel. I show different tool tips depending on where the mouse is on the
control when the hover event occurs. However, if the mouse is moved to
another part of the control, the tooltip doesn't show again until the user
moves the mouse off the control then back on.

How do I reset the tooltip to show again when the mouse moves within the
panel to a different area?
--
Dennis in Houston
Nov 21 '05 #1
3 2118
Hi,

Maybe you could set the tootip again in the mouse hover event to
get it to show up

Ken
-----------------
"Dennis" <De****@discuss ions.microsoft. com> wrote in message
news:B4******** *************** ***********@mic rosoft.com...
I have implemented the ToolTip class for a user control that inheirits from
the panel. I show different tool tips depending on where the mouse is on
the
control when the hover event occurs. However, if the mouse is moved to
another part of the control, the tooltip doesn't show again until the user
moves the mouse off the control then back on.

How do I reset the tooltip to show again when the mouse moves within the
panel to a different area?
--
Dennis in Houston

Nov 21 '05 #2
There is an issue with tooltips (tt) not redrawing. I have a form with
several controls and each control has different tt text. To insure that tt
text displays properly as I move the mouse, I handle each control's
MouseEnter event and do
tt.Active=false
tt.Active=true
With this code, all is well - tt's draw and erase as expected. If I comment
it out, mouse move/hover actions yield many cases where the tt is not
redrawn. You can search these newsgroups for tooltip for interesting reading.

In your case, you describe a user control with tt's that depend "on where
the mouse is on the control when the hover event occurs". Does this mean a
control whose MouseEnter event you can handle? If so, try my suggestion. If
not, are you tracking mouse movements yourself? Then as you transition into
an area where a new tooltip should be displayed, toggle tt.active off and on.

Good luck.

"Dennis" wrote:
I have implemented the ToolTip class for a user control that inheirits from
the panel. I show different tool tips depending on where the mouse is on the
control when the hover event occurs. However, if the mouse is moved to
another part of the control, the tooltip doesn't show again until the user
moves the mouse off the control then back on.

How do I reset the tooltip to show again when the mouse moves within the
panel to a different area?
--
Dennis in Houston

Nov 21 '05 #3
Nothing seems to allow me to reset the ToolTip until the mouse moves off the
control then back on. Another Inferior control from M'Soft!
--
Dennis in Houston
"AMercer" wrote:
There is an issue with tooltips (tt) not redrawing. I have a form with
several controls and each control has different tt text. To insure that tt
text displays properly as I move the mouse, I handle each control's
MouseEnter event and do
tt.Active=false
tt.Active=true
With this code, all is well - tt's draw and erase as expected. If I comment
it out, mouse move/hover actions yield many cases where the tt is not
redrawn. You can search these newsgroups for tooltip for interesting reading.

In your case, you describe a user control with tt's that depend "on where
the mouse is on the control when the hover event occurs". Does this mean a
control whose MouseEnter event you can handle? If so, try my suggestion. If
not, are you tracking mouse movements yourself? Then as you transition into
an area where a new tooltip should be displayed, toggle tt.active off and on.

Good luck.

"Dennis" wrote:
I have implemented the ToolTip class for a user control that inheirits from
the panel. I show different tool tips depending on where the mouse is on the
control when the hover event occurs. However, if the mouse is moved to
another part of the control, the tooltip doesn't show again until the user
moves the mouse off the control then back on.

How do I reset the tooltip to show again when the mouse moves within the
panel to a different area?
--
Dennis in Houston

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2702
by: Robert | last post by:
Hello. I have been trying out the Lebans ToolTip Classes at http://www.lebans.com/tooltip.htm, to display "balloon" style help tips in a form. The classes I am using are located at http://www.lebans.com/DownloadFiles/A2kTooltip.zip So far the classes work perfectly, except that now I need to extend it to support other controls besides the ones given in the example form. I have gotten it to work with some controls, but not others. I...
0
2625
by: NvrBst | last post by:
Hello. I'm trying to display a tooltip to an external window. I have a wrapper class public class WindowWrapper : System.Windows.Forms.IWin32Window { public WindowWrapper(IntPtr handle) { _hwnd = handle; } public IntPtr Handle { get { return _hwnd; } } private IntPtr _hwnd; } But when I call the following
0
10705
by: Lucian Wischik | last post by:
I'm using ToolTip.Show(x,y,..) to show my balloon-style tooltip at a specified coordinate. Most of the time it works fine and the "tip" of the balloon points exactly to my specified (x,y) coordinates. But if the (x,y) coordinates are too far to the right, then the "tip" of the balloon now points to some spurious coordinate that's unrelated to my (x,y). Why? How can I stop this? How can I make the balloon's tip point exactly where I...
2
39755
by: Paul E Collins | last post by:
How can I show a tooltip programmatically? I want to make it appear over a particular control at the specific time I choose, and not rely on the user's mouse movements. I don't mind using some Windows API call for this, if somebody can explain the parameters. Eq.
4
3779
by: juergen | last post by:
Hello everyone, I want to display a help text when in help mode in my application. Something like a tooltip. Now my application is a taskbar deskband and so not everything works what normally does. Second the WinXP machine is a PC with touchscreen so a tooltip doesn't work because it only appears on hover and not on click. And when pointing the mouse by touching the screen it's a click. The tooltip class is sealed so I can't even...
0
2105
by: Jake Montgomery | last post by:
I am using .NET 2.0 forms and running on Windows XP SP2. When I have a tooltip on a combo box, and the combo box is expanded (“dropped down”) using the arrow, it will no longer display it’s tooltip, no matter how long I hover. Even if I move off the control and back it will still not display its tooltip. If I then go to another control that has tootips, then back to the combobox, it will again display its tooltip, until the next time it is...
5
9831
by: =?Utf-8?B?cGV0ZTE5Njk=?= | last post by:
I use Visual Studio 2005 and created a very simple Form with one button. I added a Tooltip for that button. It shows fine the first time I hover over that button. But if I let it disappear by the maximum time it should be displayed, it never shows again over that button. Is that intended? And what can I do to make it show again?
3
2587
omerbutt
by: omerbutt | last post by:
hi there i have downloaded a prototype tooltip from http://www.nickstakenburg.com/projects/prototip/ the logic it uses is to call the script after creating the <div> for example i am using the ajax method <html> <body> <div id='my_div'> </div>
5
2523
omerbutt
by: omerbutt | last post by:
hi there i have a link in my pge and on mouseover i want to show the tooltip by getting the coordinates x and y from the screen where the onmouseover event occoured can any one teell me the way to get the right coordinates in IE and FF my code is not working properly or say it is not a generic code that i could reuse it has the positioning problem so in all my sites where i have to use the tooltip i have to position is manually on that page...
0
9497
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10363
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10169
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7517
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5398
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5534
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4067
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.