SimpleGraph 2.5 released!

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

SimpleGraph 2.5 released!

Postby Kambiz » March 25th, 2006, 11:11 pm

Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Postby kokkoras » March 26th, 2006, 12:11 am

Thank you!

If you are still in good mood please consider adding a method to equally size selected nodes (like those for alignment you added in 2.5).

size widths of selected to widest/narrowest node
size heights of selected to tallest/shortest node


Thanks again for improving such a great component in such a ...burst pace.
Fotis
User avatar
kokkoras
Moderator
Moderator
 
Posts: 317
Joined: March 12th, 2005, 11:19 pm
Location: Thessaloniki, Greece

Postby HPW » March 26th, 2006, 7:13 am

Also many thanks.

Will test with the background-transparency.

Time to port!

:wink:
Hans-Peter
HPW
Moderator
Moderator
 
Posts: 238
Joined: February 25th, 2006, 10:19 am
Location: Germany

Postby HPW » March 26th, 2006, 9:25 am

Made some test with background-transparency.
Can use it like in sgdemo and make the underlying label visible.

The question of the plugin-user goes beyond, because he want transparency through the form. Since form transparency is supported
by delphi7, I made the sgdemo work there with setting the form to transparent (not TSimpleGraph). But seems to work only when that window is the top-level window (and higher windows-versions). But a plugin window is a child of the host-app and does not work that way. Also when I use delphi7 I still have problems with the hint-shadows, which does not get reset.

So I could provide somewhat like an background-layer with a seperate object behind TSimpleGraph using its transparent-property. I will stay on delphi5 (hints) for now and will check which use can make sense.
Hans-Peter
HPW
Moderator
Moderator
 
Posts: 238
Joined: February 25th, 2006, 10:19 am
Location: Germany

Postby HPW » March 26th, 2006, 11:52 am

Is it intentional behaviour or a bug that LoadFromFile/LoadFromStream does set the commandmode to cmEdit?

It should be possible to use them in 'cmViewOnly' I think.

(MergeFromFile/MergFromStream does not set anything.)
Hans-Peter
HPW
Moderator
Moderator
 
Posts: 238
Joined: February 25th, 2006, 10:19 am
Location: Germany

Postby Kambiz » March 26th, 2006, 4:58 pm

HPW wrote:Made some test with background-transparency.
Can use it like in sgdemo and make the underlying label visible.

The question of the plugin-user goes beyond, because he want transparency through the form. Since form transparency is supported
by delphi7, I made the sgdemo work there with setting the form to transparent (not TSimpleGraph). But seems to work only when that window is the top-level window (and higher windows-versions). But a plugin window is a child of the host-app and does not work that way. Also when I use delphi7 I still have problems with the hint-shadows, which does not get reset.

So I could provide somewhat like an background-layer with a seperate object behind TSimpleGraph using its transparent-property. I will stay on delphi5 (hints) for now and will check which use can make sense.


Taransparency in SimpleGrpah is achieved by drawing parent's canvas on the SimpleGraph's canvas. Therefore, form transparency is not supported.

Regarding Delphi 7, according to my experiences, WinXP Theme support in Delphi has lot of bugs.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Postby Kambiz » March 26th, 2006, 5:00 pm

HPW wrote:Is it intentional behaviour or a bug that LoadFromFile/LoadFromStream does set the commandmode to cmEdit?

It should be possible to use them in 'cmViewOnly' I think.

(MergeFromFile/MergFromStream does not set anything.)


Both behaviors are intentional. The developer can change the command mode after loading the graph (look at SGDemo).
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Postby kokkoras » March 26th, 2006, 10:43 pm

Kambiz wrote:Transparency in SimpleGrpah is achieved by drawing parent's canvas on the SimpleGraph's canvas.


This is dirty!! :lol: :lol:
Fotis
User avatar
kokkoras
Moderator
Moderator
 
Posts: 317
Joined: March 12th, 2005, 11:19 pm
Location: Thessaloniki, Greece

Postby Kambiz » March 27th, 2006, 11:15 am

kokkoras wrote:
Kambiz wrote:Transparency in SimpleGrpah is achieved by drawing parent's canvas on the SimpleGraph's canvas.


This is dirty!! :lol: :lol:


Any better solution? :?
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Postby Kambiz » March 27th, 2006, 11:19 am

HPW wrote:Is it intentional behaviour or a bug that LoadFromFile/LoadFromStream does set the commandmode to cmEdit?

It should be possible to use them in 'cmViewOnly' I think.

(MergeFromFile/MergFromStream does not set anything.)


I thought more about your question. What do you think about the following rules?
  • Clear sets CommandMode to cmEdit
  • LoadFromStream sets CommandMode to cmViewOnly
  • MergeFromStream sets CommandMode to cmEdit
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Postby HPW » March 27th, 2006, 11:25 am

I thought more about your question. What do you think about the following rules?

Clear sets CommandMode to cmEdit

LoadFromStream sets CommandMode to cmViewOnly

MergeFromStream sets CommandMode to cmEdit


By default I would none of the commands change something on CommandMode.
Then it would be the responsibility of the developer how it is used.

Just my 2 cents! ;-)
Hans-Peter
HPW
Moderator
Moderator
 
Posts: 238
Joined: February 25th, 2006, 10:19 am
Location: Germany

Postby Kambiz » March 27th, 2006, 11:35 am

HPW wrote:By default I would none of the commands change something on CommandMode.
Then it would be the responsibility of the developer how it is used.


Some developers are not responsible. :wink: JK

It causes a compatibility problem.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Postby HPW » March 27th, 2006, 11:54 am

Some developers are not responsible.


Only some? :wink:

Do whatever you want and what is needed.
Hans-Peter
HPW
Moderator
Moderator
 
Posts: 238
Joined: February 25th, 2006, 10:19 am
Location: Germany

Postby kokkoras » March 27th, 2006, 11:57 am

Kambiz wrote:
kokkoras wrote:
Kambiz wrote:Transparency in SimpleGrpah is achieved by drawing parent's canvas on the SimpleGraph's canvas.


This is dirty!! :lol: :lol:


Any better solution? :?


IMHO, it's a minor issue (to be honnest, it's a non-issue). I think your trick serves those with such needs well.
Fotis
User avatar
kokkoras
Moderator
Moderator
 
Posts: 317
Joined: March 12th, 2005, 11:19 pm
Location: Thessaloniki, Greece

Postby Kambiz » March 27th, 2006, 12:10 pm

What do you think about having OnObjectMouseEnter and OnObjectMouseLeave events?
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Next

Return to DELPHI AREA Projects

Who is online

Users browsing this forum: No registered users and 5 guests

cron