A sample of deriving from node class?

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

A sample of deriving from node class?

Postby lee » May 14th, 2006, 12:05 am

Can someone provide an example of deriving from a node class? I'm interested in seeing how to create custom nodes. I want to create a node that implements a property sheet. I'm just not sure which method to override to implement inserting another control in the node's area.

Thank you,

Lee
lee
Member
Member
 
Posts: 4
Joined: May 14th, 2006, 12:03 am

Postby Kambiz » May 15th, 2006, 2:02 pm

In the SimpleGraph, all nides are derived from TGraphNode. Therefore, you can consider each of nodes as a sample.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm

Postby lee » May 16th, 2006, 3:56 am

Hello Kambiz,

I don't mean to be a pain to you, but I don't understand where I can add what I want to add. I would like to place another component within a derived node. Is this possible?

Thank you and very nice product, BTW

Lee
lee
Member
Member
 
Posts: 4
Joined: May 14th, 2006, 12:03 am

Postby Kambiz » May 16th, 2006, 12:09 pm

Yes, you can.

After deriving a new node/link class, you should register it to SimpleGraph by calling Register class method of TSimpleGraph. After that, the new class can be used within SimpleGraph.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 1 guest