private void ShowTooltip (Control control)
{
last_control = control;
// Whatever we're displaying right now, we don't want it anymore
tooltip_window.Visible = false;
timer.Stop();
state = TipState.Initial;
if (!is_active)
return;
// ShowAlways controls whether the controls in non-active forms
// can display its tooltips, even if they are not current active control.
//if (!show_always && control.FindForm () != Form.ActiveForm)
// return;
string text = (string)tooltip_strings[control];
if (text != null && text.Length > 0) {
if (active_control == null) {
timer.Interval = Math.Max (initial_delay, 1);
} else {
timer.Interval = Math.Max (re_show_delay, 1);
}
active_control = control;
timer.Start ();
}
}