Board index » delphi » TreeView and GetNodeAt problem
olenz
Delphi Developer |
TreeView and GetNodeAt problem2004-02-17 05:57:03 AM delphi38 I'm having a small problem with a treeview component. Trying to control how a user expands/compresses nodes - using OnMouseDown event, GetHitTestInfo, and GetNodeAt ... As long as the nodes fit within the TreeView (no scrollbars), everything works fine. But, when a scrollbar is necessary, clicking on the '+' button of one of the RootNodes at the bottom of the TreeView component causes the GetHitTestInfo and GetNodeAt functions to report incorrect values. Instead of reporting that it is "On Button", and the RootNode being opened, it reports it is "On Indent" and returns the value of one of the ChildNodes. It's almost as if the functions are using the MouseUp X,Y positions instead of the MouseDown? I've searched google - no luck. Has anyone else run into this problem? Thanks in advance, Otto |