Page 1 of 2
Unwanted drag of shape when it is on the edges of the TTree
Posted: Fri Dec 07, 2007 11:11 am
by 9336073
Hi,
I am facing a very annoying problem with TTree.
I am using Delphi6 with TTree 2.
Whenever any shape is present on the edges of the TeeTree, then clicking on the shape drags the shape unnecessarily.
This also happens in your Demo applications.
Please let me know how to avoid that...
By the way, I do not want to disable the normal dragging of the shapes.
Please help me as I am stuck due to this.
Thanks in advance.
Regards,
Ashu
Is any one at Steema even looking at the Support Posts?
Posted: Mon Jan 14, 2008 7:18 am
by 9336073
Is any one at Steema even looking at the Support Posts?
Posted: Mon Jan 14, 2008 10:05 pm
by Tom
Hi,
First, our excuses for the late responses.
Could you clarify your problem in another way? What do you mean with automatically dragged? Do you mean the behavior that when a shape is partly shown, clicking on it moves the view so the shape is fully shown?
If this is what you mean, than you can disable it by setting the ScrollToView to False (Selected property) as in:
Code: Select all
Tree1.Selected.ScrollToView := False
Regards,
Tom.
Posted: Mon Jan 21, 2008 7:13 am
by 9336073
Hi Tom,
Thanks for your reply.
I wanted the property ScrollToView := True;
So that when ever the shape is out of view the diagram view shift to make the shape visible in TeeTree.
I have sent you a .swf file on your mail id tom @ steema.com demonstrating the problem.
Please have a look at that.
Regards,
Ashu
Posted: Wed Jan 23, 2008 12:05 am
by Tom
Hi Ashu,
The swf file clearly demonstrates the issue, but we can't reproduce it here.
Can you tell us which version of teeTree2 you are using?
Or can you send us a source code demo of it?
Thanks,
tom
Posted: Wed Jan 23, 2008 4:51 am
by 9336073
Hi Tom,
I have created the swf file using the Demo exe downloaded from your website.
TeeTree2New.exe whose created date is 06 March 2004, 09:16:42 AM
The version of TeeTree which i am using is TeeTree v2.0
Regards,
Ashu
Posted: Wed Jan 23, 2008 4:56 am
by 9336073
By the way, the steps to reproduce the bug are as follows:
1. Make sure one of the shape is cutting the edges of the TeeTree ie it is not fully inside the view rect of the TeeTree.
2. Now click on the shape.
3. Click on the TeeTree background
4. Repeat steps 2 & 3
You will see that the shape is moving away from its original position.
Regards,
Ashu
Posted: Tue Feb 19, 2008 4:47 am
by 9336073
Hi Tom,
Have you seen this problem.
Please suggest me a solution.
I am stuck due to this problem.
Thanks & Regards,
Pratik
Posted: Wed Feb 20, 2008 1:05 am
by Tom
Pratik,
This is frustrating, I can't reproduce this issue.
With ScrollToView set to true.
Whenever I click on a partly shown node, the node scrolls into view (so it is shown fully). Clicking on the teeTree background does nothing, nor repeating steps 2 & 3.
Posted: Wed Feb 20, 2008 4:29 am
by 9336073
Hi Tom,
I have sent you the demo exe which I was using to demonstrate the bug.
Please refer the mail with the subject - "Demo exe attached"
Regards,
Pratik
Posted: Wed Feb 20, 2008 8:04 pm
by Tom
yup I've received it. Some more questions:
Which version of teeChart Pro are you using together with teeTree v2.0?
Do you experience this behavior on all example of teeTreeNew.exe or only on some?
Thanks,
Tom.
Posted: Thu Feb 21, 2008 4:20 am
by 9336073
Hi Tom,
I am using the teeChart Pro Version 7.0 with teeTree v2.0.
Also I am facing the problem in all examples of teeTreeNew.exe.
By the way, I just observed, this happens only when the TeeTree.Designing is True.
Please have a look. I hope now you will be able to replicate the problem.
Thanks & Regards,
Pratik
Posted: Sun Feb 24, 2008 11:19 pm
by Tom
Ashu,
Thanks for the tip on the Designing property. This is a bug. Can you tell me if the code-change solved your issue fully?
Regards,
tom
Posted: Mon Feb 25, 2008 4:47 am
by 9336073
Hi Tom,
The code change has not resolved the problem fully.
For the first click it behaves same i.e. moves away from the original position. But with the next clicks it has not problem.
Please look out & suggest if this too can be solved.
Thanks & Regards,
Pratik
Posted: Mon Feb 25, 2008 5:36 am
by 9336073
Hi Tom,
The code fails completely if the SnapToGrid property is False.
Regards,
Pratik