R
Richard
I'm trying to mimic how the TreeView shows a full text inplace tooltip
when the mouse hovers over of TreeView node whose text is truncated
due to skinny form or panel.
In the IDE I have
Text1.text is 'A rather longish bit of text, may a really long
pathname or something similar';
ToolTip1.OwnerDraw is True (this causes ToolTip1_Draw() to run)
I was hoping this would work...
private void toolTip1_Draw(object sender, DrawToolTipEventArgs
e)
{
ToolTip1.Show(e.ToolTipText, e.AssociatedWindow,
0,0,5000);
}
But it throws Win32Exception .. Error creating window handle.
Can anyone recommend some quick and dirty code for doing inplace
tooltips ?
when the mouse hovers over of TreeView node whose text is truncated
due to skinny form or panel.
In the IDE I have
Text1.text is 'A rather longish bit of text, may a really long
pathname or something similar';
ToolTip1.OwnerDraw is True (this causes ToolTip1_Draw() to run)
I was hoping this would work...
private void toolTip1_Draw(object sender, DrawToolTipEventArgs
e)
{
ToolTip1.Show(e.ToolTipText, e.AssociatedWindow,
0,0,5000);
}
But it throws Win32Exception .. Error creating window handle.
Can anyone recommend some quick and dirty code for doing inplace
tooltips ?