Add event bookmarks to the event browser

This commit is contained in:
baldurk
2015-07-07 23:32:48 +02:00
parent a9b5fdbd31
commit 8e37133d69
4 changed files with 236 additions and 35 deletions
@@ -1000,17 +1000,23 @@ namespace TreelistView
Image icon = hoverNode != null && hoverNode == node ? GetHoverNodeBitmap(node) : GetNodeBitmap(node);
if (icon == null &&
(NodesSelection.Contains(node) || FocusedNode == node)
)
{
icon = SelectedImage;
}
Rectangle plusminusRect = glyphRect;
PaintCellBackground(dc, cellRect, node, col);
if (SelectedImage != null && (NodesSelection.Contains(node) || FocusedNode == node))
{
// center the image vertically
glyphRect.Y = cellRect.Y + (cellRect.Height / 2) - (SelectedImage.Height / 2);
glyphRect.X = cellRect.X;
glyphRect.Width = SelectedImage.Width;
glyphRect.Height = SelectedImage.Height;
PaintImage(dc, glyphRect, node, SelectedImage);
cellRect.X += (glyphRect.Width + 2);
cellRect.Width -= (glyphRect.Width + 2);
}
if (icon != null)
{
// center the image vertically