473,471 Members | 1,716 Online
Bytes | Software Development & Data Engineering Community
Create 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 2093
Hi,

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

Ken
-----------------
"Dennis" <De****@discussions.microsoft.com> wrote in message
news:B4**********************************@microsof t.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
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...
0
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) {...
0
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)...
2
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...
4
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...
0
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...
5
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...
3
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...
5
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
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.