I hesitate to suggest the obvious, but you have deleted the TTreeNode from the
TTreeNodeS colllection, haven't you.
Try covering the treeview with another window by hand, and then exposing it -
does the treeview refresh properly, or is the "deleted" node still there.
Alan Lloyd
alang...@aol.com
alang...@aol.com (AlanGLLoyd) wrote in message news:<20020605140035...@mb-fe.aol.com>...
>Yes, I have deleted the Node, usings items.Delete(GetNodeAt(X,Y)) but
>should I not be able to call Repaint after that and be done with it?
>Do I need an OnDeletion Event Handler? Thanks for your input. (And
>don't hesitate about pointing out the obvious, been playing with
>Delphi less than a week)
>
I must admit that I would have gone with ...
with TreeView1 do
Items.Delete(Selected);
Are you sure that a deletion is actually going on, TreeView1.Items.Count will
give you the number of nodes in the treeview. If they're the same before and
after deletion, then you're not deleting, if they differ, then something very
strange is going on. As soon as I delete a node with the above code it repaints
without the node.
Alan Lloyd
alang...@aol.com
alang...@aol.com (AlanGLLoyd) wrote in message news:<20020606124856...@mb-fe.aol.com>...