Unwanted drag of shape when it is on the edges of the TTree

TeeTree VCL for Borland Delphi and C++ Builder.
Ashu
Newbie
Newbie
Posts: 24
Joined: Mon Mar 08, 2004 5:00 am

Unwanted drag of shape when it is on the edges of the TTree

Post by Ashu » Fri Dec 07, 2007 11:11 am

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

Ashu
Newbie
Newbie
Posts: 24
Joined: Mon Mar 08, 2004 5:00 am

Is any one at Steema even looking at the Support Posts?

Post by Ashu » Mon Jan 14, 2008 7:18 am

Is any one at Steema even looking at the Support Posts?

tom
Advanced
Posts: 211
Joined: Mon Dec 01, 2003 5:00 am
Contact:

Post by tom » Mon Jan 14, 2008 10:05 pm

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.

Ashu
Newbie
Newbie
Posts: 24
Joined: Mon Mar 08, 2004 5:00 am

Post by Ashu » Mon Jan 21, 2008 7:13 am

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

tom
Advanced
Posts: 211
Joined: Mon Dec 01, 2003 5:00 am
Contact:

Post by tom » Wed Jan 23, 2008 12:05 am

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

Ashu
Newbie
Newbie
Posts: 24
Joined: Mon Mar 08, 2004 5:00 am

Post by Ashu » Wed Jan 23, 2008 4:51 am

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

Ashu
Newbie
Newbie
Posts: 24
Joined: Mon Mar 08, 2004 5:00 am

Post by Ashu » Wed Jan 23, 2008 4:56 am

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

Ashu
Newbie
Newbie
Posts: 24
Joined: Mon Mar 08, 2004 5:00 am

Post by Ashu » Tue Feb 19, 2008 4:47 am

Hi Tom,

Have you seen this problem.
Please suggest me a solution.
I am stuck due to this problem.

Thanks & Regards,
Pratik

tom
Advanced
Posts: 211
Joined: Mon Dec 01, 2003 5:00 am
Contact:

Post by tom » Wed Feb 20, 2008 1:05 am

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.

Ashu
Newbie
Newbie
Posts: 24
Joined: Mon Mar 08, 2004 5:00 am

Post by Ashu » Wed Feb 20, 2008 4:29 am

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

tom
Advanced
Posts: 211
Joined: Mon Dec 01, 2003 5:00 am
Contact:

Post by tom » Wed Feb 20, 2008 8:04 pm

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.

Ashu
Newbie
Newbie
Posts: 24
Joined: Mon Mar 08, 2004 5:00 am

Post by Ashu » Thu Feb 21, 2008 4:20 am

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

tom
Advanced
Posts: 211
Joined: Mon Dec 01, 2003 5:00 am
Contact:

Post by tom » Sun Feb 24, 2008 11:19 pm

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

Ashu
Newbie
Newbie
Posts: 24
Joined: Mon Mar 08, 2004 5:00 am

Post by Ashu » Mon Feb 25, 2008 4:47 am

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

Ashu
Newbie
Newbie
Posts: 24
Joined: Mon Mar 08, 2004 5:00 am

Post by Ashu » Mon Feb 25, 2008 5:36 am

Hi Tom,

The code fails completely if the SnapToGrid property is False.

Regards,
Pratik

Post Reply