Browse Source

Fixed SD2-757: Collapsing debugger tooltip

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.0@1351 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 20 years ago
parent
commit
a9113721a7
  1. 1
      src/AddIns/Misc/Debugger/Debugger.AddIn/Project/Src/Service/DynamicTreeDebuggerRow.cs
  2. 20
      src/Main/Base/Project/Src/Gui/TreeGrid/DynamicTreeRow.cs

1
src/AddIns/Misc/Debugger/Debugger.AddIn/Project/Src/Service/DynamicTreeDebuggerRow.cs

@ -217,6 +217,7 @@ namespace ICSharpCode.SharpDevelop.Services @@ -217,6 +217,7 @@ namespace ICSharpCode.SharpDevelop.Services
DynamicTreeRow MakeSubMenu(string name, params IEnumerable<DynamicListRow>[] elements)
{
DynamicTreeRow rootRow = new DynamicTreeRow();
rootRow.ShowMinusWhileExpanded = true;
DebuggerGridControl.AddColumns(rootRow.ChildColumns);
rootRow[2].Text = name;
foreach(IEnumerable<DynamicListRow> rows in elements) {

20
src/Main/Base/Project/Src/Gui/TreeGrid/DynamicTreeRow.cs

@ -193,15 +193,32 @@ namespace ICSharpCode.SharpDevelop.Gui.TreeGrid @@ -193,15 +193,32 @@ namespace ICSharpCode.SharpDevelop.Gui.TreeGrid
#region Child form
static bool isOpeningChild;
/// <summary>
/// Block the next click event - used to ensure that a click on the "-" sign
/// does not cause the submenu to open again when the "-" sign becomes a "+" sign
/// before the click event is handled.
/// </summary>
bool blockClickEvent;
protected virtual void OnPlusClick(object sender, DynamicListEventArgs e)
{
if (blockClickEvent) { blockClickEvent = false; return; }
OnExpanding(e);
ChildForm frm = new ChildForm();
frm.Closed += delegate {
blockClickEvent = true;
if (expandedIn != null)
expandedIn.Remove(e.List);
OnCollapsed(e);
plus.RaiseItemChanged();
Timer timer = new Timer();
timer.Interval = 85;
timer.Tick += delegate(object sender2, EventArgs e2) {
((Timer)sender2).Stop();
((Timer)sender2).Dispose();
blockClickEvent = false;
};
timer.Start();
};
Point p = e.List.PointToScreen(e.List.GetPositionFromRow(this));
p.Offset(e.List.Columns[0].Width, Height);
@ -292,6 +309,9 @@ namespace ICSharpCode.SharpDevelop.Gui.TreeGrid @@ -292,6 +309,9 @@ namespace ICSharpCode.SharpDevelop.Gui.TreeGrid
bool showWindowWithoutActivation;
/// <summary>
/// Gets/Sets whether the window will receive focus when it is shown.
/// </summary>
public bool ShowWindowWithoutActivation {
get {
return showWindowWithoutActivation;

Loading…
Cancel
Save