Needed Feature for ResultViewItem
Brought to you by:
imjimmurphy,
kachalkov
I have run smack into a problem that has two parts to it.
Part 1: The ResultViewItems have no DoubleClick event
that can be accessed.
Part 2: Double-Clicking on a ResultViewItem causes the
propertypage of the Parent to be displayed
I have two requests that would fix this. First and most
important is to add an Event for DoubleClick that an
event handler could be tied to. Second add code so that
the default behavior for DoubleClicking involves
displaying the propertypage of the ResultViewItem itself
instead of its parent.
Logged In: YES
user_id=932282
I added the following in ReportNode.cs hope this fixes your
problem
/// <summary>
/// Uses MMCLib resources to see if there is a ResultItem
selected, if so it creates
/// it's propertypages It does nothing for scopenodes for
now. The doubleclick event
/// is only send by the mmc when something in the
resultview is double clicked when
/// a reportnode is doubleclicked anywhere you want it to
open and not show it's
/// propertypages.
/// </summary>
/// <returns></returns>
public override bool OnDblClick()
{
if(this.GetCurrentSelected().Length > 0)
{
CreatePropertyPagesForItems(null, IntPtr.Zero);
System.Diagnostics.Debug.WriteLine("Override
OnDblClick() in ReportNode while ResultItem selected");
}
else
{
System.Diagnostics.Debug.WriteLine("Override
OnDblClick() in ReportNode while ScopeNode selected");
}
return base.OnDblClick ();
}