GanttTimelineTaskToolTipShowingEventArgs.SuperTip Property
Gets or sets a super tooltip for a task displayed on the timeline.
Namespace: DevExpress.XtraGantt
Assembly: DevExpress.XtraGantt.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
SuperToolTip | The super tooltip. |
Remarks
The following example demonstrates how to display a super tooltip for tasks displayed on the timeline:
using System.Diagnostics;
using DevExpress.Utils;
using DevExpress.XtraGantt;
public Form1() {
// ...
ganttControl1.TimelineTaskToolTipShowing += GanttControl1_TimelineTaskToolTipShowing;
// Specifies a Tooltip controller.
ganttControl1.ToolTipController = toolTipController1;
toolTipController1.HyperlinkClick += ToolTipController1_HyperlinkClick;
}
private void GanttControl1_TimelineTaskToolTipShowing(object sender, GanttTimelineTaskToolTipShowingEventArgs e) {
SuperToolTip supertooltip = new SuperToolTip() { AllowHtmlText = DefaultBoolean.True };
supertooltip.Items.AddTitle(e.Node["Name"].ToString());
supertooltip.Items.Add(string.Format("{0:d} - {1:d}<br>{2}", e.Node["StartDate"], e.Node["EndDate"], e.Node["Description"]));
supertooltip.Items.AddSeparator();
supertooltip.Items.Add("<a href='https://docs.devexpress.com/WindowsForms/2398/common-features/tooltips'>Documentation</a>");
e.SuperTip = supertooltip;
}
private void ToolTipController1_HyperlinkClick(object sender, HyperlinkClickEventArgs e) {
Process process = new Process();
process.StartInfo.FileName = (e.Link);
process.StartInfo.Verb = "open";
process.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
try {
process.Start();
} catch { }
}
See Also