原創|其它|編輯:郝浩|2012-05-14 03:21:44.000|閱讀 4367 次
概述:本文總結了DevExpress ToolTipController如何設置顯示時間長短,如何在屏幕上顯示文中圖片所示的效果,以及如何設置邊框顏色。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
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;