public static void ShowBalloon(string toolTip, Control control, ToolTipLocation toolTipLocation, int duration) { BalloonToolTip tip = new BalloonToolTip(); tip.Show(toolTip, control, toolTipLocation, duration); }
public static void ShowTip(this Control ctl, string content, ToolTipLocation tipLocation = ToolTipLocation.BottomCenter, ToolTipType toolTipType = ToolTipType.Standard, int showTime = 2000, bool isAutoHide = true, ToolTipIconType tipIconType = ToolTipIconType.Application, ImageList imgList = null, int imgIndex = 0) { try { var myToolTipClt = new ToolTipController(); ToolTipControllerShowEventArgs args = myToolTipClt.CreateShowArgs(); myToolTipClt.ImageList = imgList; myToolTipClt.ImageIndex = (imgList == null ? 0 : imgIndex); args.AutoHide = isAutoHide; myToolTipClt.Appearance.BackColor = Color.FromArgb(254, 254, 254); myToolTipClt.ShowBeak = true; myToolTipClt.AllowHtmlText = true; myToolTipClt.ShowShadow = true; myToolTipClt.Rounded = true; myToolTipClt.AutoPopDelay = (showTime == 0 ? 2000 : showTime); myToolTipClt.SetToolTip(ctl, content); myToolTipClt.SetToolTipIconType(ctl, tipIconType); myToolTipClt.Active = true; myToolTipClt.ToolTipType = toolTipType; myToolTipClt.HideHint(); myToolTipClt.ShowHint(content, null, ctl, tipLocation); } catch (Exception ex) { LogUtil.WriteException(ex); } }
protected virtual void MyShowHint(Point position, ToolTipLocation location) { if (GridControl == null) { return; } ToolTipControllerShowEventArgs tool = GridControl.ToolTipController.CreateShowArgs(); tool.ToolTip = GetToolTipText(); tool.SelectedObject = this; tool.SelectedControl = GridControl; tool.AutoHide = false; tool.ToolTipLocation = location; GridControl.ToolTipController.ShowHint(tool, position); }
private void Show(string toolTip, Control control, ToolTipLocation toolTipLocation, int duration) { f_ToolTipControler.AutoPopDelay = 2000; f_ToolTipControler.ShowHint(toolTip, control, toolTipLocation); }
public static void ShowBallonTip(Control control, string text, ToolTipLocation toolTipLocation = ToolTipLocation.TopRight, int duration = 3000) { BalloonToolTip.ShowBalloon(text, control, toolTipLocation, duration); }