The Simple Graph Component v2.81 has been released. This update only resolves the compatibility issues of the component with Delphi XE2 and XE3.
The Simple Graph Component v2.81 has been released. This update only resolves the compatibility issues of the component with Delphi XE2 and XE3.
Hi Kambiz,
Have you had a look at GLSCENE? It is a nice 3d library for delphi – well structured for doing all kinds of graphics – gaming type programs.
It does anti-aliasing which is very nice. I am thinking of generating scenes with this and then printing using your printpreview.
Could simple graph be incorporated into glscene in some way to make it anti-aliased graphs? I know anti-aliasing is not important when printing as the resolution of the print is very high, but to see the preview on the screen it would be nice to be anti-aliased.
I see you are no longer working on Delphi. Are you going to use Freepascal? Thanks for your contributions to the scene – they are awesome!
Regards,
Ray
Dear Ray,
I’m afraid that you can’t have anti-aliasing in SG. To have anti-aliasing in SG, the component should be rewritten from scratch.
Hi
property Rotate or Rotation?
Neither! Rotate is a method of TGraphLink class.
Hi Kambiz,
actually, I have the same comment as Dmitry. Property Rotate is highly appreciated! Not for TGraphLink class (for me) but for TGraphNode or TGraphObject. I develope a stage designer for Czech Philharmonic Orchestra and it’s absolutely necessary to have this option. (i.e. I have to set musicians to be always headed to the conductor. The most often on the circumference of stage.)
Otherwise TSimpleGraph is a great component!
I’m so sorry Flip but I’ve stopped working on this component. In addition, I no more write code in Delphi.
Hi Kambiz,
I ever find your component great.
Could I know why you stop delphi ? What do you think about delphi today ?
And, If I’m not indiscreet, what are you doing in programming today ?
thx !
Hi,
There was already a discussion regarding this topic on the forum.
Dear Kambiz,
Thanks about your wonderful component.
Is there any method for automatic layout and drawing network in this component?
Could you please help me to find some sample or delphi code in this matter?
Best
Hi Kambiz,
first, thank you for your great component. I’m using ver 2.80.
I found a bug in the WrapText function. The line
if (TextExtent.CX > MaxWidth) and (E nil) then
should be
if (TextExtent.CX >= MaxWidth) and (E nil) then …
In original version there is a problem when TextExtent.CX is exactly MaxWidth.
Best regards,
Damir
Kambiz, sorry, it’s not that problem….
Put some longer text in rect node and then resize width of the node … On some width some lines of text will be lost.
Kambiz, It’s me again 🙂
I changed this:
if E nil then
begin
while (E >= S) and (E^ ‘ ‘) and (P^ = ‘ ‘) do
Dec(E);
P := E + 1;
end;
and now the problem with lost lines of text is gone, but I have another problem: when node (TextRect) becomes to narrow, something goes wrong 🙁
@Arash: I afraid that you have to implement your own algorithm for automatic layout. Also, I have no resource to help you in this matter.
The SimpleGraph component supposed to be a really simple component for drawing just simple graphs. The later improvements in the components are more like patches and because of that the control is very unorganized and difficult to maintain/improve. This caused that I never use this component in my own programs and I also stopped future development of this component.
@Damir: I’ll investigate the problem on the latest version, not version 2.80. I’ll keep you informed by email.