private DevExpress.Utils.ToolTipController toolTipController1;
private DevExpress.Utils.ToolTipController toolTipController2;
private ToolTipControllerShowEventArgs args;

/// add by Tony 2016/4/5
this.toolTipController1 = new DevExpress.Utils.ToolTipController();
this.toolTipController1.AllowHtmlText = true;
this.toolTipController1.AutoPopDelay = 50000;
this.toolTipController1.CloseOnClick = DevExpress.Utils.DefaultBoolean.True;
this.toolTipController1.ShowBeak = true;
this.toolTipController1.ToolTipLocation = DevExpress.Utils.ToolTipLocation.RightCenter;
this.toolTipController1.ToolTipStyle = DevExpress.Utils.ToolTipStyle.Windows7;
this.toolTipController1.ToolTipType = DevExpress.Utils.ToolTipType.SuperTip;
/// add by Tony 2016/4/6
this.toolTipController2 = new DevExpress.Utils.ToolTipController();
this.toolTipController2.AllowHtmlText = true;
this.toolTipController2.AutoPopDelay = 50000;
this.toolTipController2.CloseOnClick = DevExpress.Utils.DefaultBoolean.True;
this.toolTipController2.ShowBeak = true;
this.toolTipController2.ToolTipLocation = DevExpress.Utils.ToolTipLocation.RightCenter;
this.toolTipController2.ToolTipStyle = DevExpress.Utils.ToolTipStyle.Windows7;
this.toolTipController2.ToolTipType = DevExpress.Utils.ToolTipType.SuperTip;

private void Gantt_OnTimeItemAreaMouseMove(object sender, MouseEventArgs e)
{
if (args == null)
{

args = CreateShowArgs(sbuText.ToString());
// 显示ToolTip 这里不可以用控件的坐标.要用屏幕的坐标Control.MousePosition
toolTipController2.ShowHint(args, System.Windows.Forms.Control.MousePosition);
}
}

public void Gantt_OnTimeItem_Hoover(Gantt aGantt, TimeItemEventArgs e)
{
if (e.TimeItem == null)
{
toolTipController1.HideHint();
args = null;
return;
}

if (sbuText.Length > 0)
{
// 获取显示ToolTip事件实例
args = CreateShowArgs(sbuText.ToString());
// 显示ToolTip 这里不可以用控件的坐标.要用屏幕的坐标Control.MousePosition
toolTipController1.ShowHint(args, System.Windows.Forms.Control.MousePosition);
}
sbuText.Length = 0;
}

ToolTipController 事件触发显示时 避免闪烁的处理方法的更多相关文章

  1. ECharts图表tooltip显示时超出canvas图层解决方法

    我们在做ECharts图表的时候可能会遇到tooltip显示时超出了canvas图层范围,并且被其它z-index较高的div容器遮盖,这是悬浮展示信息就看不全,我们根据官网文档的配置项查询发现con ...

  2. Android Fragment 隐藏或显示时调用的生命周期方法

    Fragment使用方式大体分两种: 大家要注意不同的Fragment使用方法,Fragment隐藏和显示调用的生命周期方法是不同的,以下是Fragment显示隐藏调用的方法: //判断是否展示—与V ...

  3. UIView显示时遮挡导航栏的方法

    [self.navigationController.view:addSubview];

  4. 移动端click事件无反应或反应慢 touchend事件页面滑动时频繁触发

    H5页面的点击事件click 无论在浏览器 iframe还是小程序里面 都会出现点击无反应或者反应慢的情况出现 所以决定用touchend事件来代替click 但是touchend事件触发比较灵敏 在 ...

  5. ListView用法及加载数据时的闪烁问题和加载数据过慢问题

    ListView介绍及添加数据时的闪烁问题 1.     ListView类 1.1 ListView常用的基本属性: (1)FullRowSelect:设置是否行选择模式.(默认为false) 提示 ...

  6. JS基础知识:Javascript事件触发列表

    Javascript是一种由Netscape的LiveScript发展而来的原型化继承的基于对象的动态类型的区分大小写的客户端脚本语言,主要目的是为了解决服务器端语言. JavaScript使我们有能 ...

  7. 各种 on事件触发js代码

    [转]各种 on事件触发js代码 1.onmouseenter:当鼠标进入选区执行代码 <div style="background-color:red" onmouseen ...

  8. Javascript事件触发顺序

    html标签是有子和父的,这个时候就出现了事件触发顺序的问题,比如: <!DOCTYPE html> <html> <head> <style> .fi ...

  9. go语言使用go-sciter创建桌面应用(八) 窗口显示时,自动加载后端数据。

    有些时候我们需要在窗口创建并显示时,加载一些后端的配置,这就需要用到view提供的几个事件. https://sciter.com/docs/content/sciter/View.htm state ...

随机推荐

  1. XmlUtils.java

    package com.vcredit.framework.utils; import java.io.Writer; import org.apache.commons.lang3.StringUt ...

  2. 学习笔记_springmvc返回值、数据写到页面、表单提交、ajax、重定向

    数据写到页面 后台往前台传数据 TestController添加 /** * 方法的返回值采用ModelAndView, new ModelAndView("index", map ...

  3. soui中subscribeEvent订阅控件消息与宏订阅注意事项

    同一个控件,subscribeEvent与宏定义不能同时响应,优先响应sub 所以,同一个控件的同一个消息,要想在多个地方响应,就必须sub方式订阅

  4. 时间js转换方法Date("149...") 转成 2016-7-12 21:23:34 009

     function timeFormatter(value) {     var da = new Date(parseInt(value.replace("/Date(", &q ...

  5. notepad++快捷键大全

    Ctrl+C 复制 Ctrl+X 剪切 Ctrl+V 粘贴 Ctrl+Z 撤消 Ctrl+Y 恢复 Ctrl+A 全选 Ctrl+F 键查找对话框启动 Ctrl+H 查找/替换对话框 Ctrl+D 复 ...

  6. sql执行

    一.提高sql执行效率---in与exist . where column in (select * from table where ...) . ...where exists (select ' ...

  7. 使用Webview实现app启动引导页

    效果如下: 首先需要一个html页面及相应的js和css支持放在assets目录下(如果没有这个目录请项目上右键-new-folder-assets) 配置权限: <uses-permissio ...

  8. QList

    #include <QCoreApplication> #include<QList> #include<QDebug> int main(int argc, ch ...

  9. oracle 解锁

    解决方法如下: 1:查V$DB_OBJECT_CACHE SELECT * FROM V$DB_OBJECT_CACHE WHERE name='CRM_LASTCHGINFO_DAY' AND LO ...

  10. Windbg调试命令详解

    作者:张佩][原文:http://www.yiiyee.cn/Blog] 1. 概述 用户成功安装微软Windows调试工具集后,能够在安装目录下发现四个调试器程序,分别是:cdb.exe.ntsd. ...