473,403 Members | 2,222 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,403 software developers and data experts.

Mouse Over ToolTip in a tree view

My goal is to accomplish the tooltip functionality for all the neodes in a
tree view and i have the following three Events in my C# application.

Name of my TreeView Control (AITreeView)

1) AITreeView_MouseDown(object sender, MouseEventArgs e)

2) AITreeView_MouseUp(AITreeView_MouseDown(object sender, MouseEventArgs e)

3) AITreeView_Click(AITreeView_MouseDown(object sender, MouseEventArgs e)

With this i am able to accomplish the goal and the tooltip gets displayed
for each node.
Bu the problem that i am running into is when i put the mouse on a
particular node it keeps flickering (ToolTip gets displayed) and when i move
the mouse to the next node in the tree the previous node gets disapeared. It
appears back again when i move the mouse out of the tree view node list.

I can't attach the Screen shot for the problem and I am unable to debug this
too, because if i put a break point in one of these events it always goes in
a recursive mode.

Dec 15 '05 #1
5 11789
Why not just use the standard tooltip functionality and have its
message changed dynamically depending on which node is currently
selected?
Thats how I normally do it and seems to work fine, no flickering or
anything.

Steven Nagy

Dec 15 '05 #2

I am using the standard tooltip functionality which comes in built in
VS.NET, inspite of this we are getting this problem.
"Steven Nagy" wrote:
Why not just use the standard tooltip functionality and have its
message changed dynamically depending on which node is currently
selected?
Thats how I normally do it and seems to work fine, no flickering or
anything.

Steven Nagy

Dec 15 '05 #3
I don't understand why you are worrying about mousedown and up and
click events.
Do you want the tooltip shown as per the normal mouse over for a couple
seconds, or you want it to be shown when the user actually clicks on
the node?

You could use GetChildAtPoint to continually retreive which node the
mouse is over, and change the tooltip text immediately. Then if the
user holds the mouse still and the tooltip shows, it has already been
updated with the correct text for this node.

Dec 16 '05 #4
Let me give you more background..
There is a configuration file which consists of list of servers on which web
services are exposed and the application reads through that configuration
file and pings all the servers and reads through the wsdl file and identifies
all the web services and web methods. Once this is accomplished it bind all
the information into the tree view as a hierarchical view.

I use GetChildAtPoint to continually retreive which node the mouse is over,
and change the tooltip text immediately. It displays the Tooltip text as per
the requirement but for some reasons it constantly flickers and as i move
over the mouse (either up or down) to the next node in the tree the previous
node gets disapeared. It appears back again when i move the mouse out of the
tree view node list.

One more important behaviour which i have observed, the same code works fine
in Visual Studio 2003 but when i migrate that to Visual Studio 2005 it has
this flickering problem. I guess it might be some bug (??) in VS 2005.

"Steven Nagy" wrote:
I don't understand why you are worrying about mousedown and up and
click events.
Do you want the tooltip shown as per the normal mouse over for a couple
seconds, or you want it to be shown when the user actually clicks on
the node?

You could use GetChildAtPoint to continually retreive which node the
mouse is over, and change the tooltip text immediately. Then if the
user holds the mouse still and the tooltip shows, it has already been
updated with the correct text for this node.

Dec 16 '05 #5
Ah ok. I haven't migrated to 2005 yet so I can not recreate your
problem sorry.
Maybe someone else here can help you out.

Dec 16 '05 #6

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

Similar topics

2
by: Jawahar Rajan | last post by:
All, I have a printer friendly page that is opened when a user clicks a link on my page to get the printer friendly version, How ever when they close out the printer friendly version and return to...
3
by: | last post by:
How can I get the mouse coordinates in Mozilla? I try x = event.pageX but it does not work... basically I try alert(event) and it does not work. Where is the problem? the full code...
5
by: Nikolay Petrov | last post by:
I have a ListBox, which is binded to a DataTable. I would like to display a tooltip when the mouse cursor hovers over the items in the ListBox. I don't know how to find the index if ListBox item,...
2
by: cody | last post by:
What are the yellowish popups that appear when you mouse over certain objects. An example are the descriptions that appear in VS2005 when hover your mouse over controls in the toolbox. I'd like...
3
by: Eric Layman | last post by:
Hi everyone. An image allows alt attribute. When mouse over images with alt attribute, a small yellow popup would appear besides the mouse cursor. How to replicate this behaviour using a table...
2
by: hini | last post by:
Hi all, I use IE, and I am trying to display a tooltip using javascript. the problem is that the tooltip is not apearing where I want it to be. I am getting the mouse location using clientX and...
7
exoskeleton
by: exoskeleton | last post by:
hi guys..hope you can help me...my boss want me to edit our website and apply the tooltip thing, i mean the moving tooltip that follows the mouse.. please help...thank you... :(
7
by: =?Utf-8?B?U2hhcm9u?= | last post by:
Hello, I'm using the ToolTip control, but I want it to behave a bit different. I want the toolTip to popup not only once when the control is enter and the mouse is stationary. I want the...
0
by: tezu | last post by:
Hi all, Im currently having a list view with two columns Key and Value .Key column contains Items and the VAlue contains the subitems.... I want to dispaly the value of each item n subitem in a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
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,...
0
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...

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.