473,545 Members | 2,679 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 2108
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
2688
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...
0
2613
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
10651
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...
2
39730
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
3773
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...
0
2083
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...
5
9800
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
2579
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
2515
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...
0
7428
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...
0
7685
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. ...
0
7941
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...
1
7452
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7784
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5354
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...
0
3485
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...
1
1916
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
1
1039
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.