B
Ben
Hello,
I've been trying to implement a custom OwnerDraw ToolTip that will
display when the mouse is hovering over a TreeNode. So far I have the
ToolTip coming up and drawing properly through my custom ToolTip.Draw
Handler, but only a small part of the ToolTip is displayed. This
appears to be because the ToolTip.Popup Handler that I have created to
set the correct Bounds is never executed.
My implementation currently works like this:
(MyToolTip is a class that inherits from the ToolTip class and adds a
couple of data fields.)
1.) TreeView.NodeMouseHover Event is raised. The handler assigns the
Tag information from the Node that is hovered over to the MyToolTip
instance.
2.) MyToolTip.Show is called by the NodeMouseHover Event Handler.
3.) MyToolTip.Draw event draws the custom ToolTip based on the data
that has been assigned to MyToolTip from the Node's Tag field.
According to the documention that comes with the .NET Framework 2.0
SDK, and MSDN, the ToolTip.Popup Event is supposed to be raised after
calling ToolTip.Show. This is not happening so I'm stuck with a broken
ToolTip and wondering why.
If anyone has information that can help me resolve this issue, I would
be very grateful.
Thanks,
Ben
I've been trying to implement a custom OwnerDraw ToolTip that will
display when the mouse is hovering over a TreeNode. So far I have the
ToolTip coming up and drawing properly through my custom ToolTip.Draw
Handler, but only a small part of the ToolTip is displayed. This
appears to be because the ToolTip.Popup Handler that I have created to
set the correct Bounds is never executed.
My implementation currently works like this:
(MyToolTip is a class that inherits from the ToolTip class and adds a
couple of data fields.)
1.) TreeView.NodeMouseHover Event is raised. The handler assigns the
Tag information from the Node that is hovered over to the MyToolTip
instance.
2.) MyToolTip.Show is called by the NodeMouseHover Event Handler.
3.) MyToolTip.Draw event draws the custom ToolTip based on the data
that has been assigned to MyToolTip from the Node's Tag field.
According to the documention that comes with the .NET Framework 2.0
SDK, and MSDN, the ToolTip.Popup Event is supposed to be raised after
calling ToolTip.Show. This is not happening so I'm stuck with a broken
ToolTip and wondering why.
If anyone has information that can help me resolve this issue, I would
be very grateful.
Thanks,
Ben