mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 13:00:32 +00:00
Inject into the process upon a double-click
A canonical UI paradigm is that when you have a dialog with a list of items as a central element and an "Ok" action, double-clicking the item results in the dialog confirmation. This change adds this behavior to the Capture dialog.
This commit is contained in:
committed by
Baldur Karlsson
parent
c4227e9a61
commit
45d7f14b4d
@@ -647,6 +647,7 @@
|
||||
this.pidList.UseCompatibleStateImageBehavior = false;
|
||||
this.pidList.View = System.Windows.Forms.View.Details;
|
||||
this.pidList.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.pidList_ColumnClick);
|
||||
this.pidList.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.pidList_MouseDoubleClick);
|
||||
this.pidList.Resize += new System.EventHandler(this.pidList_Resize);
|
||||
//
|
||||
// winTitle
|
||||
|
||||
@@ -1245,5 +1245,10 @@ namespace renderdocui.Windows.Dialogs
|
||||
mainTableLayout.MinimumSize = new Size(0, mainTableLayout.ClientRectangle.Height - margin);
|
||||
}
|
||||
}
|
||||
|
||||
private void pidList_MouseDoubleClick(object sender, MouseEventArgs e)
|
||||
{
|
||||
TriggerCapture();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user