Browse Source

fixed bug in propertygrid

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@51 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Andrea Paatz 21 years ago
parent
commit
89345c7670
  1. 1
      src/Libraries/ICSharpCode.TextEditor/Project/Src/Gui/TextArea.cs
  2. 13
      src/Main/Base/Project/Src/Gui/Pads/PropertyPad/PropertyPad.cs

1
src/Libraries/ICSharpCode.TextEditor/Project/Src/Gui/TextArea.cs

@ -123,7 +123,6 @@ namespace ICSharpCode.TextEditor @@ -123,7 +123,6 @@ namespace ICSharpCode.TextEditor
if (virtualTop != newVirtualTop) {
virtualTop = newVirtualTop;
motherTextAreaControl.VScrollBar.Value = virtualTop.Y;
Invalidate();
}
}

13
src/Main/Base/Project/Src/Gui/Pads/PropertyPad/PropertyPad.cs

@ -124,6 +124,12 @@ namespace ICSharpCode.SharpDevelop.Gui @@ -124,6 +124,12 @@ namespace ICSharpCode.SharpDevelop.Gui
grid = new PropertyGrid();
grid.PropertySort = PropertyService.Get("FormsDesigner.DesignerOptions.PropertyGridSortAlphabetical", false) ? PropertySort.Alphabetical : PropertySort.CategorizedAlphabetical;
grid.Dock = DockStyle.Fill;
comboBox = new ComboBox();
comboBox.Dock = DockStyle.Top;
comboBox.DropDownStyle = ComboBoxStyle.DropDownList;
comboBox.DrawMode = DrawMode.OwnerDrawFixed;
comboBox.Sorted = true;
}
@ -132,15 +138,10 @@ namespace ICSharpCode.SharpDevelop.Gui @@ -132,15 +138,10 @@ namespace ICSharpCode.SharpDevelop.Gui
instance = this;
panel = new Panel();
comboBox = new ComboBox();
comboBox.Dock = DockStyle.Top;
comboBox.DropDownStyle = ComboBoxStyle.DropDownList;
comboBox.DrawMode = DrawMode.OwnerDrawFixed;
comboBox.DrawItem += new DrawItemEventHandler(ComboBoxDrawItem);
comboBox.MeasureItem += new MeasureItemEventHandler(ComboBoxMeasureItem);
comboBox.SelectedIndexChanged += new EventHandler(ComboBoxSelectedIndexChanged);
comboBox.Sorted = true;
panel.Controls.Add(grid);
panel.Controls.Add(comboBox);

Loading…
Cancel
Save