TsimpleGraph. Idea: Formated settings?

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

TsimpleGraph. Idea: Formated settings?

Postby elias » March 6th, 2006, 12:42 pm

Kinds of settings:
Procedure setLinkable:string
Procedure setresizable:string
Procedure setselectable:string
Procedure setcontinable:string
Procedure setIdontknow:string

Formatting Settings:
Node1.linkable:='Type #1'
Node2.linkable:='Type #1'
Node3.linkable:='Type #2'
Node4.linkable:='Type #2'
Node1.Resizable:='Never'
Node2.Resizable:='If unlinked'
Node3.Resizable:='If unlinked'
Node4.Resizable:=''
Node1.Continable:='Rectangles only"
Link1.Idontknow:='blahblahblah'

Conditions table: how client likes; In case of no conditions, defaults. examples:
-nodes only links if formatted equal: Node1 only with node2,Node3 only with node4
-nodes formatted resizable "never" doesn't resize
-nodes formatted Resizable "If unlinked" resize if unlinked
-Nodes formatted continable "Rectangles only" just contains rectangles
and etc.etc.etc. whatever the programmer likes

Opinions?
elias
Senior Member
Senior Member
 
Posts: 90
Joined: November 8th, 2005, 12:09 pm
Location: Galicia, Spain

Re: TsimpleGraph. Idea: Formated settings?

Postby Adem » March 8th, 2006, 12:01 pm

But, you could do all this if derived your own objects and added the necessary stuuf to them, couldn't you?

elias wrote:Kinds of settings:
Procedure setLinkable:string
Procedure setresizable:string
Procedure setselectable:string
Procedure setcontinable:string
Procedure setIdontknow:string

Formatting Settings:
Node1.linkable:='Type #1'
Node2.linkable:='Type #1'
Node3.linkable:='Type #2'
Node4.linkable:='Type #2'
Node1.Resizable:='Never'
Node2.Resizable:='If unlinked'
Node3.Resizable:='If unlinked'
Node4.Resizable:=''
Node1.Continable:='Rectangles only"
Link1.Idontknow:='blahblahblah'

Conditions table: how client likes; In case of no conditions, defaults. examples:
-nodes only links if formatted equal: Node1 only with node2,Node3 only with node4
-nodes formatted resizable "never" doesn't resize
-nodes formatted Resizable "If unlinked" resize if unlinked
-Nodes formatted continable "Rectangles only" just contains rectangles
and etc.etc.etc. whatever the programmer likes

Opinions?
Adem
Active Member
Active Member
 
Posts: 22
Joined: February 20th, 2006, 12:47 pm

Postby elias » March 8th, 2006, 2:41 pm

I guess it is possible but in any cases; e.g.: To make a nodeA linkable with node B but not with node C I have to modify "function TSimpleGraph.IsValidLink" inside TSimpleGraph class. I guess there are more examples.
"function TSimpleGraph.IsValidLink" is useful to put such restrictions; but it's not his real function.
What I find interesting is having an easy way to put whatever restrictions and conditions when editing even being they labyrinthic.
However, Idea was just a idea. It's possible it's not the best way.

(The terms used in this post refers to v1.67; i have not yet changed to the new release in my app)(I'll do it sure when the time allow me).
elias
Senior Member
Senior Member
 
Posts: 90
Joined: November 8th, 2005, 12:09 pm
Location: Galicia, Spain


Return to DELPHI AREA Projects

Who is online

Users browsing this forum: No registered users and 3 guests

cron