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.6 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: 29/03/06 10:52    Post subject: SimpleGraph 2.6 released! Reply with quote

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

v2.6 is the last release for 2.x update serries.

Probably there will be some fundamental changes in the next release of SimpleGraph.

Please post here whatever you wish for the next release of SimpleGraph, and of course bugs you may find in the current release.

Cheers

_________________
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: 29/03/06 11:01    Post subject: Reply with quote

Kambiz,

Thanks again for the usefull additions.

It is difficult to keep in touch with your pace! Wink

Time to port.

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


Joined: 25 Feb 2006
Posts: 120
Location: Germany

PostPosted: 29/03/06 13:30    Post subject: Reply with quote

After compiled with 2.6 I set explicit to cmViewOnly,
but now I can still click on Nodes and edit.
This was not the case on <2.6.
Anything changed there?

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


Joined: 25 Feb 2006
Posts: 120
Location: Germany

PostPosted: 29/03/06 16:15    Post subject: Reply with quote

Some more obeservations to this:

Mouse access is on on cmViewOnly, so I can
select, drag size and edit the nodes.
But keyboard action is disabled.

?? Rolling Eyes

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


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

PostPosted: 29/03/06 18:47    Post subject: Reply with quote

Always there's at least one more bug!
_________________
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: 29/03/06 19:11    Post subject: Reply with quote

I fixed the bug, and uploaded the update.

Thank you!

_________________
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: 29/03/06 19:16    Post subject: Reply with quote

Thanks for the quick fix!
Will try now.

Edit: works fine again! Wink

_________________
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: 30/03/06 00:44    Post subject: ObjectAtCursor Reply with quote

> ObjectAtCursor: TGraphObject (Read-Only)
> Specifies the last object found under the mouse cursor.

Could you please clarify what do you mean by "last object"?
Is it the one on the top of the pile or the one at the bottom?

Thanks

_________________
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: 30/03/06 02:41    Post subject: Re: ObjectAtCursor Reply with quote

kokkoras wrote:
> ObjectAtCursor: TGraphObject (Read-Only)
> Specifies the last object found under the mouse cursor.

Could you please clarify what do you mean by "last object"?
Is it the one on the top of the pile or the one at the bottom?

Thanks


The value of property sets inside the mouse events. And, of course, it's the top most object.

_________________
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: 30/03/06 12:13    Post subject: Re: SimpleGraph 2.6 released! Reply with quote

Kambiz wrote:
Probably there will be some fundamental changes in the next release of SimpleGraph.

Shocked Shocked Shocked
Anything particular in mind?

Kambiz wrote:
Please post here whatever you wish for the next release of SimpleGraph, and of course bugs you may find in the current release.

1. Grouping support.
2. Undo/Redo support Rolling Eyes

_________________
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: 31/03/06 14:20    Post subject: Reply with quote

What do you think about merging:

Code:
TGraphLinkOptions = set of (gloFixedStartPoint, gloFixedEndPoint, gloFixedBreakPoints);
TGraphNodeOptions = set of (gnoMovable, gnoResizable, gnoShowBackground);
TGraphGroupOptions = set of (ggoMovable, ggoResizable);


in to a single set of options as:

Code:
TGraphObjectOptions = set of (goLinkable, goSelectable, goMovable, goResizable, goShowCaption, goShowBackground);


In this case, for Links we have:

Code:
goReszable <=> not (gloFixedStartPoint, gloFixedEndPoint, gloFixedBreakPoints)

_________________
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: 31/03/06 16:29    Post subject: Reply with quote

It seems more compact that way.

>> TGraphGroupOptions = set of (ggoMovable, ggoResizable); Shocked

So, you started!!

Are GraphGroups virtual objects (that is, with no other visualization apart from their member objects)? It would be nice (well, at least for me Embarassed ) to be able to visualize it. For example, have a GraphNode associated with it.

In a second thought I think it serves the group idea well, because you can use it to establish move, resize, background coloring, ect. The only requirement is to give the group object mouse priority. Objects belonging to a group should not be selectable (although modern apps - OfficeXP - allows direct selection inside the group). I am not sure though if Groups should be handled in a special way from the core lib. Have you make up your mind?

EDIT: One question that puzzles me regarding groups is the relationship with its member objects. Where to put the associations? Store the member IDs in the group OR store the groupID in each member object?

_________________
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: 31/03/06 17:14    Post subject: Reply with quote

Althought a Group is a TGraphObject, but it doesn't draw its client.

Each group has a Members property as type TGraphObjectList. Also, each object has a Group property as type TGraphGroup.

Each group treats as a single object, and its members does not appear in Objects property of SimpleGraph. The members are accessible only by Members property of the group.

The objects within a group are selectable but they will be treated as locked. Therefore, the group members cannot be moved or resized individually.

As well as other object types, a new group class can be derived from TGraphGroup and be registered in the control.

_________________
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: 31/03/06 17:39    Post subject: Reply with quote

Kambiz wrote:
Althought a Group is a TGraphObject, but it doesn't draw its client.

So, client objects of a group are absolutely positioned on the SimpleGraph canvas (NOT relative to the Group position). Also I understand that client objects of a group are painted like before. Correct?

Kambiz wrote:
Each group has a Members property as type TGraphObjectList. Also, each object has a Group property as type TGraphGroup.

That's cross refference. No problem. It's flexible.

Kambiz wrote:
Each group treats as a single object, and its members does not appear in Objects property of SimpleGraph. The members are accessible only by Members property of the group.

How about having an All list as member of the TSimpleGrph that has pointers to any object, apart from the groupNodes? I have seen this approach in DOM handling of TWebBrowser.

Kambiz wrote:
The objects within a group are selectable but they will be treated as locked. Therefore, the group members cannot be moved or resized individually.

That's nice. That way we can pop-up a properties dialog and alter some properties (except X, Y, W and H - maybe).
Regarding positioning and resizing, is it hard to allow then and constrain them to the group object's bounding rect? (Are the old/current move and resize commands constrained?)


Kambiz wrote:
As well as other object types, a new group class can be derived from TGraphGroup and be registered in the control.

Thats true! Very Happy

_________________
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: 31/03/06 19:05    Post subject: Reply with quote

kokkoras wrote:
Kambiz wrote:
Althought a Group is a TGraphObject, but it doesn't draw its client.

So, client objects of a group are absolutely positioned on the SimpleGraph canvas (NOT relative to the Group position). Also I understand that client objects of a group are painted like before. Correct?


"NOT relative to the Group position" is wrong. Seems you wrote this phrase before reading my entire post.

P.S. I mean ZOrder is relative. X and Y Positions are absolute.

_________________
Kambiz


Last edited by Kambiz on 31/03/06 19:14; edited 1 time in total
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