/// <summary> /// Called when the user tries to view the details view of this item. We can /// create an activex control which shows the details view content, or use the /// details view helper. If we dont want to show the details view return true. /// </summary> /// <param name="title">title for the details view</param> /// <param name="flags">flags specifying the features to include in the details view</param> /// <param name="detailsControl">store the details view activex control here</param> /// <returns>true if details view should be cancelled, false if not</returns> public new bool OnDetailsView(out string title, out GoogleDesktopDisplayDetailsViewFlags flags, out object detailsControl) { // Here we can create any ActiveX control for displaying the details, and // return it via the detailsControl parameter. We choose the // 'GoogleDesktopDisplayDetailsViewHelper' control that will give us a // UI that's inline with how the sidebar looks. GoogleDesktopDisplayDetailsViewHelperClass details = new GoogleDesktopDisplayDetailsViewHelperClass(); // set the details control's content from our own data String text = "Some sample text\r\n\r\nwithout formatting\r\nhttp://www.google.com"; details.SetContent(source, time_created, text, false, layout); detailsControl = details; title = heading; flags = GoogleDesktopDisplayDetailsViewFlags.GDD_DETAILS_VIEW_FLAG_TOOLBAR_OPEN | GoogleDesktopDisplayDetailsViewFlags.GDD_DETAILS_VIEW_FLAG_NEGATIVE_FEEDBACK; return(false); // return false to show details view, true to cancel it. }
/// <summary> /// Called when the user tries to view the details view of this item. We can /// create an activex control which shows the details view content, or use the /// details view helper. If we dont want to show the details view return true. /// </summary> /// <param name="title">title for the details view</param> /// <param name="flags">flags specifying the features to include in the details view</param> /// <param name="detailsControl">store the details view activex control here</param> /// <returns>true if details view should be cancelled, false if not</returns> public new bool OnDetailsView(out string title, out GoogleDesktopDisplayDetailsViewFlags flags, out object detailsControl) { // Here we can create any ActiveX control for displaying the details, and // return it via the detailsControl parameter. We choose the // 'GoogleDesktopDisplayDetailsViewHelper' control that will give us a // UI that's inline with how the sidebar looks. GoogleDesktopDisplayDetailsViewHelperClass details = new GoogleDesktopDisplayDetailsViewHelperClass(); // set the details control's content from our own data String text = "Some sample text\r\n\r\nwithout formatting\r\nhttp://www.google.com"; details.SetContent(source, time_created, text, false, layout); detailsControl = details; title = heading; flags = GoogleDesktopDisplayDetailsViewFlags.GDD_DETAILS_VIEW_FLAG_TOOLBAR_OPEN | GoogleDesktopDisplayDetailsViewFlags.GDD_DETAILS_VIEW_FLAG_NEGATIVE_FEEDBACK; return false; // return false to show details view, true to cancel it. }