R
ronscottlangham
I am wanting to create my own custom tooltip that I have control
over. Basically, I want to tooltip how soon it comes up and how long
it stays up as long as over the control. I know that in .NET 3.5 they
finally added the TooltipService that allows you this control, but
still using .NET 3.0. On my controls of interest, I was taking over
the MouseEnter and MouseLeave and then attempting to open a Tooltip or
Popup.
StaysOpen is false, and I set the IsOpen=true to show. I have tried
using both Tooltip and Popup controls and have similar problem.
Problem is that when I set the IsOpen=true on the tooltip/popup, that
they take over the mouse capture. My original control gets the
MouseLeave event and the TT/popup gets the MouseEnter. If I move my
mouse over another control, I would like these to close, but since the
TT/popup has taken over mouse capture, then nothing I can do bug re-
click again back on the main window.
I would like to emulate how the current WPF tooltip works, or extend
it if possible. i.e.g it pops up but does not affect the mouse
capture, other controls on the form still get MouseEnter/Leave events.
over. Basically, I want to tooltip how soon it comes up and how long
it stays up as long as over the control. I know that in .NET 3.5 they
finally added the TooltipService that allows you this control, but
still using .NET 3.0. On my controls of interest, I was taking over
the MouseEnter and MouseLeave and then attempting to open a Tooltip or
Popup.
StaysOpen is false, and I set the IsOpen=true to show. I have tried
using both Tooltip and Popup controls and have similar problem.
Problem is that when I set the IsOpen=true on the tooltip/popup, that
they take over the mouse capture. My original control gets the
MouseLeave event and the TT/popup gets the MouseEnter. If I move my
mouse over another control, I would like these to close, but since the
TT/popup has taken over mouse capture, then nothing I can do bug re-
click again back on the main window.
I would like to emulate how the current WPF tooltip works, or extend
it if possible. i.e.g it pops up but does not affect the mouse
capture, other controls on the form still get MouseEnter/Leave events.