DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   FavoritesFavorites   Watched TopicsWatched Topics     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SimpleGraph 2.5 released!
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic   printer-friendly view    DELPHI AREA Forum Index -> DELPHI AREA's Products
View previous topic :: View next topic  
Author Message
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 1044
Location: Tehran, Iran

PostPosted: 25/03/06 23:11    Post subject: SimpleGraph 2.5 released! Reply with quote

http://www.delphiarea.com/products/simplegraph/

Cheers

_________________
Kambiz
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kokkoras
Senior Member


Joined: 12 Mar 2005
Posts: 250
Location: Thessaloniki, Greece

PostPosted: 26/03/06 00:11    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
HPW
Senior Member


Joined: 25 Feb 2006
Posts: 120
Location: Germany

PostPosted: 26/03/06 07:13    Post subject: Reply with quote

Also many thanks.

Will test with the background-transparency.

Time to port!

Wink

_________________
Hans-Peter
Back to top
View user's profile Send private message
HPW
Senior Member


Joined: 25 Feb 2006
Posts: 120
Location: Germany

PostPosted: 26/03/06 09:25    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
HPW
Senior Member


Joined: 25 Feb 2006
Posts: 120
Location: Germany

PostPosted: 26/03/06 11:52    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 1044
Location: Tehran, Iran

PostPosted: 26/03/06 16:58    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 1044
Location: Tehran, Iran

PostPosted: 26/03/06 17:00    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kokkoras
Senior Member


Joined: 12 Mar 2005
Posts: 250
Location: Thessaloniki, Greece

PostPosted: 26/03/06 22:43    Post subject: Reply with quote

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


This is dirty!! Laughing Laughing

_________________
Fotis
Back to top
View user's profile Send private message Visit poster's website
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 1044
Location: Tehran, Iran

PostPosted: 27/03/06 11:15    Post subject: Reply with quote

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


This is dirty!! Laughing Laughing


Any better solution? Confused

_________________
Kambiz
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 1044
Location: Tehran, Iran

PostPosted: 27/03/06 11:19    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail Visit poster's website
HPW
Senior Member


Joined: 25 Feb 2006
Posts: 120
Location: Germany

PostPosted: 27/03/06 11:25    Post subject: Reply with quote

Quote:

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! Wink

_________________
Hans-Peter
Back to top
View user's profile Send private message
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 1044
Location: Tehran, Iran

PostPosted: 27/03/06 11:35    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail Visit poster's website
HPW
Senior Member


Joined: 25 Feb 2006
Posts: 120
Location: Germany

PostPosted: 27/03/06 11:54    Post subject: Reply with quote

Quote:
Some developers are not responsible.


Only some? Wink

Do whatever you want and what is needed.

_________________
Hans-Peter
Back to top
View user's profile Send private message
kokkoras
Senior Member


Joined: 12 Mar 2005
Posts: 250
Location: Thessaloniki, Greece

PostPosted: 27/03/06 11:57    Post subject: Reply with quote

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


This is dirty!! Laughing Laughing


Any better solution? Confused


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
Back to top
View user's profile Send private message Visit poster's website
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 1044
Location: Tehran, Iran

PostPosted: 27/03/06 12:10    Post subject: Reply with quote

What do you think about having OnObjectMouseEnter and OnObjectMouseLeave events?
_________________
Kambiz
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    DELPHI AREA Forum Index -> DELPHI AREA's Products All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

Add to favorites

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group