When tree has scrolled, and image is clicked the wrong shape is selected.
This is because
TTreeNodeShape.Clicked
calls Tree.Canvas.Calculate2DPosition
which changes the X/Y variables.
Later on TTreeNodeShape.ClickedImage is called with these modified XY pairs, and this one calls Tree.Canvas.Calculate2DPosition once more, resulting in a faulty selection.
(I had to patch this in TeeTree.pas, TTreeNodeShape.Clicked )
TTreeNodeShape.Clicked Bug
-
- Newbie
- Posts: 31
- Joined: Thu Feb 22, 2007 12:00 am
- Location: Nijmegen, Netherlands
- Contact:
-
- Newbie
- Posts: 31
- Joined: Thu Feb 22, 2007 12:00 am
- Location: Nijmegen, Netherlands
- Contact:
Just the way I patched it.
Why didn't you change it in the TeeTree sourcecode? I downloaded it jan 2007, and your message is of 2004 ..
-
- Newbie
- Posts: 31
- Joined: Thu Feb 22, 2007 12:00 am
- Location: Nijmegen, Netherlands
- Contact:
Definitely
Yep. I fixed it (very old code) by making DoDraw virtual and in the overriden routine not call inherited whilst loading nodes from the database.
Your solution is much cleaner - thanks.
Your solution is much cleaner - thanks.
-
- Newbie
- Posts: 31
- Joined: Thu Feb 22, 2007 12:00 am
- Location: Nijmegen, Netherlands
- Contact:
Ignore my last reply
It was meant for the BeginUpdate/Endupdate thread.
So the question remains... Why not fix it NOW (it is a bug, not a new feature)
So the question remains... Why not fix it NOW (it is a bug, not a new feature)
Hans,
I'm sorry, I can't follow anymore...
1) The Begin/End Update solves your question regarding your other post?
2) Is the click issue, solved with the patch as posted on dec 2006, http://www.teechart.net/support/viewtopic.php?t=5260 ?
All patches are entered in the CVS, so they are included in the next update version of teeChart PRO, which is version 7.08
If 1) and/or 2) don't solve your problem, please restate your question, so we can start with a fresh mind
Regards,
Tom.
I'm sorry, I can't follow anymore...
1) The Begin/End Update solves your question regarding your other post?
2) Is the click issue, solved with the patch as posted on dec 2006, http://www.teechart.net/support/viewtopic.php?t=5260 ?
All patches are entered in the CVS, so they are included in the next update version of teeChart PRO, which is version 7.08
If 1) and/or 2) don't solve your problem, please restate your question, so we can start with a fresh mind
Regards,
Tom.
-
- Newbie
- Posts: 31
- Joined: Thu Feb 22, 2007 12:00 am
- Location: Nijmegen, Netherlands
- Contact:
LOL I get it now
While you lost it, I found it!
Just for a moment I assumed CVS-Tree was your next teeTree product, instead of your version control system.
So I wondered why not fix it, which was exactly what you're doing!
Hahahahans