| View previous topic :: View next topic |
| Author |
Message |
elias Junior Member
Joined: 08 Nov 2005 Posts: 89 Location: Galicia, Spain
|
Posted: 08/11/05 12:29 Post subject: SimpleGraph: What happens with the zoom? |
|
|
I'm making an application to simulate Neuronal Circuits based in SimpleGrahp; I've found with this problem:
1)I put two Rectangles-Nodes with size 40X40, one of them in (24,24) an the other one in (7448,112)
2)I join them with a link
3)I make a 800% zoom at the first rectangle
4)I try to follow the link to the second rectangle using the scrollbars
It's impossible... ¿Anyone knows what's the problem?
|
|
| Back to top |
|
 |
lbc Member
Joined: 04 Feb 2004 Posts: 48 Location: Italy
|
Posted: 08/11/05 15:43 Post subject: |
|
|
Hello
I have tried to reproduce your situation using the SG demo but it seems to me ( even if a little bit difficult to set the second rectangle to (7448,112) )
i can follow the whole link by means of the scrollbar
Have you checked to use the last SG version (1.61)?
hope it helps
|
|
| Back to top |
|
 |
elias Junior Member
Joined: 08 Nov 2005 Posts: 89 Location: Galicia, Spain
|
Posted: 08/11/05 18:44 Post subject: |
|
|
So sorry!! the coordenates and sizes are not important; case is that i cannot have two nodes very far one from another; maybe the problem is that i have no memory to run a large canvas ¿? I dont know.
Yes, I have prooved the version you said, not compilating the source but running the downloadable .exe file
|
|
| Back to top |
|
 |
lbc Member
Joined: 04 Feb 2004 Posts: 48 Location: Italy
|
Posted: 08/11/05 21:46 Post subject: |
|
|
Hello Elias
no problem unofortunately as i said i am not able to reproduce your situation in my system
anyway maybe have you tried to increment, say, "gradually" the zoom?
i mean start creatin the 2 nodes close each other at 100% zoom, then move the 2nd one a little to the right and then increment the zoom say of 25 or 50%, just to see at what value the problem starts taking place
hope that helps
|
|
| Back to top |
|
 |
elias Junior Member
Joined: 08 Nov 2005 Posts: 89 Location: Galicia, Spain
|
Posted: 09/11/05 18:27 Post subject: |
|
|
Seems a good idea to start...
No time today; I will try tomorrow if Ican.
|
|
| Back to top |
|
 |
Kambiz Administrator

Joined: 07 Mar 2003 Posts: 1044 Location: Tehran, Iran
|
Posted: 10/11/05 14:39 Post subject: |
|
|
Hi,
The problem is resolved in v1.65 of the control.
In the older versions, the control was using the entire graph bounds to create the off-screen canvas. As the result, when the required canvas was bigger than system resources, there was no screen rendering.
In the new version, the control creates a memory canvas just as big as the client rectangle of the control. So, there is no memory limit graph bounds, and also the paint handler gets less process.
Cheers
_________________ Kambiz |
|
| Back to top |
|
 |
elias Junior Member
Joined: 08 Nov 2005 Posts: 89 Location: Galicia, Spain
|
Posted: 10/11/05 19:29 Post subject: |
|
|
Thanks Kambiz;
I'm think the link is wrong, (or maybe anything is bad with my computer)...
When I Push in SimpleGraph to download the new version, the bug is yet there; I think this version I downloaded is really 1.61 (in the code appears "TSimpleGraph v1.61" and I don´t find the GraphConstraints property you said anywhere ¿¿??
|
|
| Back to top |
|
 |
Kambiz Administrator

Joined: 07 Mar 2003 Posts: 1044 Location: Tehran, Iran
|
Posted: 10/11/05 22:43 Post subject: |
|
|
I've uploaded the files once again.
I hope this time you can get the new release.
_________________ Kambiz |
|
| Back to top |
|
 |
elias Junior Member
Joined: 08 Nov 2005 Posts: 89 Location: Galicia, Spain
|
Posted: 11/11/05 11:08 Post subject: |
|
|
ahh! this goes right
Thanks for helping...
|
|
| Back to top |
|
 |
|