Browse Source

* UIDataGridView:解决水平滚动条在有列冻结时出错的问题

pull/95/head
Sunny 5 years ago
parent
commit
415efadfc7
  1. BIN
      Bin/SunnyUI.dll
  2. BIN
      Bin/SunnyUI.pdb
  3. 2
      SunnyUI/Charts/UIBarChart.cs
  4. 6
      SunnyUI/Charts/UIBarChartEx.cs
  5. 4
      SunnyUI/Controls/UIDataGridView.cs
  6. 2
      SunnyUI/Controls/UIImageListBox.cs
  7. 2
      SunnyUI/Controls/UIListBox.cs

BIN
Bin/SunnyUI.dll

BIN
Bin/SunnyUI.pdb

2
SunnyUI/Charts/UIBarChart.cs

@ -109,7 +109,7 @@ namespace Sunny.UI
float xx = barX + x1 * (i + 1) + x2 * i + x1;
float ww = Math.Min(x2, series.MaxWidth);
xx = xx - ww / 2.0f;
xx -= ww / 2.0f;
if (YAxisStart >= 0)
{

6
SunnyUI/Charts/UIBarChartEx.cs

@ -100,7 +100,7 @@ namespace Sunny.UI
float xx = barX + DrawSize.Width * 1.0f / DataCount / 2;
float ww = Math.Min(x2, series.MaxWidth);
xx = xx - ww / 2.0f;
xx -= ww / 2.0f;
if (YAxisStart >= 0)
{
@ -187,7 +187,7 @@ namespace Sunny.UI
xx = barX + x1 * ((j + 1) * 3 - 1);
float ww = Math.Min(x2, series.MaxWidth);
xx = xx - ww / 2.0f;
xx -= ww / 2.0f;
if (YAxisStart >= 0)
{
@ -442,7 +442,7 @@ namespace Sunny.UI
{
g.DrawLine(ChartStyle.ForeColor, DrawOrigin.X, start, Width - BarOption.Grid.Right, start);
float lineStart = DrawOrigin.X;
// float lineStart = DrawOrigin.X;
// for (int j = 0; j <= BarOption.Series.Count; j++)
// {
// g.DrawLine(ChartStyle.ForeColor, lineStart, start, lineStart, start + BarOption.XAxis.AxisTick.Length);

4
SunnyUI/Controls/UIDataGridView.cs

@ -173,8 +173,8 @@ namespace Sunny.UI
{
HBar.Maximum = HorizontalScrollBar.Maximum;
HBar.Value = HorizontalScrollBar.Value;
HBar.BoundsWidth = HorizontalScrollBar.Bounds.Width;
HBar.LargeChange = HorizontalScrollBar.Maximum / VisibleColumnCount();
HBar.BoundsWidth = HorizontalScrollBar.LargeChange;
HBar.LargeChange = HorizontalScrollBar.LargeChange;//.Maximum / VisibleColumnCount();
HBar.Visible = true;
}
else

2
SunnyUI/Controls/UIImageListBox.cs

@ -402,7 +402,7 @@ namespace Sunny.UI
protected override void OnMeasureItem(MeasureItemEventArgs e)
{
e.ItemHeight = e.ItemHeight + ItemHeight;
e.ItemHeight += ItemHeight;
}
/// <summary>

2
SunnyUI/Controls/UIListBox.cs

@ -569,7 +569,7 @@ namespace Sunny.UI
protected override void OnMeasureItem(MeasureItemEventArgs e)
{
base.OnMeasureItem(e);
e.ItemHeight = e.ItemHeight + ItemHeight;
e.ItemHeight += ItemHeight;
}
public void SelectedFirst()

Loading…
Cancel
Save