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. ZK listbox 两种分页使用及比较

    参考:http://tsinglongwu.iteye.com/blog/849923 以下代码模拟数据量大时情况,采用“<paging>”组件方式 前台Listbox.zul : < ...

  2. Final-阶段站立会议6

    组名:天天向上 组长:王森 组员:张政.张金生.林莉.胡丽娜 代码地址:HTTPS:https://git.coding.net/jx8zjs/llk.git SSH:git@git.coding.n ...

  3. FJNU 1196 汪老司机(DP or 建图+最短路)

    1196: 汪老司机 Time Limit: 1000 MS         Memory Limit: 257792 KB 64-bit interger IO format: %lld       ...

  4. ajax 通用方法,从thinkphp中拔出来的

    <?php /** * 设置页面输出的CONTENT_TYPE和编码 * @access public * @param string $type content_type 类型对应的扩展名 * ...

  5. 简单快速部署samba服务器

    samba是一种在linux环境运行的免费软件,可以为局域网内的不同计算机系统之间提供文件以及打印机等资源的共享服务. samba服务安装和配置: 1.安装gcc编译器以及samba服务和samba依 ...

  6. C#_基本类型

    1.C#中的值类型包括:简单类型.枚举类型和结构类型. 2.C#中的引用类型包括:类(class).接口(interface).数组.委托(delegate).object和string. 3.调试时 ...

  7. windows + python + dlib

    我试了网上的各种教程,结果都是屁话 pip install dlib

  8. 鼠绘漫画 for wp8.1

    技术规格总结: 这个APP 总体上是下载图片的一个APP 所以对图片的查看&控制上需要一定功力,至少有一个稳定的缩小,放大的图片控件. 搭载WP系统的手机,内存上大部分不是很大,所以内存的控制 ...

  9. WP8.1 C#代码 添加/获取Grid.ColumnDefinitions/RowDefinitions

    WP8.1: ColumnDefinitions和RowDefinitions的道理是相同的,语法顺序是一样的,只不过是将ColumnDefinitions换成RowDefinitions而已 获取并 ...

  10. 原生node的header

    首先引入http模块 获取http.ServerResponse对象的方式,1.http.createServer(function(req,res){}) 其中res是http.ServerResp ...