public static void ShowBalloonTip( string category, string title, string text) { Autodesk.Internal.InfoCenter.ResultItem ri = new Autodesk.Internal.InfoCenter.ResultItem(); ri.Category = category; ri.Title = title; ri.TooltipText = text; // Optional: provide a URL, e.g. a // website containing further information. ri.Uri = new System.Uri( "http://www.yourContextualHelp.de" ); ri.IsFavorite = true; ri.IsNew = true; // You also could add a click event. ri.ResultClicked += new EventHandler< Autodesk.Internal.InfoCenter.ResultClickEventArgs>( ri_ResultClicked ); Autodesk.Windows.ComponentManager .InfoCenterPaletteManager.ShowBalloon( ri ); }
public static void ShowBalloonTip( string category, string title, string text) { Autodesk.Internal.InfoCenter.ResultItem ri = new Autodesk.Internal.InfoCenter.ResultItem(); ri.Category = category; ri.Title = title; ri.TooltipText = text; // Optional: provide a URL, e.g. a // website containing further information. ri.Uri = new System.Uri( "http://www.yourContextualHelp.de"); ri.IsFavorite = true; ri.IsNew = true; // You also could add a click event. ri.ResultClicked += new EventHandler < Autodesk.Internal.InfoCenter.ResultClickEventArgs>( ri_ResultClicked); Autodesk.Windows.ComponentManager .InfoCenterPaletteManager.ShowBalloon(ri); }
public static void Show(string title, string message) { Autodesk.Internal.InfoCenter.ResultItem ri = new Autodesk.Internal.InfoCenter.ResultItem(); ri.Category = title; ri.Title = message; ri.Type = Autodesk.Internal.InfoCenter.ResultType.LocalFile; ri.IsFavorite = true; ri.IsNew = true; Autodesk.Windows.ComponentManager .InfoCenterPaletteManager.ShowBalloon(ri); }