Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
205
Focus Rectangle Incomplete if Tree is Bound and BeforeSelect Cancels
posted

Dear all,

I'm currently experiencing one tiny but irksome issue with the WinTree.  If the control is data-bound and its BeforeSelect is handled to cancel selection (I intend to select programmatically after a half-second delay), then the focus rectangle that's displayed around the clicked-upon node is missing its bottom border.  If the node hierarchy is built-up manually, however, then this problem doesn't materialise, and I get a nice, full dotted border around the item.

Obviously, it's a tiny detail, but it does impact upon the tree's appearance, so any help you guys could give me would be greatly appreciated.

Many thanks,

James

 

Parents
No Data
Reply
  • 69832
    Suggested Answer
    Offline posted

    The DrawFocusRect API has some invalidation issues and this sounds like one of them. You probably just have to invalidate the control, i.e., call UltraTree.Refresh after programmatically selecting the node.

Children