Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) Grid and ruler questions (Read 5921 times)
Akira
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 12
Joined: Nov 13th, 2006
Grid and ruler questions
Nov 23rd, 2006 at 5:28pm
Print Post  
Hi Stoyo,

I'm working with the grid in FlowChart.Net and I would like to ask a few things about it..

1. After I set the grid to visible (showGrid()) my application is noticeable slower, mainly when I move objects.
Is there something I've to consider in regard of using the showGrid() method, what steals my application performance? I've used GridStyle.Points as style.

2. So far the grid points never start at 0,0 of the document. There is always a small space between the first line of points and the border of the document, but this space fits never the current grid size, it seems the space is the half of the grid size, therefore I think something is wrong with it.

3. The ruler marks do not corresponding to the position of a selected object in the document, they are always a bit displaced.

4. The size of the document and the size the ruler shows do not correspond. Mostly the ruler tells me that the document is a bit smaller than it should be (in regard of its original size) , eg. original width is 148 and ruler shows 140.  If I zoom out it gets even worse.
My hunch tells me that there is some connection between 3 and 4

Do you know why these things happen? Is there some common thing I've overlooked? Something I should pay attention when I using grid and ruler?


Thanks

Thorsten
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Grid and ruler questions
Reply #1 - Nov 23rd, 2006 at 6:08pm
Print Post  
Hi Thorsten,

re 4 -

The last number you see in the ruler does not correspond exactly to the document size. Notice how the numbers are shown at intervals of 10 /when the zoom is 100% and the measure unit is millimeter/. That interval changes when you use a different MeasureUnit or ZoomFactor. So in your case you probably see 140 because it is the largest number divisible by 10 and less than 148.

You can see that better by setting ExteriorBrush to some value different than null and different than the BackBrush. ExteriorBrush is used to paint the area not included in DocExtents. To see it, you also have to set BkgrImagePos to Document. E.g. try that in the FCDemo "Hierarchy chart" step. Set the ExteriorBrush, BkgrImagePos and AutoSizeDoc properties there, and move the nodes around to resize the document. See how the DocExtents value changes, and how the Ruler marks correspond to that value. Changing the ZoomFactor seems to work well too.

Another way the ruler values could be different from the document coordinates is if the Ruler uses a different unit than the flowchart's MeasureUnit - check if the unit selected from the ruler context menu is the same as the flowchart's one.

Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Grid and ruler questions
Reply #2 - Nov 23rd, 2006 at 6:23pm
Print Post  
Regarding the grid - perhaps there are too many points visible. What are your GridSize and ZoomFactor values? I can't see any noticeable delay with 1mm grid on my 256MB / 1.6Ghz laptop though.

You are right about the offset - the first point is drawn at [GridSizeX / 2, GridSizeY / 2]. Another customer requested a GridOffset property sometime ago; now that you need it too,  maybe I should move it towards the top of the wishlist we have for FlowChart.NET (there are more than 100 wishes there now Wink)

Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Grid and ruler questions
Reply #3 - Nov 23rd, 2006 at 6:29pm
Print Post  
I can't see any displacement of the selected items projection on the ruler. Could you post here the initialization code for the ruler so I can test with it?

Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Grid and ruler questions
Reply #4 - Nov 24th, 2006 at 9:21am
Print Post  
I've noticed another problem in the version 4.2.2 preview dlls I sent you - alignment using the ruler guide lines does not work, while it's ok in version 4.2.1. If you need that, I can send you the fixed dlls.

Stoyan
  
Back to top
 
IP Logged
 
Akira
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 12
Joined: Nov 13th, 2006
Re: Grid and ruler questions
Reply #5 - Nov 29th, 2006 at 12:36pm
Print Post  
Hey Stoyo,

it would be great if you could send me the dlls.


Thorsten

BTW: Sorry that I didn't answer sooner - I was quite busy lately.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Grid and ruler questions
Reply #6 - Nov 29th, 2006 at 1:32pm
Print Post  
Hi Thorsten,

These are the latest builds:

https://mindfusion.org/_beta/pdfscale.zip

Stoyan
  
Back to top
 
IP Logged
 
Akira
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 12
Joined: Nov 13th, 2006
Re: Grid and ruler questions
Reply #7 - Nov 30th, 2006 at 6:15am
Print Post  
Thanks Stoyo!

Thorsten
  
Back to top
 
IP Logged
 
jstraylor
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Dec 28th, 2006
Re: Grid and ruler questions
Reply #8 - Jan 8th, 2007 at 6:19pm
Print Post  
I will add a "wish" for the ability to set the start of the grid.  I am writing an application where I want to be able to start the grid at 0,0 and snap to points out from there.

Is there a quick and dirty method to add either an offset to the grid??

The other possibility might be to draw my containing box at a position other than 0,0 to handle the offset, but that messes up the rulers.

Thanks,
Jeff
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Grid and ruler questions
Reply #9 - Jan 9th, 2007 at 7:47am
Print Post  
We have added GridOffsetX and GridOffsetY properties to V.4.2.3, which we are releasing in a couple of days.

Stoyan
  
Back to top
 
IP Logged
 
rjack
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: Jul 31st, 2007
Re: Grid and ruler questions
Reply #10 - Jul 31st, 2007 at 12:42pm
Print Post  
Stoyo wrote on Nov 23rd, 2006 at 6:23pm:
You are right about the offset - the first point is drawn at [GridSizeX / 2, GridSizeY / 2]. Another customer requested a GridOffset property sometime ago; now that you need it too, maybe I should move it towards the top of the wishlist we have for FlowChart.NET (there are more than 100 wishes there now Wink)

Stoyan


Did you ever add a GridOffset property? If not, are you planning on putting it in the 5.0 release?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Grid and ruler questions
Reply #11 - Jul 31st, 2007 at 12:46pm
Print Post  
There are GridOffsetX and GridOffsetY properties already available in v.4.3.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint