473,322 Members | 1,398 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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 2089
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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.