SupSuper 2018-04-15 16:47:50 +01:00
parent a8892d1503
commit 67495fc952

View file

@ -34,6 +34,7 @@ namespace ShareX.HelpersLib
public class MyListView : ListView
{
public delegate void ListViewItemMovedEventHandler(object sender, int oldIndex, int newIndex);
public event ListViewItemMovedEventHandler ItemMoved;
[DefaultValue(false)]
@ -330,5 +331,14 @@ private void DrawInsertionLine(int left, int right, int y)
g.FillPolygon(SystemBrushes.HotTrack, rightTriangle);
}
}
protected override void ScaleControl(SizeF factor, BoundsSpecified specified)
{
base.ScaleControl(factor, specified);
foreach (ColumnHeader column in Columns)
{
column.Width = (int)Math.Round(column.Width * factor.Width);
}
}
}
}