Custom TreeView & TreeNodes
Er det mulig at lave et custom TreeView, der for hver node indeholde noget text, samt en tabel uden at man skal tegne det hele selv??Har prøvet lidt med:
public TreeViewTable(int top, int left, int width, int height)
: base()
{
...
base.DrawMode = TreeViewDrawMode.OwnerDrawText;
base.DrawNode += new DrawTreeNodeEventHandler(test);
}
protected void test(object sender, DrawTreeNodeEventArgs e)
{
e.Graphics.DrawRectangle(new Pen(Color.Red), e.Bounds.X, e.Bounds.Y, 400, 300);
}
Men her overlapper rekanglerne, kan man ændre disse???