SimpleGraph. How to put the text in parallel link?

Please post bug reports, feature requests, or any question regarding the DELPHI AREA projects here.

SimpleGraph. How to put the text in parallel link?

Postby slavapro » January 2nd, 2009, 6:31 pm

help, please))))
Attachments
link.jpg
link.jpg (27.23 KiB) Viewed 3461 times
Last edited by slavapro on January 18th, 2009, 11:48 pm, edited 1 time in total.
slavapro
Active Member
Active Member
 
Posts: 16
Joined: June 27th, 2008, 2:38 pm

Re: SimpleGraph. How to put the text in parallel link?

Postby Kambiz » January 15th, 2009, 8:12 am

What do you mean? An image would be very helpful.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Re: SimpleGraph. How to put the text in parallel link?

Postby slavapro » January 18th, 2009, 11:49 pm

Kambiz wrote:What do you mean? An image would be very helpful.


picture attached on message now)))
slavapro
Active Member
Active Member
 
Posts: 16
Joined: June 27th, 2008, 2:38 pm

Re: SimpleGraph. How to put the text in parallel link?

Postby Kambiz » January 19th, 2009, 5:38 am

I guess you don't use Caption property of the links, right?
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Re: SimpleGraph. How to put the text in parallel link?

Postby slavapro » January 19th, 2009, 12:18 pm

Kambiz wrote:I guess you don't use Caption property of the links, right?


Code: Select all
procedure TForm1.SimpleGraph1ObjectInitInstance(Graph: TSimpleGraph; {вставка объекта}
  GraphObject: TGraphObject);
begin
    if GraphObject is TGraphLink then    {участок}
    with TGraphLink(GraphObject) do
    begin
      pen.color:=clred;
      pen.width:=3;
      text:='';
      if (source<>nil) and (target<>nil)then text:=inttostr(source.id)+'-'+inttostr(target.id);
      text:=text+'0 0 0 0 0';
      hint:='';
      font.color:=clblue;
      font.Size:=10;
    end;
. . . . . .
end
slavapro
Active Member
Active Member
 
Posts: 16
Joined: June 27th, 2008, 2:38 pm

Re: SimpleGraph. How to put the text in parallel link?

Postby Kambiz » January 19th, 2009, 3:28 pm

Have you downloaded the component from delphiarea, or somewhere else?

Maybe I didn't get what you mean. Please, describe the problem. If you don't know English, describe it in your own language. Somehow I'll figure it out.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Re: SimpleGraph. How to put the text in parallel link?

Postby slavapro » January 19th, 2009, 8:55 pm

Kambiz wrote:Have you downloaded the component from delphiarea, or somewhere else?

Maybe I didn't get what you mean. Please, describe the problem. If you don't know English, describe it in your own language. Somehow I'll figure it out.


Yes? i use simplegraph 2.6, In the demo program it works correctly. But in my code, the text is not displayed along the link, but only horizontally. How to make whatever conclusions parallel connection?

В Демо программе все работает правильно. Но в моем коде текст выводится не вдоль связи, а только горизонтально. Как сделать что бы текст выводился параллельно связи?
Attachments
wrong.gif
wrong.gif (7.23 KiB) Viewed 3436 times
correctly.gif
correctly.gif (4.98 KiB) Viewed 3434 times
slavapro
Active Member
Active Member
 
Posts: 16
Joined: June 27th, 2008, 2:38 pm

Re: SimpleGraph. How to put the text in parallel link?

Postby Kambiz » January 20th, 2009, 9:56 am

This never happens on my machine.

What are versions of your Delphi and Windows? Please send me the .sg file of your graph too,
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Re: SimpleGraph. How to put the text in parallel link?

Postby slavapro » January 20th, 2009, 11:53 am

Kambiz wrote:This never happens on my machine.

What are versions of your Delphi and Windows? Please send me the .sg file of your graph too,


Delphi 7.0, Windows XP SP3

If you open my file in the demo program is still the text is not located along the links
slavapro
Active Member
Active Member
 
Posts: 16
Joined: June 27th, 2008, 2:38 pm

Re: SimpleGraph. How to put the text in parallel link?

Postby Kambiz » January 20th, 2009, 2:50 pm

Try to change the font. :-k Maybe the font you are using does not support rotation. :?
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Re: SimpleGraph. How to put the text in parallel link?

Postby slavapro » January 20th, 2009, 3:34 pm

Kambiz wrote:Try to change the font. :-k Maybe the font you are using does not support rotation. :?


Yes!Thank you for helping!
slavapro
Active Member
Active Member
 
Posts: 16
Joined: June 27th, 2008, 2:38 pm


Return to DELPHI AREA Projects

Who is online

Users browsing this forum: No registered users and 3 guests

cron