ToolTipController 事件触发显示时 避免闪烁的处理方法
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 事件触发显示时 避免闪烁的处理方法的更多相关文章
- ECharts图表tooltip显示时超出canvas图层解决方法
我们在做ECharts图表的时候可能会遇到tooltip显示时超出了canvas图层范围,并且被其它z-index较高的div容器遮盖,这是悬浮展示信息就看不全,我们根据官网文档的配置项查询发现con ...
- Android Fragment 隐藏或显示时调用的生命周期方法
Fragment使用方式大体分两种: 大家要注意不同的Fragment使用方法,Fragment隐藏和显示调用的生命周期方法是不同的,以下是Fragment显示隐藏调用的方法: //判断是否展示—与V ...
- UIView显示时遮挡导航栏的方法
[self.navigationController.view:addSubview];
- 移动端click事件无反应或反应慢 touchend事件页面滑动时频繁触发
H5页面的点击事件click 无论在浏览器 iframe还是小程序里面 都会出现点击无反应或者反应慢的情况出现 所以决定用touchend事件来代替click 但是touchend事件触发比较灵敏 在 ...
- ListView用法及加载数据时的闪烁问题和加载数据过慢问题
ListView介绍及添加数据时的闪烁问题 1. ListView类 1.1 ListView常用的基本属性: (1)FullRowSelect:设置是否行选择模式.(默认为false) 提示 ...
- JS基础知识:Javascript事件触发列表
Javascript是一种由Netscape的LiveScript发展而来的原型化继承的基于对象的动态类型的区分大小写的客户端脚本语言,主要目的是为了解决服务器端语言. JavaScript使我们有能 ...
- 各种 on事件触发js代码
[转]各种 on事件触发js代码 1.onmouseenter:当鼠标进入选区执行代码 <div style="background-color:red" onmouseen ...
- Javascript事件触发顺序
html标签是有子和父的,这个时候就出现了事件触发顺序的问题,比如: <!DOCTYPE html> <html> <head> <style> .fi ...
- go语言使用go-sciter创建桌面应用(八) 窗口显示时,自动加载后端数据。
有些时候我们需要在窗口创建并显示时,加载一些后端的配置,这就需要用到view提供的几个事件. https://sciter.com/docs/content/sciter/View.htm state ...
随机推荐
- 只具备内网的服务器通过yum安装软件
1.在维护过程中,需要统一安装一些软件,可能有的机器只具有内网,有的机器具备外网,可以直接从yum安装,怎么办呢?答:在具备外网的机器上启用yum缓存,这样安装软件的时候本地也缓存了软件安装包,怎样修 ...
- Django 视图与网址进阶
一 .在网页上做加减法 1. 采用 /add/?a=4&b=5 这样GET方法进行 1 2 3 django-admin.py startproject zqxt_views cd zqxt_ ...
- centos 安装 opencv-3.1.0
官方安装教程 http://docs.opencv.org/3.1.0/d9/d52/tutorial_java_dev_intro.html#gsc.tab=0 注意要先安装jdk和apache a ...
- User interface
Styles and Themes value/style <style name="CodeFont" parent="@android:style/TextAp ...
- 动态设置AndroidManifest.xml文件中的meta-data
当debug和release版本使用不同的值时,使用Gradle设置相应的值. Android主配置文件 <meta-data android:name="com.amap.api.v ...
- NDK中可靠的获取JNIEnv*的方法
使用NDK时,几乎任何方法都需要一个JNIEnv来调用.这个类是和线程相关的,如何可靠的获取它? 首先,作为NDK的so,必然有一个地方是由android系统调用的,这个调用将带来一个JNIEnv参数 ...
- Thinking in Java——笔记(17)
Containers in Depth Full container taxonomy You can usually ignore any class that begins with " ...
- LoadRunner - 001
lr_eval_string():函数的主要作用:返回脚本中的一个参数当前的值,返回值类型:char一般多用在调试脚本时输出参数的值.具体用法如下:lr_output_message("Th ...
- linux下安装svn server
1. yum install subversion 2. mkdir -p /home/svn/svnfile 3. svnadmin create /home/svn/svnfile 4. 进入co ...
- Mac mySql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)的解决办法
我的环境:Mac 10.11.6 ,mysql 5.7.14 . mac mySql 报错ERROR 2002 (HY000): Can't connect to local MySQL serv ...