From Version 1 to Version 2
From Version 1 to Version 2
Hi,
we have some noises to port an our project (Delphi5) from TeeTree1 to TeeTree2.
On version 1 we used TreeHorizMarginDefault and TreeVertMarginDefault; on version 2?
We are upgrading to TeeTree2 because printing with TeeTree1 was not correct, but also using version2 is not so simple to print my Tree: it doesn't display connections correctly.
Can somebody help us please?
Thanks in advance.
Regards
Andrea
we have some noises to port an our project (Delphi5) from TeeTree1 to TeeTree2.
On version 1 we used TreeHorizMarginDefault and TreeVertMarginDefault; on version 2?
We are upgrading to TeeTree2 because printing with TeeTree1 was not correct, but also using version2 is not so simple to print my Tree: it doesn't display connections correctly.
Can somebody help us please?
Thanks in advance.
Regards
Andrea
Hi,
Which version of teeTree2 have you installed?
Have a look into the source code (or just ask) if you need more information:
Best Regards,
[email protected]
Which version of teeTree2 have you installed?
TeeTree2 makes use of childmanagers to position the nodes. Default teeTree uses the TTreeExplorerAlignChild childmanager. You can change the horiz and vert margin settings by changing the HorizMargin and VertMargin properties of this child manager.TreeHorizMarginDefault and TreeVertMarginDefault
Have a look into the source code (or just ask) if you need more information:
Code: Select all
// Child manager constants.
// See TTreeExplorerAlignChild properties if you want to change them.
TreeHorizMarginDefault = 19;
TreeVertMarginDefault = 1;
TeeCrossBoxHorizMargin = 5;
TeeTree_DefaultYPosition = 2;
Can you provide us a screenshot on what the problem is?it doesn't display connections correctly.
Best Regards,
[email protected]
I need to print a Tree that can be displayed on more than 1 page.
Can you tell me how, please?
I attached:
1. the image (of the tree ) of a paper printed by an HPlaser jet: it doesn't display connection's line and the text is out of the boxes.
2. the images of the PrintPreview where I have to select page per page to print all tree, because the "Tree.Page.Count" returns a wrong number of pages (12 instead of
3. the jpg image (tree.jpg) obtained using the source code provided by Steema's newsgroup (http://www.teechart.net/support/viewtop ... portformat)
Now the only way to print "correctly" the tree is to save a jpg image of the tree and than print it...I think that is a workaround not a solution.
It's very import for us to solve this because our customers are not very happy.
I'm using the TeeTree v2.0.
About TreeHorizMarginDefault and TreeVertMarginDefault, can you provide to me a sample code please?
Thanks in advance for your support.
Kind Regards,
Andrea
P.S. Look your email for the attachments.
Can you tell me how, please?
I attached:
1. the image (of the tree ) of a paper printed by an HPlaser jet: it doesn't display connection's line and the text is out of the boxes.
2. the images of the PrintPreview where I have to select page per page to print all tree, because the "Tree.Page.Count" returns a wrong number of pages (12 instead of
3. the jpg image (tree.jpg) obtained using the source code provided by Steema's newsgroup (http://www.teechart.net/support/viewtop ... portformat)
Now the only way to print "correctly" the tree is to save a jpg image of the tree and than print it...I think that is a workaround not a solution.
It's very import for us to solve this because our customers are not very happy.
I'm using the TeeTree v2.0.
About TreeHorizMarginDefault and TreeVertMarginDefault, can you provide to me a sample code please?
Thanks in advance for your support.
Kind Regards,
Andrea
P.S. Look your email for the attachments.
With which version of teeChart Pro is the teeTreev2 accompanied? (version 7.07?)I'm using the TeeTree v2.0.
Some printers have issues with dotted connection lines. Default the connection line has gray color and small dots. Please check the print-out by changing these defaultsit doesn't display connection's line
eg:
* change the color to Black
and/or
* set smalldots to false
and/or
* change the lines to solid
The easiest way to change the default connection properties is through the globalFormat property: eg.
Code: Select all
Tree1.GlobalFormat.Connection.Border.SmallDots := False;
Tree1.GlobalFormat.Connection.Border.Color := clBlack;
Tree1.GlobalFormat.Connection.Border.Style := psSolid;
Mmm. Please provide me a source code demo so I can check this issue heretext is out of the boxes
This should be solved, please provide me a source code of your tree (or the trr file), so I can check it against our dev source teetree branch"Tree.Page.Count" returns a wrong number of pages
TreeHorizMarginDefault and TreeVertMarginDefault, can you provide to me a sample code please?
Code: Select all
procedure TForm1.FormCreate(Sender: TObject);
begin
if (Tree1.GlobalFormat.ChildManager is TTreeExplorerAlignChild) then //is normally default always a TTreeExplorerAlignChild
with TTreeExplorerAlignChild(Tree1.GlobalFormat.ChildManager) do
begin
HorizMargin := 10;
VertMargin := 10;
end;
end;
Last edited by tom on Wed May 10, 2006 10:42 pm, edited 1 time in total.
>With which version of teeChart Pro is the teeTreev2 accompanied?(version 7.07?)
I have not teeChart Pro installed,now.
On the past I installed teeChart 5 and teeTree1.
Before the updagrad to teeTree2 I uninstalled them and installed only teeTree2 with compile.exe tool.
Tomorrow I will post to your email the sample code.
Thanks again.
Regards
Andrea
I have not teeChart Pro installed,now.
On the past I installed teeChart 5 and teeTree1.
Before the updagrad to teeTree2 I uninstalled them and installed only teeTree2 with compile.exe tool.
Tomorrow I will post to your email the sample code.
Thanks again.
Regards
Andrea
Since teeChart v7, teeTree2 is only available through teeChart PRO (as a free addon). Every customer has been informed about this, if you haven't received this mail, then something has gone wrong.I have not teeChart Pro installed
The latest teeTree2 sources are available from the teeChart PRO download page.
In fact teeTree2 needs some sources from teeChart PRO, so since your compile worked, it must use some old teeChart components
Hi,
I received it. I must admit I already received it from chris (I forgot about it). Unfortunately I can't run your code, since it uses several 3rd party components which we don't own.
Have you already tried some of the above mentioned tips concerning printing connection lines with small dots?
Thanks,
Tom.
I received it. I must admit I already received it from chris (I forgot about it). Unfortunately I can't run your code, since it uses several 3rd party components which we don't own.
Have you already tried some of the above mentioned tips concerning printing connection lines with small dots?
Thanks,
Tom.
Hi Andrea,
The connection lines are printed on our printer. So I guess the printer you use has some problems printing dotted lines. To solve this on your printer I suggest to try out the tips mentioned before or to have look at the below mentioned link.
I'm not sure if we can do anything about the different size of fonts between screen and printing... If it is printed in proportional mode, the tree is printed correctly.
The font formats are changed by windows itself (non-proportional mode), for more information have a look at http://www.steema.net/publicnews/public ... Better.txt
I'll see if I can find more info on this.
Regards,
tom
The connection lines are printed on our printer. So I guess the printer you use has some problems printing dotted lines. To solve this on your printer I suggest to try out the tips mentioned before or to have look at the below mentioned link.
I'm not sure if we can do anything about the different size of fonts between screen and printing... If it is printed in proportional mode, the tree is printed correctly.
The font formats are changed by windows itself (non-proportional mode), for more information have a look at http://www.steema.net/publicnews/public ... Better.txt
I'll see if I can find more info on this.
Regards,
tom
I will try it.The connection lines are printed on our printer. So I guess the printer you use has some problems printing dotted lines. To solve this on your printer I suggest to try out the tips mentioned before or to have look at the below mentioned link.
I used large font because I'm printing jpg image instead of printing tree directly.I'm not sure if we can do anything about the different size of fonts between screen and printing... If it is printed in proportional mode, the tree is printed correctly.
...
Can you modify my sample to show me how to print (in "good format") the tree in more than 1 pages, please?
Thanks again.
Regards,
Andrea