DevExpress控件使用交流,DevExpress中国社区Dev联系电话 联系电话:023-68661681

DevExpress ToolTipController 如何设置显示时间和边框颜色

来源:本站原创   发布时间:2012-05-14   浏览:4293次

效果图如下:

DevExpress ToolTipController 如何设置显示时间和边框颜色

1、如何设置显示的时间长短

设置this.toolTipController1.AutoPopDelay = 2000;

2、如何在屏幕上显示如上图所示的效果

ToolTipControllerShowEventArgs args = this.toolTipController1.CreateShowArgs(); 

this.toolTipController1.SetToolTip(this.sbtnYes, "请选择一条记录!");

this.toolTipController1.SetTitle(this.sbtnYes, "提示");

this.toolTipController1.SetToolTipIconType(this.sbtnYes, DevExpress.Utils.ToolTipIconType.Exclamation);

this.toolTipController1.ShowBeak = true;

this.toolTipController1.ShowShadow = true;

this.toolTipController1.Rounded = true;

this.toolTipController1.ShowHint("请选择一条记录!", "提示");             

args.ToolTip = "请选择一条记录!";

args.Title = "提示";  

3、如何设置边框的颜色

this.toolTipController1.Appearance.BorderColor = Color.Red;

本站文章除注明转载外,均为本站原创或翻译
欢迎任何形式的转载,但请务必注明出处,尊重他人劳动成果
转载请注明:文章转载自:DevExpress控件中文网 [https://www.devexpresscn.com/]
本文地址:https://www.devexpresscn.com/post/191.html
在线
客服
微信
QQ 电话
023-68661681
返回
顶部