473,765 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_Mous eDown(object sender, MouseEventArgs e)

2) AITreeView_Mous eUp(AITreeView_ MouseDown(objec t sender, MouseEventArgs e)

3) AITreeView_Clic k(AITreeView_Mo useDown(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 11814
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
4649
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 the original page the mouse cursor is a Hour glass shape! my code: I use DIV tag <DIV id ="printThis"> <%
3
10842
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
12040
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, on which mouse cursor is over and how to display the tooltip. Any suggestions? TIA
2
9666
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 to implement these on a mouse over of a picture box. I couldn't find anything looking through previous posts. Any help is greatly appreciated.
3
8770
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 cell instead? Is this even possible? Thanks.
2
2968
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 clientY to display a div at the specified location, the problem happens when the page is scrolled down. any help would be appreciated. here is the code:
7
3611
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
2553
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 toolTip to popup every time the mouse is stationary over the control without the mouse leaving and entering the control again. How can I do that? Even by overriding the ToolTip class?
0
1737
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 tooltip when a mouse is hovered on the Columns correspondingly ...... IS der any event Available for subitem Mouse hover ?? Please Reply ASAP Thanks :)
0
9399
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
10163
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...
1
9957
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9835
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8832
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5276
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...
1
3924
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
3532
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.